]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
[PR90743] Fortran 'allocatable' with OpenACC data/OpenMP 'target' 'map' clauses
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2
3 PR fortran/90743
4 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
5 case.
6 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
10
11 PR testsuite/90861
12 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
13
14 PR middle-end/90862
15 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
16
17 2019-06-16 Tom de Vries <tdevries@suse.de>
18
19 PR tree-optimization/89376
20 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
21
22 2019-06-15 Tom de Vries <tdevries@suse.de>
23
24 PR tree-optimization/89713
25 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
26 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
27
28 2019-06-15 Jakub Jelinek <jakub@redhat.com>
29
30 PR middle-end/90779
31 * testsuite/libgomp.c/pr90779.c: New test.
32 * testsuite/libgomp.fortran/pr90779.f90: New test.
33
34 2019-06-15 Tom de Vries <tdevries@suse.de>
35
36 PR tree-optimization/90009
37 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
38
39 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
40
41 PR tree-optimization/89713
42 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
43
44 2019-06-11 Jakub Jelinek <jakub@redhat.com>
45
46 PR target/90811
47 * testsuite/libgomp.c/pr90811.c: New test.
48
49 2019-06-05 Jakub Jelinek <jakub@redhat.com>
50
51 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
52 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
53
54 2019-06-04 Jakub Jelinek <jakub@redhat.com>
55
56 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
57 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
58 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
59 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
60
61 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
62
63 * configure.ac: Call AX_COUNT_CPUS.
64 Substitute CPU_COUNT.
65 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
66 count fallback.
67 * aclocal.m4: Regenerate.
68 * configure: Regenerate.
69 * Makefile.in, testsuite/Makefile.in: Regenerate.
70
71 2019-05-29 Jakub Jelinek <jakub@redhat.com>
72
73 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
74 to ...
75 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
76 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
77 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
78
79 2019-05-27 Jakub Jelinek <jakub@redhat.com>
80
81 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
82
83 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
84
85 PR libgomp/90641
86 * work.c (gomp_init_work_share): Instead of aligning final ordered
87 value to multiples of long long alignment, align to that the
88 first part (ordered team ids) and if inline_ordered_team_ids
89 is not on a long long alignment boundary within the structure,
90 use __alignof__ (long long) - 1 pad size always.
91 * loop.c (GOMP_loop_start): Fix *mem computation if
92 inline_ordered_team_ids is not aligned on long long alignment boundary
93 within the structure.
94 * loop-ull.c (GOMP_loop_ull_start): Likewise.
95 * sections.c (GOMP_sections2_start): Likewise.
96
97 2019-05-24 Jakub Jelinek <jakub@redhat.com>
98
99 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
100 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
101
102 PR libgomp/90585
103 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
104 HAVE_INTTYPES_H is defined.
105 (print_uint64_t): New typedef.
106 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
107 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
108 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
109 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
110 before casting to void *.
111 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
112 * oacc-mem.c: Don't include config.h nor stdint.h.
113 * target.c: Don't include config.h.
114 * oacc-cuda.c: Likewise.
115 * oacc-host.c: Don't include stdint.h.
116
117 2019-05-20 Jakub Jelinek <jakub@redhat.com>
118
119 PR libgomp/90527
120 * alloc.c (_GNU_SOURCE): Define.
121
122 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
123
124 * acc_prof.h: New file.
125 * oacc-profiling.c: Likewise.
126 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
127 Add these, respectively.
128 * Makefile.in: Regenerate.
129 * env.c (initialize_env): Call goacc_profiling_initialize.
130 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
131 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
132 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
133 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
134 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
135 acc_prof_register, acc_prof_unregister, and acc_register_library.
136 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
137 GOMP_PLUGIN_goacc_thread.
138 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
139 prof_callbacks_enabled members.
140 (goacc_prof_enabled, goacc_profiling_initialize)
141 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
142 (goacc_profiling_dispatch): Declare.
143 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
144 (GOACC_PROFILING_SETUP_P): Define.
145 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
146 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
147 OpenACC Profiling Interface.
148 * oacc-cuda.c (acc_get_current_cuda_device)
149 (acc_get_current_cuda_context, acc_get_cuda_stream)
150 (acc_set_cuda_stream): Likewise.
151 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
152 (acc_init, acc_set_device_type, acc_get_device_type)
153 (acc_get_device_num, goacc_lazy_initialize): Likewise.
154 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
155 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
156 (acc_unmap_data, present_create_copy, delete_copyout)
157 (update_dev_host): Likewise.
158 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
159 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
160 Likewise.
161 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
162 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
163 Likewise.
164 * libgomp.texi: Update.
165 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
166 file.
167 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
168 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
169 Likewise.
170 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
171 Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
173 Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
175 Likewise.
176
177 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
178
179 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
180 (struct goacc_asyncqueue_list): Likewise.
181 (goacc_aq): Likewise.
182 (goacc_aq_list): Likewise.
183 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
184 (GOMP_OFFLOAD_openacc_async_test): Remove.
185 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
186 (GOMP_OFFLOAD_openacc_async_wait): Remove.
187 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
188 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
189 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
190 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
191 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
192 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
193 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
194 (GOMP_OFFLOAD_openacc_async_exec): Declare.
195 (GOMP_OFFLOAD_openacc_async_construct): Declare.
196 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
197 (GOMP_OFFLOAD_openacc_async_test): Declare.
198 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
199 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
200 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
201 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
202 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
203
204 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
205 (gomp_acc_insert_pointer): Adjust declaration.
206 (gomp_copy_host2dev): New declaration.
207 (gomp_copy_dev2host): Likewise.
208 (gomp_map_vars_async): Likewise.
209 (gomp_unmap_tgt): Likewise.
210 (gomp_unmap_vars_async): Likewise.
211 (gomp_fini_device): Likewise.
212
213 * oacc-async.c (get_goacc_thread): New function.
214 (get_goacc_thread_device): New function.
215 (lookup_goacc_asyncqueue): New function.
216 (get_goacc_asyncqueue): New function.
217 (acc_async_test): Adjust code to use new async design.
218 (acc_async_test_all): Likewise.
219 (acc_wait): Likewise.
220 (acc_wait_async): Likewise.
221 (acc_wait_all): Likewise.
222 (acc_wait_all_async): Likewise.
223 (goacc_async_free): New function.
224 (goacc_init_asyncqueues): Likewise.
225 (goacc_fini_asyncqueues): Likewise.
226 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
227 design.
228 (acc_set_cuda_stream): Likewise.
229 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
230 (host_openacc_register_async_cleanup): Remove.
231 (host_openacc_async_exec): New function.
232 (host_openacc_async_test): Adjust parameters.
233 (host_openacc_async_test_all): Remove.
234 (host_openacc_async_wait): Remove.
235 (host_openacc_async_wait_async): Remove.
236 (host_openacc_async_wait_all): Remove.
237 (host_openacc_async_wait_all_async): Remove.
238 (host_openacc_async_set_async): Remove.
239 (host_openacc_async_synchronize): New function.
240 (host_openacc_async_serialize): New function.
241 (host_openacc_async_host2dev): New function.
242 (host_openacc_async_dev2host): New function.
243 (host_openacc_async_queue_callback): New function.
244 (host_openacc_async_construct): New function.
245 (host_openacc_async_destruct): New function.
246 (struct gomp_device_descr host_dispatch): Remove initialization of old
247 interface, add intialization of new async sub-struct.
248 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
249 (goacc_attach_host_thread_to_device): Remove old async code usage.
250 * oacc-int.h (goacc_init_asyncqueues): New declaration.
251 (goacc_fini_asyncqueues): Likewise.
252 (goacc_async_copyout_unmap_vars): Likewise.
253 (goacc_async_free): Likewise.
254 (get_goacc_asyncqueue): Likewise.
255 (lookup_goacc_asyncqueue): Likewise.
256 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
257 design.
258 (present_create_copy): Adjust code to use new async design.
259 (delete_copyout): Likewise.
260 (update_dev_host): Likewise.
261 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
262 async design.
263 (gomp_acc_remove_pointer): Adjust code to use new async design.
264 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
265 design.
266 (GOACC_enter_exit_data): Likewise.
267 (goacc_wait): Likewise.
268 (GOACC_update): Likewise.
269 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
270 when called, warn as obsolete in comment.
271 * target.c (goacc_device_copy_async): New function.
272 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
273 add goacc_device_copy_async case.
274 (gomp_copy_dev2host): Likewise.
275 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
276 (gomp_map_pointer): Likewise.
277 (gomp_map_fields_existing): Likewise.
278 (gomp_map_vars_internal): New always_inline function, renamed from
279 gomp_map_vars.
280 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
281 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
282 passing goacc_asyncqueue argument.
283 (gomp_unmap_tgt): Remove static, add attribute_hidden.
284 (gomp_unref_tgt): New function.
285 (gomp_unmap_vars_internal): New always_inline function, renamed from
286 gomp_unmap_vars.
287 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
288 (gomp_unmap_vars_async): Implement by calling
289 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
290 (gomp_fini_device): New function.
291 (gomp_exit_data): Adjust gomp_copy_dev2host call.
292 (gomp_load_plugin_for_device): Remove old interface, adjust to load
293 new async interface.
294 (gomp_target_fini): Adjust code to call gomp_fini_device.
295
296 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
297 (struct ptx_stream): Remove.
298 (struct nvptx_thread): Remove current_stream field.
299 (cuda_map_create): Remove.
300 (cuda_map_destroy): Remove.
301 (map_init): Remove.
302 (map_fini): Remove.
303 (map_pop): Remove.
304 (map_push): Remove.
305 (struct goacc_asyncqueue): Define.
306 (struct nvptx_callback): Define.
307 (struct ptx_free_block): Define.
308 (struct ptx_device): Remove null_stream, active_streams, async_streams,
309 stream_lock, and next fields.
310 (enum ptx_event_type): Remove.
311 (struct ptx_event): Remove.
312 (ptx_event_lock): Remove.
313 (ptx_events): Remove.
314 (init_streams_for_device): Remove.
315 (fini_streams_for_device): Remove.
316 (select_stream_for_async): Remove.
317 (nvptx_init): Remove ptx_events and ptx_event_lock references.
318 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
319 case.
320 (nvptx_open_device): Add free_blocks initialization, remove
321 init_streams_for_device call.
322 (nvptx_close_device): Remove fini_streams_for_device call, add
323 free_blocks destruct code.
324 (event_gc): Remove.
325 (event_add): Remove.
326 (nvptx_exec): Adjust parameters and code.
327 (nvptx_free): Likewise.
328 (nvptx_host2dev): Remove.
329 (nvptx_dev2host): Remove.
330 (nvptx_set_async): Remove.
331 (nvptx_async_test): Remove.
332 (nvptx_async_test_all): Remove.
333 (nvptx_wait): Remove.
334 (nvptx_wait_async): Remove.
335 (nvptx_wait_all): Remove.
336 (nvptx_wait_all_async): Remove.
337 (nvptx_get_cuda_stream): Remove.
338 (nvptx_set_cuda_stream): Remove.
339 (GOMP_OFFLOAD_alloc): Adjust code.
340 (GOMP_OFFLOAD_free): Likewise.
341 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
342 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
343 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
344 (GOMP_OFFLOAD_openacc_async_wait): Remove.
345 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
346 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
347 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
348 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
349 (cuda_free_argmem): New function.
350 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
351 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
352 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
353 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
354 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
355 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
356 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
357 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
358 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
359 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
360 (cuda_callback_wrapper): New function.
361 (cuda_memcpy_sanity_check): New function.
362 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
363 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
364 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
365 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
366
367 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
368
369 PR target/87835
370 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
371
372 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
373
374 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
375
376 2019-03-27 Kevin Buettner <kevinb@redhat.com>
377
378 * team.c (gomp_team_start): Initialize pool->threads[0].
379
380 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
381
382 * testsuite/libgomp.oacc-c++/c++.exp: Specify
383 "-foffload=$offload_target".
384 * testsuite/libgomp.oacc-c/c.exp: Likewise.
385 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
386 * testsuite/lib/libgomp.exp
387 (check_effective_target_openacc_nvidia_accel_configured): Remove,
388 as (conceptually) merged into
389 check_effective_target_openacc_nvidia_accel_selected. Adjust all
390 users.
391
392 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
393 * testsuite/libgomp-test-support.exp.in: Adjust.
394 * testsuite/lib/libgomp.exp: Likewise. Don't populate
395 openacc_device_types_s.
396 (offload_target_to_openacc_device_type): New proc.
397 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
398 * testsuite/libgomp.oacc-c/c.exp: Likewise.
399 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
400 * Makefile.in: Regenerate.
401 * configure: Likewise.
402 * testsuite/Makefile.in: Likewise.
403
404 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
405 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
406 instead of OFFLOAD_TARGETS.
407 * target.c (gomp_target_init): Adjust.
408 * testsuite/libgomp-test-support.exp.in: Likewise.
409 * testsuite/lib/libgomp.exp: Likewise. Populate
410 openacc_device_types_s instead of offload_targets_s_openacc.
411 (check_effective_target_openacc_nvidia_accel_selected)
412 (check_effective_target_openacc_host_selected): Adjust.
413 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
414 * testsuite/libgomp.oacc-c/c.exp: Likewise.
415 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
416 * Makefile.in: Regenerate.
417 * config.h.in: Likewise.
418 * configure: Likewise.
419 * testsuite/Makefile.in: Likewise.
420
421 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
422 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
423 "offloading: supported, but hardware not accessible".
424 * testsuite/libgomp.oacc-c/c.exp: Likewise.
425 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
426
427 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
428
429 PR c/87924
430 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
431 goacc_wait().
432 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
433 and related adjustment.
434
435 2019-01-30 Jakub Jelinek <jakub@redhat.com>
436
437 PR c++/88988
438 * testsuite/libgomp.c++/pr88988.C: New test.
439
440 2019-01-28 Jakub Jelinek <jakub@redhat.com>
441
442 PR middle-end/89002
443 * testsuite/libgomp.c/pr89002.c: New test.
444
445 2019-01-28 Richard Biener <rguenther@suse.de>
446
447 PR testsuite/89064
448 PR tree-optimization/86865
449 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
450
451 2019-01-24 Tom de Vries <tdevries@suse.de>
452
453 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
454 once instantiated_devices drops to 0.
455
456 2019-01-23 Tom de Vries <tdevries@suse.de>
457
458 PR target/PR88946
459 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
460 cuMemFree.
461 (nvptx_exec): Don't call map_push if mapnum == 0.
462 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
463
464 2019-01-23 Tom de Vries <tdevries@suse.de>
465
466 PR target/88941
467 PR target/88939
468 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
469 (map_fini): Remove "assert (!s->map->active)".
470 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
471
472 2019-01-23 Tom de Vries <tdevries@suse.de>
473
474 PR target/87835
475 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
476 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
477
478 2019-01-15 Tom de Vries <tdevries@suse.de>
479
480 PR target/80547
481 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
482 New test.
483
484 2019-01-12 Tom de Vries <tdevries@suse.de>
485
486 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
487 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
488 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
489 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
490
491 2019-01-12 Tom de Vries <tdevries@suse.de>
492
493 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
494
495 2019-01-12 Tom de Vries <tdevries@suse.de>
496
497 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
498 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
499 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
500
501 2019-01-12 Tom de Vries <tdevries@suse.de>
502
503 PR target/85486
504 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
505 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
506
507 2019-01-12 Tom de Vries <tdevries@suse.de>
508
509 PR target/85381
510 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
511 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
512
513 2019-01-12 Tom de Vries <tdevries@suse.de>
514
515 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
516 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
517 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
518
519 2019-01-12 Tom de Vries <tdevries@suse.de>
520
521 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
522 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
523 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
524
525 2019-01-12 Tom de Vries <tdevries@suse.de>
526
527 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
528 resources diagnostic.
529
530 2019-01-12 Tom de Vries <tdevries@suse.de>
531
532 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
533 vector length to be 128.
534 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
535 length 2097152 to be reduced to 1024 instead of 32.
536
537 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
538 James Norris <jnorris@codesourcery.com>
539
540 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
541 Library Routines", and "Environment Variables".
542
543 2019-01-11 Tom de Vries <tdevries@suse.de>
544
545 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
546 num_workers 16.
547
548 2019-01-11 Tom de Vries <tdevries@suse.de>
549
550 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
551 -foffload=-w.
552 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
553 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
554 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
555 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
556
557 2019-01-11 Tom de Vries <tdevries@suse.de>
558
559 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
560 test.
561
562 2019-01-10 Nathan Sidwell <nathan@acm.org>
563 Julian Brown <julian@codesourcery.com>
564
565 PR lto/71959
566 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
567 * testsuite/libgomp.oacc-c++/pr71959.C: New.
568
569 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
570
571 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
572 and paste code.
573
574 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
575
576 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
577 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
578 write.
579
580 2019-01-09 Tom de Vries <tdevries@suse.de>
581
582 PR target/88756
583 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
584 #define instead of "const int".
585 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
586 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
587 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
588 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
589
590 2019-01-09 Tom de Vries <tdevries@suse.de>
591
592 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
593 one worker.
594
595 2019-01-07 Tom de Vries <tdevries@suse.de>
596
597 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
598 GOMP_OPENACC_DIM argument.
599
600 2019-01-03 Tom de Vries <tdevries@suse.de>
601
602 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
603 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
604
605 2019-01-01 Jakub Jelinek <jakub@redhat.com>
606
607 Update copyright years.
608
609 2019-01-01 Jakub Jelinek <jakub@redhat.com>
610
611 * libgomp.texi: Bump @copying's copyright year.
612
613 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
614
615 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
616 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
617 (GOACC_declare): Redefine the "device" argument to "flags".
618
619 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
620 Cesar Philippidis <cesar@codesourcery.com>
621
622 * target.c (struct gomp_coalesce_chunk): New structure.
623 (struct gomp_coalesce_buf): Update the chunks member to use that
624 type. Adjust all users.
625
626 2018-12-19 Tom de Vries <tdevries@suse.de>
627
628 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
629 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
630 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
631
632 2018-12-19 Tom de Vries <tdevries@suse.de>
633
634 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
635 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
636 gcc/testsuite/gcc.dg/goacc.
637 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
638
639 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
640 Chung-Lin Tang <cltang@codesourcery.com>
641
642 * oacc-mem.c (acc_present_or_create): Remove definition and change
643 to alias of acc_create.
644 (acc_present_or_copyin): Remove definition and change to alias of
645 acc_copyin.
646 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
647 of acc_present_or_create.
648 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
649 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
651 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
652 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
653 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
654 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
656 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
657 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
658 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
659 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
660 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
661 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
662 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
663 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
664
665 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
666
667 PR libgomp/88495
668 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
669 "identical parameters".
670 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
671 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
672
673 PR libgomp/88484
674 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
675 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
676
677 PR libgomp/88407
678 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
679 (nvptx_wait_async): Unseen async-argument is a no-op.
680 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
681 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
682 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
683 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
684 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
685 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
686 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
687 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
688 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
689
690 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
691 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
692
693 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
694
695 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
696 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
697 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
698
699 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
700
701 PR libgomp/88370
702 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
703 (acc_set_cuda_stream): Clarify.
704 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
705 "async_valid_p".
706 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
707 acc_async_sync".
708 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
709 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
710 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
711 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
712
713 2018-12-14 Tom de Vries <tdevries@suse.de>
714
715 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
716 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
717 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
718 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
719 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
720
721 2018-12-13 Tom de Vries <tdevries@suse.de>
722
723 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
724 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
725 * fortran.c (omp_display_affinity_): ... here.
726 * libgomp.h (gomp_print_string): Declare.
727 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
728 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
729 write.
730
731 2018-12-13 Jakub Jelinek <jakub@redhat.com>
732
733 PR libgomp/88460
734 * testsuite/libgomp.c++/for-24.C (results): Include it in
735 omp declare target region.
736 (main): Use map (always, tofrom: results) instead of
737 map (tofrom: results).
738
739 2018-12-12 Jakub Jelinek <jakub@redhat.com>
740
741 PR fortran/88463
742 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
743 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
744
745 * testsuite/libgomp.c-c++-common/for-16.c: New test.
746
747 2018-12-12 Andreas Schwab <schwab@suse.de>
748
749 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
750 clobbered.
751
752 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
753
754 PR fortran/88411
755 * testsuite/libgomp.fortran/async_io_8.f90: New test.
756
757 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
758 Jakub Jelinek <jakub@redhat.com>
759
760 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
761 devicep->host2dev_func.
762
763 2018-12-08 Jakub Jelinek <jakub@redhat.com>
764
765 PR libgomp/87995
766 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
767 tls_runtime effective target.
768 (t): New threadprivate variable.
769 (main): Set t in threads which execute iterations of the worksharing
770 loop. Propagate that to the task after the loop and don't abort
771 if the current taskgroup hasn't been cancelled.
772
773 2018-12-02 Jakub Jelinek <jakub@redhat.com>
774
775 * testsuite/libgomp.c/task-reduction-3.c: New test.
776
777 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
778
779 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
780
781 PR libgomp/88288
782 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
783 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
784
785 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
786
787 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
788
789 2018-10-19 Richard Biener <rguenther@suse.de>
790
791 PR tree-optimization/88182
792 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
793
794 2018-11-26 Jakub Jelinek <jakub@redhat.com>
795
796 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
797 (RUNTEST): Don't define.
798 (RUNTESTDEFAULTFLAGS): Add.
799 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
800 (distclean-am): Depend on distclean-DEJAGNU.
801 (check-am): If -j% option is present in MFLAGS and if
802 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
803 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
804 * testsuite/Makefile.in: Regenerated.
805
806 2018-11-26 Richard Biener <rguenther@suse.de>
807
808 PR tree-optimization/88182
809 * testsuite/libgomp.c++/pr88182.C: New testcase.
810
811 2018-11-20 Jakub Jelinek <jakub@redhat.com>
812
813 PR bootstrap/88106
814 * config/mingw32/affinity-fmt.c: New file.
815
816 2018-11-09 Jakub Jelinek <jakub@redhat.com>
817
818 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
819 (gomp_display_affinity): Use __builtin_choose_expr to handle
820 properly handle argument having integral, or pointer or some other
821 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
822 with uint64_t type instead of %llx and unsigned long long.
823
824 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
825 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
826
827 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
828
829 * affinity.c: Include <string.h>, <stdio.h>.
830 (gomp_display_affinity_place): Remove cpusetp.
831 * teams.c: Include <limits.h>.
832
833 2018-11-08 Jakub Jelinek <jakub@redhat.com>
834
835 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
836 in_reduction clause for s[0].
837
838 * affinity.c (gomp_display_affinity_place): New function.
839 * affinity-fmt.c: New file.
840 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
841 * config/linux/affinity.c (gomp_display_affinity_place): New function.
842 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
843 Move these functions to ...
844 * config/nvptx/teams.c: ... here. New file.
845 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
846 New functions.
847 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
848 functions.
849 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
850 and _aligned_malloc.
851 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
852 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
853 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
854 gomp_affinity_format_len): New variables.
855 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
856 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
857 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
858 modifiers. Display (non-default) chunk sizes. Print
859 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
860 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
861 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
862 * fortran.c: Include stdio.h and string.h.
863 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
864 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
865 (omp_set_affinity_format_, omp_get_affinity_format_,
866 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
867 omp_pause_resource_all_): New functions.
868 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
869 switch.
870 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
871 functions to ...
872 * teams.c: ... here. New file.
873 * libgomp_g.h: Include gstdint.h.
874 (GOMP_loop_nonmonotonic_runtime_start,
875 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
876 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
877 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
878 GOMP_parallel_loop_nonmonotonic_runtime,
879 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
880 GOMP_loop_ull_nonmonotonic_runtime_start,
881 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
882 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
883 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
884 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
885 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
886 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
887 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
888 GOMP_teams_reg): Declare.
889 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
890 gomp_aligned_alloc uses fallback implementation.
891 (gomp_aligned_alloc, gomp_aligned_free): Declare.
892 (enum gomp_schedule_type): Add GFS_MONOTONIC.
893 (struct gomp_doacross_work_share): Add extra field.
894 (struct gomp_work_share): Add task_reductions field.
895 (struct gomp_taskgroup): Add workshare and reductions fields.
896 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
897 (gomp_thread_handle): New typedef.
898 (gomp_display_affinity_place, gomp_set_affinity_format,
899 gomp_display_string, gomp_display_affinity,
900 gomp_display_affinity_thread): Declare.
901 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
902 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
903 gomp_workshare_task_reduction_register): Declare.
904 (gomp_team_start): Add taskgroup argument.
905 (gomp_pause_host): Declare.
906 (gomp_init_work_share, gomp_work_share_start): Change bool argument
907 to size_t.
908 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
909 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
910 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
911 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
912 GOMP_loop_ull_doacross_start,
913 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
914 GOMP_loop_maybe_nonmonotonic_runtime_next,
915 GOMP_loop_maybe_nonmonotonic_runtime_start,
916 GOMP_loop_nonmonotonic_runtime_next,
917 GOMP_loop_nonmonotonic_runtime_start,
918 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
919 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
920 GOMP_loop_ull_nonmonotonic_runtime_next,
921 GOMP_loop_ull_nonmonotonic_runtime_start,
922 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
923 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
924 GOMP_taskgroup_reduction_register,
925 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
926 GOMP_teams_reg and GOMP_taskwait_depend.
927 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
928 omp_{capture,display}_affinity{,_}, and
929 omp_[gs]et_affinity_format{,_}.
930 * loop.c: Include string.h.
931 (GOMP_loop_runtime_next): Add ialias.
932 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
933 (gomp_loop_static_start, gomp_loop_dynamic_start,
934 gomp_loop_guided_start, gomp_loop_ordered_static_start,
935 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
936 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
937 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
938 or gomp_doacross_init callers.
939 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
940 GOMP_loop_doacross_start): New functions.
941 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
942 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
943 Mask off GFS_MONOTONIC bit.
944 (GOMP_loop_maybe_nonmonotonic_runtime_next,
945 GOMP_loop_maybe_nonmonotonic_runtime_start,
946 GOMP_loop_nonmonotonic_runtime_next,
947 GOMP_loop_nonmonotonic_runtime_start,
948 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
949 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
950 functions.
951 (gomp_parallel_loop_start): Pass NULL as taskgroup to
952 gomp_team_start.
953 * loop_ull.c: Include string.h.
954 (GOMP_loop_ull_runtime_next): Add ialias.
955 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
956 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
957 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
958 gomp_loop_ull_ordered_dynamic_start,
959 gomp_loop_ull_ordered_guided_start,
960 gomp_loop_ull_doacross_static_start,
961 gomp_loop_ull_doacross_dynamic_start,
962 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
963 and gomp_doacross_ull_init callers.
964 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
965 GOMP_loop_ull_doacross_start): New functions.
966 (GOMP_loop_ull_runtime_start,
967 GOMP_loop_ull_ordered_runtime_start,
968 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
969 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
970 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
971 GOMP_loop_ull_nonmonotonic_runtime_next,
972 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
973 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
974 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
975 (omp_pause_resource_t, omp_depend_t): New typedefs.
976 (enum omp_lock_hint_t): Renamed to ...
977 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
978 enumerators using numbers and omp_lock_hint_* as their aliases.
979 (omp_lock_hint_t): New typedef. Rename to ...
980 (omp_sync_hint_t): ... this.
981 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
982 omp_sync_hint_t instead of omp_lock_hint_t.
983 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
984 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
985 Declare.
986 (omp_target_is_present, omp_target_disassociate_ptr):
987 Change first argument from void * to const void *.
988 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
989 from void * to const void *.
990 (omp_target_associate_ptr): Change first and second arguments from
991 void * to const void *.
992 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
993 omp_pause_hard): New parameters.
994 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
995 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
996 New interfaces.
997 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
998 omp_pause_hard): New parameters.
999 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1000 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1001 New externals.
1002 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1003 EXTRA argument. If not needed to prepare array, if extra is 0,
1004 clear ws->doacross, otherwise allocate just doacross structure and
1005 extra payload. If array is needed, allocate also extra payload.
1006 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1007 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1008 doacross == NULL.
1009 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1010 gomp_team_start.
1011 (GOMP_parallel): Likewise. Formatting fix.
1012 (GOMP_parallel_reductions): New function.
1013 (GOMP_cancellation_point): If taskgroup has workshare
1014 flag set, check cancelled of prev taskgroup if any.
1015 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1016 on prev taskgroup if any.
1017 * sections.c: Include string.h.
1018 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1019 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1020 (GOMP_sections2_start): New function.
1021 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1022 Pass NULL as taskgroup to gomp_team_start.
1023 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1024 gomp_work_share_start callers.
1025 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1026 If taskgroup has workshare flag set, check cancelled on prev
1027 taskgroup if any. Guard all cancellation tests with
1028 gomp_cancel_var test.
1029 (omp_target_is_present, omp_target_disassociate_ptr):
1030 Change ptr argument from void * to const void *.
1031 (omp_target_memcpy): Change src argument from void * to const void *.
1032 (omp_target_memcpy_rect): Likewise.
1033 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1034 instead of char * where needed.
1035 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1036 from void * to const void *.
1037 (omp_pause_resource, omp_pause_resource_all): New functions.
1038 * task.c (gomp_task_handle_depend): Handle new depend array format
1039 in addition to the old. Handle mutexinoutset kinds the same as
1040 inout for now, handle unspecified kinds.
1041 (gomp_create_target_task): If taskgroup has workshare flag set, check
1042 cancelled on prev taskgroup if any. Guard all cancellation tests with
1043 gomp_cancel_var test. Handle new depend array format count in
1044 addition to the old.
1045 (GOMP_task): Likewise. Adjust function comment.
1046 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1047 cancelled on prev taskgroup if any. Guard all cancellation tests with
1048 gomp_cancel_var test.
1049 (GOMP_taskwait_depend): New function.
1050 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1051 format in addition to the old. Handle mutexinoutset kinds the same as
1052 inout for now, handle unspecified kinds. Fix a function comment typo.
1053 (gomp_taskgroup_init): New function.
1054 (GOMP_taskgroup_start): Use it.
1055 (gomp_reduction_register, gomp_create_artificial_team,
1056 GOMP_taskgroup_reduction_register,
1057 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1058 gomp_parallel_reduction_register,
1059 gomp_workshare_task_reduction_register,
1060 gomp_workshare_taskgroup_start,
1061 GOMP_workshare_task_reduction_unregister): New functions.
1062 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1063 check cancelled on prev taskgroup if any. Guard all cancellation
1064 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1065 by calling GOMP_taskgroup_reduction_register.
1066 * team.c (gomp_thread_attr): Remove comment.
1067 (struct gomp_thread_start_data): Add handle field.
1068 (gomp_thread_start): Call pthread_detach.
1069 (gomp_new_team): Adjust gomp_init_work_share caller.
1070 (gomp_free_pool_helper): Call pthread_detach.
1071 (gomp_team_start): Add taskgroup argument, initialize implicit
1072 tasks' taskgroup field to that. Don't call
1073 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1074 (gomp_team_end): Determine nesting by thr->ts.level != 0
1075 rather than thr->ts.team != NULL.
1076 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1077 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1078 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1079 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1080 if more than 1 allocate also extra payload at the end of array. Never
1081 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1082 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1083 return true instead of ws.
1084 * Makefile.in: Regenerated.
1085 * configure: Regenerated.
1086 * config.h.in: Regenerated.
1087 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1088 in some cases.
1089 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1090 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1091 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1092 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1093 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1094 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1095 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1096 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1097 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1098 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1099 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1100 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1101 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1102 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1103 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1104 define a different N(test), don't define N(f0) to N(f14), but instead
1105 define N(f20) to N(f34) using != comparisons.
1106 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1107 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1108 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1109 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1110 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1111 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1112 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1113 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1114 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1115 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1116 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1117 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1118 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1119 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1120 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1121 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1122 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1123 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1124 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1125 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1126 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1127 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1128 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1129 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1130 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1131 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1132 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1133 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1134 * testsuite/libgomp.c++/depend-1.C: New test.
1135 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1136 * testsuite/libgomp.c++/depobj-1.C: New test.
1137 * testsuite/libgomp.c++/for-16.C: New test.
1138 * testsuite/libgomp.c++/for-21.C: New test.
1139 * testsuite/libgomp.c++/for-22.C: New test.
1140 * testsuite/libgomp.c++/for-23.C: New test.
1141 * testsuite/libgomp.c++/for-24.C: New test.
1142 * testsuite/libgomp.c++/for-25.C: New test.
1143 * testsuite/libgomp.c++/for-26.C: New test.
1144 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1145 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1146 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1147 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1148 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1149 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1150 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1151 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1152 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1153 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1154 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1155 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1156 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1157 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1158 * testsuite/libgomp.c/task-reduction-1.c: New test.
1159 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1160 * testsuite/libgomp.c/task-reduction-2.c: New test.
1161 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1162 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1163 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1164 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1165 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1166 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1167 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1168 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1169 * testsuite/libgomp.c/teams-1.c: New test.
1170 * testsuite/libgomp.c/teams-2.c: New test.
1171 * testsuite/libgomp.c/thread-limit-4.c: New test.
1172 * testsuite/libgomp.c/thread-limit-5.c: New test.
1173 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1174
1175 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1176
1177 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1178 acc_memcpy_to/from_device functions, now with async parameter.
1179 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1180 (acc_memcpy_from_device): Likewise.
1181 (acc_memcpy_to_device_async): New API function.
1182 (acc_memcpy_from_device_async): Likewise.
1183 (present_create_copy): Add async parameter and async setting/unsetting.
1184 (acc_create): Adjust present_create_copy call.
1185 (acc_copyin): Likewise.
1186 (acc_present_or_create): Likewise.
1187 (acc_present_or_copyin): Likewise.
1188 (acc_create_async): New API function.
1189 (acc_copyin_async): New API function.
1190 (delete_copyout): Add async parameter and async setting/unsetting.
1191 (acc_delete): Adjust delete_copyout call.
1192 (acc_copyout): Likewise.
1193 (acc_delete_async): New API function.
1194 (acc_copyout_async): Likewise.
1195 (update_dev_host): Add async parameter and async setting/unsetting.
1196 (acc_update_device): Adjust update_dev_host call.
1197 (acc_update_self): Likewise.
1198 (acc_update_device_async): New API function.
1199 (acc_update_self_async): Likewise.
1200 * openacc.h (acc_copyin_async): Declare new API function.
1201 (acc_create_async): Likewise.
1202 (acc_copyout_async): Likewise.
1203 (acc_delete_async): Likewise.
1204 (acc_update_device_async): Likewise.
1205 (acc_update_self_async): Likewise.
1206 (acc_memcpy_to_device_async): Likewise.
1207 (acc_memcpy_from_device_async): Likewise.
1208 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1209 (acc_copyin_async_64_h): New subroutine.
1210 (acc_copyin_async_array_h): New subroutine.
1211 (acc_create_async_32_h): New subroutine.
1212 (acc_create_async_64_h): New subroutine.
1213 (acc_create_async_array_h): New subroutine.
1214 (acc_copyout_async_32_h): New subroutine.
1215 (acc_copyout_async_64_h): New subroutine.
1216 (acc_copyout_async_array_h): New subroutine.
1217 (acc_delete_async_32_h): New subroutine.
1218 (acc_delete_async_64_h): New subroutine.
1219 (acc_delete_async_array_h): New subroutine.
1220 (acc_update_device_async_32_h): New subroutine.
1221 (acc_update_device_async_64_h): New subroutine.
1222 (acc_update_device_async_array_h): New subroutine.
1223 (acc_update_self_async_32_h): New subroutine.
1224 (acc_update_self_async_64_h): New subroutine.
1225 (acc_update_self_async_array_h): New subroutine.
1226 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1227 (acc_copyin_async_64_h): New subroutine.
1228 (acc_copyin_async_array_h): New subroutine.
1229 (acc_create_async_32_h): New subroutine.
1230 (acc_create_async_64_h): New subroutine.
1231 (acc_create_async_array_h): New subroutine.
1232 (acc_copyout_async_32_h): New subroutine.
1233 (acc_copyout_async_64_h): New subroutine.
1234 (acc_copyout_async_array_h): New subroutine.
1235 (acc_delete_async_32_h): New subroutine.
1236 (acc_delete_async_64_h): New subroutine.
1237 (acc_delete_async_array_h): New subroutine.
1238 (acc_update_device_async_32_h): New subroutine.
1239 (acc_update_device_async_64_h): New subroutine.
1240 (acc_update_device_async_array_h): New subroutine.
1241 (acc_update_self_async_32_h): New subroutine.
1242 (acc_update_self_async_64_h): New subroutine.
1243 (acc_update_self_async_array_h): New subroutine.
1244 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1245 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1246 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1247 acc_memcpy_to_device_async*, acc_update_device_async*, and
1248 acc_update_self_async* entries.
1249 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1250 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1251 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1252
1253 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1254
1255 PR bootstrap/82856
1256 * Makefile.am: Include multilib.am
1257 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1258 (CLEANFILES): Remove libgomp.info.
1259 * configure.ac: Remove AC_PREREQ.
1260 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1261 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1262 Regenerate.
1263
1264 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1265 Julian Brown <julian@codesourcery.com>
1266
1267 * testsuite/libgomp.oacc-c++/this.C: New.
1268
1269 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1270
1271 * plugin/plugin-nvptx.c (struct cuda_map): New.
1272 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1273 h_tail with (cuda_map *) map.
1274 (cuda_map_create): New function.
1275 (cuda_map_destroy): New function.
1276 (map_init): Update to use a linked list of cuda_map objects.
1277 (map_fini): Likewise.
1278 (map_pop): Likewise.
1279 (map_push): Likewise. Return CUdeviceptr instead of void.
1280 (init_streams_for_device): Remove stales references to ptx_stream
1281 members.
1282 (select_stream_for_async): Likewise.
1283 (nvptx_exec): Update call to map_init.
1284
1285 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1286 Julian Brown <julian@codesourcery.com>
1287
1288 PR middle-end/86336
1289 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1290
1291 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1292 Thomas Koenig <tkoenig@gcc.gnu.org>
1293
1294 PR fortran/25829
1295 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1296 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1297 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1298 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1299 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1300 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1301 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1302
1303 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1304 Tom de Vries <tdevries@suse.de>
1305
1306 PR target/85590
1307 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1308 (cuOccupancyMaxPotentialBlockSize): Declare.
1309 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1310 CUDA_ONE_CALL_MAYBE_NULL.
1311 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1312 CUoccupancyB2DSize and declare
1313 cuOccupancyMaxPotentialBlockSize.
1314 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1315 default num_gangs and num_workers when the driver supports it.
1316
1317 2018-08-08 Tom de Vries <tdevries@suse.de>
1318
1319 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1320 CUDA_ONE_CALL_MAYBE_NULL.
1321 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1322 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1323 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1324 are not found.
1325
1326 2018-08-08 Tom de Vries <tdevries@suse.de>
1327
1328 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1329 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1330 present.
1331
1332 2018-08-08 Tom de Vries <tdevries@suse.de>
1333
1334 * plugin/plugin-nvptx.c
1335 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1336 (nvptx_open_device): Use
1337 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1338
1339 2018-08-08 Tom de Vries <tdevries@suse.de>
1340
1341 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1342 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1343
1344 2018-08-07 Tom de Vries <tdevries@suse.de>
1345
1346 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1347 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1348 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1349 corresponding call in CUDA_ONE_CALL. Add def/undef of
1350 CUDA_ONE_CALL_MAYBE_NULL.
1351 (CUDA_CALL_EXISTS): Define.
1352
1353 2018-08-07 Tom de Vries <tdevries@suse.de>
1354
1355 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1356 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1357 corresponding undefs right after.
1358
1359 2018-08-04 Tom de Vries <tdevries@suse.de>
1360
1361 * plugin/configfrag.ac: For --without-cuda-driver, set
1362 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1363 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1364 * configure: Regenerate.
1365
1366 2018-08-02 Tom de Vries <tdevries@suse.de>
1367
1368 PR target/86660
1369 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1370 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1371 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1372 Same.
1373 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1374 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1375 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1376
1377 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1378 Thomas Schwinge <thomas@codesourcery.com>
1379
1380 * config/nvptx/oacc-parallel.c: Truncate.
1381
1382 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1383 James Norris <jnorris@codesourcery.com>
1384
1385 * plugin/plugin-nvptx.c (struct map): Removed.
1386 (map_init, map_pop): Remove use of struct map.
1387 (map_push): Likewise and change argument list.
1388 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1389
1390 2018-08-01 Tom de Vries <tdevries@suse.de>
1391
1392 * plugin/cuda-lib.def: New file. Factor out of ...
1393 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1394 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1395 using CUDA_CALLS.
1396
1397 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1398
1399 Revert 'AsyncI/O patch committed'.
1400 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1401 Thomas Koenig <tkoenig@gcc.gnu.org>
1402
1403 PR fortran/25829
1404 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1405 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1406 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1407 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1408 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1409 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1410 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1411
1412 2018-07-30 Tom de Vries <tdevries@suse.de>
1413
1414 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1415 (nvptx_exec): Ensure worker and vector default dims don't exceed
1416 targ_fn->max_threads_per_block.
1417
1418 2018-07-30 Tom de Vries <tdevries@suse.de>
1419
1420 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1421 (nvptx_open_device): Init default_dims for device.
1422 (nvptx_exec): Use default_dims from device.
1423
1424 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1425
1426 PR testsuite/86660
1427 * testsuite/libgomp.c++/for-15.C (results): Include it in
1428 omp declare target region.
1429 (main): Use map (always, tofrom: results) instead of
1430 map (tofrom: results).
1431
1432 PR middle-end/86660
1433 * testsuite/libgomp.c/pr86660.c: New test.
1434
1435 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1436 Tom de Vries <tdevries@suse.de>
1437
1438 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1439 sufficient resources to launch a kernel, and give a hint on how to fix
1440 it.
1441
1442 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1443 Tom de Vries <tdevries@suse.de>
1444
1445 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1446 max_threads_per_block and max_threads_per_multiprocessor fields.
1447 (nvptx_open_device): Initialize new fields.
1448 (nvptx_exec): Use num_sms, and new fields.
1449
1450 2018-07-26 Tom de Vries <tdevries@suse.de>
1451
1452 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1453 to correct locations. Remove xfail.
1454
1455 2018-07-26 Tom de Vries <tdevries@suse.de>
1456
1457 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1458 acc_wait. Move acc_async_test calls to correct locations. Remove
1459 xfail.
1460
1461 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1462 Thomas Koenig <tkoenig@gcc.gnu.org>
1463
1464 PR fortran/25829
1465 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1466 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1467 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1468 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1469 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1470 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1471 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1472
1473 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1474
1475 PR middle-end/86542
1476 * testsuite/libgomp.c++/pr86542.C: New test.
1477
1478 PR middle-end/86539
1479 * testsuite/libgomp.c++/pr86539.C: New test.
1480
1481 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1482
1483 PR c++/86443
1484 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1485 (results): Make sure the variable is not inside declare target region.
1486 (qux): Remove unused function.
1487
1488 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1489
1490 PR c++/86443
1491 * testsuite/libgomp.c++/for-15.C: New test.
1492
1493 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1494
1495 PR c++/86291
1496 * testsuite/libgomp.c++/pr86291.C: New test.
1497
1498 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1499
1500 * libgomp.texi (Top): Move www.openmp.org to https.
1501 (Enabling OpenMP): Ditto.
1502 (omp_get_active_level): Ditto.
1503 (omp_get_ancestor_thread_num): Ditto.
1504 (omp_get_cancellation): Ditto.
1505 (omp_get_default_device): Ditto.
1506 (omp_get_dynamic): Ditto.
1507 (omp_get_level): Ditto.
1508 (omp_get_max_active_levels): Ditto.
1509 (omp_get_max_task_priority): Ditto.
1510 (omp_get_max_threads): Ditto.
1511 (omp_get_nested): Ditto.
1512 (omp_get_num_devices): Ditto.
1513 (omp_get_num_procs): Ditto.
1514 (omp_get_num_teams): Ditto.
1515 (omp_get_num_threads): Ditto.
1516 (omp_get_proc_bind): Ditto.
1517 (omp_get_schedule): Ditto.
1518 (omp_get_team_num): Ditto.
1519 (omp_get_team_size): Ditto.
1520 (omp_get_thread_limit): Ditto.
1521 (omp_get_thread_num): Ditto.
1522 (omp_in_parallel): Ditto.
1523 (omp_in_final): Ditto.
1524 (omp_is_initial_device): Ditto.
1525 (omp_set_default_device): Ditto.
1526 (omp_set_dynamic): Ditto.
1527 (omp_set_max_active_levels): Ditto.
1528 (omp_set_nested): Ditto.
1529 (omp_set_num_threads): Ditto.
1530 (omp_set_schedule): Ditto.
1531 (omp_init_lock): Ditto.
1532 (omp_set_lock): Ditto.
1533 (omp_test_lock): Ditto.
1534 (omp_unset_lock): Ditto.
1535 (omp_destroy_lock): Ditto.
1536 (omp_init_nest_lock): Ditto.
1537 (omp_set_nest_lock): Ditto.
1538 (omp_test_nest_lock): Ditto.
1539 (omp_unset_nest_lock): Ditto.
1540 (omp_destroy_nest_lock): Ditto.
1541 (omp_get_wtick): Ditto.
1542 (omp_get_wtime): Ditto.
1543 (OMP_CANCELLATION): Ditto.
1544 (OMP_DISPLAY_ENV): Ditto.
1545 (OMP_DEFAULT_DEVICE): Ditto.
1546 (OMP_DYNAMIC): Ditto.
1547 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1548 (OMP_MAX_TASK_PRIORITY): Ditto.
1549 (OMP_NESTED): Ditto.
1550 (OMP_NUM_THREADS): Ditto.
1551 (OMP_PROC_BIND): Ditto.
1552 (OMP_PLACES): Ditto.
1553 (OMP_STACKSIZE): Ditto.
1554 (OMP_SCHEDULE): Ditto.
1555 (OMP_THREAD_LIMIT): Ditto.
1556 (OMP_WAIT_POLICY): Ditto.
1557
1558 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1559 James Norris <jnorris@codesourcery.com>
1560 Julian Brown <julian@codesourcery.com>
1561 Thomas Schwinge <thomas@codesourcery.com>
1562 Tom de Vries <tom@codesourcery.com>
1563
1564 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1565 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1566 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1568 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1569 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1570 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1571 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1572 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1574 Likewise.
1575 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1576 Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1578 Likewise.
1579 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1580 Likewise.
1581 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1582 Likewise.
1583 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1584 Likewise.
1585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1586 Likewise.
1587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1588 Likewise.
1589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1590 Likewise.
1591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1592 Likewise.
1593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1594 Likewise.
1595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1596 Likewise.
1597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1598 Likewise.
1599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1600 Likewise.
1601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1602 Likewise.
1603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1604 Likewise.
1605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1606 Likewise.
1607 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1608 Likewise.
1609 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1610 Likewise.
1611 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1612 Likewise.
1613 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1614 Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1616 Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1618 Likewise.
1619 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1620 Likewise.
1621 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1622 Likewise.
1623 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1624 Likewise.
1625 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1626 Likewise.
1627 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1628 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1629 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1630 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1631 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1632 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1633 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1634 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1635 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1636 Likewise.
1637 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1638 Likewise.
1639 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1640 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1641 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1642 Likewise.
1643 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1644 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1645 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1646 Likewise.
1647 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1648 Likewise.
1649 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1650 Likewise.
1651 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1652 Likewise.
1653 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1654 Likewise.
1655 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1656 Likewise.
1657 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1658 Likewise.
1659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1660 Likewise.
1661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1662 Likewise.
1663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1664 Likewise.
1665 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1666 Likewise.
1667 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1668 Likewise.
1669 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1670 Likewise.
1671 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1672 Likewise.
1673 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1674 Likewise.
1675 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1676 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1677 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1678 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1679 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1680 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1681 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1682
1683 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1684 Thomas Schwinge <thomas@codesourcery.com>
1685 Cesar Philippidis <cesar@codesourcery.com>
1686
1687 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1688 (gomp_acc_remove_pointer): Update declaration.
1689 (gomp_acc_declare_allocate): Declare.
1690 (gomp_remove_var): Declare.
1691 * libgomp.map (OACC_2.5): Define.
1692 * oacc-mem.c (acc_map_data): Update refcount.
1693 (acc_unmap_data): Likewise.
1694 (present_create_copy): Likewise.
1695 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1696 (acc_copyin): Likewise.
1697 (FLAG_FINALIZE): Define.
1698 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1699 (acc_delete_finalize): New function.
1700 (acc_delete_finalize_async): New function.
1701 (acc_copyout_finalize): New function.
1702 (acc_copyout_finalize_async): New function.
1703 (gomp_acc_insert_pointer): Update refcounts.
1704 (gomp_acc_remove_pointer): Return if data is not present on the
1705 accelerator.
1706 * oacc-parallel.c (find_pset): Rename to find_pointer.
1707 (find_pointer): Add support for GOMP_MAP_POINTER.
1708 (handle_ftn_pointers): New function.
1709 (GOACC_parallel_keyed): Update refcounts of variables.
1710 (GOACC_enter_exit_data): Add support for finalized data mappings.
1711 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1712 of fortran arrays.
1713 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1714 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1715 for GOMP_MAP_FORCE_FROM.
1716 * openacc.f90 (module openacc_internal): Add
1717 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1718 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1719 acc_copyout_finalize and acc_delete_finalize.
1720 (acc_copyout_finalize_32_h): New subroutine.
1721 (acc_copyout_finalize_64_h): New subroutine.
1722 (acc_copyout_finalize_array_h): New subroutine.
1723 (acc_delete_finalize_32_h): New subroutine.
1724 (acc_delete_finalize_64_h): New subroutine.
1725 (acc_delete_finalize_array_h): New subroutine.
1726 * openacc.h (acc_copyout_finalize): Declare.
1727 (acc_copyout_finalize_async): Declare.
1728 (acc_delete_finalize): Declare.
1729 (acc_delete_finalize_async): Declare.
1730 * openacc_lib.h (acc_copyout_finalize): New interface.
1731 (acc_delete_finalize): New interface.
1732 * target.c (gomp_map_vars): Update dynamic_refcount.
1733 (gomp_remove_var): New function.
1734 (gomp_unmap_vars): Use it.
1735 (gomp_unload_image_from_device): Likewise.
1736 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1737 case to utilize OpenACC 2.5 data clause semantics.
1738 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1739 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1740 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1741 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1742 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1743 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1744 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1745 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1746 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1747 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1748 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1749 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1750 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1751 utilize OpenACC 2.5 data clause semantics.
1752 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1753 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1754 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1755 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1756 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1757 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1758 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1759 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1760 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1761
1762 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1763
1764 PR fortran/85841
1765 PR testsuite/85865
1766 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1767 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1768 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1769 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1770 * testsuite/libgomp.fortran/task2.f90: Ditto.
1771 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1772 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1773 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1774 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1775 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1776 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1777 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1778 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1779 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1780
1781 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1782
1783 PR c++/85782
1784 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1785
1786 2018-05-09 Tom de Vries <tom@codesourcery.com>
1787
1788 PR libgomp/82901
1789 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1790 to GOACC_enter_exit_data.
1791
1792 2018-05-09 Tom de Vries <tom@codesourcery.com>
1793
1794 PR libgomp/83792
1795 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1796 (async_synchronous_p): New function.
1797 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1798 async_valid_p.
1799 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1800 async_valid_stream_id_p.
1801 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1802 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1803
1804 2018-05-07 Tom de Vries <tom@codesourcery.com>
1805
1806 PR testsuite/85677
1807 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1808 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1809
1810 2018-05-03 Tom de Vries <tom@codesourcery.com>
1811
1812 PR testsuite/85106
1813 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1814 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1815 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1816 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1817
1818 2018-05-02 Tom de Vries <tom@codesourcery.com>
1819
1820 PR libgomp/85411
1821 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1822 GOMP_OPENACC_DIM ...
1823 * env.c (parse_gomp_openacc_dim): ... here. New function.
1824 (initialize_env): Call parse_gomp_openacc_dim.
1825 (goacc_default_dims): Define.
1826 * libgomp.h (goacc_default_dims): Declare.
1827 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1828 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1829 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1830 GOMP_PLUGIN_acc_default_dim.
1831 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1832 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1833
1834 2018-05-02 Tom de Vries <tom@codesourcery.com>
1835
1836 PR testsuite/83791
1837 * testsuite/libgomp.c++/udr-9.C: Update.
1838 * testsuite/libgomp.c++/atomic-16.C: Remove.
1839 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1840 * testsuite/libgomp.c++/loop-13.C: Remove.
1841 * testsuite/libgomp.c++/loop-14.C: Remove.
1842 * testsuite/libgomp.c++/loop-15.C: Remove.
1843 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1844 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1845 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1846 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1847 * testsuite/libgomp.c++/ordered-1.C: Remove.
1848 * testsuite/libgomp.c++/pr45784.C: Remove.
1849 * testsuite/libgomp.c++/pr64824.C: Remove.
1850 * testsuite/libgomp.c++/pr64868.C: Remove.
1851 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1852 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1853 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1854 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1855 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1856 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1857 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1858 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1859 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1860 * testsuite/libgomp.c++/pr69389.C: Remove.
1861 * testsuite/libgomp.c++/simd10.C: Remove.
1862 * testsuite/libgomp.c++/simd11.C: Remove.
1863 * testsuite/libgomp.c++/simd12.C: Remove.
1864 * testsuite/libgomp.c++/simd13.C: Remove.
1865 * testsuite/libgomp.c++/target-1.C: Remove.
1866 * testsuite/libgomp.c++/target-3.C: Remove.
1867 * testsuite/libgomp.c++/target-4.C: Remove.
1868 * testsuite/libgomp.c++/target-5.C: Remove.
1869 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1870 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1871 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1872 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1873 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1874 * testsuite/libgomp.c++/udr-9.C: Remove.
1875 * testsuite/libgomp.c++/for-10.C: Remove.
1876 * testsuite/libgomp.c++/for-11.C: Remove.
1877 * testsuite/libgomp.c++/for-12.C: Remove.
1878 * testsuite/libgomp.c++/for-13.C: Remove.
1879 * testsuite/libgomp.c++/for-14.C: Remove.
1880 * testsuite/libgomp.c++/for-9.C: Remove.
1881 * testsuite/libgomp.c/atomic-18.c: Move ...
1882 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1883 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1884 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1885 * testsuite/libgomp.c/loop-13.c: Move ...
1886 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1887 * testsuite/libgomp.c/loop-14.c: Move ...
1888 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1889 * testsuite/libgomp.c/loop-15.c: Remove.
1890 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1891 * testsuite/libgomp.c/monotonic-1.c: Move ...
1892 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1893 * testsuite/libgomp.c/monotonic-2.c: Move ...
1894 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1895 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1896 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1897 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1898 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1899 * testsuite/libgomp.c/ordered-4.c: Move ...
1900 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1901 * testsuite/libgomp.c/pr45784.c: Move ...
1902 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1903 * testsuite/libgomp.c/pr64824.c: Move ...
1904 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1905 * testsuite/libgomp.c/pr64868.c: Move ...
1906 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1907 * testsuite/libgomp.c/pr66199-1.c: Move ...
1908 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1909 * testsuite/libgomp.c/pr66199-2.c: Move ...
1910 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1911 * testsuite/libgomp.c/pr66199-3.c: Move ...
1912 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1913 * testsuite/libgomp.c/pr66199-4.c: Move ...
1914 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1915 * testsuite/libgomp.c/pr66199-5.c: Move ...
1916 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1917 * testsuite/libgomp.c/pr66199-6.c: Move ...
1918 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1919 * testsuite/libgomp.c/pr66199-7.c: Move ...
1920 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1921 * testsuite/libgomp.c/pr66199-8.c: Move ...
1922 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1923 * testsuite/libgomp.c/pr66199-9.c: Move ...
1924 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1925 * testsuite/libgomp.c/pr69389.c: Move ...
1926 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1927 * testsuite/libgomp.c/simd-14.c: Move ...
1928 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1929 * testsuite/libgomp.c/simd-15.c: Move ...
1930 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1931 * testsuite/libgomp.c/simd-16.c: Move ...
1932 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1933 * testsuite/libgomp.c/simd-17.c: Move ...
1934 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1935 * testsuite/libgomp.c/target-1.c: Move ...
1936 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1937 * testsuite/libgomp.c/target-10.c: Move ...
1938 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1939 * testsuite/libgomp.c/target-13.c: Move ...
1940 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1941 * testsuite/libgomp.c/target-2.c: Move ...
1942 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1943 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1944 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1945 * testsuite/libgomp.c/taskloop-1.c: Move ...
1946 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1947 * testsuite/libgomp.c/taskloop-2.c: Move ...
1948 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1949 * testsuite/libgomp.c/taskloop-3.c: Move ...
1950 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1951 * testsuite/libgomp.c/taskloop-4.c: Move ...
1952 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1953 * testsuite/libgomp.c/udr-1.c: Move ...
1954 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1955 * testsuite/libgomp.c/for-1.c: Move ...
1956 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1957 * testsuite/libgomp.c/for-1.h: Move ...
1958 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1959 * testsuite/libgomp.c/for-2.c: Move ...
1960 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1961 * testsuite/libgomp.c/for-2.h: Move ...
1962 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1963 * testsuite/libgomp.c/for-3.c: Move ...
1964 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1965 * testsuite/libgomp.c/for-4.c: Move ...
1966 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1967 * testsuite/libgomp.c/for-5.c: Move ...
1968 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1969 * testsuite/libgomp.c/for-6.c: Move ...
1970 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1971
1972 2018-05-02 Tom de Vries <tom@codesourcery.com>
1973
1974 PR libgomp/82428
1975 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1976 __builtin_goacc_parlevel_{id,size}.
1977 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1978 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1979 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1980 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1981 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1982 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1983 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1984 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1985 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1986 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1987 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1988 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1989 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1990 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1991 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1992 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1993 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1994 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1995 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1996 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1997 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1998 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1999 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2000
2001 2018-05-02 Tom de Vries <tom@codesourcery.com>
2002
2003 PR testsuite/85106
2004 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2005
2006 2018-05-02 Tom de Vries <tom@codesourcery.com>
2007
2008 PR testsuite/85106
2009 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2010
2011 2018-04-29 Julian Brown <julian@codesourcery.com>
2012 Tom de Vries <tom@codesourcery.com>
2013
2014 PR testsuite/85527
2015 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2016 arbitrary order for iterations of atomic subtract check.
2017
2018 2018-04-28 Tom de Vries <tom@codesourcery.com>
2019
2020 PR testsuite/85527
2021 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2022 atomic capture results obtained in parallel loop to an array, instead of
2023 to a scalar.
2024
2025 2018-04-26 Tom de Vries <tom@codesourcery.com>
2026
2027 PR libgomp/84020
2028 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2029 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2030 (process_GOMP_NVPTX_JIT): New function.
2031 (link_ptx): Use process_GOMP_NVPTX_JIT.
2032
2033 2018-04-26 Richard Biener <rguenther@suse.de>
2034 Tom de Vries <tom@codesourcery.com>
2035
2036 PR lto/85422
2037 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2038
2039 2018-04-26 Tom de Vries <tom@codesourcery.com>
2040
2041 PR target/85519
2042 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2043 recursion depth from 25 to 23.
2044 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2045
2046 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2047
2048 * configure: Regenerated.
2049
2050 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2051 Tom de Vries <tom@codesourcery.com>
2052
2053 PR target/85445
2054 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2055
2056 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2057
2058 PR libgomp/85463
2059 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2060 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2061 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2062 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2063 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2064 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2065
2066 PR libfortran/85166
2067 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2068 abort".
2069 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2070
2071 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2072
2073 * configure: Regenerated.
2074
2075 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2076
2077 PR jit/85384
2078 * configure: Regenerate.
2079
2080 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2081 Tom de Vries <tom@codesourcery.com>
2082
2083 PR middle-end/84955
2084 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2085 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2086
2087 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2088
2089 PR fortran/83064
2090 PR testsuite/85346
2091 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2092 test from gfortran.dg to here.
2093
2094 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2095
2096 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2097 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2098
2099 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2100
2101 PR middle-end/84955
2102 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2103 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2104
2105 2018-04-05 Tom de Vries <tom@codesourcery.com>
2106
2107 PR target/85204
2108 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2109
2110 2018-03-26 Tom de Vries <tom@codesourcery.com>
2111
2112 PR tree-optimization/85063
2113 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2114 * testsuite/libgomp.c/switch-conversion.c: New test.
2115 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2116 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2117
2118 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2119
2120 PR fortran/84381
2121 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2122 call abort by STOP n.
2123 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2124 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2125 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2126 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2127 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2128 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2129 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2130 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2131 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2132 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2133 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2134 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2135 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2136 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2137 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2138 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2139 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2140 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2141 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2142 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2143 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2144 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2145 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2146 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2147 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2148 * testsuite/libgomp.fortran/character1.f90: Likewise.
2149 * testsuite/libgomp.fortran/character2.f90: Likewise.
2150 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2151 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2152 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2153 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2154 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2155 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2156 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2157 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2158 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2159 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2160 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2161 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2162 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2163 * testsuite/libgomp.fortran/do1.f90: Likewise.
2164 * testsuite/libgomp.fortran/do2.f90: Likewise.
2165 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2166 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2167 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2168 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2169 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2170 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2171 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2172 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2173 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2174 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2175 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2176 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2177 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2178 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2179 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2180 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2181 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2182 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2183 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2184 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2185 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2186 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2187 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2188 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2189 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2190 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2191 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2192 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2193 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2194 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2195 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2196 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2197 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2198 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2199 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2200 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2201 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2202 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2203 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2204 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2205 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2206 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2207 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2208 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2209 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2210 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2211 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2212 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2213 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2214 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2215 * testsuite/libgomp.fortran/lib2.f: Likewise.
2216 * testsuite/libgomp.fortran/lib3.f: Likewise.
2217 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2218 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2219 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2220 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2221 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2222 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2223 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2224 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2225 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2226 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2227 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2228 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2229 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2230 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2231 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2232 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2233 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2234 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2235 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2236 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2237 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2238 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2239 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2240 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2241 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2242 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2243 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2244 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2245 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2246 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2247 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2248 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2249 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2250 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2251 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2252 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2253 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2254 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2255 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2256 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2257 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2258 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2259 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2260 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2261 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2262 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2263 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2264 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2265 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2266 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2267 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2268 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2269 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2270 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2271 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2272 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2273 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2274 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2275 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2276 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2277 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2278 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2279 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2280 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2281 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2282 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2283 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2284 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2285 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2286 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2287 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2288 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2289 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2290 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2291 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2292 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2293 * testsuite/libgomp.fortran/stack.f90: Likewise.
2294 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2295 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2296 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2297 * testsuite/libgomp.fortran/target1.f90: Likewise.
2298 * testsuite/libgomp.fortran/target2.f90: Likewise.
2299 * testsuite/libgomp.fortran/target3.f90: Likewise.
2300 * testsuite/libgomp.fortran/target4.f90: Likewise.
2301 * testsuite/libgomp.fortran/target5.f90: Likewise.
2302 * testsuite/libgomp.fortran/target6.f90: Likewise.
2303 * testsuite/libgomp.fortran/target7.f90: Likewise.
2304 * testsuite/libgomp.fortran/target8.f90: Likewise.
2305 * testsuite/libgomp.fortran/task1.f90: Likewise.
2306 * testsuite/libgomp.fortran/task2.f90: Likewise.
2307 * testsuite/libgomp.fortran/task3.f90: Likewise.
2308 * testsuite/libgomp.fortran/task4.f90: Likewise.
2309 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2310 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2311 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2312 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2313 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2314 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2315 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2316 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2317 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2318 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2319 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2320 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2321 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2322 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2323 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2324 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2325 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2326 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2327 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2328 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2329 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2330 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2331 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2332 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2333 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2334 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2335 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2336 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2337 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2338 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2339 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2340 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2341 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2342 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2343 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2344 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2345 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2346 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2347 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2348 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2349 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2350 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2351 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2352 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2353 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2354 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2355 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2356 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2357 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2358 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2359 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2360 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2361 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2362 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2363 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2364 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2365 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2366 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2367 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2368 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2369 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2370 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2371 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2372 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2373 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2374 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2375 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2376 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2377 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2378 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2379 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2380 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2381 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2382 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2383 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2384 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2385 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2386 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2387 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2388 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2389 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2390 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2391 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2392 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2393 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2394 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2395 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2396 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2397 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2398 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2399 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2400 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2401 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2402 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2403 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2404 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2405 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2406 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2407 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2408 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2409 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2410 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2411 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2412 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2413 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2414 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2415 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2416 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2417 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2418 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2419 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2420 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2421 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2422 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2423 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2424 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2425 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2426 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2427 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2428 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2429 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2430 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2431 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2432 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2433 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2434 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2435
2436 2018-03-20 Richard Biener <rguenther@suse.de>
2437
2438 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2439 parallelizable loop.
2440
2441 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2442
2443 PR target/84148
2444 * configure: Regenerate.
2445
2446 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2447
2448 PR fortran/84418
2449 * libgomp.fortran/pr84418-1.f90: New test.
2450 * libgomp.fortran/pr84418-2.f90: New test.
2451
2452 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2453
2454 PR fortran/84313
2455 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2456 -std=f2003 -fall-intrinsics into dg-additional-options.
2457
2458 2018-02-08 Martin Jambor <mjambor@suse.cz>
2459
2460 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2461 clonable.
2462
2463 2018-02-08 Martin Jambor <mjambor@suse.cz>
2464
2465 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2466
2467 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2468
2469 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2470 [__cplusplus]: Declare extern "C".
2471
2472 2018-02-07 Tom de Vries <tom@codesourcery.com>
2473
2474 PR libgomp/84217
2475 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2476
2477 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2478 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR libgomp/84096
2481 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2482 instead of omp_lock_t.
2483
2484 2018-01-25 Tom de Vries <tom@codesourcery.com>
2485
2486 PR target/84028
2487 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2488
2489 2018-01-24 Tom de Vries <tom@codesourcery.com>
2490
2491 PR target/83589
2492 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2493
2494 2018-01-24 Tom de Vries <tom@codesourcery.com>
2495
2496 PR target/81352
2497 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2498
2499 2018-01-19 Tom de Vries <tom@codesourcery.com>
2500 Cesar Philippidis <cesar@codesourcery.com>
2501
2502 PR target/83920
2503 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2504 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2505
2506 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2507
2508 Update copyright years.
2509
2510 * libgomp.texi: Bump @copying's copyright year.
2511
2512 2017-12-30 Tom de Vries <tom@codesourcery.com>
2513
2514 PR libgomp/83046
2515 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2516 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2517
2518 2017-12-27 Tom de Vries <tom@codesourcery.com>
2519
2520 PR c++/83046
2521 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2522 (test_nonstatic): Fix return type to workaround PR83046.
2523
2524 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2525
2526 PR testsuite/83281
2527 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2528 j suffix instead of i.
2529 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2530 Likewise.
2531
2532 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2533
2534 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2535 call to acc_wait (1).
2536
2537 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2538
2539 PR fortran/81304
2540 * testsuite/libgomp.fortran/pr81304.f90: New test.
2541
2542 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2543
2544 PR fortran/81841
2545 * libgomp.fortran/pr81841.f90: New test.
2546
2547 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2548
2549 PR libgomp/83106
2550 * target.c (gomp_target_init): Compute lengths just once and
2551 use them in both malloc size and subsequent copying.
2552
2553 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2554
2555 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2556 * acinclude.m4: Add cet.m4.
2557 * configure: Regenerate.
2558 * Makefile.in: Likewise.
2559 * testsuite/Makefile.in: Likewise.
2560
2561 2017-11-15 Tom de Vries <tom@codesourcery.com>
2562
2563 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2564 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2565 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2566 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2567 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2568 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2569
2570 2017-11-14 Tom de Vries <tom@codesourcery.com>
2571
2572 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2573 non-nvidia devices.
2574
2575 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2576
2577 PR c++/82835
2578 * testsuite/libgomp.c++/pr82835.C: New test.
2579
2580 2017-11-06 Martin Liska <mliska@suse.cz>
2581
2582 * testsuite/libgomp.c++/loop-2.C: Return a value
2583 for functions with non-void return type, or change type to void,
2584 or add -Wno-return-type for test.
2585 * testsuite/libgomp.c++/loop-4.C: Likewise.
2586 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2587 * testsuite/libgomp.c++/shared-1.C: Likewise.
2588 * testsuite/libgomp.c++/single-1.C: Likewise.
2589 * testsuite/libgomp.c++/single-2.C: Likewise.
2590
2591 2017-10-31 Tom de Vries <tom@codesourcery.com>
2592
2593 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2594 "do {} while (false)".
2595 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2596 after HSA_DEBUG call.
2597
2598 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2599
2600 * target.c (struct gomp_coalesce_buf): New type.
2601 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2602 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2603 (gomp_copy_host2dev): Add CBUF argument, if copying into
2604 the cached ranges, memcpy into buffer instead of copying
2605 into device.
2606 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2607 Add CBUF argument, pass it through to other calls.
2608 (gomp_map_vars): Aggregate copies from host to device if small enough
2609 and with small enough gaps in between into memcpy into a buffer and
2610 fewer host to device copies from the buffer.
2611 (gomp_update): Adjust gomp_copy_host2dev caller.
2612
2613 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2614
2615 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2616 run" directive.
2617 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2618 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2619 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2620 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2621
2622 2017-10-16 Tom de Vries <tom@codesourcery.com>
2623
2624 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2625 openacc_nvidia_accel_selected.
2626 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2627 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2628 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2629 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2630 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2631 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2632 openacc_nvidia_accel_selected. Skip for shared memory device.
2633 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2634 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2635
2636 2017-10-09 Martin Jambor <mjambor@suse.cz>
2637
2638 PR hsa/82416
2639 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2640
2641 2017-10-07 Tom de Vries <tom@codesourcery.com>
2642
2643 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2644 Remove acc_device_nvidia references.
2645 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2646 Same.
2647
2648 2017-10-05 Tom de Vries <tom@codesourcery.com>
2649
2650 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2651 vector_length(32) clause from acc parallel directive.
2652 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2653
2654 2017-10-04 Tom de Vries <tom@codesourcery.com>
2655
2656 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2657 (main): Reduce sum of arr elements. Assert that hres is exactly
2658 representable in 32-bit floating point.
2659 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2660 (main): Reduce sum of arr elements. Assert that hres and hmres are
2661 exactly representable in 32-bit floating point.
2662 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2663
2664 2017-09-28 Tom de Vries <tom@codesourcery.com>
2665
2666 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2667 setting.
2668 * testsuite/libgomp.c++/pr69393.C: Same.
2669 * testsuite/libgomp.c++/taskloop-1.C: Same.
2670 * testsuite/libgomp.c++/taskloop-3.C: Same.
2671 * testsuite/libgomp.c++/taskloop-4.C: Same.
2672 * testsuite/libgomp.c/for-4.c: Same.
2673 * testsuite/libgomp.c/pr66199-3.c: Same.
2674 * testsuite/libgomp.c/pr66199-4.c: Same.
2675 * testsuite/libgomp.c/pr66199-6.c: Same.
2676 * testsuite/libgomp.c/taskloop-1.c: Same.
2677 * testsuite/libgomp.c/taskloop-3.c: Same.
2678 * testsuite/libgomp.c/taskloop-4.c: Same.
2679 * testsuite/libgomp.fortran/aligned1.f03: Same.
2680 * testsuite/libgomp.fortran/condinc1.f: Same.
2681 * testsuite/libgomp.fortran/condinc3.f90: Same.
2682 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2683 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2684 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2685 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2686 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2687 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2688 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2689 * testsuite/libgomp.fortran/recursion1.f90: Same.
2690 * testsuite/libgomp.fortran/target2.f90: Same.
2691 * testsuite/libgomp.fortran/target5.f90: Same.
2692 * testsuite/libgomp.fortran/task3.f90: Same.
2693
2694 2017-09-28 Tom de Vries <tom@codesourcery.com>
2695
2696 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2697 vector_length(32) clause from acc parallel directive.
2698 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2699
2700 2017-09-27 Tom de Vries <tom@codesourcery.com>
2701
2702 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2703 Remove acc_device_nvidia references.
2704
2705 2017-09-16 Tom de Vries <tom@codesourcery.com>
2706
2707 PR c/81875
2708 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2709
2710 2017-09-14 Tom de Vries <tom@codesourcery.com>
2711
2712 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2713 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2714 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2715 * testsuite/libgomp.c/c.exp: Include test-cases from
2716 libgomp.c-c++-common.
2717 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2718 files.
2719
2720 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2721
2722 PR c++/81314
2723 * testsuite/libgomp.c++/pr81314.C: New test.
2724
2725 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2726
2727 * libgomp.texi (Top): www.openacc.org now uses https.
2728 (Enabling OpenACC): Ditto.
2729 (acc_get_num_devices): Ditto.
2730 (acc_set_device_type): Ditto.
2731 (acc_get_device_type): Ditto.
2732 (acc_set_device_num): Ditto.
2733 (acc_get_device_num): Ditto.
2734 (acc_async_test): Ditto.
2735 (acc_async_test_all): Ditto.
2736 (acc_wait): Ditto.
2737 (acc_wait_all): Ditto.
2738 (acc_wait_all_async): Ditto.
2739 (acc_wait_async): Ditto.
2740 (acc_init): Ditto.
2741 (acc_shutdown): Ditto.
2742 (acc_on_device): Ditto.
2743 (acc_malloc): Ditto.
2744 (acc_free): Ditto.
2745 (acc_copyin): Ditto.
2746 (acc_present_or_copyin): Ditto.
2747 (acc_create): Ditto.
2748 (acc_present_or_create): Ditto.
2749 (acc_copyout): Ditto.
2750 (acc_delete): Ditto.
2751 (acc_update_device): Ditto.
2752 (acc_update_self): Ditto.
2753 (acc_map_data): Ditto.
2754 (acc_unmap_data): Ditto.
2755 (acc_deviceptr): Ditto.
2756 (acc_hostptr): Ditto.
2757 (acc_is_present): Ditto.
2758 (acc_memcpy_to_device): Ditto.
2759 (acc_memcpy_from_device): Ditto.
2760 (acc_get_current_cuda_device): Ditto.
2761 (acc_get_current_cuda_context): Ditto.
2762 (acc_get_cuda_stream): Ditto.
2763 (acc_set_cuda_stream): Ditto.
2764 (ACC_DEVICE_TYPE): Ditto.
2765 (ACC_DEVICE_NUM): Ditto.
2766 (OpenACC Library Interoperability): Ditto.
2767
2768 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2769
2770 PR c/81687
2771 * testsuite/libgomp.c/pr81687-1.c: New test.
2772 * testsuite/libgomp.c/pr81687-2.c: New test.
2773
2774 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2775
2776 PR c/69389
2777 * testsuite/libgomp.c/pr69389.c: New test.
2778 * testsuite/libgomp.c++/pr69389.C: New test.
2779
2780 2017-08-07 Tom de Vries <tom@codesourcery.com>
2781
2782 PR middle-end/78266
2783 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2784 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2785
2786 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2787
2788 PR c/45784
2789 * testsuite/libgomp.c/pr45784.c: New test.
2790 * testsuite/libgomp.c++/pr45784.C: New test.
2791
2792 2017-07-19 Tom de Vries <tom@codesourcery.com>
2793
2794 * testsuite/libgomp.oacc-c/vec.c: New test.
2795
2796 2017-07-03 Tom de Vries <tom@codesourcery.com>
2797
2798 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2799
2800 2017-06-27 Tom de Vries <tom@codesourcery.com>
2801
2802 * plugin/plugin-nvptx.c (notify_var): New function.
2803 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2804
2805 2017-06-27 Tom de Vries <tom@codesourcery.com>
2806
2807 * env.c (parse_unsigned_long_1): Factor out of ...
2808 (parse_unsigned_long): ... here.
2809 (parse_int_1): Factor out of ...
2810 (parse_int): ... here.
2811 (parse_int_secure): New function.
2812 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2813 * secure_getenv.h: Factor out of ...
2814 * plugin/plugin-hsa.c: ... here.
2815 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2816
2817 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR c++/81130
2820 * testsuite/libgomp.c++/pr81130.C: New test.
2821
2822 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2823
2824 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2825 default args.
2826 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2827 dg-xfail-run-if default args.
2828
2829 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2830
2831 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2832 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2833
2834 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2835
2836 PR libgomp/80822
2837 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2838 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2839 sibling lists, depending on level just pick up what CPUs to put
2840 together into a place vs. whether add multiple ordered places.
2841
2842 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2843
2844 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2845 * libgomp.map (OACC_2.0.1): Add these.
2846 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2847 for "acc_wait", and "acc_wait_all", respectively.
2848 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2849 for "acc_wait", and "acc_wait_all", respectively.
2850 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2851 * libgomp.texi (acc_wait, acc_wait_all): Update.
2852 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2853 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2854 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2855
2856 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2857 acc_present_or_copyin and acc_present_or_create procedures,
2858 respectively.
2859 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2860 generally different variants of OpenACC Runtime Library functions.
2861 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2862
2863 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2864 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2865
2866 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2867 of preprocessor definitions.
2868 * libgomp.h (strong_alias): Guard by "#ifdef
2869 HAVE_ATTRIBUTE_ALIAS".
2870 * oacc-mem.c: Provide "acc_pcreate" as alias for
2871 "acc_present_or_create", and "acc_pcopyin" as alias for
2872 "acc_present_or_copyin".
2873 * libgomp.map: New version "OACC_2.0.1".
2874 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2875 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2876 its content into...
2877 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2878 Extend testing.
2879
2880 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2881 when disabling nvptx offloading.
2882
2883 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2884
2885 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2886 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2887 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2888
2889 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2890 * testsuite/lib/libgomp.exp
2891 (check_effective_target_openacc_nvidia_accel_configured): New
2892 proc.
2893 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2894 (check_effective_target_c++): New procs.
2895 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2896 (check_effective_target_c++): Likewise.
2897
2898 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2899
2900 PR middle-end/80809
2901 * testsuite/libgomp.c/pr80809-2.c: New test.
2902 * testsuite/libgomp.c/pr80809-3.c: New test.
2903
2904 PR middle-end/80809
2905 * testsuite/libgomp.c/pr80809-1.c: New test.
2906
2907 PR middle-end/80853
2908 * testsuite/libgomp.c/pr80853.c: New test.
2909
2910 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2911
2912 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2913 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2914 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2915 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2916 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2917
2918 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2919 Debug output for failure.
2920
2921 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2922
2923 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2924
2925 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR bootstrap/80531
2928 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2929 bootstrap compare failures.
2930
2931 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2932
2933 * testsuite/libgomp.c/target-36.c: New testcase.
2934
2935 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2936
2937 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2938 instead of char.
2939
2940 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2941
2942 PR libgomp/80394
2943 * testsuite/libgomp.c/pr80394.c: New test.
2944
2945 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2946
2947 PR libgomp/79876
2948 * config/posix/thread-stacksize.h: New file.
2949 * config/darwin/thread-stacksize.h: New file.
2950 * config/nvptx/thread-stacksize.h: New file.
2951 * env.c: Include thread-stacksize.h.
2952 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2953 instead of 0. Call pthread_attr_setstacksize even if
2954 GOMP_DEFAULT_STACKSIZE is non-zero.
2955
2956 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2957
2958 * env.c (initialize_env): Initialize stacksize to 0.
2959
2960 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2961
2962 PR c++/80029
2963 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2964
2965 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2966
2967 PR c/79940
2968 * testsuite/libgomp.c/pr79940.c: New test.
2969
2970 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2971
2972 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2973 targets.
2974 Add __float128 options.
2975
2976 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2977
2978 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2979 hppa*-*-* dg-skip-if directive.
2980
2981 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2982
2983 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2984 dg-skip-if directive into a comment.
2985
2986 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2987 Chung-Lin Tang <cltang@codesourcery.com>
2988
2989 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2990 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2991 add additional case.
2992 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2993 "openacc_nvidia_accel_selected".
2994 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2995 Add num_workers(8) clause.
2996
2997 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2998
2999 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3000 hppa*-*-*.
3001 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3002 include complex.h on hppa*-*-hpux*.
3003 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3004
3005 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3006
3007 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3008
3009 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3010 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3011 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3012 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3013 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3014 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3015 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3016 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3017 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3018 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3019
3020 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3021
3022 * libgomp-plugin.h: #include <stdbool.h>.
3023 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3024 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3025 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3026 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3027 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3028 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3029 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3030 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3031 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3032 (GOMP_OFFLOAD_openacc_async_test)
3033 (GOMP_OFFLOAD_openacc_async_test_all)
3034 (GOMP_OFFLOAD_openacc_async_wait)
3035 (GOMP_OFFLOAD_openacc_async_wait_async)
3036 (GOMP_OFFLOAD_openacc_async_wait_all)
3037 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3038 (GOMP_OFFLOAD_openacc_async_set_async)
3039 (GOMP_OFFLOAD_openacc_create_thread_data)
3040 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3041 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3042 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3043 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3044 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3045 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3046 these.
3047 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3048 (GOMP_OFFLOAD_unload_image): Fix argument types.
3049
3050 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3051
3052 * testsuite/lib/libgomp.exp
3053 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3054 check_compile invocation. Fix up removal of executable. Drop
3055 bogus "2>&1" argument.
3056
3057 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3058 directive.
3059
3060 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3061 Martin Jambor <mjambor@suse.cz>
3062
3063 * plugin/hsa.h: Moved to top level include.
3064 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3065
3066 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3067
3068 PR other/79046
3069 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3070 of cat to get version from BASE-VER file.
3071 * testsuite/Makefile.in: Regenerated.
3072
3073 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3074
3075 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3076 for _WIN64.
3077
3078 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3079
3080 * plugin/hsa.h: Add GCC runtime library exception.
3081 * plugin/hsa_ext_finalize.h: Likewise.
3082
3083 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3084 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3085 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3086 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3087 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3088 library to link ptx plugin against.
3089 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3090 (CUDA_CALLS): Define.
3091 (cuda_lib, cuda_lib_inited): New variables.
3092 (init_cuda_lib): New function.
3093 (CUDA_CALL_PREFIX): Define.
3094 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3095 (CUDA_CALL): Use FN instead of (FN).
3096 (CUDA_CALL_NOCHECK): Define.
3097 (cuda_error, fini_streams_for_device, select_stream_for_async,
3098 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3099 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3100 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3101 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3102 CUDA_CALL_NOCHECK.
3103 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3104 CUDA_CALL_NOCHECK.
3105 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3106 Use CUDA_CALL_NOCHECK.
3107 * plugin/cuda/cuda.h: New file.
3108 * config.h.in: Regenerated.
3109 * configure: Regenerated.
3110
3111 PR other/79046
3112 * configure.ac: Add GCC_BASE_VER.
3113 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3114 get version from BASE-VER file.
3115 * testsuite/Makefile.in: Regenerated.
3116 * configure: Regenerated.
3117 * Makefile.in: Regenerated.
3118
3119 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3120
3121 PR libgomp/60670
3122 * Makefile.am: Make fincludedir multilib-aware.
3123 * Makefile.in: Regenerate.
3124
3125 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3126
3127 Update copyright years.
3128
3129 * libgomp.texi: Bump @copying's copyright year.
3130
3131 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3132
3133 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3134 pthread_spinlock_t instead of gomp_mutex_t lock.
3135 (gomp_get_thread_pool): Likewise.
3136 (gomp_release_thread_pool): Likewise.
3137 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3138 Likewise.
3139
3140 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3141
3142 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3143 thread pool in case nthreads == 1.
3144
3145 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3146
3147 * config/nvptx/env.c: Delete.
3148 * icv.c: Move definitions of ICV variables back ...
3149 * env.c: ...here. Do not compile environment-related functionality if
3150 LIBGOMP_OFFLOADED_ONLY is set.
3151
3152 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3153
3154 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3155 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3156 * configure: Regenerate.
3157 * config.h.in: Likewise.
3158
3159 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3160
3161 * Makefile.in: Regenerate with automake-1.11.6.
3162 * aclocal.m4: Likewise.
3163 * configure: Likewise.
3164 * testsuite/Makefile.in: Likewise.
3165
3166 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3167
3168 * config/nvptx/critical.c: Delete to use generic implementation.
3169
3170 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3171
3172 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3173 ../../affinity.c as fallback.
3174 * config/nvptx/affinity.c: Delete to use fallback implementation.
3175
3176 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3177 Jakub Jelinek <jakub@redhat.com>
3178 Dmitry Melnik <dm@ispras.ru>
3179
3180 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3181 * Makefile.in. Regenerate.
3182 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3183 (LIBGOMP_USE_PTHREADS): ...here; new define.
3184 * configure: Regenerate.
3185 * config.h.in: Likewise.
3186 * config/posix/affinity.c: Move to...
3187 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3188 interface by LIBGOMP_USE_PTHREADS.
3189 * critical.c: Split out GOMP_atomic_{start,end} into...
3190 * atomic.c: ...here (new file).
3191 * env.c: Split out ICV definitions into...
3192 * icv.c: ...here (new file) and...
3193 * icv-device.c: ...here. New file.
3194 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3195 (gomp_destroy_lock_30): Ditto.
3196 (gomp_set_lock_30): Ditto.
3197 (gomp_unset_lock_30): Ditto.
3198 (gomp_test_lock_30): Ditto.
3199 (gomp_init_nest_lock_30): Ditto.
3200 (gomp_destroy_nest_lock_30): Ditto.
3201 (gomp_set_nest_lock_30): Ditto.
3202 (gomp_unset_nest_lock_30): Ditto.
3203 (gomp_test_nest_lock_30): Ditto.
3204 * lock.c: New.
3205 * config/nvptx/lock.c: New.
3206 * config/nvptx/bar.c: New.
3207 * config/nvptx/bar.h: New.
3208 * config/nvptx/doacross.h: New.
3209 * config/nvptx/error.c: New.
3210 * config/nvptx/icv-device.c: New.
3211 * config/nvptx/mutex.h: New.
3212 * config/nvptx/pool.h: New.
3213 * config/nvptx/proc.c: New.
3214 * config/nvptx/ptrlock.h: New.
3215 * config/nvptx/sem.h: New.
3216 * config/nvptx/simple-bar.h: New.
3217 * config/nvptx/target.c: New.
3218 * config/nvptx/task.c: New.
3219 * config/nvptx/team.c: New.
3220 * config/nvptx/time.c: New.
3221 * config/posix/simple-bar.h: New.
3222 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3223 (gomp_num_teams_var): Declare.
3224 (struct gomp_thread_pool): Change threads_dock member to
3225 gomp_simple_barrier_t.
3226 [__nvptx__] (gomp_thread): New implementation.
3227 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3228 (gomp_thread_destructor): Ditto.
3229 (gomp_init_thread_affinity): Ditto.
3230 * team.c: Guard uses of Pthreads-specific interfaces by
3231 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3232 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3233 * config/nvptx/alloc.c: Delete.
3234 * config/nvptx/barrier.c: Ditto.
3235 * config/nvptx/fortran.c: Ditto.
3236 * config/nvptx/iter.c: Ditto.
3237 * config/nvptx/iter_ull.c: Ditto.
3238 * config/nvptx/loop.c: Ditto.
3239 * config/nvptx/loop_ull.c: Ditto.
3240 * config/nvptx/ordered.c: Ditto.
3241 * config/nvptx/parallel.c: Ditto.
3242 * config/nvptx/priority_queue.c: Ditto.
3243 * config/nvptx/sections.c: Ditto.
3244 * config/nvptx/single.c: Ditto.
3245 * config/nvptx/splay-tree.c: Ditto.
3246 * config/nvptx/work.c: Ditto.
3247 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3248 -foffload=-lgfortran in addition to -lgfortran.
3249 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3250 * plugin/plugin-nvptx.c: Include <limits.h>.
3251 (struct targ_fn_descriptor): Add new fields.
3252 (struct ptx_device): Ditto. Set them...
3253 (nvptx_open_device): ...here.
3254 (nvptx_adjust_launch_bounds): New.
3255 (nvptx_host2dev): Allow NULL 'nvthd'.
3256 (nvptx_dev2host): Ditto.
3257 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3258 (link_ptx): Adjust log sizes.
3259 (nvptx_host2dev): Allow NULL 'nvthd'.
3260 (nvptx_dev2host): Ditto.
3261 (nvptx_set_clocktick): New. Use it...
3262 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3263 fields.
3264 (GOMP_OFFLOAD_dev2dev): New.
3265 (nvptx_adjust_launch_bounds): New.
3266 (nvptx_stacks_size): New.
3267 (nvptx_stacks_alloc): New.
3268 (nvptx_stacks_free): New.
3269 (GOMP_OFFLOAD_run): New.
3270 (GOMP_OFFLOAD_async_run): New (stub).
3271
3272 2016-11-23 Martin Jambor <mjambor@suse.cz>
3273
3274 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3275 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3276 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3277
3278 2016-11-23 Martin Liska <mliska@suse.cz>
3279 Martin Jambor <mjambor@suse.cz>
3280
3281 * plugin/hsa.h: New file.
3282 * plugin/hsa_ext_finalize.h: New file.
3283 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3284 header file unistd.h, and functions secure_getenv, __secure_getenv,
3285 getuid, geteuid, getgid and getegid.
3286 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3287 -D_GNU_SOURCE.
3288 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3289 Handle various cases of secure_getenv presence, add an implementation
3290 when we can test effective UID and GID.
3291 (struct hsa_runtime_fn_info): New structure.
3292 (hsa_runtime_fn_info hsa_fns): New variable.
3293 (hsa_runtime_lib): Likewise.
3294 (support_cpu_devices): Likewise.
3295 (init_enviroment_variables): Load newly introduced ENV
3296 variables.
3297 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3298 (hsa_fatal): Likewise.
3299 (DLSYM_FN): New macro.
3300 (init_hsa_runtime_functions): New function.
3301 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3302 structure. Depending on environment, also allow CPU devices.
3303 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3304 (get_kernarg_memory_region): Likewise.
3305 (GOMP_OFFLOAD_init_device): Likewise.
3306 (destroy_hsa_program): Likewise.
3307 (init_basic_kernel_info): New function.
3308 (GOMP_OFFLOAD_load_image): Use it.
3309 (create_and_finalize_hsa_program): Call hsa run-time functions via
3310 hsa_fns structure.
3311 (create_single_kernel_dispatch): Likewise.
3312 (release_kernel_dispatch): Likewise.
3313 (init_single_kernel): Likewise.
3314 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3315 (get_group_size): New function.
3316 (run_kernel): Likewise.
3317 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3318 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3319 structure.
3320 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3321 * testsuite/libgomp-test-support.exp.in: Likewise.
3322 * Makefile.in: Regenerated.
3323 * aclocal.m4: Likewise.
3324 * config.h.in: Likewise.
3325 * configure: Likewise.
3326 * testsuite/Makefile.in: Likewise.
3327
3328 2016-11-15 Martin Jambor <mjambor@suse.cz>
3329 Alexander Monakov <amonakov@ispras.ru>
3330
3331 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3332 mapping clauses to target constructs.
3333 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3334
3335 2016-11-15 Matthias Klose <doko@ubuntu.com>
3336
3337 * configure: Regenerate.
3338
3339 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3340
3341 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3342 * omp_lib.h.in (openmp_version): Likewise.
3343 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3344 of 201307.
3345 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3346
3347 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3348 (fib_wrapper): Add map(from: x) clause.
3349 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3350 (e_53_2): Likewise.
3351 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3352 (accum): Add map(tmp) clause.
3353 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3354 (accum): Add map(tofrom: tmp) clause.
3355 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3356 (gramSchmidt): Likewise.
3357 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3358 map(tofrom: sum) clause.
3359 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3360 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3361 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3362 only allowed on the loop iterator.
3363 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3364 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3365 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3366 * testsuite/libgomp.fortran/doacross1.f90: New test.
3367 * testsuite/libgomp.fortran/doacross3.f90: New test.
3368 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3369 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3370 * testsuite/libgomp.fortran/doacross2.f90: New test.
3371 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3372 #pragma omp atomic read.
3373 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3374 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3375
3376 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3377 Nathan Sidwell <nathan@acm.org>
3378
3379 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3380 to determine default geometry.
3381 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3382 dimension.
3383
3384 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3385
3386 * hashtab.h: Use standard GPLv3 with runtime exception
3387 boilerplate.
3388
3389 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3390
3391 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3392 size when allocating new thread.
3393
3394 2016-09-14 Marek Polacek <polacek@redhat.com>
3395
3396 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3397
3398 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3399
3400 PR fortran/71014
3401 * testsuite/libgomp.fortran/pr71014.f90: New test.
3402
3403 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3404
3405 PR middle-end/70895
3406 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3407 firstprivate clauses.
3408 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3409 copy clauses.
3410 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3411 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3412 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3413 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3414 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3415 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3416 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3417 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3418 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3419 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3420 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3421 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3422
3423 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3424
3425 PR fortran/70598
3426 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3427
3428 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3429
3430 PR c++/58706
3431 * testsuite/libgomp.c++/pr58706.C: New test.
3432
3433 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3434
3435 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3436 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3437 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3438 Likewise.
3439 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3440 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3441 Likewise.
3442 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3443
3444 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3445 test, and don't hardcode -O0.
3446
3447 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3448
3449 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3450
3451 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3452
3453 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3454 test.
3455
3456 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3457
3458 PR middle-end/71734
3459 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3460 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3461
3462 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3463
3464 PR fortran/71717
3465 * testsuite/libgomp.fortran/associate3.f90: New test.
3466
3467 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3468
3469 * testsuite/libgomp.c++/target-21.C: New test.
3470
3471 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3472
3473 * testsuite/libgomp.c++/target-20.C: New test.
3474
3475 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3476 Cesar Philippidis <cesar@codesourcery.com>
3477
3478 PR middle-end/71373
3479 * libgomp.oacc-c/nested-function-1.c: New file.
3480 * libgomp.oacc-c/nested-function-2.c: Likewise.
3481 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3482 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3483 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3484
3485 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3486
3487 PR c/71381
3488 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3489 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3490 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3491
3492 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3493
3494 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3495 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3496
3497 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3498
3499 PR c/70688
3500 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3501
3502 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3503
3504 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3505 instead of invalid schedule(static, 0).
3506 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3507
3508 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3509
3510 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3511 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3512 parameter, use to set async stream around call to gomp_unmap_vars,
3513 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3514 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3515 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3516 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3517 (event_add): Add int parameter, initialize 'val' field when
3518 adding new ptx_event struct.
3519 (nvptx_evec): Adjust event_add() call arguments.
3520 (nvptx_host2dev): Likewise.
3521 (nvptx_dev2host): Likewise.
3522 (nvptx_wait_async): Likewise.
3523 (nvptx_wait_all_async): Likewise.
3524 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3525 pass to event_add() call.
3526 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3527 parameter.
3528 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3529 call openacc.register_async_cleanup_func() hook.
3530 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3531 * target.c (gomp_copy_from_async): Delete function.
3532 (gomp_map_vars): Remove async_refcount.
3533 (gomp_unmap_vars): Likewise.
3534 (gomp_load_image_to_device): Likewise.
3535 (omp_target_associate_ptr): Likewise.
3536 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3537 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3538 (gomp_copy_from_async): Remove.
3539
3540 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3541
3542 * target.c (gomp_device_copy): New function.
3543 (gomp_copy_host2dev): Likewise.
3544 (gomp_copy_dev2host): Likewise.
3545 (gomp_free_device_memory): Likewise.
3546 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3547 (gomp_map_pointer): Likewise.
3548 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3549 NULL value from alloc_func plugin hook.
3550 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3551 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3552 (gomp_unmap_vars): Likewise.
3553 (gomp_update): Adjust to call gomp_copy_dev2host and
3554 gomp_copy_host2dev functions.
3555 (gomp_unload_image_from_device): Handle false value from
3556 unload_image_func plugin hook.
3557 (gomp_init_device): Handle false value from init_device_func
3558 plugin hook.
3559 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3560 (omp_target_free): Adjust to call gomp_free_device_memory.
3561 (omp_target_memcpy): Handle return values from host2dev_func,
3562 dev2host_func, and dev2dev_func plugin hooks.
3563 (omp_target_memcpy_rect_worker): Likewise.
3564 (gomp_target_fini): Handle false value from fini_device_func
3565 plugin hook.
3566 * libgomp.h (struct gomp_device_descr): Adjust return type of
3567 init_device_func, fini_device_func, unload_image_func, free_func,
3568 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3569 * oacc-init.c (acc_shutdown_1): Handle false value from
3570 fini_device_func plugin hook.
3571 * oacc-host.c (host_init_device): Change return type to bool.
3572 (host_fini_device): Likewise.
3573 (host_unload_image): Likewise.
3574 (host_free): Likewise.
3575 (host_dev2host): Likewise.
3576 (host_host2dev): Likewise.
3577 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3578 (acc_memcpy_to_device): Likewise.
3579 (acc_memcpy_from_device): Likewise.
3580 (delete_copyout): Add libfnname parameter, handle free_func
3581 hook fatal error case.
3582 (acc_delete): Adjust delete_copyout call.
3583 (acc_copyout): Likewise.
3584 (update_dev_host): Move gomp_mutex_unlock to after
3585 host2dev/dev2host hook calls.
3586
3587 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3588 to 'hsa_error_msg', for clarity.
3589 (hsa_fatal): Likewise.
3590 (hsa_error): New function.
3591 (init_hsa_context): Change return type to bool, adjust to return
3592 false on error.
3593 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3594 return value.
3595 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3596 return false on error.
3597 (get_agent_info): Adjust to return NULL on error.
3598 (destroy_hsa_program): Change return type to bool, adjust to
3599 return false on error.
3600 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3601 (destroy_module): Change return type to bool, adjust to
3602 return false on error.
3603 (GOMP_OFFLOAD_unload_image): Likewise.
3604 (GOMP_OFFLOAD_fini_device): Likewise.
3605 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3606 (GOMP_OFFLOAD_free): Change to return false when called.
3607 (GOMP_OFFLOAD_dev2host): Likewise.
3608 (GOMP_OFFLOAD_host2dev): Likewise.
3609 (GOMP_OFFLOAD_dev2dev): Likewise.
3610
3611 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3612 (CUDA_CALL): Likewise.
3613 (CUDA_CALL_ASSERT): Likewise.
3614 (map_init): Change return type to bool, use CUDA_CALL* macros.
3615 (map_fini): Likewise.
3616 (init_streams_for_device): Change return type to bool, adjust
3617 call to map_init.
3618 (fini_streams_for_device): Change return type to bool, adjust
3619 call to map_fini.
3620 (select_stream_for_async): Release stream_lock before calls to
3621 GOMP_PLUGIN_fatal, adjust call to map_init.
3622 (nvptx_init): Use CUDA_CALL* macros.
3623 (nvptx_attach_host_thread_to_device): Change return type to bool,
3624 use CUDA_CALL* macros.
3625 (nvptx_open_device): Use CUDA_CALL* macros.
3626 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3627 macros.
3628 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3629 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3630 (nvptx_exec): Use CUDA_CALL* macros.
3631 (nvptx_alloc): Use CUDA_CALL* macros.
3632 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3633 (nvptx_host2dev): Likewise.
3634 (nvptx_dev2host): Likewise.
3635 (nvptx_wait): Use CUDA_CALL* macros.
3636 (nvptx_wait_async): Likewise.
3637 (nvptx_wait_all): Likewise.
3638 (nvptx_wait_all_async): Likewise.
3639 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3640 use CUDA_CALL* macros, adjust call to map_fini.
3641 (GOMP_OFFLOAD_init_device): Change return type to bool,
3642 adjust code accordingly.
3643 (GOMP_OFFLOAD_fini_device): Likewise.
3644 (GOMP_OFFLOAD_load_image): Adjust calls to
3645 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3646 use CUDA_CALL* macros.
3647 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3648 return code.
3649 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3650 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3651 handle error return.
3652 (GOMP_OFFLOAD_dev2host): Likewise.
3653 (GOMP_OFFLOAD_host2dev): Likewise.
3654 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3655 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3656
3657 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3658
3659 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3660 (acc_free): Likewise.
3661 (acc_memcpy_to_device): Likewise.
3662 (acc_memcpy_from_device): Likewise.
3663 (acc_deviceptr): Likewise.
3664 (acc_hostptr): Likewise.
3665 (acc_is_present): Likewise.
3666 (acc_map_data): Likewise.
3667 (acc_unmap_data): Likewise.
3668 (present_create_copy): Likewise.
3669 (delete_copyout): Likewise.
3670 (update_dev_host): Likewise.
3671 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3672 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3673 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3674 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3675 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3676 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3677 it only runs on nvptx targets.
3678 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3679 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3680 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3681 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3682 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3683 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3684 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3685 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3686 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3687 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3688 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3689 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3690 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3691 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3692 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3693 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3694 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3695 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3696 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3697 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3698 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3699 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3701
3702 2016-05-23 Martin Jambor <mjambor@suse.cz>
3703
3704 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3705
3706 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3707
3708 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3709 to gomp_init_targets_once.
3710 (acc_set_device_type): Remove !cached_base_dev condition on call to
3711 gomp_init_targets_once, move call to before acc_device_lock acquire,
3712 to avoid deadlock.
3713 (acc_get_device_num): Remove !cached_base_dev condition on call to
3714 gomp_init_targets_once.
3715 (acc_set_device_num): Likewise.
3716
3717 2016-05-16 Martin Jambor <mjambor@suse.cz>
3718
3719 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3720
3721 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3722
3723 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3724 expected partitioning.
3725
3726 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3727
3728 PR middle-end/70626
3729 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3730 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3731 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3732
3733 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3734
3735 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3736 non-fatal.
3737
3738 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3739
3740 PR middle-end/70680
3741 * testsuite/libgomp.c/pr70680-1.c: New test.
3742 * testsuite/libgomp.c/pr70680-2.c: New test.
3743
3744 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3745
3746 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3747 pass parameter variables to subroutines.
3748
3749 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3750
3751 PR middle-end/70643
3752 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3753
3754 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3755
3756 PR testsuite/68242
3757 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3758 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3759
3760 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3761
3762 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3763 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3764 GOACC_declare prototype.
3765
3766 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3767 Merge this file, and...
3768 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3769 ... this file, and...
3770 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3771 ... this file, and...
3772 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3773 ... this file, and...
3774 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3775 ... this file, and...
3776 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3777 ... this file, and...
3778 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3779 ... this file, and...
3780 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3781 ... this file, and...
3782 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3783 ... this file, and...
3784 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3785 ... this file, and...
3786 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3787 ... this file, and...
3788 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3789 ... this file, and...
3790 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3791 ... this file into...
3792 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3793 file.
3794
3795 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3796 Make failure observable.
3797
3798 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3799
3800 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3801 field.
3802 * target.c (gomp_target_fallback_firstprivate,
3803 gomp_target_unshare_firstprivate): Removed.
3804 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3805 before waiting for dependencies.
3806 (gomp_target_task_fn): Don't copy firstprivate vars here.
3807 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3808 firstprivate_copies here.
3809 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3810 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3811 explicit/implicit firstprivate.
3812
3813 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3814
3815 PR lto/70289
3816 PR ipa/70348
3817 PR tree-optimization/70373
3818 PR middle-end/70533
3819 PR middle-end/70534
3820 PR middle-end/70535
3821 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3822 test.
3823 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3824 test.
3825 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3826 test.
3827 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3828 test.
3829 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3830 test.
3831 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3832 test.
3833 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3834 test.
3835 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3836 test.
3837 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3838 test.
3839 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3840 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3841 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3842 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3843 test.
3844 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3845 test.
3846 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3847 test.
3848 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3849 test.
3850 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3851 coverage.
3852 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3853 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3854 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3855 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3856 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3857 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3858 coverage.
3859 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3860 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3861 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3862 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3863 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3864 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3865 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3866 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3867 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3868 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3869 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3870 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3871 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3872 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3873 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3874
3875 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3876 James Norris <jnorris@codesourcery.com>
3877 Nathan Sidwell <nathan@codesourcery.com>
3878 Julian Brown <julian@codesourcery.com>
3879 Cesar Philippidis <cesar@codesourcery.com>
3880 Chung-Lin Tang <cltang@codesourcery.com>
3881 Tom de Vries <tom@codesourcery.com>
3882
3883 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3884 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3886 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3887 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3888 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3889 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3890 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3891 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3892 XFAIL.
3893 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3894 Incorporate...
3895 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3896 file.
3897 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3898 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3899 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3900 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3901 Likewise.
3902 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3903 Likewise.
3904 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3905 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3906 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3907 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3908 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3909 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3910 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3912 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3913 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3914 Likewise.
3915 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3916 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3917 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3918 file...
3919 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3920 file into...
3921 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3922 file. Update.
3923 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3924 file.
3925 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3926 Likewise.
3927 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3928 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3929 ... this new file. Update.
3930 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3931 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3932 ... this new file. Update.
3933 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3934 file. Incorporate...
3935 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3936 file, and...
3937 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3938 file, and...
3939 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3940 file.
3941 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3942
3943 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3944
3945 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3946 set-torture-options.
3947
3948 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3949
3950 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3951 gcc-dg-runtest.
3952 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3953 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3954 -fno-builtin-acc_on_device instead of -O0.
3955 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3956 -O0.
3957 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3958 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3959 Likewise.
3960 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3961 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3962 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3963 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3964 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3965 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3966 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3967 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3969 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3970 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3971 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3972 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3973 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3974 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3975 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3976 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3977 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3978 Don't specify -O2.
3979 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3980 Likewise.
3981 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3982 Likewise.
3983
3984 2016-03-24 Martin Liska <mliska@suse.cz>
3985
3986 * plugin/plugin-hsa.c (packet_store_release): New function
3987 that is taken from the HSA runtime manual.
3988 (GOMP_OFFLOAD_run): Use the function.
3989
3990 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3991
3992 PR c++/70376
3993 * testsuite/libgomp.c++/pr70376.C: New test.
3994
3995 2016-03-23 Tom de Vries <tom@codesourcery.com>
3996
3997 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3998 initialization of lresult and lvresult.
3999 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4000
4001 2016-03-23 James Norris <jnorris@codesourcery.com>
4002 Daichi Fukuoka <dc-fukuoka@sgi.com>
4003
4004 PR libgomp/69414
4005 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4006 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4007 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4008 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4009
4010 2016-03-23 Martin Liska <mliska@suse.cz>
4011
4012 PR hsa/70337
4013 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4014 argument just in case a dispatched kernel uses that argument.
4015
4016 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4017
4018 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4019 -ftree-parallelize-loops/-fopenacc changes.
4020 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4021 Likewise.
4022 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4023 Likewise.
4024 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4025 Likewise.
4026 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4027 Likewise.
4028 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4029 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4030
4031 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4032
4033 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4034 always_ld_library_path the path to libgcc_s.
4035
4036 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4037
4038 PR testsuite/70009
4039 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4040
4041 2016-03-09 Tom de Vries <tom@codesourcery.com>
4042
4043 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4044 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4045 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4046 Same.
4047 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4048 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4049 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4050 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4051
4052 2016-03-07 Martin Jambor <mjambor@suse.cz>
4053
4054 * testsuite/lib/libgomp.exp
4055 (check_effective_target_hsa_offloading_selected_nocache): New.
4056 (check_effective_target_hsa_offloading_selected): Likewise.
4057 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4058 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4059 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4060 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4061 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4062 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4063 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4064 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4065 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4066 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4067 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4068 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4069 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4070 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4071 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4072 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4073 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4074
4075 2016-03-07 Martin Jambor <mjambor@suse.cz>
4076
4077 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4078 non-shared memory accelerators.
4079 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4080 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4081 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4082 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4083 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4084 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4085 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4086 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4087 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4088
4089 2016-03-07 Martin Jambor <mjambor@suse.cz>
4090
4091 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4092 ALWAYS_CFLAGS.
4093
4094 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4095
4096 PR libgomp/69555
4097 * testsuite/libgomp.c++/pr69555-1.C: New test.
4098 * testsuite/libgomp.c++/pr69555-2.C: New test.
4099
4100 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4101 Martin Jambor <mjambor@suse.cz>
4102
4103 * testsuite/lib/libgomp.exp
4104 (check_effective_target_offload_device_shared_as): New proc.
4105 * testsuite/libgomp.c++/declare_target-1.C: New test.
4106
4107 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4108
4109 PR driver/68463
4110 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4111
4112 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4113
4114 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4115 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4116 dims.
4117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4118 -ftree-parallelize-loops/-fopenacc changes.
4119 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4121 Likewise.
4122 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4123 Likewise.
4124 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4125 Likewise.
4126 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4127 Likewise.
4128 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4129 Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4131 Likewise.
4132 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4133 Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4136 Likewise.
4137 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4138 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4139 Likewise.
4140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4141 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4142 Likewise.
4143
4144 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4145
4146 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4147
4148 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4149
4150 PR driver/69805
4151 * testsuite/libgomp.c/pr69805.c: New test.
4152
4153 2016-02-16 Tom de Vries <tom@codesourcery.com>
4154
4155 PR lto/67709
4156 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4157
4158 2016-02-09 Tom de Vries <tom@codesourcery.com>
4159
4160 PR tree-optimization/69599
4161 * testsuite/libgomp.c/omp-nested-3.c: New test.
4162 * testsuite/libgomp.c/pr46032-2.c: New test.
4163 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4164 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4165
4166 2016-02-09 Tom de Vries <tom@codesourcery.com>
4167
4168 PR lto/69707
4169 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4170
4171 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4172
4173 * testsuite/libgomp.c/target-31.c: Fix testcase.
4174
4175 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4176
4177 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4178 clause.
4179 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4180 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4181 reduction and map clauses.
4182 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4183
4184 2016-02-02 James Norris <jnorris@codesourcery.com>
4185
4186 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4187
4188 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4189
4190 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4191 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4192
4193 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4194 cases.
4195
4196 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4197 variables.
4198 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4199 (hsa_kmt_lib): Set variables.
4200 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4201 always_ld_library_path.
4202 * Makefile.in: Regenerate.
4203 * configure: Likewise.
4204 * testsuite/Makefile.in: Likewise.
4205
4206 * plugin/configfrag.ac (offload_additional_options)
4207 (offload_additional_lib_paths): Don't amend for hsa offloading.
4208 * configure: Regenerate.
4209
4210 * plugin/configfrag.ac: Don't configure for offloading target if
4211 we don't build the corresponding plugin.
4212 * configure: Regenerate.
4213
4214 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4215
4216 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4217 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4218
4219 2016-01-26 Tom de Vries <tom@codesourcery.com>
4220
4221 PR tree-optimization/69110
4222 * testsuite/libgomp.c/pr69110.c: New test.
4223
4224 2016-01-25 Richard Biener <rguenther@suse.de>
4225
4226 PR lto/69393
4227 * testsuite/libgomp.c++/pr69393.C: New testcase.
4228
4229 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4230
4231 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4232 function wasn't mapped to the device with non-shared memory.
4233
4234 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4235
4236 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4237
4238 2016-01-19 Martin Jambor <mjambor@suse.cz>
4239 Martin Liska <mliska@suse.cz>
4240
4241 * plugin/Makefrag.am: Add HSA plugin requirements.
4242 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4243 (HSA_RUNTIME_LIB): Likewise.
4244 (HSA_RUNTIME_CPPFLAGS): Likewise.
4245 (HSA_RUNTIME_INCLUDE): New substitution.
4246 (HSA_RUNTIME_LIB): Likewise.
4247 (HSA_RUNTIME_LDFLAGS): Likewise.
4248 (hsa-runtime): New configure option.
4249 (hsa-runtime-include): Likewise.
4250 (hsa-runtime-lib): Likewise.
4251 (PLUGIN_HSA): New substitution variable.
4252 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4253 configure options.
4254 (PLUGIN_HSA_CPPFLAGS): Likewise.
4255 (PLUGIN_HSA_LDFLAGS): Likewise.
4256 (PLUGIN_HSA_LIBS): Likewise.
4257 Check that we have access to HSA run-time.
4258 * libgomp-plugin.h (offload_target_type): New element
4259 OFFLOAD_TARGET_TYPE_HSA.
4260 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4261 args.
4262 (bool gomp_create_target_task): Updated.
4263 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4264 new field can_run_func.
4265 * libgomp_g.h (GOMP_target_ext): Update prototype.
4266 * oacc-host.c (host_run): Added a new parameter args.
4267 * target.c (calculate_firstprivate_requirements): New function.
4268 (copy_firstprivate_data): Likewise.
4269 (gomp_target_fallback_firstprivate): Use them.
4270 (gomp_target_unshare_firstprivate): New function.
4271 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4272 devices.
4273 (GOMP_target): Do host fallback for all shared memory devices. Do not
4274 pass any args to plugins.
4275 (GOMP_target_ext): Introduce device-specific argument parameter args.
4276 Allow host fallback if device shares memory. Do not remap data if
4277 device has shared memory.
4278 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4279 like host fallback for mappings.
4280 (GOMP_target_data): Treat shared memory devices like host fallback.
4281 (GOMP_target_data_ext): Likewise.
4282 (GOMP_target_update): Likewise.
4283 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4284 gomp_create_target_task.
4285 (GOMP_target_enter_exit_data): Likewise.
4286 (omp_target_alloc): Treat shared memory devices like host fallback.
4287 (omp_target_free): Likewise.
4288 (omp_target_is_present): Likewise.
4289 (omp_target_memcpy): Likewise.
4290 (omp_target_memcpy_rect): Likewise.
4291 (omp_target_associate_ptr): Likewise.
4292 (gomp_load_plugin_for_device): Also load can_run.
4293 * task.c (GOMP_PLUGIN_target_task_completion): Free
4294 firstprivate_copies.
4295 (gomp_create_target_task): Accept new argument args and store it to
4296 ttask.
4297 * plugin/plugin-hsa.c: New file.
4298
4299 2016-01-18 Tom de Vries <tom@codesourcery.com>
4300
4301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4303 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4304 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4305 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4306 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4307 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4308 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4309 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4310 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4311 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4312 Same.
4313 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4314 Same.
4315 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4316 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4317 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4318 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4319 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4321 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4322 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4323 Same.
4324 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4325
4326 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4327
4328 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4329
4330 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4331
4332 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4333
4334 2016-01-12 James Norris <jnorris@codesourcery.com>
4335
4336 * libgomp.texi: Updates for OpenACC.
4337
4338 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4339
4340 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4341
4342 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4343
4344 PR fortran/66680
4345 * testsuite/libgomp.fortran/pr66680.f90: New test.
4346
4347 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4348
4349 PR middle-end/68960
4350 * testsuite/libgomp.c/pr68960.c: New test.
4351
4352 2016-01-06 Nathan Sidwell <nathan@acm.org>
4353
4354 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4355 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4356
4357 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4358
4359 Update copyright years.
4360
4361 * libgomp.texi: Bump @copying's copyright year.
4362
4363 2015-12-31 Nathan Sidwell <nathan@acm.org>
4364
4365 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4366 dg-additional-options syntax.
4367 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4368 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4369 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4370 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4371 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4372 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4373 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4374 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4375 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4376 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4377 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4378 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4379 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4380 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4381 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4382 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4383 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4384 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4385
4386 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4387
4388 * libgomp.h (REFCOUNT_LINK): Define.
4389 (struct splay_tree_key_s): Add link_key.
4390 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4391 Replace target address of the pointer with target address of newly
4392 mapped object in the splay tree. Set link pointer on target to the
4393 device address of the mapped object.
4394 (gomp_unmap_vars): Restore target address of the pointer in the splay
4395 tree for REFCOUNT_LINK objects after unmapping.
4396 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4397 declare target link" objects.
4398 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4399 "omp declare target link" objects, which were mapped for the image.
4400 (gomp_exit_data): Restore target address of the pointer in the splay
4401 tree for REFCOUNT_LINK objects after unmapping.
4402 * testsuite/libgomp.c/target-link-1.c: New file.
4403
4404 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4405
4406 * libgomp.h (gomp_device_state): New enum.
4407 (struct gomp_device_descr): Replace is_initialized with state.
4408 (gomp_fini_device): Remove declaration.
4409 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4410 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4411 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4412 (acc_set_device_type): Use state instead of is_initialized.
4413 (acc_set_device_num): Likewise.
4414 * target.c (resolve_device): Use state instead of is_initialized.
4415 Do not initialize finalized device.
4416 (gomp_map_vars): Do nothing if device is finalized.
4417 (gomp_unmap_vars): Likewise.
4418 (gomp_update): Likewise.
4419 (GOMP_offload_register_ver): Use state instead of is_initialized.
4420 (GOMP_offload_unregister_ver): Likewise.
4421 (gomp_init_device): Likewise.
4422 (gomp_unload_device): Likewise.
4423 (gomp_fini_device): Remove.
4424 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4425 (GOMP_target): Go to host fallback if device is finalized.
4426 (GOMP_target_ext): Likewise.
4427 (gomp_exit_data): Do nothing if device is finalized.
4428 (gomp_target_task_fn): Go to host fallback if device is finalized.
4429 (gomp_target_fini): New static function.
4430 (gomp_target_init): Use state instead of is_initialized.
4431 Call gomp_target_fini at exit.
4432
4433 2015-12-09 Tom de Vries <tom@codesourcery.com>
4434
4435 PR tree-optimization/68716
4436 * testsuite/libgomp.c/omp-nested-2.c: New test.
4437
4438 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4439
4440 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4441 target openacc_nvidia_accel_selected.
4442 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4443 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4444 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4445 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4446
4447 2015-12-01 Julian Brown <julian@codesourcery.com>
4448 James Norris <James_Norris@mentor.com>
4449
4450 * oacc-parallel.c (GOACC_host_data): New function.
4451 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4452 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4453 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4454 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4455 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4456 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4457 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4458
4459 2015-11-30 James Norris <jnorris@codesourcery.com>
4460 Cesar Philippidis <cesar@codesourcery.com>
4461
4462 libgomp/
4463 * libgomp.oacc-fortran/routine-5.f90: New test.
4464 * libgomp.oacc-fortran/routine-7.f90: New test.
4465 * libgomp.oacc-fortran/routine-9.f90: New test.
4466
4467 2015-11-30 Tom de Vries <tom@codesourcery.com>
4468
4469 PR tree-optimization/46032
4470 * testsuite/libgomp.c/pr46032.c: New test.
4471
4472 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4473
4474 PR libgomp/68579
4475 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4476 (gomp_create_target_task): Call it before freeing
4477 GOMP_TARGET_TASK_DATA tasks.
4478
4479 PR c/63326
4480 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4481 in between case label and OpenMP standalone directives.
4482 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4483
4484 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4485
4486 * configure: Regenerate.
4487
4488 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4489
4490 * testsuite/libgomp.c/target-35.c: New test.
4491
4492 2015-11-22 James Norris <jnorris@codesourcery.com>
4493 Cesar Philippidis <cesar@codesourcery.com>
4494
4495 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4496 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4497 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4498 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4499 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4500
4501 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4502
4503 PR middle-end/68221
4504 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4505 * testsuite/libgomp.c/reduction-12.c: Likewise.
4506 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4507 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4508
4509 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4510
4511 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4512 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4513 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4514 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4515 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4516 and fix.
4517 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4518 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4519
4520 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4521
4522 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4523 worker & gang cases.
4524 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4525
4526 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4527
4528 * config/nvptx/priority_queue.c: New file.
4529
4530 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4531
4532 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4533 sections.
4534
4535 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4536 Aldy Hernandez <aldyh@redhat.com>
4537 Ilya Verbin <ilya.verbin@intel.com>
4538
4539 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4540 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4541 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4542 iterators or IV by chunk size.
4543 * parallel.c (gomp_resolve_num_threads): Don't assume that
4544 if thr->ts.team is non-NULL, then pool must be non-NULL.
4545 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4546 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4547 GOMP_PLUGIN_target_task_completion.
4548 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4549 * Makefile.in: Regenerate.
4550 * libgomp.h: Shuffle prototypes and forward definitions around so
4551 priority queues can be defined.
4552 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4553 (enum gomp_target_task_state): New enum.
4554 (struct gomp_target_task): Add state, tgt, task and team fields.
4555 (gomp_create_target_task): Change return type to bool, add
4556 state argument.
4557 (gomp_target_task_fn): Change return type to bool.
4558 (struct gomp_device_descr): Add async_run_func.
4559 (struct gomp_task): Remove children, next_child, prev_child,
4560 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4561 Add pnode field.
4562 (struct gomp_taskgroup): Remove children.
4563 Add taskgroup_queue.
4564 (struct gomp_team): Change task_queue type to a priority queue.
4565 (splay_compare): Define inline.
4566 (priority_queue_offset): New.
4567 (priority_node_to_task): New.
4568 (task_to_priority_node): New.
4569 * oacc-mem.c: Do not include splay-tree.h.
4570 * priority_queue.c: New file.
4571 * priority_queue.h: New file.
4572 * splay-tree.c: Do not include splay-tree.h.
4573 (splay_tree_foreach_internal): New.
4574 (splay_tree_foreach): New.
4575 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4576 (splay_tree_callback): Define typedef.
4577 * target.c (splay_compare): Move to libgomp.h.
4578 (GOMP_target): Don't adjust *thr in any way around running offloaded
4579 task.
4580 (GOMP_target_ext): Likewise. Handle target nowait.
4581 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4582 return value from gomp_create_target_task, if false, fallthrough
4583 as if no dependencies exist.
4584 (gomp_target_task_fn): Change return type to bool, return true
4585 if the task should have another part scheduled later. Handle
4586 target nowait.
4587 (gomp_load_plugin_for_device): Initialize async_run.
4588 * task.c (gomp_init_task): Initialize children_queue.
4589 (gomp_clear_parent_in_list): New.
4590 (gomp_clear_parent_in_tree): New.
4591 (gomp_clear_parent): Handle priorities.
4592 (GOMP_task): Likewise.
4593 (priority_queue_move_task_first,
4594 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4595 New functions.
4596 (gomp_create_target_task): Use priority queues. Change return type
4597 to bool, add state argument, return false if for async
4598 {{enter,exit} data,update} constructs no dependencies need to be
4599 waited for, handle target nowait. Set task->fn to NULL instead of
4600 gomp_target_task_fn.
4601 (verify_children_queue): Remove.
4602 (priority_list_upgrade_task): New.
4603 (priority_queue_upgrade_task): New.
4604 (verify_task_queue): Remove.
4605 (priority_list_downgrade_task): New.
4606 (priority_queue_downgrade_task): New.
4607 (gomp_task_run_pre): Use priority queues.
4608 Abstract code out to priority_queue_downgrade_task.
4609 (gomp_task_run_post_handle_dependers): Use priority queues.
4610 (gomp_task_run_post_remove_parent): Likewise.
4611 (gomp_task_run_post_remove_taskgroup): Likewise.
4612 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4613 tasks specially.
4614 (GOMP_taskwait): Likewise.
4615 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4616 priority-queue_upgrade_task.
4617 (GOMP_taskgroup_start): Use priority queues.
4618 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4619 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4620 barrier.
4621 * taskloop.c (GOMP_taskloop): Handle priorities.
4622 * team.c (gomp_new_team): Call priority_queue_init.
4623 (free_team): Call priority_queue_free.
4624 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4625 team created for target nowait in implicit parallel region.
4626 (gomp_team_start): For nested check, test thr->ts.level instead of
4627 thr->ts.team != NULL.
4628 * testsuite/libgomp.c/doacross-3.c: New test.
4629 * testsuite/libgomp.c/ordered-5.c: New test.
4630 * testsuite/libgomp.c/priority.c: New test.
4631 * testsuite/libgomp.c/target-31.c: New test.
4632 * testsuite/libgomp.c/target-32.c: New test.
4633 * testsuite/libgomp.c/target-33.c: New test.
4634 * testsuite/libgomp.c/target-34.c: New test.
4635
4636 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4637
4638 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4639
4640 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4641 loop is sequential.
4642
4643 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4644
4645 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4646 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4647
4648 2015-11-12 James Norris <jnorris@codesourcery.com>
4649 Joseph Myers <joseph@codesourcery.com>
4650
4651 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4652 * oacc-parallel.c (GOACC_declare): New function.
4653 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4654 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4655 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4656 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4657 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4658
4659 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4660
4661 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4662
4663 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4664
4665 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4666 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4667
4668 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4669
4670 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4671 inadvertent commit.
4672
4673 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4674
4675 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4676 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4677 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4678 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4679 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4680
4681 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4682
4683 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4684 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4685
4686 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4687 Ilya Verbin <ilya.verbin@intel.com>
4688
4689 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4690 GOMP_loop_nonmonotonic_dynamic_start,
4691 GOMP_loop_nonmonotonic_guided_next,
4692 GOMP_loop_nonmonotonic_guided_start,
4693 GOMP_loop_ull_nonmonotonic_dynamic_next,
4694 GOMP_loop_ull_nonmonotonic_dynamic_start,
4695 GOMP_loop_ull_nonmonotonic_guided_next,
4696 GOMP_loop_ull_nonmonotonic_guided_start,
4697 GOMP_parallel_loop_nonmonotonic_dynamic,
4698 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4699 (GOMP_target_41): Renamed to ...
4700 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4701 arguments.
4702 (GOMP_target_data_41): Renamed to ...
4703 (GOMP_target_data_ext): ... this.
4704 (GOMP_target_update_41): Renamed to ...
4705 (GOMP_target_update_ext): ... this.
4706 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4707 GOMP_target_data_ext and GOMP_target_update_ext instead of
4708 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4709 Export GOMP_loop_nonmonotonic_dynamic_next,
4710 GOMP_loop_nonmonotonic_dynamic_start,
4711 GOMP_loop_nonmonotonic_guided_next,
4712 GOMP_loop_nonmonotonic_guided_start,
4713 GOMP_loop_ull_nonmonotonic_dynamic_next,
4714 GOMP_loop_ull_nonmonotonic_dynamic_start,
4715 GOMP_loop_ull_nonmonotonic_guided_next,
4716 GOMP_loop_ull_nonmonotonic_guided_start,
4717 GOMP_parallel_loop_nonmonotonic_dynamic and
4718 GOMP_parallel_loop_nonmonotonic_guided.
4719 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4720 GOMP_parallel_loop_nonmonotonic_guided,
4721 GOMP_loop_nonmonotonic_dynamic_start,
4722 GOMP_loop_nonmonotonic_guided_start,
4723 GOMP_loop_nonmonotonic_dynamic_next,
4724 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4725 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4726 GOMP_loop_ull_nonmonotonic_guided_start,
4727 GOMP_loop_ull_nonmonotonic_dynamic_next,
4728 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4729 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4730 functions.
4731 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4732 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4733 Use gomp_map_val function.
4734 (gomp_target_fallback_firstprivate): New static function.
4735 (GOMP_target_41): Renamed to ...
4736 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4737 arguments. Move firstprivate fallback handling into a new
4738 function.
4739 (GOMP_target_data_41): Renamed to ...
4740 (GOMP_target_data_ext): ... this.
4741 (GOMP_target_update_41): Renamed to ...
4742 (GOMP_target_update_ext): ... this.
4743 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4744 gomp_map_0len_lookup instead of gomp_map_lookup.
4745 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4746 gomp_map_lookup.
4747 * testsuite/libgomp.c/target-28.c: Likewise.
4748 * testsuite/libgomp.c/monotonic-1.c: New test.
4749 * testsuite/libgomp.c/monotonic-2.c: New test.
4750 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4751 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4752 * testsuite/libgomp.c/pr66199-5.c: New test.
4753 * testsuite/libgomp.c/pr66199-6.c: New test.
4754 * testsuite/libgomp.c/pr66199-7.c: New test.
4755 * testsuite/libgomp.c/pr66199-8.c: New test.
4756 * testsuite/libgomp.c/pr66199-9.c: New test.
4757 * testsuite/libgomp.c/reduction-11.c: New test.
4758 * testsuite/libgomp.c/reduction-12.c: New test.
4759 * testsuite/libgomp.c/reduction-13.c: New test.
4760 * testsuite/libgomp.c/reduction-14.c: New test.
4761 * testsuite/libgomp.c/reduction-15.c: New test.
4762 * testsuite/libgomp.c/target-12.c (main): Adjust for
4763 omp_target_is_present change for one-past-last element.
4764 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4765 the same var is both mapped and privatized.
4766 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4767 handling of zero-length array sections.
4768 * testsuite/libgomp.c/target-28.c: New test.
4769 * testsuite/libgomp.c/target-29.c: New test.
4770 * testsuite/libgomp.c/target-30.c: New test.
4771 * testsuite/libgomp.c/target-teams-1.c: New test.
4772 * testsuite/libgomp.c++/member-6.C: New test.
4773 * testsuite/libgomp.c++/member-7.C: New test.
4774 * testsuite/libgomp.c++/monotonic-1.C: New test.
4775 * testsuite/libgomp.c++/monotonic-2.C: New test.
4776 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4777 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4778 * testsuite/libgomp.c++/pr66199-3.C: New test.
4779 * testsuite/libgomp.c++/pr66199-4.C: New test.
4780 * testsuite/libgomp.c++/pr66199-5.C: New test.
4781 * testsuite/libgomp.c++/pr66199-6.C: New test.
4782 * testsuite/libgomp.c++/pr66199-7.C: New test.
4783 * testsuite/libgomp.c++/pr66199-8.C: New test.
4784 * testsuite/libgomp.c++/pr66199-9.C: New test.
4785 * testsuite/libgomp.c++/reduction-11.C: New test.
4786 * testsuite/libgomp.c++/reduction-12.C: New test.
4787 * testsuite/libgomp.c++/target-13.C: New test.
4788 * testsuite/libgomp.c++/target-14.C: New test.
4789 * testsuite/libgomp.c++/target-15.C: New test.
4790 * testsuite/libgomp.c++/target-16.C: New test.
4791 * testsuite/libgomp.c++/target-17.C: New test.
4792 * testsuite/libgomp.c++/target-18.C: New test.
4793 * testsuite/libgomp.c++/target-19.C: New test.
4794
4795 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4796
4797 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4798 and reduction copy.
4799 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4800 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4801 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4802 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4804 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4805 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4806 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4807 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4808 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4809 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4810 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4811 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4812 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4813
4814 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4815
4816 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4817 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4818 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4819 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4820 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4821 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4822 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4823 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4824
4825 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4826
4827 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4828 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4829 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4830 * oacc-host.c (host_openacc_exec): Likewise.
4831 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4832
4833 2015-11-03 Julian Brown <julian@codesourcery.com>
4834 Thomas Schwinge <thomas@codesourcery.com>
4835
4836 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4837 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4838 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4839 Likewise.
4840 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4841 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4842
4843 2015-11-03 James Norris <jnorris@codesourcery.com>
4844
4845 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4846 file.
4847 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4848 Likewise.
4849 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4850 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4851 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4852 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4853 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4854
4855 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4856
4857 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4858 compatibility.
4859 (enum acc_async_t): Reformat.
4860 (acc_on_device): Declare compatible with builtin and provide C++
4861 wrapper.
4862 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4863
4864 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4865 Cesar Philippidis <cesar@codesourcery.com>
4866
4867 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4868 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4869 ... this. Add a description of the test at the top of the file.
4870 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4871 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4872 ... this. Add a description of the test at the top of the file.
4873
4874 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4875
4876 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4877 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4878 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4879 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4880 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4881 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4882
4883 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4884
4885 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4886 dimensions.
4887
4888 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4889
4890 PR testsuite/68063
4891 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4892
4893 2015-10-27 James Norris <jnorris@codesourcery.com>
4894
4895 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4896 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4897
4898 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4899
4900 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4901 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4902
4903 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4904 acc_device_nvidia usage.
4905 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4906 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4907 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4908
4909 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4910 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4911
4912 PR libgomp/66518
4913 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4914
4915 PR libgomp/65437
4916 PR libgomp/66518
4917 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4918 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4919
4920 2015-10-23 Tom de Vries <tom@codesourcery.com>
4921
4922 PR testsuite/68063
4923 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4924
4925 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4926
4927 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4928 vector_length.
4929 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4930
4931 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4932 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4933
4934 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4935 to 0 when mapnum is 0.
4936
4937 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4938
4939 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4940 Cast to int from int32_t.
4941
4942 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4943 Aldy Hernandez <aldyh@redhat.com>
4944 Ilya Verbin <ilya.verbin@intel.com>
4945
4946 * config/linux/affinity.c (omp_get_place_num_procs,
4947 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4948 * config/linux/doacross.h: New file.
4949 * config/posix/affinity.c (omp_get_place_num_procs,
4950 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4951 * config/posix/doacross.h: New file.
4952 * env.c: Include gomp-constants.h.
4953 (struct gomp_task_icv): Rename run_sched_modifier to
4954 run_sched_chunk_size.
4955 (gomp_max_task_priority_var): New variable.
4956 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4957 (handle_omp_display_env): Change _OPENMP value from 201307 to
4958 201511. Print OMP_MAX_TASK_PRIORITY.
4959 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4960 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4961 chunk_size and run_sched_modifier to run_sched_chunk_size.
4962 (omp_get_max_task_priority, omp_get_initial_device,
4963 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4964 omp_get_partition_place_nums): New functions.
4965 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4966 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4967 to chunk_size.
4968 (omp_get_num_places_, omp_get_place_num_procs_,
4969 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4970 omp_get_place_proc_ids_8_, omp_get_place_num_,
4971 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4972 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4973 omp_get_max_task_priority_): New functions.
4974 * libgomp_g.h (GOMP_loop_doacross_static_start,
4975 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4976 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4977 GOMP_loop_ull_doacross_dynamic_start,
4978 GOMP_loop_ull_doacross_guided_start,
4979 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4980 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4981 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4982 GOMP_target_data_41, GOMP_target_update_41,
4983 GOMP_target_enter_exit_data): New prototypes.
4984 (GOMP_task): Add prototype argument.
4985 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4986 (struct gomp_doacross_work_share): New type.
4987 (struct gomp_work_share): Add doacross field.
4988 (struct gomp_task_icv): Rename run_sched_modifier to
4989 run_sched_chunk_size.
4990 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4991 GOMP_TASK_UNDEFERRED. Add comments.
4992 (struct gomp_task_depend_entry): Add comments.
4993 (struct gomp_task): Likewise.
4994 (struct gomp_taskgroup): Likewise.
4995 (struct gomp_target_task): New type.
4996 (struct gomp_team): Add comment.
4997 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4998 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4999 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5000 (struct target_var_desc): New type.
5001 (struct target_mem_desc): Adjust comment. Use struct
5002 target_var_desc instead of splay_tree_key for list.
5003 (REFCOUNT_INFINITY): Define.
5004 (struct splay_tree_key_s): Remove copy_from field.
5005 (struct gomp_device_descr): Add dev2dev_func field.
5006 (enum gomp_map_vars_kind): New enum.
5007 (gomp_map_vars): Add one argument.
5008 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5009 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5010 omp_get_place_num_procs, omp_get_place_num_procs_,
5011 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5012 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5013 omp_get_place_num_, omp_get_partition_num_places,
5014 omp_get_partition_num_places_, omp_get_partition_place_nums,
5015 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5016 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5017 omp_target_free, omp_target_is_present, omp_target_memcpy,
5018 omp_target_memcpy_rect, omp_target_associate_ptr and
5019 omp_target_disassociate_ptr.
5020 (GOMP_4.0.2): Renamed to ...
5021 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5022 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5023 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5024 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5025 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5026 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5027 GOMP_loop_ull_doacross_guided_start,
5028 GOMP_loop_ull_doacross_runtime_start,
5029 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5030 GOMP_doacross_ull_wait.
5031 * libgomp.texi: Document omp_get_max_task_priority.
5032 Rename modifier argument to chunk_size for omp_set_schedule and
5033 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5034 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5035 to run_sched_chunk_size renaming.
5036 (GOMP_loop_ordered_runtime_start): Likewise.
5037 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5038 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5039 GOMP_parallel_loop_runtime_start): New functions.
5040 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5041 to run_sched_chunk_size renaming.
5042 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5043 GOMP_loop_doacross_guided_start): New functions or aliases.
5044 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5045 run_sched_modifier to run_sched_chunk_size renaming.
5046 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5047 (gomp_loop_ull_doacross_static_start,
5048 gomp_loop_ull_doacross_dynamic_start,
5049 gomp_loop_ull_doacross_guided_start,
5050 GOMP_loop_ull_doacross_runtime_start): New functions.
5051 (GOMP_loop_ull_doacross_static_start,
5052 GOMP_loop_ull_doacross_dynamic_start,
5053 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5054 * oacc-mem.c (acc_map_data, present_create_copy,
5055 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5056 to gomp_map_vars.
5057 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5058 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5059 instead of false to gomp_map_vars.
5060 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5061 * omp.h.in (omp_lock_hint_t): New type.
5062 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5063 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5064 omp_get_place_num, omp_get_partition_num_places,
5065 omp_get_partition_place_nums, omp_get_initial_device,
5066 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5067 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5068 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5069 prototypes.
5070 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5071 (omp_lock_hint_none, omp_lock_hint_uncontended,
5072 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5073 omp_lock_hint_speculative): New parameters.
5074 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5075 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5076 omp_get_place_num, omp_get_partition_num_places,
5077 omp_get_partition_place_nums, omp_get_initial_device,
5078 omp_get_max_task_priority): New interfaces.
5079 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5080 to chunk_size.
5081 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5082 (omp_lock_hint_none, omp_lock_hint_uncontended,
5083 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5084 omp_lock_hint_speculative): New parameters.
5085 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5086 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5087 omp_get_place_num, omp_get_partition_num_places,
5088 omp_get_partition_place_nums, omp_get_initial_device,
5089 omp_get_max_task_priority): New functions and subroutines.
5090 * ordered.c: Include stdarg.h and string.h.
5091 (MAX_COLLAPSED_BITS): Define.
5092 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5093 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5094 GOMP_doacross_ull_wait): New functions.
5095 * target.c: Include errno.h.
5096 (resolve_device): If device is not initialized, call
5097 gomp_init_device on it.
5098 (gomp_map_lookup): New function.
5099 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5100 Don't bump refcount if REFCOUNT_INFINITY. Handle
5101 GOMP_MAP_ALWAYS_TO_P.
5102 (get_kind): Rename is_openacc argument to short_mapkind.
5103 (gomp_map_pointer): Use gomp_map_lookup.
5104 (gomp_map_fields_existing): New function.
5105 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5106 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5107 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5108 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5109 Adjust for tgt->list changed type and copy_from living in there.
5110 (gomp_copy_from_async): Adjust for tgt->list changed type and
5111 copy_from living in there.
5112 (gomp_unmap_vars): Likewise.
5113 (gomp_update): Likewise. Rename is_openacc argument to
5114 short_mapkind. Don't fail if object is not mapped.
5115 (gomp_load_image_to_device): Initialize refcount to
5116 REFCOUNT_INFINITY.
5117 (gomp_target_fallback): New function.
5118 (gomp_get_target_fn_addr): Likewise.
5119 (GOMP_target): Adjust gomp_map_vars caller, use
5120 gomp_get_target_fn_addr and gomp_target_fallback.
5121 (GOMP_target_41): New function.
5122 (gomp_target_data_fallback): New function.
5123 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5124 (GOMP_target_data_41): New function.
5125 (GOMP_target_update): Adjust gomp_update caller.
5126 (GOMP_target_update_41): New function.
5127 (gomp_exit_data, GOMP_target_enter_exit_data,
5128 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5129 omp_target_is_present, omp_target_memcpy,
5130 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5131 omp_target_associate_ptr, omp_target_disassociate_ptr,
5132 gomp_load_plugin_for_device): New functions.
5133 * task.c: Include gomp-constants.h. Include taskloop.c
5134 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5135 (gomp_task_handle_depend): New function.
5136 (GOMP_task): Use it. Add priority argument. Use
5137 gomp-constant.h constants instead of hardcoded numbers.
5138 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5139 (gomp_create_target_task): New function.
5140 (verify_children_queue, verify_taskgroup_queue,
5141 verify_task_queue): New functions.
5142 (gomp_task_run_pre): Call verify_*_queue functions.
5143 If an upcoming tied task is about to leave the sibling or
5144 taskgroup queues in an invalid state, adjust appropriately.
5145 Remove taskgroup argument. Add comments.
5146 (gomp_task_run_post_handle_dependers): Add comments.
5147 (gomp_task_run_post_remove_parent): Likewise.
5148 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5149 (GOMP_taskwait): Likewise. Add comments.
5150 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5151 problem such that the first non parent_depends_on task does not
5152 end up at the end of the children queue.
5153 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5154 GOMP_TASK_UNDEFERRED.
5155 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5156 * taskloop.c: New file.
5157 * testsuite/lib/libgomp.exp
5158 (check_effective_target_offload_device_nonshared_as): New proc.
5159 * testsuite/libgomp.c/affinity-2.c: New test.
5160 * testsuite/libgomp.c/doacross-1.c: New test.
5161 * testsuite/libgomp.c/doacross-2.c: New test.
5162 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5163 Add map clause to target.
5164 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5165 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5166 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5167 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5168 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5169 Likewise.
5170 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5171 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5172 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5173 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5174 not defined. Use those where needed.
5175 * testsuite/libgomp.c/for-4.c: New test.
5176 * testsuite/libgomp.c/for-5.c: New test.
5177 * testsuite/libgomp.c/for-6.c: New test.
5178 * testsuite/libgomp.c/linear-1.c: New test.
5179 * testsuite/libgomp.c/ordered-4.c: New test.
5180 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5181 only allowed on the loop iterator.
5182 * testsuite/libgomp.c/pr66199-3.c: New test.
5183 * testsuite/libgomp.c/pr66199-4.c: New test.
5184 * testsuite/libgomp.c/reduction-7.c: New test.
5185 * testsuite/libgomp.c/reduction-8.c: New test.
5186 * testsuite/libgomp.c/reduction-9.c: New test.
5187 * testsuite/libgomp.c/reduction-10.c: New test.
5188 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5189 map(tofrom:s).
5190 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5191 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5192 * testsuite/libgomp.c/target-11.c: New test.
5193 * testsuite/libgomp.c/target-12.c: New test.
5194 * testsuite/libgomp.c/target-13.c: New test.
5195 * testsuite/libgomp.c/target-14.c: New test.
5196 * testsuite/libgomp.c/target-15.c: New test.
5197 * testsuite/libgomp.c/target-16.c: New test.
5198 * testsuite/libgomp.c/target-17.c: New test.
5199 * testsuite/libgomp.c/target-18.c: New test.
5200 * testsuite/libgomp.c/target-19.c: New test.
5201 * testsuite/libgomp.c/target-20.c: New test.
5202 * testsuite/libgomp.c/target-21.c: New test.
5203 * testsuite/libgomp.c/target-22.c: New test.
5204 * testsuite/libgomp.c/target-23.c: New test.
5205 * testsuite/libgomp.c/target-24.c: New test.
5206 * testsuite/libgomp.c/target-25.c: New test.
5207 * testsuite/libgomp.c/target-26.c: New test.
5208 * testsuite/libgomp.c/target-27.c: New test.
5209 * testsuite/libgomp.c/taskloop-1.c: New test.
5210 * testsuite/libgomp.c/taskloop-2.c: New test.
5211 * testsuite/libgomp.c/taskloop-3.c: New test.
5212 * testsuite/libgomp.c/taskloop-4.c: New test.
5213 * testsuite/libgomp.c++/ctor-13.C: New test.
5214 * testsuite/libgomp.c++/doacross-1.C: New test.
5215 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5216 Replace offload_device with offload_device_nonshared_as.
5217 * testsuite/libgomp.c++/for-12.C: New test.
5218 * testsuite/libgomp.c++/for-13.C: New test.
5219 * testsuite/libgomp.c++/for-14.C: New test.
5220 * testsuite/libgomp.c++/linear-1.C: New test.
5221 * testsuite/libgomp.c++/member-1.C: New test.
5222 * testsuite/libgomp.c++/member-2.C: New test.
5223 * testsuite/libgomp.c++/member-3.C: New test.
5224 * testsuite/libgomp.c++/member-4.C: New test.
5225 * testsuite/libgomp.c++/member-5.C: New test.
5226 * testsuite/libgomp.c++/ordered-1.C: New test.
5227 * testsuite/libgomp.c++/reduction-5.C: New test.
5228 * testsuite/libgomp.c++/reduction-6.C: New test.
5229 * testsuite/libgomp.c++/reduction-7.C: New test.
5230 * testsuite/libgomp.c++/reduction-8.C: New test.
5231 * testsuite/libgomp.c++/reduction-9.C: New test.
5232 * testsuite/libgomp.c++/reduction-10.C: New test.
5233 * testsuite/libgomp.c++/reference-1.C: New test.
5234 * testsuite/libgomp.c++/simd14.C: New test.
5235 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5236 * testsuite/libgomp.c++/target-5.C: New test.
5237 * testsuite/libgomp.c++/target-6.C: New test.
5238 * testsuite/libgomp.c++/target-7.C: New test.
5239 * testsuite/libgomp.c++/target-8.C: New test.
5240 * testsuite/libgomp.c++/target-9.C: New test.
5241 * testsuite/libgomp.c++/target-10.C: New test.
5242 * testsuite/libgomp.c++/target-11.C: New test.
5243 * testsuite/libgomp.c++/target-12.C: New test.
5244 * testsuite/libgomp.c++/taskloop-1.C: New test.
5245 * testsuite/libgomp.c++/taskloop-2.C: New test.
5246 * testsuite/libgomp.c++/taskloop-3.C: New test.
5247 * testsuite/libgomp.c++/taskloop-4.C: New test.
5248 * testsuite/libgomp.c++/taskloop-5.C: New test.
5249 * testsuite/libgomp.c++/taskloop-6.C: New test.
5250 * testsuite/libgomp.c++/taskloop-7.C: New test.
5251 * testsuite/libgomp.c++/taskloop-8.C: New test.
5252 * testsuite/libgomp.c++/taskloop-9.C: New test.
5253 * testsuite/libgomp.fortran/affinity1.f90: New test.
5254 * testsuite/libgomp.fortran/affinity2.f90: New test.
5255
5256 2015-10-13 Tom de Vries <tom@codesourcery.com>
5257
5258 PR tree-optimization/67476
5259 * testsuite/libgomp.c/autopar-3.c: New test.
5260 * testsuite/libgomp.c/autopar-4.c: New test.
5261 * testsuite/libgomp.c/autopar-5.c: New test.
5262 * testsuite/libgomp.c/autopar-6.c: New test.
5263 * testsuite/libgomp.c/autopar-7.c: New test.
5264 * testsuite/libgomp.c/autopar-8.c: New test.
5265
5266 2015-10-12 James Norris <jnorris@codesourcery.com>
5267
5268 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5269 initializer.
5270
5271 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5272
5273 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5274 using load_gcc_lib.
5275
5276 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5277
5278 * oacc-ptx.h: Remove file, moving its content into...
5279 * config/nvptx/fortran.c: ... here...
5280 * config/nvptx/oacc-init.c: ..., here...
5281 * config/nvptx/oacc-parallel.c: ..., and here.
5282 * config/nvptx/openacc.f90: New file.
5283 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5284 (link_ptx): Don't link in predefined bits of PTX code.
5285
5286 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5287 Bernd Schmidt <bernds@codesourcery.com>
5288
5289 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5290 (struct targ_ptx_obj): New.
5291 (nvptx_tdata): Move earlier, change data format.
5292 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5293 objects.
5294 (GOMP_OFFLOAD_load_image): Adjust.
5295
5296 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5297
5298 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5299 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5315 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5316 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5318 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5319 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5320 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5321 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5322 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5323 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5324 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5325 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5326 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5327 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5328 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5329 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5330 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5331 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5332 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5333 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5334 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5335 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5336 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5337 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5338 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5339 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5340 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5341 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5342 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5343 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5344 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5345 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5346 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5347 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5348 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5349 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5350 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5351 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5352 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5353 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5354 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5355 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5356 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5357 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5358 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5359 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5360 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5361
5362 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5363
5364 * oacc-init.c (acc_on_device): Force optimization level.
5365
5366 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5367
5368 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5369 (cuda_errlist): Delete.
5370 (cuda_error): Reimplement.
5371
5372 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5373
5374 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5375 array.
5376 * libgomp.map (GOACC_parallel_keyed): New.
5377 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5378 all callers.
5379 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5380 and take keyed varargs list. Adjust call to exec_func.
5381 (GOACC_parallel): Force host fallback.
5382 * libgomp_g.h (GOACC_parallel): Remove.
5383 (GOACC_parallel_keyed): Declare.
5384 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5385 (stuct targ_gn_descriptor): Replace name field with launch field.
5386 (nvptx_exec): Lose separate geometry args, take array. Process
5387 dynamic dimensions and adjust.
5388 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5389 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5390 data.
5391 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5392 passing.
5393 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5394 passing.
5395
5396 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5397
5398 PR libgomp/67141
5399 * oacc-int.h (goacc_host_init): Add declaration.
5400 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5401 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5402
5403 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5404 Sebastian Pop <s.pop@samsung.com>
5405
5406 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5407 match o/p.
5408 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5409 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5410 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5411 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5412 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5413
5414 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5415
5416 * configure.tgt: Add missing ;; in between nvptx and rtems
5417 snippets.
5418
5419 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5420
5421 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5422 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5423 (gomp_thread_pool_reservoir): Add priority member.
5424 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5425 priority.
5426 (parse_thread_pools): Likewise.
5427 * team.c (gomp_team_start): Call configuration provided
5428 gomp_adjust_thread_attr(). Destroy thread attributes if
5429 necessary.
5430 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5431
5432 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5433
5434 * config/posix/pool.h: New.
5435 * config/rtems/pool.h: Likewise.
5436 * config/rtems/proc.c: Likewise.
5437 * libgomp.h (gomp_thread_destructor): Declare.
5438 * team.c: Include configuration provided "pool.h".
5439 (gomp_get_thread_pool): Define in configuration.
5440 (gomp_team_end): Call configuration defined
5441 gomp_release_thread_pool().
5442
5443 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5444
5445 * config/rtems/bar.c: New.
5446 * config/rtems/bar.h: Likewise.
5447 * config/rtems/mutex.c: Likewise.
5448 * config/rtems/mutex.h: Likewise.
5449 * config/rtems/sem.c: Likewise.
5450 * config/rtems/sem.h: Likewise.
5451 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5452 <sys/lock.h> header file.
5453 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5454 supported by Newlib.
5455 * configure: Regenerate.
5456
5457 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5458
5459 * team.c (gomp_new_thread_pool): Delete and move content to ...
5460 (gomp_get_thread_pool): ... new function. Allocate and
5461 initialize thread pool on demand.
5462 (get_last_team): Use gomp_get_thread_pool().
5463 (gomp_team_start): Delete thread pool initialization.
5464
5465 2015-09-03 Tom de Vries <tom@codesourcery.com>
5466
5467 PR tree-optimization/65637
5468 * testsuite/libgomp.c/autopar-2.c: New test.
5469
5470 2015-08-29 Tom de Vries <tom@codesourcery.com>
5471
5472 PR tree-optimization/46193
5473 * testsuite/libgomp.c/pr46193.c: New test.
5474
5475 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5476
5477 libgomp/
5478 * libgomp.map: Add 4.0.2 version.
5479 * target.c (offload_image_descr): Add version field.
5480 (gomp_load_image_to_device): Add version argument. Adjust plugin
5481 call. Improve load mismatch diagnostic.
5482 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5483 call.
5484 (GOMP_offload_regster): Make stub function, move bulk to ...
5485 (GOMP_offload_register_ver): ... here. Process version argument.
5486 (GOMP_offload_unregister): Make stub function, move bulk to ...
5487 (GOMP_offload_unregister_ver): ... here. Process version argument.
5488 (gomp_init_device): Process version field.
5489 (gomp_unload_device): Process version field.
5490 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5491 macros. Check plugin version.
5492 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5493 loader and unloader types.
5494 * oacc-host.c: Include gomp-constants.h.
5495 (host_version): New.
5496 (host_load_image, host_unload_image): Adjust.
5497 (host_dispatch): Add host_version.
5498 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5499 (GOMP_OFFLOAD_version): New.
5500 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5501 (GOMP_OFFLOAD_unload_image): Likewise.
5502 * plugin/plugin-host.c: Include gomp-constants.h.
5503 (GOMP_OFFLOAD_version): New.
5504 (GOMP_OFFLOAD_load_image): Add version arg.
5505 (GOMP_OFFLOAD_unload_image): Likewise.
5506
5507 2015-08-24 Tom de Vries <tom@codesourcery.com>
5508
5509 PR tree-optimization/65468
5510 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5511
5512 2015-08-24 Tom de Vries <tom@codesourcery.com>
5513
5514 PR tree-optimization/65468
5515 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5516
5517 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5518
5519 PR libgomp/66761
5520 PR libgomp/67303
5521 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5522 (gomp_iter_guided_next): Idem.
5523 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5524 (gomp_iter_ull_guided_next): Idem.
5525 * config/linux/wait.h (do_spin): Idem.
5526
5527 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5528
5529 * libgomp-plugin.h (enum offload_target_type): Remove
5530 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5531 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5532 * openacc.h (enum acc_device_t): Likewise.
5533 * openacc_lib.h: Likewise.
5534 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5535 (acc_on_device): Just use __builtin_acc_on_device.
5536 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5537 of acc_on_device builtin.
5538 * plugin/plugin-host.h: Remove file.
5539 * plugin/plugin-host.c: Likewise, but salvage some content into...
5540 * oacc-host.c: ... this file.
5541 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5542 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5543 * Makefile.in: Regenerate.
5544 * configure: Likewise.
5545 * testsuite/lib/libgomp.exp
5546 (check_effective_target_openacc_host_nonshm_selected): Remove.
5547 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5548 ACC_DEVICE_TYPE=host_nonshm.
5549 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5550 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5552 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5553 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5554 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5555
5556 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5557 Jakub Jelinek <jakub@redhat.com>
5558
5559 * config/nvptx/affinity.c: New file.
5560 * config/nvptx/alloc.c: Likewise.
5561 * config/nvptx/bar.c: Likewise.
5562 * config/nvptx/barrier.c: Likewise.
5563 * config/nvptx/critical.c: Likewise.
5564 * config/nvptx/env.c: Likewise.
5565 * config/nvptx/error.c: Likewise.
5566 * config/nvptx/fortran.c: Likewise.
5567 * config/nvptx/iter.c: Likewise.
5568 * config/nvptx/iter_ull.c: Likewise.
5569 * config/nvptx/libgomp-plugin.c: Likewise.
5570 * config/nvptx/lock.c: Likewise.
5571 * config/nvptx/loop.c: Likewise.
5572 * config/nvptx/loop_ull.c: Likewise.
5573 * config/nvptx/mutex.c: Likewise.
5574 * config/nvptx/oacc-async.c: Likewise.
5575 * config/nvptx/oacc-cuda.c: Likewise.
5576 * config/nvptx/oacc-host.c: Likewise.
5577 * config/nvptx/oacc-init.c: Likewise.
5578 * config/nvptx/oacc-mem.c: Likewise.
5579 * config/nvptx/oacc-parallel.c: Likewise.
5580 * config/nvptx/oacc-plugin.c: Likewise.
5581 * config/nvptx/omp-lock.h: Likewise.
5582 * config/nvptx/ordered.c: Likewise.
5583 * config/nvptx/parallel.c: Likewise.
5584 * config/nvptx/proc.c: Likewise.
5585 * config/nvptx/ptrlock.c: Likewise.
5586 * config/nvptx/sections.c: Likewise.
5587 * config/nvptx/sem.c: Likewise.
5588 * config/nvptx/single.c: Likewise.
5589 * config/nvptx/splay-tree.c: Likewise.
5590 * config/nvptx/target.c: Likewise.
5591 * config/nvptx/task.c: Likewise.
5592 * config/nvptx/team.c: Likewise.
5593 * config/nvptx/time.c: Likewise.
5594 * config/nvptx/work.c: Likewise.
5595 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5596 * configure: Regenerate.
5597 * configure.tgt (config_path): Set to "nvptx" for target
5598 nvptx*-*-*.
5599
5600 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5601
5602 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5603
5604 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5605
5606 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5607 (cuda_errlist): Constify.
5608 (errmsg): Move into ...
5609 (cuda_error): ... here. Make smaller.
5610 (_XSTR, _STR): Delete.
5611 (cuda_synames): Delete.
5612 (verify_device_library): Delete.
5613 (nvptx_init): Don't call it.
5614
5615 2015-07-28 Tom de Vries <tom@codesourcery.com>
5616
5617 * testsuite/libgomp.c/uns-outer-4.c: New test.
5618
5619 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5620
5621 * testsuite/libgomp.c/pr66714.c: New test.
5622
5623 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5624
5625 PR libgomp/66950
5626 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5627 (fib_ref): New function.
5628 (fib): Correct corner cases in the recursion.
5629 (main): Replace the non-simd loop with fib_ref call.
5630 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5631 subroutine.
5632 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5633 for the last array element value. Replace the non-simd loop with
5634 fib_ref call. Remove redundant b_ref array. Remove the comparison
5635 of the last array element with according Fibonacci sequence element.
5636 (fib): Correct corner cases in the recursion.
5637
5638 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5639
5640 * target.c (gomp_offload_image_to_device): Rename to ...
5641 (gomp_load_image_to_device): ... here.
5642 (GOMP_offload_register): Adjust call.
5643 (gomp_init_device): Likewise.
5644 (gomp_unload_image_from_device): New. Broken out of ...
5645 (GOMP_offload_unregister): ... here. Call it.
5646 (gomp_unload_device): New.
5647 * libgomp.h (gomp_unload_device): Declare.
5648 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5649 mem maps.
5650
5651 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5652
5653 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5654 wait=-specific if.
5655 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5656 !=0 condition.
5657 (goacc_waits): Move !num_waits handling to ...
5658 (GOACC_wait): ... here, the only caller that might have zero waits.
5659
5660 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5661 (struct ptx_image_data): Move earlier, add fns field.
5662 (struct ptx_device): Add images and image_lock fields.
5663 (ptx_images, ptx_image_lock): Delete.
5664 (nvptx_open_device): Initialize images and image_lock fields.
5665 (nvptx_close_device): Destroy image_lock.
5666 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5667 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5668 fields.
5669
5670 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5671
5672 * target.c (GOMP_offload_register): Use int for device type arg.
5673 (GOMP_offload_unregister): Likewise.
5674
5675 * target.c (struct_offload_image_descr): Constify host_table.
5676 (gomp_offload_image_to_device): Likewise.
5677 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5678
5679 * libgomp.h (gomp_device_descr): Constify target data arguments.
5680 * target.c (struct offload_image_descr): Constify target_data.
5681 (gomp_offload_image_to_device): Likewise.
5682 (GOMP_offload_register): Likewise.
5683 (GOMP_offload_unrefister): Likewise.
5684 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5685 GOMP_OFFLOAD_unload_image): Constify target data.
5686 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5687 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5688
5689 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5690
5691 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5692 Workaround driver library const error.
5693 (struct nvptx_tdata, nvptx_tdata_t): New.
5694 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5695 type.
5696
5697 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5698
5699 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5700 of EPS parameter from integer to real.
5701 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5702 type of EPS parameter from integer to real.
5703
5704 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5705
5706 * team.c (get_last_team): New.
5707 (gomp_new_team): Recycle last non-nested team if possible.
5708 (gomp_team_end): Move team work share list free lock destruction
5709 to ...
5710 (free_team): ... here.
5711
5712 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5713
5714 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5715 and ref from int to double. Replaced their comparison with
5716 an inequality of their difference and EPS.
5717 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5718 comparison of pri and a reference number with an inequality of their
5719 difference and EPS.
5720 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5721 the comparison of sum and sum_ref with an inequality of their
5722 difference and EPS.
5723 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5724 the comparison of pri and a reference number with an inequality of
5725 their difference and EPS.
5726
5727 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5728
5729 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5730 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5731 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5732 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5733 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5734 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5735 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5736 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5737 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5738 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5739 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5740 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5741 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5742 variables.
5743 (vec_mult): Likewise. Add #pragma omp taskwait.
5744 (main): Adjust caller.
5745 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5746 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5747 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5748 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5749 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5750 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5751 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5752 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5753 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5754 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5755 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5756 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5757 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5758 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5759 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5760 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5761 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5762 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5763 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5764 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5765 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5766 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5767 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5768 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5769 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5770 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5771 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5772 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5773 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5774 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5775 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5776 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5777 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5778 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5779 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5780 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5781 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5782 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5783 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5784 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5785 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5786 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5787 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5788 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5789 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5790 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5791 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5792 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5793 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5794 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5795 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5796 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5797 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5798 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5799 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5800 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5801 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5802 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5803 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5804 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5805 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5806 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5807 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5808 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5809 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5810 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5811 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5812 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5813 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5814 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5815 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5816 (vec_mult): Add !$omp taskwait.
5817 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5818 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5819 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5820 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5821 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5822 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5823 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5824 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5825 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5826 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5827 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5828 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5829 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5830 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5831 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5832 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5833 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5834 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5835 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5836 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5837 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5838 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5839 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5840 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5841 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5842 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5843 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5844 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5845 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5846 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5847 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5848 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5849 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5850 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5851 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5852 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5853 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5854 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5855 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5856 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5857 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5858 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5859 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5860 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5861 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5862 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5863 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5864 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5865 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5866 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5867 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5868 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5869 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5870 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5871 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5872 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5873 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5874 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5875 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5876 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5877 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5878 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5879 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5880 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5881 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5882 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5883 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5884
5885 2015-07-10 Tom de Vries <tom@codesourcery.com>
5886
5887 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5888 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5889
5890 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5891
5892 PR libgomp/65099
5893 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5894 in a 64-bit configuration.
5895 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5896 offloading testing if no such device is available.
5897 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5898 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5899
5900 2015-07-08 Tom de Vries <tom@codesourcery.com>
5901
5902 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5903 second call to f.
5904 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5905
5906 2015-07-07 Tom de Vries <tom@codesourcery.com>
5907
5908 PR tree-optimization/66642
5909 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5910 iteration count case.
5911 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5912 function, factor out of ...
5913 (main): ... here. Test low iteration count case.
5914
5915 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5916
5917 * libgomp.h (gomp_thread_pool): Comment last_team field.
5918
5919 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5920
5921 * testsuite/libgomp.c++/pr66702-1.C: Require
5922 vect_simd_clones effective target.
5923 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5924
5925 2015-06-30 Tom de Vries <tom@codesourcery.com>
5926
5927 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5928 already set. Use DEFAULT_CFLAGS in dg-runtest.
5929 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5930 "-O2".
5931
5932 2015-06-30 Tom de Vries <tom@codesourcery.com>
5933
5934 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5935 already set. Use DEFAULT_CFLAGS in dg-runtest.
5936 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5937 * testsuite/libgomp.c++/pr64824.C: Same.
5938 * testsuite/libgomp.c++/pr64868.C: Same.
5939 * testsuite/libgomp.c++/pr66199-1.C: Same.
5940 * testsuite/libgomp.c++/pr66199-2.C: Same.
5941 * testsuite/libgomp.c++/target-2.C: Same.
5942 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5943 -std=<standard> option.
5944 * testsuite/libgomp.c++/udr-11.C: Same.
5945 * testsuite/libgomp.c++/udr-12.C: Same.
5946 * testsuite/libgomp.c++/udr-13.C: Same.
5947 * testsuite/libgomp.c++/udr-14.C: Same.
5948 * testsuite/libgomp.c++/udr-15.C: Same.
5949 * testsuite/libgomp.c++/udr-16.C: Same.
5950 * testsuite/libgomp.c++/udr-17.C: Same.
5951 * testsuite/libgomp.c++/udr-18.C: Same.
5952 * testsuite/libgomp.c++/udr-19.C: Same.
5953 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5954 * testsuite/libgomp.c++/simd-1.C: Same.
5955 * testsuite/libgomp.c++/simd-2.C: Same.
5956 * testsuite/libgomp.c++/simd-3.C: Same.
5957 * testsuite/libgomp.c++/simd-4.C: Same.
5958 * testsuite/libgomp.c++/simd-5.C: Same.
5959 * testsuite/libgomp.c++/simd-6.C: Same.
5960 * testsuite/libgomp.c++/simd-7.C: Same.
5961 * testsuite/libgomp.c++/simd-8.C: Same.
5962 * testsuite/libgomp.c++/simd-9.C: Same.
5963 * testsuite/libgomp.c++/simd10.C: Same.
5964 * testsuite/libgomp.c++/simd11.C: Same.
5965 * testsuite/libgomp.c++/simd12.C: Same.
5966 * testsuite/libgomp.c++/simd13.C: Same.
5967
5968 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5969
5970 PR middle-end/66702
5971 * testsuite/libgomp.c++/pr66702-1.C: New test.
5972 * testsuite/libgomp.c++/pr66702-2.C: New test.
5973
5974 2015-06-30 Tom de Vries <tom@codesourcery.com>
5975
5976 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5977 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5978 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5979 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5980
5981 2015-06-30 Tom de Vries <tom@codesourcery.com>
5982
5983 PR tree-optimization/66652
5984 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5985 using restrict pointers.
5986 (main): Add arguments to calls to f.
5987 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5988
5989 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5990
5991 * configure.ac: Fix check for header <sys/sysctl.h>.
5992 * configure: Regenerate.
5993 * config.h.in: Likewise.
5994
5995 2015-06-23 Tom de Vries <tom@codesourcery.com>
5996
5997 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5998 abort.
5999 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6000
6001 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6002
6003 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6004 acc_device_nvidia.
6005
6006 PR libgomp/66518
6007 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6008 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6009
6010 2015-06-15 Tom de Vries <tom@codesourcery.com>
6011
6012 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6013 dg-additional-options for any remaining options.
6014 * testsuite/libgomp.c/atomic-2.c: Same.
6015 * testsuite/libgomp.c/atomic-4.c: Same.
6016 * testsuite/libgomp.c/atomic-5.c: Same.
6017 * testsuite/libgomp.c/atomic-6.c: Same.
6018 * testsuite/libgomp.c/autopar-1.c: Same.
6019 * testsuite/libgomp.c/copyin-1.c: Same.
6020 * testsuite/libgomp.c/copyin-2.c: Same.
6021 * testsuite/libgomp.c/copyin-3.c: Same.
6022 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6023 * testsuite/libgomp.c/nestedfn-5.c: Same.
6024 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6025 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6026 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6027 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6028 * testsuite/libgomp.c/pr32362-1.c: Same.
6029 * testsuite/libgomp.c/pr32362-2.c: Same.
6030 * testsuite/libgomp.c/pr32362-3.c: Same.
6031 * testsuite/libgomp.c/pr39591-1.c: Same.
6032 * testsuite/libgomp.c/pr39591-2.c: Same.
6033 * testsuite/libgomp.c/pr39591-3.c: Same.
6034 * testsuite/libgomp.c/pr58392.c: Same.
6035 * testsuite/libgomp.c/pr58756.c: Same.
6036 * testsuite/libgomp.c/simd-1.c: Same.
6037 * testsuite/libgomp.c/simd-10.c: Same.
6038 * testsuite/libgomp.c/simd-11.c: Same.
6039 * testsuite/libgomp.c/simd-12.c: Same.
6040 * testsuite/libgomp.c/simd-13.c: Same.
6041 * testsuite/libgomp.c/simd-14.c: Same.
6042 * testsuite/libgomp.c/simd-15.c: Same.
6043 * testsuite/libgomp.c/simd-2.c: Same.
6044 * testsuite/libgomp.c/simd-3.c: Same.
6045 * testsuite/libgomp.c/simd-4.c: Same.
6046 * testsuite/libgomp.c/simd-5.c: Same.
6047 * testsuite/libgomp.c/simd-6.c: Same.
6048 * testsuite/libgomp.c/simd-7.c: Same.
6049 * testsuite/libgomp.c/simd-8.c: Same.
6050 * testsuite/libgomp.c/simd-9.c: Same.
6051
6052 2015-06-15 Tom de Vries <tom@codesourcery.com>
6053
6054 * testsuite/libgomp.c/pr35625.c: Fix typo.
6055
6056 2015-06-15 Tom de Vries <tom@codesourcery.com>
6057
6058 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6059 in dg-options.
6060 * testsuite/libgomp.c/atomic-3.c: Same.
6061 * testsuite/libgomp.c/debug-1.c: Same.
6062 * testsuite/libgomp.c/nqueens-1.c: Same.
6063 * testsuite/libgomp.c/pr26171.c: Same.
6064 * testsuite/libgomp.c/pr48591.c: Same.
6065 * testsuite/libgomp.c/pr64824.c: Same.
6066 * testsuite/libgomp.c/pr64868.c: Same.
6067 * testsuite/libgomp.c/pr66133.c: Same.
6068 * testsuite/libgomp.c/pr66199-1.c: Same.
6069 * testsuite/libgomp.c/pr66199-2.c: Same.
6070 * testsuite/libgomp.c/target-8.c: Same.
6071
6072 2015-06-15 Tom de Vries <tom@codesourcery.com>
6073
6074 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6075 -std={gnu99,c99}.
6076 * testsuite/libgomp.c/for-1.c: Same.
6077 * testsuite/libgomp.c/for-2.c: Same.
6078 * testsuite/libgomp.c/for-3.c: Same.
6079 * testsuite/libgomp.c/pr35625.c: Same.
6080 * testsuite/libgomp.c/pr39154.c: Same.
6081 * testsuite/libgomp.c/simd-16.c: Same.
6082 * testsuite/libgomp.c/simd-17.c: Same.
6083
6084 2015-06-13 Tom de Vries <tom@codesourcery.com>
6085
6086 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6087
6088 2015-06-13 Tom de Vries <tom@codesourcery.com>
6089
6090 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6091 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6092 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6093 (N): Define.
6094 (main): Use N instead of hardcoded constants.
6095
6096 2015-06-05 Tom de Vries <tom@codesourcery.com>
6097
6098 merge from gomp4 branch:
6099 2015-05-28 Tom de Vries <tom@codesourcery.com>
6100
6101 PR tree-optimization/65443
6102 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6103 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6104 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6105
6106 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6107
6108 * testsuite/libgomp.graphite/bounds.c: Adjust for
6109 cleanup-tree-dump removal.
6110 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6111 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6112 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6113 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6114 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6115 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6116 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6117 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6118 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6119 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6120
6121 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6122
6123 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6124 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6125 (futex_wake) [!__x86_64__]: Ditto.
6126
6127 2015-05-28 Julian Brown <julian@codesourcery.com>
6128
6129 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6130 function comment. Only call gomp_fatal if new argument is true.
6131 (acc_dev_num_out_of_range): New function.
6132 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6133 acc_dev_num_out_of_range as appropriate.
6134 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6135 (acc_get_device_num, acc_set_device_num): Update calls to
6136 resolve_device.
6137 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6138 output.
6139
6140 2015-05-28 Julian Brown <julian@codesourcery.com>
6141
6142 PR libgomp/65742
6143 * oacc-init.c (plugin/plugin-host.h): Include.
6144 (acc_on_device): Check whether we're in an offloaded region for
6145 host_nonshm
6146 plugin. Don't use __builtin_acc_on_device.
6147 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6148 nonshm_exec flag in thread-local data.
6149 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6150 data for host_nonshm plugin.
6151 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6152 for host_nonshm plugin.
6153 * plugin/plugin-host.h: New.
6154
6155 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6156
6157 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6158
6159 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6160
6161 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6162 Declare as int.
6163 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6164 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6165 Declare as int.
6166
6167 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6168
6169 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6170
6171 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6172
6173 * target.c (gomp_map_pointer): New function abstracting out
6174 GOMP_MAP_POINTER handling.
6175 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6176 gomp_map_pointer().
6177
6178 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6179
6180 PR middle-end/66199
6181 * testsuite/libgomp.c/pr66199-1.c: New test.
6182 * testsuite/libgomp.c/pr66199-2.c: New test.
6183 * testsuite/libgomp.c++/pr66199-1.C: New test.
6184 * testsuite/libgomp.c++/pr66199-2.C: New test.
6185 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6186 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6187
6188 2015-05-19 Julian Brown <julian@codesourcery.com>
6189
6190 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6191 on cuInit failure.
6192
6193 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6194
6195 PR middle-end/66133
6196 * testsuite/libgomp.c/pr66133.c: New test.
6197
6198 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6199
6200 * Makefile.in: Regenerated with automake-1.11.6.
6201 * aclocal.m4: Likewise.
6202 * config.h.in: Likewise.
6203 * configure: Likewise.
6204 * testsuite/Makefile.in: Likewise.
6205
6206 2015-05-08 Jason Merrill <jason@redhat.com>
6207
6208 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6209 _Complex.
6210
6211 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6212
6213 2015-05-06 Julian Brown <julian@codesourcery.com>
6214
6215 * oacc-init.c (acc_device_lock): Add explanatory comment.
6216 (resolve_device): Add comment about locking requirement.
6217 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6218 gomp_init_device and gomp_fini_device calls.
6219 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6220 (acc_get_device_num, acc_set_device_num): Add locking around
6221 resolve_device and gomp_init_device calls.
6222
6223 2015-05-06 Julian Brown <julian@codesourcery.com>
6224
6225 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6226 goacc_thread_lock on error paths.
6227 * oacc-mem.c (lookup_host): Remove locking from function. Note
6228 locking requirement for caller in function comment.
6229 (lookup_dev): Likewise.
6230 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6231 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6232 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6233 Add locking.
6234
6235 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6236
6237 PR testsuite/65205
6238 PR libgomp/65993
6239 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6240 don't expect "0x" prefix for "%p" format specifier, don't expect
6241 "(nil)" for NULL pointer.
6242 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6245 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6246 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6247 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6258 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6259 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6260 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6261 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6262 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6263 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6264 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6265 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6266 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6267 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6268 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6269 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6270 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6271 accurately specify what we're looking for.
6272 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6273 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6274 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6275 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6276 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6277
6278 2015-04-30 James Norris <jnorris@codesourcery.com>
6279
6280 PR testsuite/65205
6281 * testsuite/lib/libgomp.exp
6282 (check_effective_target_openacc_host_selected)
6283 (check_effective_target_openacc_host_nonshm_selected): New
6284 procedures.
6285 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6286 dg-shouldfail.
6287 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6288 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6289 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6290 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6291 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6292 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6293 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6295 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6296 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6297 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6298 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6299 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6300 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6301 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6302 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6303 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6304 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6305 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6307 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6320 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6321 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6322 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6323 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6324 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6325 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6326 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6327 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6328 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6329 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6330
6331 2015-04-08 Julian Brown <julian@codesourcery.com>
6332
6333 * libgomp.h (target_mem_desc: Remove mem_map field.
6334 (acc_dispatch_t): Remove open_device_func, close_device_func,
6335 get_device_num_func, set_device_num_func, target_data members.
6336 Change create_thread_data_func argument to device number instead of
6337 generic pointer.
6338 * oacc-async.c (assert.h): Include.
6339 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6340 (acc_wait_all, acc_wait_all_async): Use current host thread's
6341 active device, not base_dev.
6342 * oacc-cuda.c (acc_get_current_cuda_device)
6343 (acc_get_current_cuda_context, acc_get_cuda_stream)
6344 (acc_set_cuda_stream): Likewise.
6345 * oacc-host.c (host_dispatch): Don't set open_device_func,
6346 close_device_func, get_device_num_func or set_device_num_func.
6347 * oacc-init.c (base_dev, init_key): Remove.
6348 (cached_base_dev): New.
6349 (name_of_acc_device_t): New.
6350 (acc_init_1): Initialise default-numbered device, not zeroth.
6351 (acc_shutdown_1): Close all devices of a given type.
6352 (goacc_destroy_thread): Don't use base_dev.
6353 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6354 (goacc_attach_host_thread_to_device): New.
6355 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6356 (acc_get_num_devices): Don't use base_dev.
6357 (acc_set_device_type): Reimplement.
6358 (acc_get_device_type): Don't use base_dev.
6359 (acc_get_device_num): Tweak logic.
6360 (acc_set_device_num): Likewise.
6361 (acc_on_device): Use acc_get_device_type.
6362 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6363 (goacc_lazy_initialize): Reimplement with acc_init and
6364 goacc_attach_host_thread_to_device.
6365 * oacc-int.h (goacc_thread): Add base_dev field.
6366 (base_dev): Remove extern declaration.
6367 (goacc_attach_host_thread_to_device): Add prototype.
6368 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6369 base_dev.
6370 (acc_free): Likewise.
6371 (acc_memcpy_to_device): Likewise.
6372 (acc_memcpy_from_device): Likewise.
6373 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6374 goacc_lazy_initialize (throughout).
6375 (GOACC_parallel): Use tgt_offset to locate target functions.
6376 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6377 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6378 (gomp_load_plugin_for_device): Remove open_device, close_device,
6379 get_device_num, set_device_num openacc hook initialisation. Don't set
6380 openacc.target_data.
6381 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6382 (GOMP_OFFLOAD_openacc_close_device)
6383 (GOMP_OFFLOAD_openacc_get_device_num)
6384 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6385 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6386 to int.
6387 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6388 (instantiated_devices, ptx_dev_lock): New.
6389 (struct ptx_image_data): New.
6390 (ptx_devices, ptx_images, ptx_image_lock): New.
6391 (fini_streams_for_device): Reorder cuStreamDestroy call.
6392 (nvptx_get_num_devices): Remove forward declaration.
6393 (nvptx_init): Change return type to bool.
6394 (nvptx_fini): Remove.
6395 (nvptx_attach_host_thread_to_device): New.
6396 (nvptx_open_device): Return struct ptx_device* instead of void*.
6397 (nvptx_close_device): Change argument type to struct ptx_device*,
6398 return type to void.
6399 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6400 (kernel_target_data, kernel_host_table): Remove static globals.
6401 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6402 (GOMP_OFFLOAD_init_device): Reimplement.
6403 (GOMP_OFFLOAD_fini_device): Likewise.
6404 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6405 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6406 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6407 (GOMP_OFFLOAD_openacc_open_device)
6408 (GOMP_OFFLOAD_openacc_close_device)
6409 (GOMP_OFFLOAD_openacc_set_device_num)
6410 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6411 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6412 (device number).
6413
6414 testsuite/
6415 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6416
6417 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6418
6419 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6420 * libgomp.h (struct gomp_memory_mapping): Remove.
6421 (struct target_mem_desc): Change type of mem_map from
6422 gomp_memory_mapping * to splay_tree_s *.
6423 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6424 Add load_image_func, unload_image_func.
6425 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6426 Remove offload_regions_registered.
6427 (gomp_init_tables): Remove.
6428 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6429 to splay_tree_s *.
6430 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6431 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6432 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6433 offload_regions_registered.
6434 Initialize load_image_func, unload_image_func, mem_map.root.
6435 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6436 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6437 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6438 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6439 gomp_memory_mapping *. Use dev's lock and splay_tree.
6440 (lookup_dev): Use dev's lock.
6441 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6442 (acc_is_present): Likewise.
6443 (acc_map_data): Likewise.
6444 (acc_unmap_data): Likewise. Use dev's lock.
6445 (present_create_copy): Likewise.
6446 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6447 (update_dev_host): Likewise.
6448 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6449 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6450 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6451 (GOMP_OFFLOAD_get_table): Remove
6452 (GOMP_OFFLOAD_load_image): New function.
6453 (GOMP_OFFLOAD_unload_image): New function.
6454 * target.c (register_lock): New mutex for offload image registration.
6455 (num_devices): Do not guard with PLUGIN_SUPPORT.
6456 (gomp_realloc_unlock): New static function.
6457 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6458 before gomp_fatal.
6459 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6460 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6461 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6462 mem_map's.
6463 (gomp_unmap_vars): Likewise.
6464 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6465 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6466 (gomp_offload_image_to_device): New static function.
6467 (GOMP_offload_register): Add mutex lock.
6468 Call gomp_offload_image_to_device for all initialized devices.
6469 Replace gomp_realloc with gomp_realloc_unlock.
6470 (GOMP_offload_unregister): New function.
6471 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6472 get_table_func from the plugin with calls to init_device_func and
6473 gomp_offload_image_to_device.
6474 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6475 to splay_tree_s *.
6476 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6477 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6478 (GOMP_target_data): Do not call gomp_init_tables.
6479 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6480 (gomp_load_plugin_for_device): Replace register_image and get_table
6481 with load_image and unload_image in DLSYM ().
6482 (gomp_register_images_for_device): Remove function.
6483 (gomp_target_init): Do not initialize current_device.mem_map.*,
6484 current_device.offload_regions_registered.
6485 Remove call to gomp_register_images_for_device.
6486 Do not free offload_images and num_offload_images.
6487
6488 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6489
6490 PR fortran/65597
6491 * testsuite/libgomp.fortran/pr65597.f90: New test.
6492
6493 2015-03-27 Tom de Vries <tom@codesourcery.com>
6494
6495 PR testsuite/65594
6496 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6497 (init, check): New function.
6498 (foo): Change return type to void.
6499 (main): Call init and check.
6500
6501 2015-03-27 Tom de Vries <tom@codesourcery.com>
6502
6503 PR testsuite/65594
6504 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6505 (foo): Use M for non-inner loops to scale down test-case.
6506
6507 2015-03-25 Kai Tietz <ktietz@redhat.com>
6508
6509 PR libgomp/64972
6510 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6511 (GOACC_data_start): Likewise.
6512 * target.c (gomp_map_vars): Likewise.
6513
6514 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6515
6516 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6517 hppa*-*-hpux*.
6518
6519 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6520
6521 * testsuite/libgomp.c/target-10.c: New test.
6522 * testsuite/libgomp.c++/target-4.C: New test.
6523
6524 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6525
6526 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6527 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6528
6529 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6530
6531 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6532 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6533 (pthread.h): Check for this header file.
6534 * configure: Regenerate.
6535
6536 2015-02-25 Tom de Vries <tom@codesourcery.com>
6537
6538 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6539 (check_reduction_op, check_reduction_macro, max, min):
6540 Declare.
6541 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6542 function.
6543 (main): Use new functions.
6544
6545 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6546
6547 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6548 char * for variables holding dlerror return values.
6549 (DLSYM_OPT): Ditto.
6550
6551 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6552
6553 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6554
6555 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6556 Cesar Philippidis <cesar@codesourcery.com>
6557
6558 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6559 GOACC_ctaid, and GOACC_nctaid routines.
6560
6561 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6562
6563 PR c/64824
6564 * testsuite/libgomp.c/atomic-18.c: New test.
6565 * testsuite/libgomp.c++/atomic-16.C: New test.
6566
6567 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6568
6569 PR c/64824
6570 PR c/64868
6571 * testsuite/libgomp.c/pr64824.c: New test.
6572 * testsuite/libgomp.c/pr64868.c: New test.
6573 * testsuite/libgomp.c++/pr64824.C: New test.
6574 * testsuite/libgomp.c++/pr64868.C: New test.
6575
6576 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6577
6578 PR libgomp/64635
6579 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6580 Link with -lpthread.
6581 * config/aix/plugin-suffix.h: Delete.
6582
6583 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6584
6585 PR libgomp/64635
6586 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6587 (*-*-darwin*): Use config_path "bsd darwin posix".
6588 (*-*-hpux*): Use config_path "hpux posix".
6589 * target.c: Add include of plugin-suffix.h and use
6590 SONAME_SUFFIX macro.
6591 * config/aix/plugin-suffix.h: New file.
6592 * config/darwin/plugin-suffix.h: New file.
6593 * config/hpux/plugin-suffix.h: New file.
6594 * config/posix/plugin-suffix.h: New file.
6595
6596 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6597
6598 PR middle-end/64734
6599 * libgomp.c/pr64734.c: New test.
6600
6601 2015-01-23 Tom de Vries <tom@codesourcery.com>
6602
6603 PR libgomp/64672
6604 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6605
6606 2015-01-23 Tom de Vries <tom@codesourcery.com>
6607
6608 PR libgomp/64707
6609 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6610 dg-options.
6611
6612 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6613
6614 PR libgomp/64625
6615 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6616 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6617 formal parameter. Update all users.
6618 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6619 Document unused formal parameter.
6620
6621 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6622
6623 * oacc-parallel.c: Don't include <alloca.h>.
6624 (GOACC_parallel): Use gomp_alloca instead of alloca.
6625
6626 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6627
6628 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6629
6630 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6631 James Norris <jnorris@codesourcery.com>
6632 Tom de Vries <tom@codesourcery.com>
6633 Julian Brown <julian@codesourcery.com>
6634 Cesar Philippidis <cesar@codesourcery.com>
6635 Nathan Sidwell <nathan@codesourcery.com>
6636 Tobias Burnus <burnus@net-b.de>
6637
6638 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6639 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6640 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6641 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6642 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6643 Include $(top_srcdir)/plugin/Makefrag.am.
6644 (nodist_libsubinclude_HEADERS): Add openacc.h.
6645 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6646 openacc.f90, openacc.mod, openacc_kinds.mod.
6647 (omp_lib.mod): Generalize into...
6648 (%.mod): ... this new rule.
6649 (openacc_kinds.mod, openacc.mod): New rules.
6650 * plugin/configfrag.ac: New file.
6651 * configure.ac: Move plugin/offloading support into it. Include
6652 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6653 * plugin/Makefrag.am: New file.
6654 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6655 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6656 export.
6657 (libgomp-test-support.exp): New rule.
6658 (all-local): Depend on it.
6659 * Makefile.in: Regenerate.
6660 * testsuite/Makefile.in: Regenerate.
6661 * config.h.in: Likewise.
6662 * configure: Likewise.
6663 * configure.tgt: Harden shell syntax.
6664 * env.c: Include "oacc-int.h".
6665 (parse_acc_device_type): New function.
6666 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6667 variables.
6668 (initialize_env): Initialize those. Call
6669 goacc_runtime_initialize.
6670 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6671 (gomp_fatal): Call gomp_vfatal.
6672 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6673 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6674 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6675 (splay_tree_node, splay_tree, splay_tree_key)
6676 (struct target_mem_desc, struct splay_tree_key_s)
6677 (struct gomp_memory_mapping, struct acc_dispatch_t)
6678 (struct gomp_device_descr, gomp_acc_insert_pointer)
6679 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6680 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6681 (gomp_free_memmap, gomp_fini_device): New declarations.
6682 (gomp_vdebug, gomp_debug): New macros.
6683 Include "splay-tree.h".
6684 * libgomp.map (OACC_2.0): New symbol version. Use for
6685 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6686 acc_set_device_type_h_, acc_get_device_type,
6687 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6688 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6689 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6690 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6691 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6692 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6693 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6694 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6695 acc_copyin_array_h_, acc_present_or_copyin,
6696 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6697 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6698 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6699 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6700 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6701 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6702 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6703 acc_update_device, acc_update_device_32_h_,
6704 acc_update_device_64_h_, acc_update_device_array_h_,
6705 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6706 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6707 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6708 acc_is_present_64_h_, acc_is_present_array_h_,
6709 acc_memcpy_to_device, acc_memcpy_from_device,
6710 acc_get_current_cuda_device, acc_get_current_cuda_context,
6711 acc_get_cuda_stream, acc_set_cuda_stream.
6712 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6713 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6714 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6715 GOACC_get_num_threads.
6716 (GOMP_PLUGIN_1.0): New symbol version. Use for
6717 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6718 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6719 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6720 GOMP_PLUGIN_acc_thread.
6721 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6722 environment variable.
6723 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6724 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6725 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6726 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6727 (splay_tree_remove): New declarations.
6728 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6729 (splay_tree_remove, splay_tree_lookup): Move into...
6730 * splay-tree.c: ... this new file.
6731 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6732 (splay_tree_node, splay_tree, splay_tree_key)
6733 (struct target_mem_desc, struct splay_tree_key_s)
6734 (struct gomp_device_descr): Don't declare.
6735 (num_devices_openmp): New variable.
6736 (gomp_get_num_devices ): Use it.
6737 (gomp_init_targets_once): New function.
6738 (gomp_get_num_devices ): Use it.
6739 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6740 (gomp_fini_device, gomp_register_image_for_device): New functions.
6741 (gomp_map_vars): Add devaddrs parameter.
6742 (gomp_update): Add mm parameter.
6743 (gomp_init_device): Move most of it into...
6744 (gomp_init_tables): ... this new function.
6745 (gomp_register_images_for_device): Remove function.
6746 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6747 Make them hidden instead of static.
6748 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6749 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6750 (GOMP_target_end_data, GOMP_target_update)
6751 (gomp_load_plugin_for_device, gomp_target_init): Update for
6752 OpenACC changes.
6753 * oacc-async.c: New file.
6754 * oacc-cuda.c: Likewise.
6755 * oacc-host.c: Likewise.
6756 * oacc-init.c: Likewise.
6757 * oacc-int.h: Likewise.
6758 * oacc-mem.c: Likewise.
6759 * oacc-parallel.c: Likewise.
6760 * oacc-plugin.c: Likewise.
6761 * oacc-plugin.h: Likewise.
6762 * oacc-ptx.h: Likewise.
6763 * openacc.f90: Likewise.
6764 * openacc.h: Likewise.
6765 * openacc_lib.h: Likewise.
6766 * plugin/plugin-host.c: Likewise.
6767 * plugin/plugin-nvptx.c: Likewise.
6768 * libgomp-plugin.c: Likewise.
6769 * libgomp-plugin.h: Likewise.
6770 * libgomp_target.h: Remove file after merging content into the
6771 former file. Update all users.
6772 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6773 (offload_targets_s, offload_targets_s_openacc): New variables.
6774 (check_effective_target_openacc_nvidia_accel_present)
6775 (check_effective_target_openacc_nvidia_accel_selected): New
6776 procedures.
6777 (libgomp_init): Update for OpenACC changes.
6778 * testsuite/libgomp-test-support.exp.in: New file.
6779 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6780 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6781 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6784 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6790 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6791 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6796 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6797 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6798 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6799 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6800 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6801 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6802 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6803 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6804 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6805 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6806 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6807 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6808 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6810 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6814 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6815 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6816 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6819 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6820 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6821 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6822 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6824 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6825 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6826 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6827 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6828 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6829 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6830 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6831 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6832 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6833 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6834 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6835 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6837 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6838 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6841 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6842 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6843 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6844 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6845 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6846 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6847 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6848 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6849 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6850 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6851 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6852 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6853 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6854 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6855 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6856 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6857 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6858 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6859 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6860 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6863 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6864 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6870 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6875 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6876 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6877 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6878 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6917 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6918 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6919 Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6921 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6922 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6923 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6924 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6925 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6926 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6927 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6928 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6929 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6930 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6931 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6932 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6933 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6934 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6935 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6936 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6937 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6938 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6939 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6940 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6941 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6942 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6943 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6944 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6945 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6946 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6947 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6948 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6949 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6950 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6951 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6952 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6953 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6954 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6955 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6956 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6957 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6958 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6959 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6960 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6961 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6962 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6963 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6964 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6965 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6966 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6967 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6968 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6969 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6970 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6971 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6972 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6973 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6974 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6975 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6976 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6977 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6978 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6979 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6980
6981 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6982 Julian Brown <julian@codesourcery.com>
6983 David Malcolm <dmalcolm@redhat.com>
6984
6985 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6986 to "GNU Offloading and Multi Processing Runtime Library". Change
6987 all users.
6988 * configure: Regenerate.
6989 * libgomp.texi: Update.
6990
6991 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6992
6993 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6994 "$tgt_dir/lib32".
6995 * configure: Regenerate.
6996
6997 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6998 "intelmic" in $offload_targets.
6999
7000 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7001
7002 Update copyright years.
7003
7004 * libgomp.texi: Bump @copying's copyright year.
7005
7006 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7007
7008 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7009 Move load of target-supportes.exp earlier.
7010
7011 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7012
7013 * testsuite/libgomp.c/target-9.c: New test.
7014
7015 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7016
7017 * config.h.in: Regenerate.
7018 * configure: Regenerate.
7019 * configure.ac: Add GCC_CHECK_EMUTLS.
7020 * libgomp.h: Add check for USE_EMUTLS: this case
7021 is equal to HAVE_TLS.
7022 * team.c: Likewise.
7023
7024 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7025
7026 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7027
7028 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7029 Ilya Verbin <ilya.verbin@intel.com>
7030
7031 * testsuite/libgomp.c/target-critical-1.c: New test.
7032
7033 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7034
7035 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7036 to dg-options unless expensive testing is on.
7037 (TESTITERS): Define to N if not defined.
7038 (main): Use TESTITERS instead of N.
7039 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7040 dg-additional-options depending on whether expensive testing is on.
7041 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7042 Decrease N to 100000 and CHUNKSZ to 10000.
7043
7044 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7045
7046 PR fortran/63938
7047 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7048 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7049
7050 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7051
7052 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7053
7054 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7055
7056 PR bootstrap/63784
7057 * configure: Regenerated.
7058
7059 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7060
7061 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7062 vect_simd_clones effective target.
7063 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7064
7065 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7066
7067 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7068 of 32 as block_size.
7069 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7070 instead of 32 as block_size.
7071
7072 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7073 Ilya Verbin <ilya.verbin@intel.com>
7074
7075 * Makefile.in: Regenerate.
7076 * configure: Regenerate.
7077 * configure.ac: Set up offload_additional_options,
7078 offload_additional_lib_paths and offload_targets.
7079 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7080 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7081 * testsuite/Makefile.in: Regenerate.
7082 * testsuite/lib/libgomp.exp (libgomp_init): Append
7083 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7084 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7085 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7086
7087 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7088 Ilya Verbin <ilya.verbin@intel.com>
7089 Kirill Yukhin <kirill.yukhin@intel.com>
7090 Ilya Tocar <ilya.tocar@intel.com>
7091
7092 * testsuite/lib/libgomp.exp
7093 (check_effective_target_offload_device): New.
7094 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7095 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7096 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7097 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7098 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7099 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7100 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7101 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7102 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7103 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7104 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7105 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7106 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7107 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7108 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7109 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7110 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7111 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7112 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7113 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7114 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7115 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7116 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7117 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7118 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7119 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7120 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7121 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7122 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7123 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7124 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7125 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7126 * testsuite/libgomp.c/target-7.c: Fix test.
7127 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7128 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7129 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7130 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7131 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7132 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7133 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7134 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7135 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7136 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7137 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7138 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7139 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7140 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7141 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7142 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7143 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7144 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7145 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7146 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7147 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7148 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7149 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7150 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7151 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7152 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7153 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7154 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7155 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7156 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7157 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7158
7159 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7160 Ilya Verbin <ilya.verbin@intel.com>
7161 Thomas Schwinge <thomas@codesourcery.com>
7162 Andrey Turetskiy <andrey.turetskiy@intel.com>
7163
7164 * libgomp.map (GOMP_4.0.1): New symbol version.
7165 Add GOMP_offload_register.
7166 * libgomp_target.h: New file.
7167 * splay-tree.h: New file.
7168 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7169 (gomp_target_init): New forward declaration.
7170 (gomp_is_initialized): New static variable.
7171 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7172 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7173 New structures.
7174 (offload_images, num_offload_images, devices, num_devices): New static
7175 variables.
7176 (splay_compare): New static function.
7177 (struct gomp_device_descr): New structure.
7178 (gomp_get_num_devices): Call gomp_target_init.
7179 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7180 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7181 (GOMP_offload_register): New function.
7182 (GOMP_target): Arrange for host callback to be performed in a separate
7183 initial thread and contention group, inheriting ICVs from
7184 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7185 Add device initialization and lookup for target function in splay tree.
7186 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7187 (GOMP_target_end_data): Call gomp_unmap_vars.
7188 (GOMP_target_update): Add device initialization and call gomp_update.
7189 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7190 (gomp_target_init): New static functions.
7191
7192 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7193 Thomas Schwinge <thomas@codesourcery.com>
7194 Ilya Verbin <ilya.verbin@intel.com>
7195 Andrey Turetskiy <andrey.turetskiy@intel.com>
7196
7197 * config.h.in: Regenerate.
7198 * configure: Regenerate.
7199 * configure.ac: Check for libdl, required for plugin support.
7200 (PLUGIN_SUPPORT): Define if plugins are supported.
7201 (enable_offload_targets): Support Intel MIC targets.
7202 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7203
7204 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7205
7206 PR target/63610
7207 * configure: Regenerate.
7208
7209 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7210
7211 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7212
7213 2014-10-06 Marek Polacek <polacek@redhat.com>
7214
7215 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7216 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7217 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7218 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7219
7220 2014-10-06 Marek Polacek <polacek@redhat.com>
7221
7222 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7223 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7224 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7225 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7226 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7227 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7228 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7229 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7230 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7231 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7232 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7233 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7234 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7235 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7236 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7237 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7238 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7239 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7240 declarations.
7241
7242 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7243
7244 PR libgomp/61200
7245 * testsuite/libgomp.c/pr61200.c: New test.
7246
7247 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7248
7249 PR c++/63248
7250 * testsuite/libgomp.c++/pr63248.C: New test.
7251
7252 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7253
7254 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7255 is not zero, but taskgroup->children is NULL and there are
7256 any task->children, schedule those instead of waiting.
7257 * testsuite/libgomp.c/depend-6.c: New test.
7258 * testsuite/libgomp.c/depend-7.c: New test.
7259 * testsuite/libgomp.c/depend-8.c: New test.
7260 * testsuite/libgomp.c/depend-9.c: New test.
7261 * testsuite/libgomp.c/depend-10.c: New test.
7262
7263 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7264
7265 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7266 (struct gomp_taskwait): New type.
7267 (struct gomp_task): Add taskwait and parent_depends_on, remove
7268 in_taskwait and taskwait_sem fields.
7269 (gomp_finish_task): Don't destroy taskwait_sem.
7270 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7271 taskwait and parent_depends_on.
7272 (GOMP_task): For if (0) tasks with depend clause that depend on
7273 earlier tasks don't defer them, instead call
7274 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7275 Initialize redundant_out field, for redundant out entries just
7276 move them at the end of linked list instead of removing them
7277 completely, and set redundant_out flag instead of redundant.
7278 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7279 that task.
7280 (gomp_task_run_post_handle_dependers): If parent is in
7281 gomp_task_maybe_wait_for_dependencies and newly runnable task
7282 is not parent_depends_on, queue it in parent->children linked
7283 list after all runnable tasks with parent_depends_on set.
7284 Adjust for addition of taskwait indirection.
7285 (gomp_task_run_post_remove_parent): If parent is in
7286 gomp_task_maybe_wait_for_dependencies and task to be removed
7287 is parent_depends_on, decrement n_depend and if needed awake
7288 parent. Adjust for addition of taskwait indirection.
7289 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7290 (gomp_task_maybe_wait_for_dependencies): New function.
7291 * testsuite/libgomp.c/depend-5.c: New test.
7292
7293 2014-07-13 Tobias Burnus <burnus@net-b.de>
7294
7295 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7296 with TS 18508/Fortran 2015.
7297
7298 2014-07-06 Marek Polacek <polacek@redhat.com>
7299
7300 PR c/6940
7301 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7302
7303 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7304
7305 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7306 matches regex $lang_source_re, add $lang_include_flags to options.
7307 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7308 * testsuite/libgomp.c++/c++.exp: Likewise.
7309 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7310 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7311 ALWAYS_CFLAGS.
7312 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7313
7314 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7315
7316 * testsuite/libgomp.fortran/fortran.exp: Explain
7317 gfortran-dg-runtest usage.
7318
7319 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7320
7321 * testsuite/libgomp.fortran/simd5.f90: New test.
7322 * testsuite/libgomp.fortran/simd6.f90: New test.
7323 * testsuite/libgomp.fortran/simd7.f90: New test.
7324
7325 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7326
7327 * testsuite/libgomp.c/for-2.c: Define SC to static for
7328 #pragma omp for simd testing.
7329 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7330 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7331 SC macro.
7332 * testsuite/libgomp.c/simd-14.c: New test.
7333 * testsuite/libgomp.c/simd-15.c: New test.
7334 * testsuite/libgomp.c/simd-16.c: New test.
7335 * testsuite/libgomp.c/simd-17.c: New test.
7336 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7337 #pragma omp for simd testing.
7338 * testsuite/libgomp.c++/simd10.C: New test.
7339 * testsuite/libgomp.c++/simd11.C: New test.
7340 * testsuite/libgomp.c++/simd12.C: New test.
7341 * testsuite/libgomp.c++/simd13.C: New test.
7342
7343 * testsuite/libgomp.fortran/aligned1.f03: New test.
7344 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7345 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7346 tasks with !$omp parallel !$omp single.
7347 * testsuite/libgomp.fortran/target8.f90: New test.
7348 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7349 not to use trim in the combiner, instead call elemental function.
7350 (fn): New elemental function.
7351 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7352 Make elemental.
7353 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7354 omp_in): Likewise.
7355 * testsuite/libgomp.fortran/udr12.f90: New test.
7356 * testsuite/libgomp.fortran/udr13.f90: New test.
7357 * testsuite/libgomp.fortran/udr14.f90: New test.
7358 * testsuite/libgomp.fortran/udr15.f90: New test.
7359
7360 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7361
7362 * omp_lib.f90.in (openmp_version): Set to 201307.
7363 * omp_lib.h.in (openmp_version): Likewise.
7364 * testsuite/libgomp.c/target-8.c: New test.
7365 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7366 and inbranch clauses.
7367 * testsuite/libgomp.fortran/depend-3.f90: New test.
7368 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7369 openmp_version.
7370 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7371 * testsuite/libgomp.fortran/target1.f90: New test.
7372 * testsuite/libgomp.fortran/target2.f90: New test.
7373 * testsuite/libgomp.fortran/target3.f90: New test.
7374 * testsuite/libgomp.fortran/target4.f90: New test.
7375 * testsuite/libgomp.fortran/target5.f90: New test.
7376 * testsuite/libgomp.fortran/target6.f90: New test.
7377 * testsuite/libgomp.fortran/target7.f90: New test.
7378
7379 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7380
7381 PR fortran/60928
7382 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7383 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7384 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7385 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7386 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7387 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7388 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7389 * testsuite/libgomp.fortran/associate1.f90: New test.
7390 * testsuite/libgomp.fortran/associate2.f90: New test.
7391 * testsuite/libgomp.fortran/procptr1.f90: New test.
7392
7393 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7394
7395 * testsuite/libgomp.fortran/simd1.f90: New test.
7396 * testsuite/libgomp.fortran/udr1.f90: New test.
7397 * testsuite/libgomp.fortran/udr2.f90: New test.
7398 * testsuite/libgomp.fortran/udr3.f90: New test.
7399 * testsuite/libgomp.fortran/udr4.f90: New test.
7400 * testsuite/libgomp.fortran/udr5.f90: New test.
7401 * testsuite/libgomp.fortran/udr6.f90: New test.
7402 * testsuite/libgomp.fortran/udr7.f90: New test.
7403 * testsuite/libgomp.fortran/udr8.f90: New test.
7404 * testsuite/libgomp.fortran/udr9.f90: New test.
7405 * testsuite/libgomp.fortran/udr10.f90: New test.
7406 * testsuite/libgomp.fortran/udr11.f90: New test.
7407
7408 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7409
7410 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7411 vect_simd_clones effective target.
7412 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7413
7414 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7415
7416 PR middle-end/61252
7417 * testsuite/libgomp.c++/simd-9.C: New test.
7418
7419 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7420
7421 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7422 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7423 texts according to their @menu entry positions.
7424
7425 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7426
7427 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7428 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7429 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7430 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7431 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7432 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7433 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7434 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7435 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7436 * testsuite/libgomp.fortran/depend-1.f90: New test.
7437 * testsuite/libgomp.fortran/depend-2.f90: New test.
7438 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7439 * testsuite/libgomp.fortran/simd1.f90: New test.
7440 * testsuite/libgomp.fortran/simd2.f90: New test.
7441 * testsuite/libgomp.fortran/simd3.f90: New test.
7442 * testsuite/libgomp.fortran/simd4.f90: New test.
7443 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7444
7445 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7446
7447 * testsuite/libgomp.c/simd-10.c: New test.
7448 * testsuite/libgomp.c/simd-11.c: New test.
7449 * testsuite/libgomp.c/simd-12.c: New test.
7450 * testsuite/libgomp.c/simd-13.c: New test.
7451
7452 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7453
7454 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7455 atomic type clauses in any order and optional comma in between.
7456 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7457 * testsuite/libgomp.c/atomic-17.c: Likewise.
7458
7459 * testsuite/libgomp.c/simd-7.c: New test.
7460 * testsuite/libgomp.c/simd-8.c: New test.
7461 * testsuite/libgomp.c/simd-9.c: New test.
7462 * testsuite/libgomp.c/loop-16.c: New test.
7463
7464 2014-04-02 Richard Henderson <rth@redhat.com>
7465
7466 * config/linux/futex.h (futex_wait): Get error value from errno.
7467 (futex_wake): Likewise.
7468
7469 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7470
7471 PR c++/60331
7472 * testsuite/libgomp.c++/udr-11.C: New test.
7473 * testsuite/libgomp.c++/udr-12.C: New test.
7474 * testsuite/libgomp.c++/udr-13.C: New test.
7475 * testsuite/libgomp.c++/udr-14.C: New test.
7476 * testsuite/libgomp.c++/udr-15.C: New test.
7477 * testsuite/libgomp.c++/udr-16.C: New test.
7478 * testsuite/libgomp.c++/udr-17.C: New test.
7479 * testsuite/libgomp.c++/udr-18.C: New test.
7480 * testsuite/libgomp.c++/udr-19.C: New test.
7481
7482 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7483
7484 Update copyright years
7485
7486 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7487
7488 * hashtab.h: Use the standard form for the copyright notice.
7489
7490 2014-01-02 Tobias Burnus <burnus@net-b.de>
7491
7492 * libgomp.texi: Bump @copying's copyright year.
7493
7494 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7495
7496 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7497 alloca () with __builtin_alloca ().
7498 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7499 * testsuite/libgomp.c/lock-3.c: Likewise.
7500 * testsuite/libgomp.c/pr48591.c: Likewise.
7501
7502 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7503
7504 PR testsuite/59534
7505 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7506 comparisons.
7507
7508 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7509
7510 PR libgomp/58756
7511 * testsuite/libgomp.c/pr58756.c: New test.
7512
7513 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7514
7515 PR libgomp/59467
7516 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7517 !$omp parallel.
7518
7519 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7520
7521 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7522 ALWAYS_CFLAGS.
7523 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7524 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7525 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7526 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7527 Likewise.
7528
7529 * libgomp_g.h: Include <stddef.h> for size_t.
7530
7531 * libgomp.spec.in: Update comment about libgomp's dependencies.
7532 * configure.ac: Likewise.
7533 * configure: Regenerate.
7534
7535 2013-10-16 Tobias Burnus <burnus@net-b.de>
7536
7537 * libgomp.texi: (Runtime Library Routines): Update references for
7538 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7539 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7540 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7541 (Environment Variables): Update references for OpenMP 4.0. Add
7542 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7543 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7544 order.
7545
7546 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7547
7548 * env.c (parse_bind_var): Initialize value to avoid
7549 (false positive) warning.
7550
7551 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7552
7553 PR libgomp/58691
7554 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7555 to check variable.
7556 (gomp_init_num_threads): Move i variable declaration into
7557 #ifdef CPU_ALLOC_SIZE block.
7558 * config/linux/affinity.c (gomp_affinity_init_level): Test
7559 gomp_places_list_len == 0 rather than gomp_places_list == 0
7560 when checking for topology reading error.
7561 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7562 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7563 gomp_places_list, only parse env var and always return false.
7564 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7565 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7566 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7567 and either of these variables were parsed correctly into a places
7568 list.
7569
7570 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7571 Jakub Jelinek <jakub@redhat.com>
7572
7573 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7574 of 5 loopfn matches.
7575 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7576 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7577 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7578 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7579 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7580 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7581 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7582 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7583
7584 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7585
7586 * Makefile.am (omp_lib.mod): Streamline rule.
7587 * Makefile.in: Regenerate.
7588
7589 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7590 exceptions.
7591
7592 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7593 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7594 * testsuite/libgomp.fortran/lib2.f: Likewise.
7595 * testsuite/libgomp.fortran/lib3.f: Likewise.
7596
7597 * configure.ac: Typo fix.
7598 * configure: Regenerate.
7599
7600 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7601 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7602
7603 * omp.h.in: Don't touch the user's namespace.
7604
7605 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7606 Tobias Burnus <burnus@net-b.de>
7607 Richard Henderson <rth@redhat.com>
7608
7609 * target.c: New file.
7610 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7611 * Makefile.in: Regenerated.
7612 * libgomp_g.h (GOMP_task): Add depend argument.
7613 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7614 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7615 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7616 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7617 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7618 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7619 GOMP_taskgroup_start, GOMP_taskgroup_end,
7620 GOMP_parallel_sections): New prototypes.
7621 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7622 (omp_is_initial_device_): New function.
7623 (ULP, STR1, STR2, ialias_redirect): Removed.
7624 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7625 omp_set_default_device_8_, omp_get_default_device_,
7626 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7627 functions.
7628 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7629 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7630 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7631 @@GOMP_4.0.
7632 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7633 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7634 omp_set_default_device, omp_set_default_device_,
7635 omp_set_default_device_8_, omp_get_default_device,
7636 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7637 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7638 omp_get_team_num_): Export @@OMP_4.0.
7639 * team.c (struct gomp_thread_start_data): Add place field.
7640 (gomp_thread_start): Clear thr->thread_pool and
7641 thr->task before returning. Use gomp_team_barrier_wait_final
7642 instead of gomp_team_barrier_wait. Initialize thr->place.
7643 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7644 team_cancelled and task_queued_count fields.
7645 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7646 before calling pthread_exit.
7647 (gomp_free_thread): No longer static. Use
7648 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7649 (gomp_team_start): Add flags argument. Set
7650 thr->thread_pool->threads_busy to nthreads immediately after creating
7651 new pool. Use gomp_managed_threads_lock instead of
7652 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7653 (gomp_team_end): Use gomp_managed_threads_lock instead of
7654 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7655 of gomp_team_barrier_wait. If team->team_cancelled, call
7656 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7657 rather than thr->ts.work_share.
7658 (initialize_team): Don't call gomp_sem_init here.
7659 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7660 caller.
7661 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7662 * env.c (gomp_global_icv): Add default_device_var, target_data and
7663 bind_var initializers.
7664 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7665 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7666 gomp_places_list_len): New variables.
7667 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7668 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7669 sized places.
7670 (gomp_cancel_var): New global variable.
7671 (parse_int): New function.
7672 (handle_omp_display_env): New function.
7673 (initialize_env): Use it. Initialize default_device_var.
7674 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7675 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7676 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7677 been successfully parsed (and call gomp_init_affinity in that case).
7678 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7679 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7680 omp_get_team_num, omp_is_initial_device): New functions.
7681 * libgomp.h: Include stdlib.h.
7682 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7683 Define.
7684 (struct target_mem_desc): Forward declare.
7685 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7686 and thread_limit_var fields.
7687 (gomp_get_num_devices): New prototype.
7688 (gomp_cancel_var): New extern decl.
7689 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7690 team_cancelled and task_queued_count fields. Add comments about
7691 task_{,queued_,running_}count.
7692 (gomp_cancel_kind): New enum.
7693 (gomp_work_share_end_cancel): New prototype.
7694 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7695 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7696 and depend fields.
7697 (struct gomp_taskgroup): New type.
7698 (struct gomp_task_depend_entry,
7699 struct gomp_dependers_vec): New types.
7700 (gomp_finish_task): Free depend_hash if non-NULL.
7701 (struct gomp_team_state): Add place_partition_off
7702 and place_partition_len fields.
7703 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7704 gomp_places_list_len): New extern decls.
7705 (struct gomp_thread): Add place field.
7706 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7707 (gomp_init_thread_affinity): Add place argument.
7708 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7709 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7710 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7711 gomp_affinity_init_level, gomp_affinity_print_place): New
7712 prototypes.
7713 (gomp_team_start): Add flags argument.
7714 (gomp_thread_limit_var, gomp_remaining_threads_count,
7715 gomp_remaining_threads_lock): Remove.
7716 (gomp_managed_threads_lock): New variable.
7717 (struct gomp_thread_pool): Add threads_busy field.
7718 (gomp_free_thread): New prototype.
7719 * task.c: Include hashtab.h.
7720 (hash_entry_type): New typedef.
7721 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7722 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7723 copy_ctors_done and taskgroup fields.
7724 (GOMP_task): Add depend argument, handle depend clauses. If
7725 gomp_team_barrier_cancelled or if it's taskgroup has been
7726 cancelled, don't queue or start new tasks. Set copy_ctors_done
7727 field if needed. Initialize taskgroup field. If copy_ctors_done
7728 and already cancelled, don't discard the task. If taskgroup is
7729 non-NULL, enqueue the task into taskgroup queue. Increment
7730 num_children field in taskgroup. Increment task_queued_count.
7731 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7732 gomp_task_run_post_remove_taskgroup): New inline functions.
7733 (gomp_task_run_post_handle_depend_hash,
7734 gomp_task_run_post_handle_dependers,
7735 gomp_task_run_post_handle_depend): New functions.
7736 (GOMP_taskwait): Use them. If more than one new tasks
7737 have been queued, wake other threads if needed.
7738 (gomp_barrier_handle_tasks): Likewise. If
7739 gomp_team_barrier_cancelled, don't start any new tasks, just free
7740 all tasks.
7741 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7742 * omp_lib.f90.in
7743 (omp_proc_bind_kind, omp_proc_bind_false,
7744 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7745 omp_proc_bind_spread): New params.
7746 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7747 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7748 omp_get_team_num, omp_is_initial_device): New interfaces.
7749 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7750 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7751 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7752 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7753 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7754 useless use omp_lib_kinds.
7755 * omp.h.in (omp_proc_bind_t): New typedef.
7756 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7757 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7758 omp_get_team_num, omp_is_initial_device): New prototypes.
7759 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7760 through to gomp_team_start.
7761 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7762 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7763 Adjust gomp_parallel_loop_start callers.
7764 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7765 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7766 GOMP_loop_end_cancel): New functions.
7767 (GOMP_parallel_end): Add ialias_redirect.
7768 * hashtab.h: New file.
7769 * libgomp.texi (Environment Variables): Minor cleanup,
7770 update section refs to OpenMP 4.0rc2.
7771 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7772 environment variables.
7773 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7774 team->work_shares_to_free to thr->ts.work_share before calling
7775 free_work_share.
7776 (gomp_work_share_end_cancel): New function.
7777 * config/linux/proc.c: Include errno.h.
7778 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7779 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7780 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7781 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7782 gomp_cpuset_size is sizeof (cpu_set_t).
7783 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7784 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7785 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7786 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7787 contain any logical CPUs.
7788 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7789 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7790 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7791 pthread_getaffinity_np. Check gomp_places_list instead of
7792 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7793 * config/linux/bar.c (gomp_barrier_wait_end,
7794 gomp_barrier_wait_last): Use BAR_* defines.
7795 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7796 from state where needed. Set work_share_cancelled to 0 on last
7797 thread.
7798 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7799 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7800 functions.
7801 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7802 Add cpusetsize argument.
7803 (gomp_cpuset_size, gomp_cpusetp): Declare.
7804 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7805 (affinity_counter): Remove.
7806 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7807 if CPU_ALLOC_SIZE isn't defined.
7808 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7809 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7810 bind current thread to the first place.
7811 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7812 pthread_setaffinity_np to gomp_places_list[place].
7813 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7814 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7815 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7816 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7817 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7818 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7819 (gomp_barrier_t): Add awaited_final field.
7820 (gomp_barrier_init): Initialize awaited_final field.
7821 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7822 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7823 prototypes.
7824 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7825 defines.
7826 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7827 gomp_team_barrier_cancelled): New inline functions.
7828 (gomp_barrier_last_thread,
7829 gomp_team_barrier_set_task_pending,
7830 gomp_team_barrier_clear_task_pending,
7831 gomp_team_barrier_set_waiting_for_tasks,
7832 gomp_team_barrier_waiting_for_tasks,
7833 gomp_team_barrier_done): Use BAR_* defines.
7834 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7835 (gomp_barrier_wait_end): Use BAR_* defines.
7836 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7837 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7838 Use BAR_* defines.
7839 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7840 gomp_team_barrier_cancel): New functions.
7841 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7842 argument.
7843 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7844 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7845 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7846 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7847 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7848 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7849 (gomp_barrier_t): Add cancellable field.
7850 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7851 gomp_team_barrier_cancel): New prototypes.
7852 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7853 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7854 gomp_team_barrier_cancelled): New inline functions.
7855 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7856 gomp_team_barrier_set_task_pending,
7857 gomp_team_barrier_clear_task_pending,
7858 gomp_team_barrier_set_waiting_for_tasks,
7859 gomp_team_barrier_waiting_for_tasks,
7860 gomp_team_barrier_done): Use BAR_* defines.
7861 * barrier.c (GOMP_barrier_cancel): New function.
7862 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7863 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7864 omp_proc_bind_spread): New params.
7865 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7866 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7867 omp_get_team_num, omp_is_initial_device): New externals.
7868 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7869 New functions.
7870 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7871 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7872 infinity. If not nested, just return minimum of max_num_threads
7873 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7874 to the returned value. Otherwise, don't update atomically
7875 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7876 (GOMP_parallel_end): Adjust for thread_limit now being in
7877 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7878 infinity. Adjust threads_busy in the pool rather than
7879 gomp_remaining_threads_count. Remember team->nthreads and call
7880 gomp_team_end before adjusting threads_busy, if not nested
7881 afterwards, just set it to 1 non-atomically. Add ialias.
7882 (GOMP_parallel_start): Adjust gomp_team_start caller.
7883 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7884 * testsuite/libgomp.c/affinity-1.c: New test.
7885 * testsuite/libgomp.c/atomic-15.c: New test.
7886 * testsuite/libgomp.c/atomic-16.c: New test.
7887 * testsuite/libgomp.c/atomic-17.c: New test.
7888 * testsuite/libgomp.c/cancel-for-1.c: New test.
7889 * testsuite/libgomp.c/cancel-for-2.c: New test.
7890 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7891 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7892 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7893 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7894 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7895 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7896 * testsuite/libgomp.c/depend-1.c: New test.
7897 * testsuite/libgomp.c/depend-2.c: New test.
7898 * testsuite/libgomp.c/depend-3.c: New test.
7899 * testsuite/libgomp.c/depend-4.c: New test.
7900 * testsuite/libgomp.c/for-1.c: New test.
7901 * testsuite/libgomp.c/for-1.h: New file.
7902 * testsuite/libgomp.c/for-2.c: New test.
7903 * testsuite/libgomp.c/for-2.h: New file.
7904 * testsuite/libgomp.c/for-3.c: New test.
7905 * testsuite/libgomp.c/pr58392.c: New test.
7906 * testsuite/libgomp.c/simd-1.c: New test.
7907 * testsuite/libgomp.c/simd-2.c: New test.
7908 * testsuite/libgomp.c/simd-3.c: New test.
7909 * testsuite/libgomp.c/simd-4.c: New test.
7910 * testsuite/libgomp.c/simd-5.c: New test.
7911 * testsuite/libgomp.c/simd-6.c: New test.
7912 * testsuite/libgomp.c/target-1.c: New test.
7913 * testsuite/libgomp.c/target-2.c: New test.
7914 * testsuite/libgomp.c/target-3.c: New test.
7915 * testsuite/libgomp.c/target-4.c: New test.
7916 * testsuite/libgomp.c/target-5.c: New test.
7917 * testsuite/libgomp.c/target-6.c: New test.
7918 * testsuite/libgomp.c/target-7.c: New test.
7919 * testsuite/libgomp.c/taskgroup-1.c: New test.
7920 * testsuite/libgomp.c/thread-limit-1.c: New test.
7921 * testsuite/libgomp.c/thread-limit-2.c: New test.
7922 * testsuite/libgomp.c/thread-limit-3.c: New test.
7923 * testsuite/libgomp.c/udr-1.c: New test.
7924 * testsuite/libgomp.c/udr-2.c: New test.
7925 * testsuite/libgomp.c/udr-3.c: New test.
7926 * testsuite/libgomp.c++/affinity-1.C: New test.
7927 * testsuite/libgomp.c++/atomic-10.C: New test.
7928 * testsuite/libgomp.c++/atomic-11.C: New test.
7929 * testsuite/libgomp.c++/atomic-12.C: New test.
7930 * testsuite/libgomp.c++/atomic-13.C: New test.
7931 * testsuite/libgomp.c++/atomic-14.C: New test.
7932 * testsuite/libgomp.c++/atomic-15.C: New test.
7933 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7934 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7935 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7936 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7937 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7938 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7939 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7940 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7941 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7942 * testsuite/libgomp.c++/cancel-test.h: New file.
7943 * testsuite/libgomp.c++/for-9.C: New test.
7944 * testsuite/libgomp.c++/for-10.C: New test.
7945 * testsuite/libgomp.c++/for-11.C: New test.
7946 * testsuite/libgomp.c++/simd-1.C: New test.
7947 * testsuite/libgomp.c++/simd-2.C: New test.
7948 * testsuite/libgomp.c++/simd-3.C: New test.
7949 * testsuite/libgomp.c++/simd-4.C: New test.
7950 * testsuite/libgomp.c++/simd-5.C: New test.
7951 * testsuite/libgomp.c++/simd-6.C: New test.
7952 * testsuite/libgomp.c++/simd-7.C: New test.
7953 * testsuite/libgomp.c++/simd-8.C: New test.
7954 * testsuite/libgomp.c++/target-1.C: New test.
7955 * testsuite/libgomp.c++/target-2.C: New test.
7956 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7957 * testsuite/libgomp.c++/target-3.C: New test.
7958 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7959 * testsuite/libgomp.c++/udr-1.C: New test.
7960 * testsuite/libgomp.c++/udr-2.C: New test.
7961 * testsuite/libgomp.c++/udr-3.C: New test.
7962 * testsuite/libgomp.c++/udr-4.C: New test.
7963 * testsuite/libgomp.c++/udr-5.C: New test.
7964 * testsuite/libgomp.c++/udr-6.C: New test.
7965 * testsuite/libgomp.c++/udr-7.C: New test.
7966 * testsuite/libgomp.c++/udr-8.C: New test.
7967 * testsuite/libgomp.c++/udr-9.C: New test.
7968
7969 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7970
7971 PR testsuite/57605
7972 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7973 ALWAYS_CFLAGS.
7974
7975 2013-09-20 Alan Modra <amodra@gmail.com>
7976
7977 * configure: Regenerate.
7978
7979 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7980
7981 * testsuite/libgomp.c/sections-2.c: New test.
7982
7983 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7984
7985 * testsuite/libgomp.fortran/strassen.f90:
7986 Add dg-skip-if aarch64_tiny.
7987
7988 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7989 Cesar Philippidis <cesar@codesourcery.com>
7990
7991 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7992 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7993 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7994 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7995 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7996 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7997 Use dg-runtest rather than gfortran-dg-runtest.
7998
7999 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8000
8001 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8002 Linux-based x86 systems to cover all GNU systems.
8003 * testsuite/libgomp.c/lock-3.c: Likewise.
8004 * testsuite/libgomp.c/pr48591.c: Likewise.
8005
8006 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8007
8008 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8009 GNU/Hurd, as done for Linux-based systems.
8010
8011 * config/posix/ptrlock.h: Fix comment.
8012
8013 2013-05-27 Tobias Burnus <burnus@net-b.de>
8014
8015 PR fortran/57423
8016 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8017 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8018 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8019 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8020 omp_destroy_nest_lock): Correct arguments to match the one in
8021 the OpenMP spec.
8022 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8023 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8024 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8025 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8026
8027 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8028
8029 * testsuite/libgomp.c/loop-13.c: New test.
8030 * testsuite/libgomp.c/loop-14.c: New test.
8031 * testsuite/libgomp.c/loop-15.c: New test.
8032 * testsuite/libgomp.c++/loop-13.C: New test.
8033 * testsuite/libgomp.c++/loop-14.C: New test.
8034 * testsuite/libgomp.c++/loop-15.C: New test.
8035
8036 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8037
8038 PR middle-end/56217
8039 * testsuite/libgomp.c++/pr56217.C: New test.
8040
8041 2013-02-01 Alan Modra <amodra@gmail.com>
8042
8043 * task.c (GOMP_task, GOMP_taskwait): Comment.
8044
8045 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8046 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8047
8048 PR libgomp/55561
8049 * config/linux/wait.h (do_spin): Use atomic load for addr.
8050 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8051 for intptr and ptrlock.
8052 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8053 for ptrlock.
8054
8055 2013-01-22 Alan Modra <amodra@gmail.com>
8056
8057 PR libgomp/51376
8058 PR libgomp/56073
8059 * task.c (GOMP_task): Revert 2011-12-09 change.
8060 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8061 barrier to read task->children..
8062 (gomp_barrier_handle_tasks): ..and matching atomic store with
8063 release barrier here when setting parent->children to NULL.
8064
8065 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8066 Tobias Burnus <burnus@net-b.de>
8067
8068 PR driver/55884
8069 * testsuite/libgomp.fortran/fortran.exp: Use
8070 -fintrinsic-modules-path= instead of
8071 -fintrinsic-modules-path.
8072
8073 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8074
8075 Update copyright years.
8076
8077 2012-12-19 Tobias Burnus <burnus@net-b.de>
8078
8079 * testsuite/libgomp.fortran/fortran.exp: Set
8080 -fintrinsic-modules-path.
8081
8082 2012-12-19 Tobias Burnus <burnus@net-b.de>
8083
8084 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8085 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8086
8087 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8088
8089 PR libgomp/55411
8090 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8091 if pool had any threads_used.
8092
8093 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8094
8095 * testsuite/libgomp.c++/pr24455.C: Use
8096 -Wl,-undefined,dynamic_lookup on darwin.
8097
8098 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8099
8100 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8101
8102 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8103
8104 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8105
8106 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8107 Jim MacArthur <jim.macarthur@arm.com>
8108 Marcus Shawcroft <marcus.shawcroft@arm.com>
8109 Nigel Stephens <nigel.stephens@arm.com>
8110 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8111 Richard Earnshaw <rearnsha@arm.com>
8112 Sofiane Naci <sofiane.naci@arm.com>
8113 Stephen Thomas <stephen.thomas@arm.com>
8114 Tejas Belagod <tejas.belagod@arm.com>
8115 Yufeng Zhang <yufeng.zhang@arm.com>
8116
8117 * configure.tgt: Add AArch64.
8118
8119 2012-10-04 Jason Merrill <jason@redhat.com>
8120
8121 * testsuite/libgomp.c++/tls-init1.C: New.
8122
8123 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8124
8125 * configure: Regenerated.
8126
8127 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8128
8129 * config/linux/mips/futex.h (sys_futex0): Change to static
8130 function with noinline, nomips16 attributes under MIPS16. Adjust
8131 asm statement to place 'li v0,SYS_futex' immediately before
8132 syscall insn.
8133
8134 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8135
8136 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8137 conflict with index.html on case-insensitive file systems.
8138
8139 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8140
8141 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8142 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8143
8144 2012-07-02 Richard Guenther <rguenther@suse.de>
8145 Michael Matz <matz@suse.de>
8146 Tobias Grosser <tobias@grosser.es>
8147 Sebastian Pop <sebpop@gmail.com>
8148
8149 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8150 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8151 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8152 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8153
8154 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8155
8156 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8157
8158 2012-06-22 Richard Guenther <rguenther@suse.de>
8159
8160 Merge from graphite branch
8161 2012-01-13 Tobias Grosser <tobias@grosser.es>
8162
8163 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8164 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8165
8166 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8167
8168 PR middle-end/53580
8169 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8170 use GOMP_barrier () call instead.
8171 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8172 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8173 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8174 call GOMP_barrier instead.
8175 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8176
8177 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8178
8179 PR libgomp/52993
8180 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8181 argument to memset call.
8182
8183 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8184
8185 * configure: Regenerated.
8186
8187 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8188
8189 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8190
8191 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8192
8193 PR bootstrap/52812
8194 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8195
8196 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8197
8198 PR middle-end/52547
8199 * testsuite/libgomp.c/pr52547.c: New test.
8200
8201 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8202
8203 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8204
8205 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8206
8207 * configure.tgt (mips-sgi-irix6*): Remove.
8208
8209 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8210
8211 * configure.tgt (alpha*-dec-osf*): Remove.
8212
8213 * config/osf/sem.h: Remove.
8214 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8215
8216 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8217
8218 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8219
8220 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8221
8222 PR libstdc++/52188
8223 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8224 Remove ENABLE_SYMVERS_SOL2.
8225 * configure: Regenerate.
8226 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8227 (PREPROCESS): New variable.
8228 (libgomp.ver): New target.
8229 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8230 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8231 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8232 Use libgomp.ver.
8233 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8234 * Makefile.in: Regenerate.
8235
8236 2012-02-14 Walter Lee <walt@tilera.com>
8237
8238 * configure.tgt: Handle tilegx and tilepro.
8239 * config/linux/tile/futex.h: New file.
8240
8241 2012-02-08 Richard Guenther <rguenther@suse.de>
8242
8243 PR tree-optimization/46886
8244 * testsuite/libgomp.c/pr46886.c: New testcase.
8245
8246 2012-01-25 Matthias Klose <doko@ubuntu.com>
8247
8248 * config/linux/arm: Remove empty directory.
8249 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8250
8251 2011-12-09 Alan Modra <amodra@gmail.com>
8252
8253 PR libgomp/51376
8254 * task.c (GOMP_taskwait): Don't access task->children outside of
8255 task_lock mutex region.
8256 (GOMP_task): Likewise.
8257
8258 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8259
8260 PR libgomp/51132
8261 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8262 to file scope.
8263 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8264 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8265 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8266 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8267 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8268
8269 2011-12-02 Alan Modra <amodra@gmail.com>
8270
8271 * config/linux/affinity.c: Use atomic rather than sync builtin.
8272 * config/linux/lock.c: Likewise.
8273 * config/linux/ptrlock.h: Likewise.
8274 * config/linux/ptrlock.c: Likewise.
8275 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8276 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8277 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8278 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8279 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8280 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8281 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8282 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8283 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8284 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8285
8286 2011-11-30 Alan Modra <amodra@gmail.com>
8287
8288 PR libgomp/51298
8289 * config/linux/bar.h: Use atomic rather than sync builtins.
8290 * config/linux/bar.c: Likewise. Add missing acquire
8291 synchronisation on generation field.
8292 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8293 double unlock.
8294
8295 2011-11-30 Alan Modra <amodra@gmail.com>
8296
8297 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8298 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8299 * config/linux/mutex.h: Use atomic rather than sync builtins.
8300 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8301 * config/linux/omp-lock.h: Comment fix.
8302 * config/linux/arm/mutex.h: Delete.
8303 * config/linux/powerpc/mutex.h: Delete.
8304 * config/linux/ia64/mutex.h: Delete.
8305 * config/linux/mips/mutex.h: Delete.
8306
8307 2011-11-30 Alan Modra <amodra@gmail.com>
8308
8309 PR libgomp/51249
8310 * config/linux/sem.h: Rewrite.
8311 * config/linux/sem.c: Rewrite.
8312
8313 2011-11-28 Richard Henderson <rth@redhat.com>
8314
8315 * libgomp.h (enum memmodel): New.
8316
8317 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8318
8319 * configure: Regenerate.
8320
8321 2011-10-10 Matthias Klose <doko@ubuntu.com>
8322
8323 * config/posix95: Remove empty directory.
8324
8325 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8326
8327 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8328
8329 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8330
8331 PR fortran/49792
8332 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8333 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8334
8335 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8336
8337 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8338
8339 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8340
8341 PR libgomp/49965
8342 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8343
8344 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8345
8346 * config/linux/proc.h: New.
8347 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8348 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8349 (gomp_init_num_threads): Update call to cpuset_popcount.
8350 (get_num_procs): Ditto.
8351 * config/linux/affinity.c (gomp_init_affinity): Call
8352 gomp_cpuset_popcount.
8353
8354 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8355
8356 PR fortran/42041
8357 PR fortran/46752
8358 * omp.h.in (omp_in_final): New prototype.
8359 * omp_lib.f90.in (omp_in_final): New interface.
8360 (omp_integer_kind, omp_logical_kind): Remove
8361 and replace all its uses in the module with 4.
8362 (openmp_version): Change to 201107.
8363 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8364 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8365 kind for the parameters.
8366 (omp_in_final): New external.
8367 (openmp_version): Change to 201107.
8368 * task.c (omp_in_final): New function.
8369 (gomp_init_task): Initialize final_task.
8370 (GOMP_task): Remove unused attribute from flags. Handle final
8371 tasks.
8372 (GOMP_taskyield): New function.
8373 (omp_in_final): Return true if if (false) or final (true) task
8374 or descendant of final (true).
8375 * fortran.c (omp_in_final_): New function.
8376 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8377 (GOMP_3.0): Export GOMP_taskyield.
8378 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8379 variables.
8380 (parse_unsigned_long_list): New function.
8381 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8382 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8383 even if parse_affinity returned false.
8384 * config/linux/affinity.c (gomp_init_affinity): Handle
8385 gomp_cpu_affinity_len == 0.
8386 * libgomp_g.h (GOMP_taskyield): New prototype.
8387 * libgomp.h (struct gomp_task): Add final_task field.
8388 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8389 * team.c (gomp_team_start): Override new task's nthreads_var icv
8390 if list form OMP_NUM_THREADS has been used and it has value for
8391 the new nesting level.
8392
8393 * testsuite/libgomp.c/atomic-11.c: New test.
8394 * testsuite/libgomp.c/atomic-12.c: New test.
8395 * testsuite/libgomp.c/atomic-13.c: New test.
8396 * testsuite/libgomp.c/atomic-14.c: New test.
8397 * testsuite/libgomp.c/reduction-6.c: New test.
8398 * testsuite/libgomp.c/task-5.c: New test.
8399 * testsuite/libgomp.c++/atomic-2.C: New test.
8400 * testsuite/libgomp.c++/atomic-3.C: New test.
8401 * testsuite/libgomp.c++/atomic-4.C: New test.
8402 * testsuite/libgomp.c++/atomic-5.C: New test.
8403 * testsuite/libgomp.c++/atomic-6.C: New test.
8404 * testsuite/libgomp.c++/atomic-7.C: New test.
8405 * testsuite/libgomp.c++/atomic-8.C: New test.
8406 * testsuite/libgomp.c++/atomic-9.C: New test.
8407 * testsuite/libgomp.c++/task-8.C: New test.
8408 * testsuite/libgomp.c++/reduction-4.C: New test.
8409 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8410 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8411 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8412 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8413 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8414 * testsuite/libgomp.fortran/pointer1.f90: New test.
8415 * testsuite/libgomp.fortran/pointer2.f90: New test.
8416 * testsuite/libgomp.fortran/task4.f90: New test.
8417
8418 2011-08-02 Tobias Burnus <burnus@net-b.de>
8419
8420 * libgomp.texi: Update OpenMP spec references to 3.1.
8421 (omp_in_final,OMP_PROC_BIND): New sections.
8422 (OMP_NUM_THREADS): Document that the value can be now a list.
8423 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8424
8425 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8426
8427 * config/linux/x86/futex.h: Check __x86_64__ instead of
8428 __LP64__.
8429
8430 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8431
8432 PR middle-end/49897
8433 PR middle-end/49898
8434 * testsuite/libgomp.c/pr49897-1.c: New test.
8435 * testsuite/libgomp.c/pr49897-2.c: New test.
8436 * testsuite/libgomp.c/pr49898-1.c: New test.
8437 * testsuite/libgomp.c/pr49898-2.c: New test.
8438
8439 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8440
8441 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8442 for ia32 instead of ilp32.
8443
8444 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8445 * testsuite/libgomp.c/atomic-6.c: Likewise.
8446
8447 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8448
8449 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8450 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8451
8452 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8453
8454 PR libgomp/45351
8455 * config/osf/sem.h: New file.
8456 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8457
8458 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8459
8460 PR target/49541
8461 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8462 ldflags.
8463
8464 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8465
8466 * config/linux/wait.h (do_spin): New inline, largely copied
8467 from do_wait, just don't do futex_wait here, instead return true if
8468 it should be done.
8469 (do_wait): Implement using do_spin.
8470 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8471 to prototype.
8472 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8473 __sync_bool_compare_and_swap, pass the oldval to
8474 gomp_mutex_lock_slow.
8475 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8476 If all mutex contenders are just spinning and not sleeping, don't
8477 change state to 2 unnecessarily. Optimize the loop when state has
8478 already become 2 to use just one atomic operation per loop instead
8479 of two.
8480 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8481 to prototype.
8482 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8483 __sync_bool_compare_and_swap, pass the oldval to
8484 gomp_mutex_lock_slow.
8485
8486 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8487
8488 PR libgomp/49490
8489 * iter.c (gomp_iter_static_next): For chunk size 0
8490 only use n ceil/ nthreads size for the first
8491 n % nthreads threads in the team instead of
8492 all threads except for the last few ones which
8493 get less work or none at all.
8494 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8495 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8496 chunk argument, set run_sched_modifier to 0 for static
8497 resp. 1 for other kinds. If chunk argument is 0
8498 and not static, set value to 1.
8499
8500 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8501
8502 PR c++/49043
8503 * testsuite/libgomp.c++/pr49043.C: New test.
8504
8505 PR c++/48869
8506 * testsuite/libgomp.c++/pr48869.C: New test.
8507
8508 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8509
8510 PR fortran/48894
8511 * fortran.c: Include limits.h.
8512 (TO_INT): Define.
8513 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8514 *set.
8515 (omp_set_num_threads_8_, omp_set_schedule_8_,
8516 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8517 omp_get_team_size_8_): Use TO_INT macro.
8518 * testsuite/libgomp.fortran/pr48894.f90: New test.
8519
8520 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8521
8522 PR middle-end/48591
8523 * testsuite/libgomp.c/pr48591.c: New test.
8524
8525 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8526
8527 PR bootstrap/48135
8528 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8529 * configure: Regenerate.
8530
8531 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8532
8533 PR fortran/47886
8534 * testsuite/libgomp.fortran/task3.f90: New test.
8535
8536 2011-02-24 Tobias Burnus <burnus@net-b.de>
8537
8538 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8539
8540 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8541
8542 PR libgomp/47854
8543 * libgomp.texi (omp_get_wtime): Don't say time in the past
8544 must be Unix Epoch.
8545
8546 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8547
8548 PR libgomp/47804
8549 * testsuite/libgomp.fortran/fortran.exp: Check for both
8550 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8551 but $blddir != "", still append ${blddir}/${lang_library_path}
8552 to ld_library_path.
8553
8554 2011-02-16 Tobias Burnus <burnus@net-b.de>
8555
8556 PR libgomp/47758
8557 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8558 of libquadmath.a before adding its libpath to ldflags.
8559
8560 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8561
8562 PR libgomp/47731
8563 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8564 to FUTEX_WAIT futex syscall.
8565 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8566
8567 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8568
8569 * configure: Regenerate.
8570
8571 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8572
8573 PR libstdc++/36104
8574 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8575
8576 2011-01-16 Gerald Pfeifer
8577
8578 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8579
8580 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8581
8582 PR fortran/46874
8583 * libgomp.fortran/allocatable6.f90: New test.
8584
8585 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8586
8587 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8588 * configure: Regenerate.
8589
8590 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8591
8592 PR target/40125
8593 PR lto/46695
8594 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8595 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8596 * aclocal.m4: Regenerate.
8597 * configure: Regenerate.
8598 * Makefile.in: Regenerate.
8599 * testsuite/Makefile.in: Regenerate.
8600
8601 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8602
8603 PR fortran/46753
8604 * libgomp.fortran/pr46753.f90: New test.
8605
8606 PR libgomp/43706
8607 * env.c (initialize_env): Default to spin count 300000
8608 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8609 is specified.
8610
8611 PR libgomp/45240
8612 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8613 at the end if sync builtins aren't supported.
8614
8615 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8616
8617 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8618
8619 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8620
8621 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8622
8623 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8624
8625 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8626
8627 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8628 Tobias Burnus <burnus@net-b.de>
8629
8630 PR fortran/32049
8631 * configure.ac:
8632 * configure: Regenerate.
8633
8634 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8635
8636 * config/linux/futex.h: New.
8637 * config/linux/arm/mutex.h: New.
8638 * configure.tgt (arm*-*-linux*): Add config path.
8639
8640 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8641
8642 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8643
8644 2010-09-23 Tobias Burnus <burnus@net-b.de>
8645
8646 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8647 Change Fortran datatype to LOGICAL.
8648 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8649 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8650
8651 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8652
8653 * configure: Regenerate.
8654
8655 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8656
8657 * libgomp.texi: Add function keyword to a couple of Fortran
8658 interfaces, use integer instead of int for Fortran.
8659
8660 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8661
8662 * libgomp.texi: Fix spelling and pasto problems throughout.
8663 Adjust prototypes to match code.
8664
8665 2010-07-24 Tobias Burnus <burnus@net-b.de>
8666
8667 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8668 silence -fwhole-file warning.
8669
8670 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8671
8672 * configure.tgt (*-*-solaris2.[56]*): Removed.
8673
8674 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8675
8676 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8677 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8678 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8679 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8680 targetting solaris2*.
8681 * configure: Regenerate.
8682 * config.h.in: Regenerate.
8683
8684 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8685 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8686 Add libgomp_version_dep.
8687 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8688 versioning.
8689 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8690 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8691 * Makefile.in: Regenerate.
8692
8693 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8694 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8695 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8696 to common block, protected by
8697 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8698
8699 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8700
8701 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8702
8703 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8704
8705 PR bootstrap/43170
8706 * configure: Regenerate.
8707
8708 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8709
8710 PR other/43620
8711 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8712 * configure: Regenerate.
8713 * Makefile.in: Regenerate.
8714 * testsuite/Makefile.in: Regenerate.
8715
8716 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8717
8718 PR c/43893
8719 * testsuite/libgomp.c/pr43893.c: New test.
8720 * testsuite/libgomp.c++/pr43893.C: New test.
8721
8722 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8723
8724 PR middle-end/43570
8725 * testsuite/libgomp.fortran/vla8.f90: New test.
8726
8727 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8728
8729 PR libgomp/43706
8730 * config/linux/affinity.c (gomp_init_affinity): Decrease
8731 gomp_available_cpus if affinity mask confines the process to fewer
8732 CPUs.
8733 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8734 non-NULL, just return gomp_available_cpus.
8735
8736 PR libgomp/43569
8737 * sections.c (gomp_sections_init): Initialize ws->mode.
8738
8739 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8740
8741 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8742 not unused bar variable.
8743 * configure: Regenerate.
8744
8745 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8746
8747 * Makefile.in: Regenerate.
8748 * aclocal.m4: Regenerate.
8749 * testsuite/Makefile.in: Regenerate.
8750
8751 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8752
8753 PR libgomp/42942
8754 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8755 (initialize_env): Adjust callers.
8756 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8757 when the argument is 0.
8758
8759 * testsuite/libgomp.c/pr42942.c: New test.
8760
8761 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8762
8763 PR middle-end/42644
8764 PR middle-end/42130
8765 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8766 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8767
8768 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8769
8770 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8771 * testsuite/libgomp.c++/task-6.C: Likewise.
8772
8773 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8774
8775 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8776
8777 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8778
8779 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8780 * configure: Regenerate.
8781
8782 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8783
8784 PR fortran/42866
8785 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8786
8787 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8788
8789 * configure.ac: Test for executability of GFORTRAN.
8790 * configure: Regenerate.
8791
8792 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8793
8794 * configure: Regenerate.
8795
8796 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8797
8798 PR libgomp/42602
8799 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8800
8801 2010-01-03 Richard Guenther <rguenther@suse.de>
8802
8803 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8804
8805 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8806
8807 * testsuite/libgomp.graphite/pr4118.c: New.
8808
8809 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8810
8811 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8812 for darwin, protect the test with require-effective-target tls_runtime.
8813 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8814
8815 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8816
8817 PR target/41605
8818 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8819 link spec %s substitutions for static libraries.
8820
8821 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8822
8823 PR testsuite/42135
8824 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8825
8826 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8827
8828 * Makefile.in: Regenerate.
8829 * configure: Regenerate.
8830 * testsuite/Makefile.in: Regenerate.
8831
8832 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8833
8834 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8835 settings for LC_ALL and LANG.
8836
8837 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8838
8839 PR fortran/42162
8840 * testsuite/libgomp.fortran/pr42162.f90: New test.
8841
8842 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8843
8844 PR middle-end/42029
8845 * testsuite/libgomp.c/pr42029.c: New test.
8846
8847 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8848
8849 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8850 *s. Accept ld version without text in ()s.
8851 * configure: Regenerated.
8852
8853 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8854
8855 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8856
8857 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8858
8859 PR libgomp/41418
8860 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8861 or a hyphen (happens with fortran language disabled).
8862 * configure: Regenerate.
8863
8864 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8865
8866 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8867 use sed script portable to Solaris /bin/sed for extracting ld
8868 version.
8869 * configure: Regenerate.
8870
8871 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8872
8873 * testsuite/libgomp.graphite/bounds.c: New test.
8874
8875 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8876
8877 * Makefile.am (libgomp_la_LINK): New.
8878 * Makefile.in: Regenerate.
8879
8880 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8881
8882 * configure.ac (AC_PREREQ): Bump to 2.64.
8883
8884 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8885
8886 * Makefile.am (install-html, install-pdf): Remove.
8887 * Makefile.in: Regenerate.
8888
8889 * Makefile.in: Regenerate.
8890 * aclocal.m4: Regenerate.
8891 * config.h.in: Regenerate.
8892 * configure: Regenerate.
8893 * testsuite/Makefile.in: Regenerate.
8894
8895 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8896
8897 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8898 * Makefile.in: Regenerate.
8899
8900 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8901
8902 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8903 * Makefile.in: Regenerate.
8904
8905 2009-08-19 Tobias Burnus <burnus@net-b.de>
8906
8907 PR fortran/41102
8908 omp_lib.h.in: Fix -std=f95 errors.
8909
8910 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8911
8912 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8913 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8914 * testsuite/libgomp.graphite/graphite.exp: New.
8915
8916 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8917
8918 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8919 only build.
8920
8921 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8922
8923 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8924 needed memory barrier semantics.
8925 * config/linux/mips/mutex.h: New file.
8926
8927 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8928
8929 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8930
8931 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8932
8933 * configure: Regenerate.
8934
8935 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8936
8937 PR testsuite/40699
8938 PR testsuite/40707
8939 PR testsuite/40709
8940 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8941 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8942 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8943
8944 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8945
8946 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8947 options when choosing a multilib.
8948
8949 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8950
8951 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8952 ld_library_path. Use add_path. Add just find_libgcc_s to
8953 ld_library_path, not every libgcc multilib directory.
8954 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8955 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8956 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8957 Use add_path.
8958 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8959
8960 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8961
8962 * Makefile.am (LTLDFLAGS): Define.
8963 (LINK): Define.
8964 * Makefile.in: Regenerate.
8965
8966 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8967
8968 PR fortran/39718
8969 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8970 libgfortranbegin, check existence of libgfortran.a instead of
8971 libgfortranbegin.a.
8972
8973 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8974
8975 PR libgomp/40174
8976 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8977 (gomp_free_pool_helper): Likewise.
8978
8979 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8980 Jakub Jelinek <jakub@redhat.com>
8981
8982 PR fortran/35423
8983 * testsuite/libgomp.fortran/workshare2.f90: New test.
8984
8985 2009-04-09 Nick Clifton <nickc@redhat.com>
8986
8987 * iter.c: Change copyright header to refer to version 3 of the
8988 GNU General Public License with version 3.1 of the GCC Runtime
8989 Library Exception and to point readers at the COPYING3 and
8990 COPYING3.RUNTIME files and the FSF's license web page.
8991 * alloc.c: Likewise.
8992 * barrier.c: Likewise.
8993 * config/bsd/proc.c: Likewise.
8994 * config/linux/affinity.c: Likewise.
8995 * config/linux/alpha/futex.h: Likewise.
8996 * config/linux/bar.c: Likewise.
8997 * config/linux/bar.h: Likewise.
8998 * config/linux/ia64/futex.h: Likewise.
8999 * config/linux/ia64/mutex.h: Likewise.
9000 * config/linux/lock.c: Likewise.
9001 * config/linux/mips/futex.h: Likewise.
9002 * config/linux/mutex.c: Likewise.
9003 * config/linux/mutex.h: Likewise.
9004 * config/linux/powerpc/futex.h: Likewise.
9005 * config/linux/proc.c: Likewise.
9006 * config/linux/ptrlock.c: Likewise.
9007 * config/linux/ptrlock.h: Likewise.
9008 * config/linux/s390/futex.h: Likewise.
9009 * config/linux/sem.c: Likewise.
9010 * config/linux/sem.h: Likewise.
9011 * config/linux/sparc/futex.h: Likewise.
9012 * config/linux/wait.h: Likewise.
9013 * config/linux/x86/futex.h: Likewise.
9014 * config/mingw32/proc.c: Likewise.
9015 * config/mingw32/time.c: Likewise.
9016 * config/posix/affinity.c: Likewise.
9017 * config/posix/bar.c: Likewise.
9018 * config/posix/bar.h: Likewise.
9019 * config/posix/lock.c: Likewise.
9020 * config/posix/mutex.h: Likewise.
9021 * config/posix/proc.c: Likewise.
9022 * config/posix/ptrlock.h: Likewise.
9023 * config/posix/sem.c: Likewise.
9024 * config/posix/sem.h: Likewise.
9025 * config/posix/time.c: Likewise.
9026 * config/posix95/lock.c: Likewise.
9027 * critical.c: Likewise.
9028 * env.c: Likewise.
9029 * error.c: Likewise.
9030 * fortran.c: Likewise.
9031 * iter_ull.c: Likewise.
9032 * libgomp.h: Likewise.
9033 * libgomp_f.h.in: Likewise.
9034 * libgomp_g.h: Likewise.
9035 * loop.c: Likewise.
9036 * loop_ull.c: Likewise.
9037 * omp.h.in: Likewise.
9038 * omp_lib.f90.in: Likewise.
9039 * omp_lib.h.in: Likewise.
9040 * ordered.c: Likewise.
9041 * parallel.c: Likewise.
9042 * sections.c: Likewise.
9043 * single.c: Likewise.
9044 * task.c: Likewise.
9045 * team.c: Likewise.
9046 * work.c: Likewise.
9047
9048 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9049
9050 * testsuite/config/default.exp: Change copyright header to refer to
9051 version 3 of the GNU General Public License and to point readers
9052 at the COPYING3 file and the FSF's license web page.
9053
9054 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9055
9056 PR middle-end/39573
9057 * libgomp.c++/pr39573.C: New test.
9058
9059 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9060
9061 PR other/39591
9062 * testsuite/libgomp.c/pr39591-1.c: New test.
9063 * testsuite/libgomp.c/pr39591-2.c: New test.
9064 * testsuite/libgomp.c/pr39591-3.c: New test.
9065
9066 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9067
9068 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9069 * testsuite/libgomp.c/atomic-6.c: Ditto.
9070
9071 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9072
9073 PR c/39495
9074 * testsuite/libgomp.c/loop-12.c: New test.
9075 * testsuite/libgomp.c/loop-11.c: New test.
9076 * testsuite/libgomp.c++/loop-11.C: New test.
9077 * testsuite/libgomp.c++/loop-12.C: New test.
9078 * testsuite/libgomp.c++/for-8.C: New test.
9079
9080 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9081
9082 * configure: Regenerate.
9083
9084 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9085
9086 PR middle-end/39154
9087 * testsuite/libgomp.c/pr39154.c: New test.
9088
9089 2009-01-30 Ian Lance Taylor <iant@google.com>
9090
9091 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9092 libgomp_ld_is_gold. Get gold version number.
9093 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9094 * configure: Rebuild.
9095
9096 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9097
9098 * testsuite/lib/libgomp.exp: Add -B option for targets that
9099 use libgfortran.a%s in their specs.
9100
9101 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9102
9103 PR libgomp/38086
9104 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9105 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9106 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9107 * configure: Regenerated.
9108 * config.h.in: Likewise.
9109
9110 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9111
9112 PR c++/38650
9113 * testsuite/libgomp.c/pr38650.c: New test.
9114 * testsuite/libgomp.c++/pr38650.C: New test.
9115
9116 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9117
9118 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9119
9120 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9121
9122 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9123
9124 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9125
9126 * configure: Regenerate.
9127
9128 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9129
9130 PR middle-end/36802
9131 * testsuite/libgomp.c/pr36802-1.c: New test.
9132 * testsuite/libgomp.c/pr36802-2.c: New test.
9133 * testsuite/libgomp.c/pr36802-3.c: New test.
9134
9135 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9136
9137 PR libgomp/38270
9138 * config/linux/powerpc/mutex.h: New.
9139
9140 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9141
9142 PR c++/38257
9143 * testsuite/libgomp.c++/for-7.C: New test.
9144
9145 PR c++/38348
9146 * testsuite/libgomp.c++/for-6.C: New test.
9147
9148 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9149
9150 PR testsuite/28870
9151 * testsuite/lib/libgomp.exp: Include new timeout library files.
9152 (libgomp_target_compile): Set timeout value from new proc.
9153
9154 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9155
9156 PR libgomp/37938
9157 * config/linux/ia64/mutex.h: New.
9158
9159 2008-11-04 Tobias Burnus <burnus@net-b.de>
9160
9161 PR libgomp/37935
9162 * libgomp.texi (Runtime library routines, environment variables):
9163 Update for OpenMP version 3.0.
9164
9165 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9166 Steve Ellcey <sje@cup.hp.com>
9167
9168 * configure: Regenerate for new libtool.
9169 * Makefile.in: Ditto.
9170 * testsuite/Makefile.in: Ditto.
9171
9172 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9173 Andreas Tobler <a.tobler@schweiz.org>
9174
9175 * config/bsd/proc.c: New file.
9176 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9177 * configure.ac: Check for header <sys/sysctl.h>
9178 * configure: Regenerate.
9179 * config.h.in: Likewise.
9180
9181 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9182
9183 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9184
9185 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9186
9187 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9188 * Makefile.in: Regenerated.
9189 * testsuite/Makefile.in: Regenerated.
9190
9191 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9192
9193 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9194 depend on blddir if blddir exists.
9195 (libgomp_target_compile): Likewise.
9196 * testsuite/libgomp.c++/c++.exp: Likewise.
9197 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9198
9199 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9200
9201 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9202 Do not list GPL as Invariant Section.
9203
9204 2008-07-28 Ilie Garbacea <ilie@mips.com>
9205 Chao-ying Fu <fu@mips.com>
9206
9207 * configure.tgt: Enable futex for MIPS.
9208 * config/linux/mips/futex.h: New file.
9209
9210 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9211
9212 * team.c (gomp_team_end): Free team immediately if it has
9213 just one thread.
9214
9215 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9216
9217 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9218 * testsuite/libgomp.fortran/fortran.exp: Same.
9219 * testsuite/libgomp.c/c.exp: Same.
9220 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9221 directory to library path first.
9222
9223 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9224
9225 * env.c (parse_stacksize): Add cast to avoid warning.
9226 (parse_spincount): Likewise.
9227
9228 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9229
9230 * testsuite/libgomp.c/loop-10.c: New test.
9231 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9232 * libgomp.c++/loop-6.C (main): Likewise.
9233
9234 PR debug/36617
9235 * testsuite/libgomp.c/debug-1.c: New test.
9236
9237 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9238
9239 * testsuite/libgomp.c/nqueens-1.c: New test.
9240
9241 PR c++/36523
9242 * testsuite/libgomp.c++/task-7.C: New function.
9243
9244 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9245
9246 * configure: Regenerate.
9247
9248 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9249
9250 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9251 mutex when HAVE_SYNC_BUILTINS isn't defined.
9252
9253 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9254
9255 * libgomp.texi (omp_test_lock): Fix typo.
9256
9257 2008-06-12 Tobias Burnus <burnus@net-b.de>
9258
9259 * omp_lib.f90.in: Add "implicit none".
9260
9261 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9262
9263 PR middle-end/36506
9264 * testsuite/libgomp.c/reduction-5.c: New test.
9265
9266 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9267
9268 * libgomp.h (struct gomp_task): Add in_tied_task field.
9269 * task.c (gomp_init_task): Initialize it.
9270 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9271 unconditionally. Don't call gomp_team_barrier_wake if
9272 current task is implicit or if(0) from implicit and number of
9273 running tasks is equal to nthreads - 1.
9274
9275 PR libgomp/36471
9276 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9277 omp_get_team_size_8): Fix pastos.
9278
9279 PR libgomp/36469
9280 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9281 * configure: Regenerated.
9282 * config.h.in: Regenerated.
9283 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9284 defined.
9285
9286 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9287
9288 PR bootstrap/36452
9289 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9290 (GOMP_loop_ull_dynamic_start): Likewise.
9291 (GOMP_loop_ull_guided_start): Likewise.
9292 (GOMP_loop_ull_ordered_static_start): Likewise.
9293 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9294 (GOMP_loop_ull_ordered_guided_start): Likewise.
9295
9296 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9297 Richard Henderson <rth@redhat.com>
9298 Ulrich Drepper <drepper@redhat.com>
9299 Jakob Blomer <jakob.blomer@ira.uka.de>
9300
9301 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9302 Substitute also OMP_*LOCK_25*.
9303 * configure: Regenerated.
9304 * config.h.in: Regenerated.
9305 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9306 ptrlock.c and task.c.
9307 * Makefile.in: Regenerated.
9308 * testsuite/Makefile.in: Regenerated.
9309 * task.c: New file.
9310 * loop_ull.c: New file.
9311 * iter_ull.c: New file.
9312 * libgomp.h: Include ptrlock.h.
9313 (enum gomp_task_kind): New type.
9314 (struct gomp_team): Add task_lock, task_queue, task_count,
9315 task_running_count, single_count fields. Add
9316 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9317 Remove work_share_lock, generation_mask,
9318 oldest_live_gen, num_live_gen and init_work_shares fields, add
9319 work work_share_list_alloc, work_share_list_free and work_share_chunk
9320 fields. Change work_shares from pointer to pointers into an array.
9321 Change ordered_release field into gomp_sem_t ** from flexible array
9322 member. Add implicit_task and initial_work_shares fields.
9323 Move close to the end of the struct.
9324 (struct gomp_team_state): Add single_count, last_work_share,
9325 active_level and level fields, remove work_share_generation.
9326 (gomp_barrier_handle_tasks): New prototype.
9327 (gomp_finish_task): New inline function.
9328 (struct gomp_work_share): Move chunk_size, end, incr into
9329 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9330 next_ll fields. Reshuffle fields. Add next_alloc,
9331 next_ws, next_free and inline_ordered_team_ids fields, change
9332 ordered_team_ids into pointer from flexible array member.
9333 Add mode field. Put lock and next into a different cache line
9334 from most of the write-once fields.
9335 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9336 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9337 gomp_iter_ull_guided_next): New prototypes.
9338 (gomp_new_icv): New prototype.
9339 (struct gomp_thread): Add thread_pool and task fields.
9340 (struct gomp_thread_pool): New type.
9341 (gomp_new_team): New prototype.
9342 (gomp_team_start): Change type of last argument.
9343 (gomp_new_work_share): Removed.
9344 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9345 (gomp_work_share_init_done): New static inline.
9346 (gomp_throttled_spin_count_var, gomp_available_cpus,
9347 gomp_managed_threads): New extern decls.
9348 (gomp_init_task): New prototype.
9349 (gomp_spin_count_var): New extern var decl.
9350 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9351 or no alias support, or if not PIC.
9352 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9353 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9354 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9355 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9356 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9357 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9358 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9359 gomp_test_nest_lock_25): New prototypes.
9360 (omp_lock_symver, strong_alias): Define.
9361 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9362 decls.
9363 (gomp_end_task): New.
9364 (struct gomp_task_icv, gomp_global_icv): New.
9365 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9366 (struct gomp_task): New.
9367 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9368 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9369 (gomp_icv): New.
9370 (gomp_schedule_type): Reorder enum to match
9371 omp_sched_t.
9372 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9373 fields.
9374 (gomp_thread_start): Add gomp_team_barrier_wait call.
9375 For non-nested case remove clearing of docked thread thr fields.
9376 Use pool fields instead of global gomp_* variables. Use
9377 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9378 Create tasks for each member thread.
9379 (free_team): Only destroy team barrier, task_lock here and free it.
9380 (gomp_free_thread): Free last_team if non-NULL.
9381 (gomp_team_end): Call gomp_team_barrier_wait instead of
9382 gomp_barrier_wait. For nested case call one extra
9383 gomp_barrier_wait. Move here some destruction from free_team.
9384 Call free_team on pool->last_team if any, rather than freeing
9385 current team. Destroy work_share_list_free_lock ifndef
9386 HAVE_SYNC_BUILTINS.
9387 (gomp_new_icv): New function.
9388 (gomp_threads, gomp_threads_size, gomp_threads_used,
9389 gomp_threads_dock): Removed.
9390 (gomp_thread_destructor): New variable.
9391 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9392 functions.
9393 (gomp_team_start): Create new pool if current thread doesn't have
9394 one. Use pool fields instead of global gomp_* variables.
9395 Initialize thread_pool field for new threads. Clear single_count.
9396 Change last argument from ws to team, don't create
9397 new team, set ts.work_share to &team->work_shares[0] and clear
9398 ts.last_work_share. Don't clear ts.work_share_generation.
9399 If number of threads changed, adjust atomically gomp_managed_threads.
9400 Use gomp_init_task instead of gomp_new_task,
9401 set thr->task to the corresponding implicit_task array entry.
9402 Create tasks for each member thread. Initialize ts.level.
9403 (initialize_team): Call pthread_key_create on
9404 gomp_thread_destructor.
9405 (team_destructor): New function.
9406 (new_team): Removed.
9407 (gomp_new_team): New function.
9408 (free_team): Free gomp_work_share blocks chained through next_alloc,
9409 instead of freeing work_shares and destroying work_share_lock.
9410 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9411 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9412 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9413 of gomp_barrier_wait.
9414 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9415 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9416 if gomp_work_share_start returned true. Don't unlock ws->lock.
9417 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9418 of gomp_barrier_wait.
9419 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9420 gomp_work_share_init_done if gomp_work_share_start returned true.
9421 Don't unlock ws->lock.
9422 * work.c: Include stddef.h.
9423 (free_work_share): Use work_share_list_free_lock instead
9424 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9425 Call gomp_fini_work_share and then either free ws if orphaned, or
9426 put it into work_share_list_free list of the current team.
9427 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9428 functions.
9429 (gomp_work_share_start, gomp_work_share_end,
9430 gomp_work_share_end_nowait): Rewritten.
9431 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9432 (openmp_version): Set to 200805.
9433 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9434 omp_sched_guided, omp_sched_auto): New parameters.
9435 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9436 omp_set_max_active_levels, omp_get_max_active_levels,
9437 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9438 omp_get_active_level): New interfaces.
9439 * omp_lib.h.in (openmp_version): Set to 200805.
9440 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9441 omp_sched_guided, omp_sched_auto): New parameters.
9442 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9443 omp_set_max_active_levels, omp_get_max_active_levels,
9444 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9445 omp_get_active_level): New externals.
9446 * loop.c: Include limits.h.
9447 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9448 GFS_AUTO.
9449 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9450 Likewise. Use gomp_icv.
9451 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9452 ts.static_trip here.
9453 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9454 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9455 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9456 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9457 don't unlock ws->lock, otherwise lock it.
9458 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9459 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9460 (gomp_parallel_loop_start): Call gomp_new_team instead of
9461 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9462 Adjust gomp_team_start caller. Pass 0 as second argument to
9463 gomp_resolve_num_threads.
9464 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9465 If adding ws->chunk_size nthreads + 1 times after end won't
9466 overflow, set ws->mode to 1.
9467 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9468 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9469 GOMP_loop_ull_ordered_static_start,
9470 GOMP_loop_ull_ordered_dynamic_start,
9471 GOMP_loop_ull_ordered_guided_start,
9472 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9473 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9474 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9475 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9476 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9477 prototypes.
9478 * libgomp.map: Export lock routines also @@OMP_2.0.
9479 (GOMP_loop_ordered_dynamic_first,
9480 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9481 GOMP_loop_ordered_static_first): Remove.
9482 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9483 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9484 GOMP_loop_ull_ordered_dynamic_next,
9485 GOMP_loop_ull_ordered_dynamic_start,
9486 GOMP_loop_ull_ordered_guided_next,
9487 GOMP_loop_ull_ordered_guided_start,
9488 GOMP_loop_ull_ordered_runtime_next,
9489 GOMP_loop_ull_ordered_runtime_start,
9490 GOMP_loop_ull_ordered_static_next,
9491 GOMP_loop_ull_ordered_static_start,
9492 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9493 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9494 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9495 (omp_set_schedule, omp_get_schedule,
9496 omp_get_thread_limit, omp_set_max_active_levels,
9497 omp_get_max_active_levels, omp_get_level,
9498 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9499 omp_set_schedule_, omp_set_schedule_8_,
9500 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9501 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9502 omp_get_max_active_levels_, omp_get_level_,
9503 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9504 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9505 New exports @@OMP_3.0.
9506 * omp.h.in (omp_sched_t): New type.
9507 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9508 omp_set_max_active_levels, omp_get_max_active_levels,
9509 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9510 omp_get_active_level): New prototypes.
9511 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9512 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9513 gomp_thread_limit_var, gomp_remaining_threads_count,
9514 gomp_remaining_threads_lock): New variables.
9515 (parse_spincount): New function.
9516 (initialize_env): Call gomp_init_num_threads unconditionally.
9517 Initialize gomp_available_cpus. Call parse_spincount,
9518 initialize gomp_{,throttled_}spin_count_var
9519 depending on presence and value of OMP_WAIT_POLICY and
9520 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9521 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9522 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9523 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9524 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9525 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9526 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9527 (gomp_global_icv): New.
9528 (parse_schedule): Use it. Parse "auto".
9529 (omp_set_num_threads): Use gomp_icv.
9530 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9531 Likewise.
9532 (omp_get_max_threads): Move from parallel.c.
9533 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9534 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9535 add ialias.
9536 (parse_stacksize, parse_wait_policy): New functions.
9537 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9538 both wrappers for compatibility and new locks.
9539 (omp_set_schedule, omp_get_schedule,
9540 omp_get_thread_limit, omp_set_max_active_levels,
9541 omp_get_max_active_levels, omp_get_level,
9542 omp_get_ancestor_thread_num, omp_get_team_size,
9543 omp_get_active_level): New ialias_redirect.
9544 (omp_set_schedule_, omp_set_schedule_8_,
9545 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9546 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9547 omp_get_max_active_levels_, omp_get_level_,
9548 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9549 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9550 New functions.
9551 * parallel.c: Include limits.h.
9552 (gomp_resolve_num_threads): Add count argument. Rewritten.
9553 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9554 argument to gomp_team_start. Pass 0 as second argument to
9555 gomp_resolve_num_threads.
9556 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9557 if gomp_thread_limit_var != ULONG_MAX.
9558 (omp_in_parallel): Implement using ts.active_level.
9559 (omp_get_max_threads): Move to env.c.
9560 (omp_get_level, omp_get_ancestor_thread_num,
9561 omp_get_team_size, omp_get_active_level): New functions,
9562 add ialias.
9563 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9564 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9565 gomp_iter_dynamic_next instead of the _locked variant and don't take
9566 lock around it, otherwise acquire it before calling
9567 gomp_iter_dynamic_next_locked.
9568 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9569 gomp_iter_dynamic_next instead of the _locked variant and don't take
9570 lock around it.
9571 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9572 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9573 Adjust gomp_team_start caller. Pass count as second argument to
9574 gomp_resolve_num_threads, don't adjust num_threads after the call.
9575 Use gomp_icv.
9576 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9577 ws->chunk_size by incr.
9578 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9579 code.
9580 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9581 types.
9582 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9583 (omp_check_defines): Check even the compat defines.
9584 * config/linux/ptrlock.c: New file.
9585 * config/linux/ptrlock.h: New file.
9586 * config/linux/wait.h: New file.
9587 * config/posix/ptrlock.c: New file.
9588 * config/posix/ptrlock.h: New file.
9589 * config/linux/bar.h (gomp_team_barrier_wait,
9590 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9591 (gomp_team_barrier_set_task_pending,
9592 gomp_team_barrier_clear_task_pending,
9593 gomp_team_barrier_set_waiting_for_tasks,
9594 gomp_team_barrier_waiting_for_tasks,
9595 gomp_team_barrier_done): New inlines.
9596 (gomp_barrier_t): Rewritten.
9597 (gomp_barrier_state_t): New typedef.
9598 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9599 gomp_barrier_wait_start): Rewritten.
9600 (gomp_barrier_wait_end): Change second argument to
9601 gomp_barrier_state_t.
9602 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9603 inlines.
9604 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9605 futex.h.
9606 (gomp_barrier_wait_end): Rewritten.
9607 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9608 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9609 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9610 (gomp_barrier_state_t): New typedef.
9611 (gomp_team_barrier_wait,
9612 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9613 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9614 into the return value. Return gomp_barrier_state_t.
9615 (gomp_team_barrier_set_task_pending,
9616 gomp_team_barrier_clear_task_pending,
9617 gomp_team_barrier_set_waiting_for_tasks,
9618 gomp_team_barrier_waiting_for_tasks,
9619 gomp_team_barrier_done): New inlines.
9620 (gomp_barrier_wait_end): Change second argument to
9621 gomp_barrier_state_t.
9622 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9623 inlines.
9624 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9625 (gomp_barrier_wait_end): Change second argument to
9626 gomp_barrier_state_t.
9627 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9628 gomp_team_barrier_wake): New functions.
9629 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9630 futex.h.
9631 (gomp_futex_wake, gomp_futex_wait): New variables.
9632 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9633 * config/linux/lock.c: Rewrite to make locks task owned,
9634 for backwards compatibility provide the old entrypoints
9635 if symbol versioning. Include wait.h instead of libgomp.h and
9636 futex.h.
9637 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9638 * config/posix95/lock.c: Rewrite to make locks task owned,
9639 for backwards compatibility provide the old entrypoints
9640 if symbol versioning.
9641 * config/posix/lock.c: Rewrite to make locks task owned,
9642 for backwards compatibility provide the old entrypoints
9643 if symbol versioning.
9644 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9645 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9646 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9647 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9648 (sys_futex0): Return error code.
9649 (futex_wake, futex_wait): If ENOSYS was returned, clear
9650 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9651 (cpu_relax, atomic_write_barrier): New static inlines.
9652 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9653 (futex_wake, futex_wait): If ENOSYS was returned, clear
9654 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9655 (cpu_relax, atomic_write_barrier): New static inlines.
9656 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9657 (sys_futex0): Return error code.
9658 (futex_wake, futex_wait): If ENOSYS was returned, clear
9659 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9660 (cpu_relax, atomic_write_barrier): New static inlines.
9661 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9662 (sys_futex0): Return error code.
9663 (futex_wake, futex_wait): If ENOSYS was returned, clear
9664 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9665 (cpu_relax, atomic_write_barrier): New static inlines.
9666 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9667 (sys_futex0): Return error code.
9668 (futex_wake, futex_wait): If ENOSYS was returned, clear
9669 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9670 (cpu_relax, atomic_write_barrier): New static inlines.
9671 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9672 (sys_futex0): Return error code.
9673 (futex_wake, futex_wait): If ENOSYS was returned, clear
9674 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9675 (cpu_relax, atomic_write_barrier): New static inlines.
9676 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9677 futex.h.
9678 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9679 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9680 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9681 types.
9682 (omp_nest_lock_t): Change owner into void *, add lock field.
9683 * config/posix95/omp-lock.h: Include semaphore.h.
9684 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9685 (omp_lock_t): Use sem_t instead of mutex if semaphores
9686 aren't broken.
9687 (omp_nest_lock_t): Likewise. Change owner to void *.
9688 * config/posix/omp-lock.h: Include semaphore.h.
9689 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9690 (omp_lock_t): Use sem_t instead of mutex if semaphores
9691 aren't broken.
9692 (omp_nest_lock_t): Likewise. Add owner field.
9693
9694 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9695
9696 * testsuite/libgomp.c/collapse-1.c: New test.
9697 * testsuite/libgomp.c/collapse-2.c: New test.
9698 * testsuite/libgomp.c/collapse-3.c: New test.
9699 * testsuite/libgomp.c/icv-1.c: New test.
9700 * testsuite/libgomp.c/icv-2.c: New test.
9701 * testsuite/libgomp.c/lib-2.c: New test.
9702 * testsuite/libgomp.c/lock-1.c: New test.
9703 * testsuite/libgomp.c/lock-2.c: New test.
9704 * testsuite/libgomp.c/lock-3.c: New test.
9705 * testsuite/libgomp.c/loop-4.c: New test.
9706 * testsuite/libgomp.c/loop-5.c: New test.
9707 * testsuite/libgomp.c/loop-6.c: New test.
9708 * testsuite/libgomp.c/loop-7.c: New test.
9709 * testsuite/libgomp.c/loop-8.c: New test.
9710 * testsuite/libgomp.c/loop-9.c: New test.
9711 * testsuite/libgomp.c/nested-3.c: New test.
9712 * testsuite/libgomp.c/nestedfn-6.c: New test.
9713 * testsuite/libgomp.c/sort-1.c: New test.
9714 * testsuite/libgomp.c/task-1.c: New test.
9715 * testsuite/libgomp.c/task-2.c: New test.
9716 * testsuite/libgomp.c/task-3.c: New test.
9717 * testsuite/libgomp.c/task-4.c: New test.
9718 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9719 to C++ testsuite default compiler options.
9720 * testsuite/libgomp.c++/collapse-1.C: New test.
9721 * testsuite/libgomp.c++/collapse-2.C: New test.
9722 * testsuite/libgomp.c++/ctor-10.C: New test.
9723 * testsuite/libgomp.c++/for-1.C: New test.
9724 * testsuite/libgomp.c++/for-2.C: New test.
9725 * testsuite/libgomp.c++/for-3.C: New test.
9726 * testsuite/libgomp.c++/for-4.C: New test.
9727 * testsuite/libgomp.c++/for-5.C: New test.
9728 * testsuite/libgomp.c++/loop-8.C: New test.
9729 * testsuite/libgomp.c++/loop-9.C: New test.
9730 * testsuite/libgomp.c++/loop-10.C: New test.
9731 * testsuite/libgomp.c++/task-1.C: New test.
9732 * testsuite/libgomp.c++/task-2.C: New test.
9733 * testsuite/libgomp.c++/task-3.C: New test.
9734 * testsuite/libgomp.c++/task-4.C: New test.
9735 * testsuite/libgomp.c++/task-5.C: New test.
9736 * testsuite/libgomp.c++/task-6.C: New test.
9737 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9738 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9739 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9740 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9741 * testsuite/libgomp.fortran/collapse1.f90: New test.
9742 * testsuite/libgomp.fortran/collapse2.f90: New test.
9743 * testsuite/libgomp.fortran/collapse3.f90: New test.
9744 * testsuite/libgomp.fortran/collapse4.f90: New test.
9745 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9746 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9747 * testsuite/libgomp.fortran/lib4.f90: New test.
9748 * testsuite/libgomp.fortran/lock-1.f90: New test.
9749 * testsuite/libgomp.fortran/lock-2.f90: New test.
9750 * testsuite/libgomp.fortran/nested1.f90: New test.
9751 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9752 * testsuite/libgomp.fortran/strassen.f90: New test.
9753 * testsuite/libgomp.fortran/tabs1.f90: New test.
9754 * testsuite/libgomp.fortran/tabs2.f: New test.
9755 * testsuite/libgomp.fortran/task1.f90: New test.
9756 * testsuite/libgomp.fortran/task2.f90: New test.
9757 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9758 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9759 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9760 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9761 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9762
9763 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9764
9765 PR c++/36308
9766 * testsuite/libgomp.c++/ctor-11.C: New test.
9767 * testsuite/libgomp.c++/ctor-12.C: New test.
9768
9769 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9770
9771 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9772
9773 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9774
9775 PR middle-end/36106
9776 * testsuite/libgomp.c/atomic-5.c: New test.
9777 * testsuite/libgomp.c/atomic-6.c: New test.
9778 * testsuite/libgomp.c/autopar-1.c: New test.
9779
9780 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9781
9782 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9783 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9784 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9785 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9786 * configure: Regenerate.
9787 * Makefile.in, testsuite/Makefile.in: Likewise.
9788
9789 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9790
9791 PR bootstrap/35457
9792 * aclocal.m4: Regenerate.
9793 * configure: Regenerate.
9794
9795 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9796
9797 PR middle-end/35611
9798 * testsuite/libgomp.c/atomic-4.c: New test.
9799
9800 PR libgomp/35625
9801 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9802 (gomp_iter_guided_next): Likewise.
9803 * testsuite/libgomp.c/pr35625.c: New test.
9804
9805 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9806
9807 * aclocal.m4: Regenerate.
9808 * configure: Likewise.
9809 * Makefile.in: Likewise.
9810 * testsuite/Makefile.in: Likewise.
9811
9812 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9813
9814 PR middle-end/35185
9815 * testsuite/libgomp.c++/pr35185.C: New test.
9816
9817 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9818
9819 PR middle-end/35549
9820 * testsuite/libgomp.c/pr35549.c: New test.
9821
9822 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9823
9824 * testsuite/libgomp.c/atomic-3.c: New test.
9825
9826 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9827
9828 PR fortran/33197
9829 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9830 .F08 file suffixes.
9831
9832 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9833
9834 PR libgomp/33131
9835 * configure.ac: Add ACX_HEADER_STRING.
9836 * env.c: Include strings.h.
9837 * aclocal.m4: Regenerate.
9838 * config.h.in: Regenerate.
9839 * configure: Regenerate.
9840 * Makefile.in: Regenerate.
9841 * testsuite/Makefile.in: Regenerate.
9842
9843 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9844
9845 PR middle-end/35196
9846 * testsuite/libgomp.c/pr35196.c: New test.
9847
9848 PR middle-end/35130
9849 * testsuite/libgomp.fortran/pr35130.f90: New test.
9850 * testsuite/libgomp.c/pr35130.c: New test.
9851
9852 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9853
9854 PR middle-end/33880
9855 * testsuite/libgomp.c/pr33880.c: New test.
9856 * testsuite/libgomp.fortran/pr33880.f90: New test.
9857
9858 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9859
9860 * configure: Regenerate.
9861
9862 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9863
9864 * configure.ac: Move futex checking into ../config/futex.m4.
9865 * configure: Rebuilt.
9866 * aclocal.m4: Rebuilt.
9867 * Makefile.in: Rebuilt.
9868
9869 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9870 2007-10-15 ../config/tls.m4 change.
9871
9872 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9873
9874 PR c++/34513
9875 * testsuite/libgomp.c/pr34513.c: New test.
9876 * testsuite/libgomp.c++/pr34513.C: New test.
9877
9878 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9879
9880 PR target/32765
9881 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9882
9883 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9884
9885 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9886
9887 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9888
9889 * testsuite/libgomp.c/private-1.c: New test.
9890
9891 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9892 Paolo Bonzini <bonzini@gnu.org>
9893
9894 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9895 instead of 'VPATH ='.
9896 * Makefile.in: Regenerate.
9897
9898 2007-11-23 Matthias Klose <doko@ubuntu.com>
9899
9900 * configure.ac: Adjust makeinfo version check.
9901 * configure: Regenerate.
9902
9903 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9904
9905 PR fortran/34020
9906 * testsuite/libgomp.fortran/pr34020.f90: New test.
9907
9908 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9909
9910 PR c++/33894
9911 * testsuite/libgomp.c++/atomic-1.C: New test.
9912
9913 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9914
9915 PR libgomp/33275
9916 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9917 Make x and y integers rather than (implicit) reals. Add private (j)
9918 clause to the last omp parallel.
9919
9920 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9921
9922 * configure: Regenerate following changes to ../config/tls.m4.
9923
9924 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9925
9926 * testsuite/libgomp.fortran/stack.f90: New test.
9927
9928 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9929
9930 * config/mingw32/proc.c: New file.
9931
9932 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9933
9934 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9935 (main): Use __get_cpuid to get i386 target fetaures.
9936 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9937 (main): Use __get_cpuid to get x86_64 target fetaures.
9938
9939 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9940
9941 PR target/32765
9942 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9943 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9944
9945 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9946
9947 PR fortran/32550
9948 * testsuite/libgomp.fortran/pr32550.f90: New test.
9949 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9950
9951 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9952
9953 * aclocal.m4: Regenerated.
9954
9955 2007-07-05 Tobias Burnus <burnus@net-b.de>
9956
9957 PR fortran/32359
9958 * testsuite/libgomp.fortran/pr32359.f90: New.
9959
9960 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9961
9962 PR libgomp/32468
9963 * sections.c (GOMP_parallel_sections_start): Only decrease
9964 number of threads to COUNT if dyn_var is true.
9965 * testsuite/libgomp.c/pr32468.c: New test.
9966
9967 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9968
9969 PR libgomp/26308
9970 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9971
9972 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9973
9974 PR middle-end/32362
9975 * testsuite/libgomp.c/pr32362-1.c: New test.
9976 * testsuite/libgomp.c/pr32362-2.c: New test.
9977 * testsuite/libgomp.c/pr32362-3.c: New test.
9978
9979 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9980
9981 * team.c (gomp_team_start): Fix setting up thread_attr
9982 stack size.
9983
9984 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9985
9986 * configure: Regenerate.
9987
9988 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9989
9990 * Makefile.in: Regenerate.
9991 * configure: Regenerate.
9992 * aclocal.m4: Regenerate.
9993 * testsuite/Makefile.in: Regenerate.
9994
9995 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9996
9997 * config/linux/proc.c: New file.
9998
9999 PR libgomp/28482
10000 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10001
10002 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
10003
10004 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10005
10006 2007-04-16 Matthias Klose <doko@debian.org>
10007
10008 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10009 flags if not building with -m64.
10010 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10011 flag for i?86-*-* targets, if current target matches -m64.
10012
10013 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10014
10015 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10016 * Makefile.in: Regenerate.
10017
10018 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10019
10020 PR testsuite/31369
10021 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10022 ld_library_path.
10023 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10024
10025 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10026
10027 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10028 decls.
10029 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10030 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10031 (parse_affinity): New function.
10032 (initialize_env): Call it and gomp_init_affinity.
10033 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10034 create new pthread_attr_t and call gomp_init_thread_affinity
10035 on it for each thread before passing the attribute to pthread_create.
10036 * config/linux/affinity.c: New file.
10037 * config/posix/affinity.c: New file.
10038 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10039 * configure: Rebuilt.
10040 * config.h.in: Rebuilt.
10041 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10042 * Makefile.in: Rebuilt.
10043
10044 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10045
10046 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10047 *-*-darwin*.
10048 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10049 and use it if found.
10050
10051 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10052
10053 * testsuite/config/default.exp: New file.
10054 * testsuite/lib/libgomp.exp: New file.
10055 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10056 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10057 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10058 (libgomp_load): Remove.
10059 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10060 always_ld_library_path, not ld_library_path. Set additional_flags
10061 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10062 (target_compile): Do not call libgomp_init. Append lang_library_path
10063 and lang_link_flags to options.
10064 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10065 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10066 here.
10067 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10068 always_ld_library_path. Set LD_LIBRARY_PATH here.
10069 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10070 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10071 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10072 CX8 flag.
10073 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10074 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10075 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10076 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10077 * testsuite/libgomp.c/atomic-10.c: Ditto.
10078
10079 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10080
10081 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10082 dg-final cleanup-modules line.
10083 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10084 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10085 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10086 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10087 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10088 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10089 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10090
10091 2007-03-18 Andreas Schwab <schwab@suse.de>
10092
10093 * acinclude.m4: Adjust regular expression for ld version
10094 extraction.
10095 * configure: Regenerate.
10096
10097 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10098
10099 * Makefile.am: Add install-pdf target as copied from
10100 automake v1.10 rules.
10101 * Makefile.in: Regenerate
10102
10103 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10104
10105 PR libgomp/28486
10106 * configure: Regenerate.
10107
10108 PR c++/30703
10109 * testsuite/libgomp.c++/pr30703.C: New test.
10110
10111 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10112
10113 Revert:
10114 2006-07-05 Eric Christopher <echristo@apple.com>
10115 * configure.ac: Depend addition of -pthread on host OS.
10116 * configure: Regenerate.
10117
10118 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10119
10120 * libgomp.texi: Fix spacing after abbreviations.
10121
10122 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10123
10124 PR libgomp/30546
10125 * configure.ac: Add check for makeinfo
10126 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10127 if an appropiate version of makeinfo is found.
10128 * aclocal.m4: Regenerated.
10129 * configure: Regenerated.
10130 * Makefile.in: Regenerated.
10131 * testsuite/Makefile.in: Regenerated.
10132
10133 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10134
10135 PR libgomp/30540
10136 * libgomp.texi: More about implementation-dependent settings.
10137
10138 2007-01-26 Tobias Burnus <burnus@net-b.de>
10139
10140 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10141
10142 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10143
10144 PR middle-end/30494
10145 * testsuite/libgomp.c/pr30494.c: New test.
10146
10147 2007-01-15 Tom Tromey <tromey@redhat.com>
10148
10149 * configure: Rebuilt.
10150 * configure.ac: Fixed comment.
10151
10152 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10153
10154 * libgomp.texi: Document implementation specific default values of
10155 environment variables.
10156
10157 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10158
10159 PR libgomp/28209
10160 * libgomp.texi: New file.
10161 * configure.ac: Add --enable-generated-files-in-srcdir option.
10162 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10163 files to srcdir.
10164 * Makefile.in: Regenerated.
10165 * config.h.in: Regenerated.
10166 * testsuite/Makefile.in: Regenerated.
10167 * NOTES: Removed.
10168
10169 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10170
10171 PR libgomp/29949
10172 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10173
10174 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10175
10176 * configure: Regenerate.
10177
10178 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10179
10180 PR libgomp/29947
10181 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10182 start if there shouldn't be any loop iterations.
10183 (gomp_loop_ordered_static_start): Remove start == end test.
10184 * testsuite/libgomp.c/pr29947-1.c: New test.
10185 * testsuite/libgomp.c/pr29947-2.c: New test.
10186
10187 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10188
10189 * configure.tgt: Force initial-exec TLS model on Linux only.
10190
10191 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10192
10193 * configure: Regenerated.
10194
10195 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10196
10197 * env.c (parse_schedule): Reject out of range values.
10198 (parse_unsigned_long): Reject out of range, negative or zero values.
10199
10200 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10201
10202 PR fortran/29629
10203 * testsuite/libgomp.fortran/pr29629.f90: New test.
10204
10205 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10206
10207 PR libgomp/29494
10208 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10209 * config/posix95: New directory.
10210 * config/posix95/omp-lock.h: New file.
10211 * config/posix95/lock.c: Likewise.
10212
10213 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10214
10215 * aclocal.m4: Regenerate.
10216 * configure: Regenerate.
10217
10218 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10219
10220 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10221 '<' to '<='.
10222
10223 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10224
10225 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10226 test.
10227 * configure: Regenerate.
10228 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10229
10230 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10231
10232 PR middle-end/25261
10233 PR middle-end/28790
10234 * testsuite/libgomp.c/nestedfn-4.c: New test.
10235 * testsuite/libgomp.c/nestedfn-5.c: New test.
10236 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10237
10238 PR fortran/29097
10239 * testsuite/libgomp.fortran/condinc1.f: New test.
10240 * testsuite/libgomp.fortran/condinc2.f: New test.
10241 * testsuite/libgomp.fortran/condinc3.f90: New test.
10242 * testsuite/libgomp.fortran/condinc4.f90: New test.
10243 * testsuite/libgomp.fortran/condinc1.inc: New file.
10244
10245 2006-09-18 Tom Tromey <tromey@redhat.com>
10246
10247 * configure: Rebuilt.
10248
10249 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10250
10251 PR c/28768
10252 PR preprocessor/14634
10253 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10254 to AC_DEFINE.
10255 * configure: Regenerate.
10256
10257 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10258
10259 * testsuite/libgomp.fortran/reduction3.f90: Change
10260 -2147483648 to -huge(i)-1 to avoid overflow.
10261 * testsuite/libgomp.fortran/reduction4.f90: Change
10262 Z'ffffffff' to not(0) to avoid overflow.
10263
10264 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10265
10266 PR libgomp/25938
10267 * Makefile.am (libsubincludedir): New.
10268 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10269 * Makefile.in: Regenerate.
10270
10271 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10272
10273 PR libgomp/28725
10274 * env.c: Include ctype.h.
10275 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10276 leading and/or trailing whitespace and compare strings case
10277 insensitively.
10278
10279 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10280
10281 PR fortran/28390
10282 * testsuite/libgomp.fortran/pr28390.f: New test.
10283
10284 2006-07-05 Eric Christopher <echristo@apple.com>
10285
10286 * configure.ac: Depend addition of -pthread on host OS.
10287 * configure: Regenerate.
10288
10289 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10290
10291 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10292 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10293 defined.
10294
10295 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10296
10297 PR libgomp/26175
10298 PR libgomp/26477
10299 * configure.ac: If neither --enable-linux-futex nor
10300 --disable-linux-futex is passed, determine the default by checking
10301 for compiling and/or running against NPTL. With --enable-linux-futex,
10302 check if SYS_gettid and SYS_futex are defined.
10303 * configure: Rebuilt.
10304
10305 2006-06-14 Richard Henderson <rth@redhat.com>
10306
10307 PR libgomp/28008
10308 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10309 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10310
10311 2006-06-09 Richard Henderson <rth@redhat.com>
10312
10313 * env.c (gomp_nthreads_var): Change to unsigned long.
10314 (gomp_run_sched_chunk): Likewise.
10315 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10316 (initialize_env): Initialize gomp_thread_attr.
10317 * libgomp.h (gomp_nthreads_var): Update decl.
10318 (gomp_run_sched_chunk): Likewise.
10319 (gomp_thread_attr): Declare.
10320 * team.c (gomp_thread_attr): Export.
10321 (initialize_team): Don't initialize it.
10322
10323 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10324
10325 PR fortran/27916
10326 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10327 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10328
10329 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10330
10331 * config/mingw32/time.c: New file.
10332 * configure.tgt: Use it.
10333
10334 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10335
10336 * Makefile.am: Add install-html target. Add install-html to .PHONY
10337 * Makefile.in: Regenerate.
10338
10339 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10340
10341 PR libgomp/27612
10342 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10343 * testsuite/libgomp.c/critical-1.c: Likewise.
10344 * testsuite/libgomp.c/loop-1.c: Likewise.
10345 * testsuite/libgomp.c/loop-2.c: Likewise.
10346 * testsuite/libgomp.c/single-1.c: Likewise.
10347 * testsuite/libgomp.c/ordered-1.c: Likewise.
10348 * testsuite/libgomp.c/ordered-2.c: Likewise.
10349
10350 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10351
10352 PR middle-end/27416
10353 * libgomp.fortran/pr27416-1.f90: New test.
10354
10355 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10356
10357 PR fortran/27395
10358 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10359 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10360
10361 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10362
10363 PR c++/26943
10364 * testsuite/libgomp.c/pr26943-1.c: New test.
10365 * testsuite/libgomp.c/pr26943-2.c: New test.
10366 * testsuite/libgomp.c/pr26943-3.c: New test.
10367 * testsuite/libgomp.c/pr26943-4.c: New test.
10368 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10369 * testsuite/libgomp.c++/pr26943.C: New test.
10370
10371 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10372
10373 PR middle-end/27337
10374 * testsuite/libgomp.c++/pr27337.C: New test.
10375
10376 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10377
10378 PR c/26171
10379 * testsuite/libgomp.c/pr26171.c: New test.
10380
10381 2006-04-25 Richard Henderson <rth@redhat.com>
10382
10383 PR libgomp/25865
10384 * configure.ac: Use GCC_CHECK_TLS.
10385 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10386 * Makefile.in, aclocal.m4, configure: Regenerate.
10387
10388 2006-04-10 Matthias Klose <doko@debian.org>
10389
10390 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10391 directory names containing underscores.
10392
10393 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10394
10395 PR c++/26691
10396 * testsuite/libgomp.c++/pr26691.C: New test.
10397
10398 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10399
10400 * testsuite/libgomp.fortran/retval2.f90: New test.
10401
10402 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10403
10404 * testsuite/libgomp.c++: New directory.
10405
10406 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10407
10408 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10409 * config/posix/sem.c: Implement the above.
10410
10411 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10412
10413 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10414 define HAVE_BROKEN_POSIX_SEMAPHORES.
10415 * configure: Rebuilt.
10416 * config.h.in: Rebuilt.
10417
10418 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10419
10420 PR bootstrap/26161
10421 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10422 for the other pthread check.
10423 * configure: Regenerate.
10424 * config.h.in: Regenerate.
10425
10426 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10427
10428 PR libgomp/25938
10429 PR libgomp/25984
10430 * Makefile.am (fincludedir): New variable.
10431 (nodist_include_HEADERS): Remove Fortran files.
10432 (nodist_finclude_HEADERS): New variable.
10433 * Makefile.in: Regenerated.
10434
10435 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10436
10437 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10438 Remove tests for returning assumed character length arrays.
10439
10440 2006-02-12 Roger Sayle <roger@eyesopen.com>
10441 John David Anglin <dave@hiauly1.hia.nrc.ca>
10442
10443 PR libgomp/25936
10444 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10445
10446 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10447
10448 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10449
10450 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10451
10452 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10453 part of LD_LIBRARY_PATH manually.
10454
10455 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10456
10457 PR libgomp/25852
10458 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10459 libgomp_init.
10460
10461 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10462
10463 PR libgomp/25884
10464 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10465 * configure.ac (PERL): Don't set.
10466 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10467 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10468 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10469 * omp.h.in: Wrap the new configure substitutions with @ characters.
10470 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10471 * aclocal.m4, configure, Makefile.in: Regenerate.
10472 * mkomp_h.pl: Delete.
10473
10474 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10475
10476 PR libgomp/25259
10477 * configure.ac: Use GCC_HEADER_STDINT.
10478 * libgomp.h: Include gstdint.h.
10479 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10480 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10481
10482 2006-01-24 Richard Henderson <rth@redhat.com>
10483
10484 PR libgomp/25942
10485 * configure.ac: Add AM_MAINTAINER_MODE.
10486 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10487
10488 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10489
10490 * Makefile.in: Regenerate.
10491 * testsuite/Makefile.in: Regenerate.
10492 * aclocal.m4: Regenerate.
10493
10494 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10495
10496 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10497 Solaris.
10498 * configure.ac: Add check for loadavg.h.
10499 (link_gomp): Adjust comment.
10500 * configure: Regenerate.
10501 * config.h.in: Regenerate.
10502
10503 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10504
10505 PR libgomp/25877
10506 * configure.ac: Remove check for alloca.h.
10507 * configure: Regenerate.
10508 * config.h.in: Regenerate.
10509 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10510 * team.c: Remove use of alloca.h.
10511 Call gomp_alloca instead of alloca.
10512
10513 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10514
10515 PR libgomp/25877
10516 * team.c: Add include of alloca.h.
10517 * configure.ac: Add check for alloca.h.
10518 * configure: Regenerate.
10519 * config.h.in: Regenerate.
10520
10521 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10522
10523 PR fortran/25219
10524 * testsuite/libgomp.fortran/pr25219.f90: New test.
10525
10526 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10527
10528 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10529 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10530 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10531 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10532 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10533 testsuite/libgomp.fortran/threadprivate1.f90,
10534 testsuite/libgomp.fortran/threadprivate2.f90,
10535 testsuite/libgomp.fortran/threadprivate3.f90,
10536 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10537 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10538 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10539 effective-target to TLS runtime.
10540
10541 * testsuite/libgomp.fortran/pr25162.f: Require
10542 effective-target TLS runtime.
10543
10544 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10545
10546 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10547 * testsuite/libgomp.c/nestedfn-3.c: New test.
10548
10549 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10550
10551 PR fortran/25162
10552 * testsuite/libgomp.fortran/pr25162.f: New test.
10553
10554 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10555
10556 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10557 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10558
10559 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10560
10561 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10562 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10563 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10564 single.c, team.c, work.c, config/linux/alpha/futex.h,
10565 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10566 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10567 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10568 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10569 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10570 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10571 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10572 FSF address.
10573
10574 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10575
10576 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10577 to nodist_noinst_HEADERS.
10578 * Makefile.in: Rebuilt.
10579
10580 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10581 add integer count field.
10582 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10583 omp_nest_lock_t type change.
10584 (omp_init_nest_lock): Likewise. Initialize count to 0.
10585 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10586 Increment count.
10587 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10588 Decrement count.
10589 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10590 Increment count if successful and return the new nesting level.
10591 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10592 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10593 * testsuite/libgomp.c/lib-1.c: New test.
10594 * testsuite/libgomp.fortran/lib1.f90: New test.
10595 * testsuite/libgomp.fortran/lib2.f: New test.
10596 * testsuite/libgomp.fortran/lib3.f: New test.
10597
10598 2005-11-17 Richard Henderson <rth@redhat.com>
10599
10600 PR 24845
10601 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10602 * configure.ac (link_gomp): New. Substitute it.
10603 (AC_CONFIG_FILES): Add libgomp.spec.
10604 * libgomp.spec.in: New file.
10605 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10606 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10607
10608 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10609
10610 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10611 reduction(-:var) behaving the same as reduction(+:var).
10612 * testsuite/libgomp.c/reduction-4.c: New test.
10613
10614 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10615
10616 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10617 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10618 testsuite/libgomp.c/copyin-3.c,
10619 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10620 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10621 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10622 testsuite/libgomp.c++/pr24455.C,
10623 testsuite/libgomp.fortran/threadprivate1.f90,
10624 testsuite/libgomp.fortran/threadprivate2.f90,
10625 testsuite/libgomp.fortran/threadprivate3.f90,
10626 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10627 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10628 testsuite/libgomp.fortran/omp_parse3.f90: Require
10629 effective-target TLS.
10630
10631 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10632
10633 * HEADER: Remove.
10634
10635 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10636
10637 PR libgomp/24797
10638 * team.c (initialize_team): Pass NULL rather than free as
10639 pthread_key_create destructor. Initialize thread specific data
10640 pointer in initial thread to a static local variable rather than
10641 malloced memory.
10642
10643 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10644
10645 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10646 its location to ld_library_path.
10647
10648 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10649
10650 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10651
10652 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10653
10654 * testsuite/libgomp.c: Rename from libgomp.dg.
10655
10656 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10657
10658 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10659 threadprivate variable 'i'.
10660
10661 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10662
10663 * config/linux/s390/futex.h: New file.
10664 * configure.tgt: Use it.
10665
10666 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10667 before the parallel.
10668
10669 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10670
10671 PR c++/24734
10672 * testsuite/libgomp.c++/master-1.C: New test.
10673
10674 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10675
10676 * testsuite/libgomp.dg/copyin-3.c: New test.
10677
10678 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10679
10680 * testsuite/libgomp.fortran/retval1.f90: New test.
10681 * testsuite/libgomp.fortran/vla7.f90: New test.
10682
10683 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10684
10685 * testsuite/libgomp.fortran/vla2.f90: New test.
10686 * testsuite/libgomp.fortran/vla3.f90: New test.
10687 * testsuite/libgomp.fortran/vla4.f90: New test.
10688 * testsuite/libgomp.fortran/vla5.f90: New test.
10689 * testsuite/libgomp.fortran/vla6.f90: New test.
10690
10691 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10692
10693 * config/linux/sparc/futex.h: New file.
10694 * configure.tgt: Use it.
10695 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10696
10697 * critical.c: Include stdlib.h.
10698 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10699 ignoring return value.
10700 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10701 LIBGOMP_CHECK_SYNC_BUILTINS check.
10702 * configure: Rebuilt.
10703
10704 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10705
10706 * testsuite/libgomp.fortran/vla1.f90: New test.
10707
10708 2005-10-31 Richard Henderson <rth@redhat.com>
10709
10710 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10711 setting 's' in different threads.
10712
10713 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10714
10715 * libgomp.h (attribute_hidden, ialias): Define.
10716 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10717 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10718 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10719 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10720 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10721 omp_test_lock, omp_test_nest_lock): Likewise.
10722 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10723 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10724 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10725 omp_test_lock, omp_test_nest_lock): Likewise.
10726 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10727 omp_get_dynamic, omp_get_nested): Likewise.
10728 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10729 omp_get_thread_num, omp_in_parallel): Likewise.
10730 * fortran.c (ialias_redirect): Define.
10731 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10732 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10733 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10734 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10735 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10736 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10737 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10738 omp_get_wtime): Add ialias_redirect.
10739
10740 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10741
10742 * fortran.c: Include stdlib.h.
10743
10744 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10745
10746 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10747 * Makefile.in: Regenerated.
10748
10749 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10750
10751 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10752 * libgomp_f.h.in (omp_check_defines): New function.
10753 * env.c: Include libgomp_f.h.
10754 (initialize_env): Call omp_check_defines.
10755
10756 * testsuite/libgomp.dg/copyin-2.c: New test.
10757 * testsuite/libgomp.c++/copyin-2.C: New test.
10758 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10759
10760 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10761 * testsuite/libgomp.fortran/sharing2.f90: New test.
10762
10763 * testsuite/libgomp.dg/copyin-1.c: New test.
10764 * testsuite/libgomp.c++/copyin-1.C: New test.
10765
10766 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10767
10768 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10769
10770 * testsuite/libgomp.fortran/workshare1.f90: New test.
10771
10772 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10773 only test.
10774 * libgomp.fortran/sharing1.f90: New test.
10775
10776 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10777
10778 PR c++/24502
10779 * testsuite/libgomp.c++/loop-7.C: New test.
10780
10781 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10782
10783 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10784 * testsuite/libgomp.fortran/reduction6.f90: New test.
10785 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10786
10787 2005-10-23 Richard Henderson <rth@redhat.com>
10788
10789 * testsuite/libgomp.c++/ctor-1.C: New.
10790 * testsuite/libgomp.c++/ctor-2.C: New.
10791 * testsuite/libgomp.c++/ctor-3.C: New.
10792 * testsuite/libgomp.c++/ctor-4.C: New.
10793 * testsuite/libgomp.c++/ctor-5.C: New.
10794 * testsuite/libgomp.c++/ctor-6.C: New.
10795 * testsuite/libgomp.c++/ctor-7.C: New.
10796 * testsuite/libgomp.c++/ctor-8.C: New.
10797 * testsuite/libgomp.c++/ctor-9.C: New.
10798
10799 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10800
10801 PR 24455
10802 * testsuite/libgomp.c++/pr24455-1.C: New test.
10803 * testsuite/libgomp.c++/pr24455.C: New test.
10804 * testsuite/libgomp.dg/pr24455-1.c: New test.
10805 * testsuite/libgomp.dg/pr24455.c: New test.
10806
10807 2005-10-20 Richard Henderson <rth@redhat.com>
10808
10809 * testsuite/libgomp.c++/loop-6.C: New.
10810 * testsuite/libgomp.dg/loop-3.c: New.
10811
10812 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10813
10814 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10815 explicitly private.
10816 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10817 explicitly shared.
10818
10819 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10820
10821 * testsuite/libgomp.fortran/jacobi.f: New test.
10822
10823 2005-10-19 Richard Henderson <rth@redhat.com>
10824
10825 * configure.tgt (i?86-linux): Default to with_arch instead of
10826 CFLAGS. Add -mtune to match target_cpu.
10827 (x86_64-linux): Tune to i686.
10828
10829 * fortran.c (omp_test_nest_lock_): Fix typo.
10830
10831 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10832
10833 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10834 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10835 * testsuite/libgomp.dg/ordered-3.c: New test.
10836
10837 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10838 Remove volatile keyword.
10839
10840 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10841 in COMMON block to avoid warnings on 64-bit targets.
10842
10843 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10844
10845 * testsuite/libgomp.dg/shared-3.c: New test.
10846
10847 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10848
10849 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10850 * testsuite/libgomp.fortran/reduction5.f90: New test.
10851
10852 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10853
10854 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10855 dg-options.
10856 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10857 flush loop now that __sync_synchronize has proper memory barrier.
10858 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10859 Add -ffixed-form to dg-options.
10860
10861 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10862
10863 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10864 from subdirectories.
10865 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10866 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10867 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10868 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10869 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10870 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10871 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10872 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10873 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10874 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10875 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10876 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10877 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10878 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10879 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10880 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10881 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10882 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10883 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10884 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10885 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10886 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10887 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10888 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10889 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10890
10891 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10892
10893 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10894 lang_library_path exists. Use find instead of glob to gather tests.
10895 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10896
10897 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10898
10899 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10900 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10901 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10902 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10903 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10904 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10905 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10906 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10907 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10908 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10909 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10910 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10911 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10912
10913 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10914
10915 * testsuite/libgomp.dg/vla-1.c: New test.
10916
10917 * testsuite/libgomp.fortran/reference2.f90: New test.
10918
10919 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10920 declaration of omp_get_thread_num.
10921 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10922 use omp_lib.
10923
10924 * testsuite/libgomp.fortran/reduction1.f90: New test.
10925 * testsuite/libgomp.fortran/reduction2.f90: New test.
10926 * testsuite/libgomp.fortran/reduction3.f90: New test.
10927 * testsuite/libgomp.fortran/reduction4.f90: New test.
10928
10929 2005-10-13 Richard Henderson <rth@redhat.com>
10930
10931 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10932 * Makefile.in: Regenerate.
10933 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10934 * libgomp.h: Include bar.h.
10935 (struct gomp_barrier): Remove.
10936 (struct gomp_team): Add barrier. Replace master_barrier with
10937 master_release. Replace threads with ordered_release.
10938 (struct gomp_thread): Replace barrier with release.
10939 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10940 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10941 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10942 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10943 (GOMP_single_copy_end): Likewise.
10944 * team.c (gomp_threads_dock): New.
10945 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10946 (gomp_thread_start): Use gomp_barrier_wait.
10947 (new_team, free_team): Update for gomp_team changes.
10948 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10949 (gomp_team_end): Use gomp_barrier_wait.
10950 (initialize_team): Update for gomp_thread changes.
10951 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10952 (gomp_work_share_end_nowait): Use atomic ops when available.
10953 * config/linux/bar.c, config/linux/bar.h: New files.
10954 * config/posix/bar.c, config/posix/bar.h: New files.
10955
10956 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10957
10958 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10959 * testsuite/libgomp.dg/single-2.c: New test.
10960
10961 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10962 lang_link_flags): Unset, so that they aren't inherited from previously
10963 sourced *.exp.
10964
10965 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10966
10967 2005-10-12 Richard Henderson <rth@redhat.com>
10968
10969 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10970 (libgomp_init): Use lang_test_file, lang_library_path, and
10971 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10972
10973 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10974 (lang_test_file, lang_link_flags): New.
10975 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10976
10977 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10978 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10979 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10980 testsuite/libgomp.c++/parallel-1.C,
10981 testsuite/libgomp.c++/reduction-1.C,
10982 testsuite/libgomp.c++/reduction-2.C,
10983 testsuite/libgomp.c++/reduction-3.C,
10984 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10985 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10986 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10987 New files, largely cribbed from the C testsuite.
10988
10989 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10990
10991 * testsuite/libgomp.fortran/character1.f90: New test.
10992 * testsuite/libgomp.fortran/character2.f90: New test.
10993
10994 * testsuite/libgomp.dg/nested-1.c: New test.
10995 * testsuite/libgomp.dg/nested-2.c: New test.
10996 * testsuite/libgomp.fortran/do1.f90: New test.
10997 * testsuite/libgomp.fortran/do2.f90: New test.
10998
10999 * testsuite/libgomp.fortran/reference1.f90: New test.
11000
11001 2005-10-11 Jakub Jelinek <jakub@redhat.com>
11002
11003 * testsuite/libgomp.dg/reduction-1.c: New test.
11004 * testsuite/libgomp.dg/reduction-2.c: New test.
11005 * testsuite/libgomp.dg/reduction-3.c: New test.
11006
11007 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11008
11009 * testsuite/libgomp.dg/atomic-1.c: New test.
11010 * testsuite/libgomp.dg/atomic-2.c: New test.
11011
11012 2005-10-09 Richard Henderson <rth@redhat.com>
11013
11014 * critical.c (atomic_lock): New.
11015 (initialize_critical): Initialize it.
11016 (GOMP_atomic_start, GOMP_atomic_end): New.
11017 * libgomp.map: Export them.
11018 * libgomp_g.h: Declare them.
11019
11020 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11021
11022 2005-10-02 Richard Henderson <rth@redhat.com>
11023
11024 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11025 to XCFLAGS instead of CFLAGS.
11026
11027 2005-09-30 Richard Henderson <rth@redhat.com>
11028
11029 * configure.ac: Determine whether -pthread or -lpthread is needed.
11030 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11031 * Makefine.in, configure: Rebuild.
11032
11033 2005-09-28 Richard Henderson <rth@redhat.com>
11034
11035 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11036 * testsuite/libgomp.dg/omp-single-3.c: New test.
11037
11038 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11039
11040 * testsuite/libgomp.dg/omp-single-2.c: New test.
11041 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11042
11043 2005-09-27 Richard Henderson <rth@redhat.com>
11044
11045 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11046 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11047
11048 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11049
11050 * testsuite/libgomp.dg/omp-loop03.c: New test.
11051
11052 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11053
11054 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11055
11056 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11057
11058 * testsuite/libgomp.dg/omp-single-1.c: New test.
11059 * testsuite/libgomp.dg/shared-1.c: Return 0.
11060 Add prototype for abort.
11061 * testsuite/libgomp.dg/shared-2.c: Likewise.
11062
11063 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11064
11065 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11066 constructs.
11067
11068 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11069
11070 * testsuite/libgomp.dg/shared-1.c: New test.
11071 * testsuite/libgomp.dg/shared-2.c: New test.
11072
11073 2005-09-24 Richard Henderson <rth@redhat.com>
11074
11075 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11076
11077 2005-09-24 Richard Henderson <rth@redhat.com>
11078
11079 * iter.c (gomp_iter_static_next): Round up when computing number
11080 of iterations. Don't bother distributing a remainder equally.
11081
11082 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11083 Don't call srand. Zero b before testing.
11084 (main): New.
11085
11086 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11087
11088 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11089 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11090
11091 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11092
11093 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11094 without !$omp end do, followed immediately by subroutine end.
11095
11096 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11097
11098 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11099
11100 2005-09-22 Richard Henderson <rth@redhat.com>
11101
11102 * critical.c (GOMP_critical_name_start): Change argument to void**.
11103 Reuse the pointer space if the mutex fits.
11104 (GOMP_critical_name_end): Likewise.
11105 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11106 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11107 (GOMP_critical_name_end): Likewise.
11108 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11109 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11110
11111 2005-09-20 Richard Henderson <rth@redhat.com>
11112
11113 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11114 (create_lock_lock): New.
11115 (initialize_critical): Initialize it.
11116 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11117 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11118
11119 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11120
11121 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11122
11123 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11124
11125 * testsuite/libgomp.dg/omp-loop01.c: New test.
11126 * testsuite/libgomp.dg/omp-loop02.c: New test.
11127
11128 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11129
11130 * configure.ac (AC_PROG_FC): Add.
11131 (USE_FORTRAN): New automake conditional.
11132 * configure: Rebuilt.
11133 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11134 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11135 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11136 Add rules to build them.
11137 * Makefile.in: Rebuilt.
11138 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11139 OMP_NEST_LOCK_KIND.
11140 * libgomp.map: Add Fortran wrappers.
11141 * libgomp_f.h.in: New file.
11142 * omp_lib.h.in: New file.
11143 * omp_lib.f90.in: New file.
11144 * fortran.c: New file.
11145 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11146 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11147 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11148 libgfortran has been built.
11149 * testsuite/libgomp.fortran/fortran.exp: New file.
11150 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11151 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11152 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11153 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11154 * testsuite/libgomp.fortran/omp_hello.f: New test.
11155 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11156 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11157 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11158 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11159 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11160 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11161 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11162 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11163
11164 2005-08-30 Richard Henderson <rth@redhat.com>
11165
11166 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11167 function for when aliases are not usable.
11168 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11169 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11170 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11171 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11172 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11173 GOMP_loop_ordered_guided_next): Likewise.
11174 * ordered.c (GOMP_ordered_start): Likewise.
11175
11176 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11177
11178 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11179 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11180 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11181 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11182 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11183 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11184 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11185 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11186 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11187
11188 2005-07-07 Eric Christopher <echristo@redhat.com>
11189 Diego Novillo <dnovillo@redhat.com>
11190
11191 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11192 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11193 up code.
11194 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11195 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11196 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11197 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11198 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11199 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11200 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11201
11202 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11203
11204 * TOPLEVEL.patch: Remove.
11205
11206 2005-05-16 Richard Henderson <rth@redhat.com>
11207
11208 * configure.ac: Test for clock_gettime.
11209 * config.h.in, configure: Rebuild.
11210 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11211 (omp_get_wtime): Use clock_gettime if available.
11212 (omp_get_wtick): Use clock_getres if available.
11213
11214 2005-05-11 Richard Henderson <rth@redhat.com>
11215
11216 * config/linux/ia64/futex.h: New file.
11217 * configure.tgt: Use it.
11218
11219 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11220
11221 2005-05-07 Richard Henderson <rth@redhat.com>
11222
11223 * config/linux/powerpc/futex.h: New file.
11224 * configure.tgt: Use it.
11225
11226 * config/linux/i486/futex.h: Merge ...
11227 * config/linux/x86_64/futex.h: ... into ...
11228 * config/linux/x86/futex.h: ... here.
11229 * configure.tgt: Update to match.
11230
11231 2005-05-06 Richard Henderson <rth@redhat.com>
11232
11233 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11234 * config/linux/i486/futex.h: Likewise.
11235 * config/linux/x86_64/futex.h: Likewise.
11236
11237 * config/linux/lock.c: New file.
11238 * config/linux/omp-lock.h: New file.
11239
11240 * critical.c, env.h: Don't include omp.h
11241 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11242 * config/posix/time.c: Likewise.
11243 * config/posix/omp-lock.h: New file.
11244 * libgomp.h: Include omp-lock.h and omp.h.
11245 * Makefile.am (nodist_include_HEADERS): New.
11246 (omp.h): New rule.
11247 * configure.ac (PERL): New.
11248 * mkomp_h.pl: New file.
11249 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11250 with templates.
11251 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11252
11253 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11254 build directory. Re-add -march=i486 hack.
11255
11256 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11257 (libgomp_link_flags): Remove.
11258 (libgomp_initialized): Remove.
11259 (libgomp_init): Don't protect from reinitialization. Copy code
11260 from libstdc++ for getting the multilib set correctly.
11261
11262 2005-05-05 Richard Henderson <rth@redhat.com>
11263
11264 * config/linux/alpha/futex.h: New file.
11265 * configure.tgt (alpha*-*-linux*): Use it.
11266
11267 * config/posix/mutex.c: New file.
11268 * config/posix/sem.c: Use libgomp.h.
11269
11270 * configure.tgt (x86_64-linux): Also test CC for -m32.
11271 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11272
11273 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11274 after $gccpath.
11275
11276 * Makefile.am (SUBDIRS): New.
11277 (libgomp_la_LDFLAGS): Add -lpthread.
11278 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11279 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11280
11281 * libgomp_g.h: New file.
11282 * libgomp.h: Split out all public declarations to libgomp_g.h.
11283 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11284 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11285 * config/linux/sem.h: Likewise.
11286 * config/posix/sem.h: Likewise.
11287
11288 * Makefile.am (AM_LDFLAGS): New.
11289 (libgomp_version_script): Split out from ...
11290 (libgomp_la_LDFLAGS): ... here.
11291 (libgomp_version_info): New.
11292 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11293 (LIBGOMP_ENABLE): New.
11294 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11295 (LIBGOMP_ENABLE_SYMVERS): New.
11296 * configure.ac (AC_INIT): Version 1.0.
11297 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11298 (enable-linux-futex): Likewise. Rename from enable-futex.
11299 (libtool_VERSION): New.
11300 (LIBGOMP_ENABLE_SYMVERS): Use it.
11301 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11302 * Makefile.in, aclocal.m4, configure: Rebuild.
11303
11304 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11305 (gomp_mutex_unlock_slow): Fix typo.
11306 * config/linux/sem.c: Similarly.
11307 (gomp_sem_post_slow): Fix typo.
11308 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11309 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11310 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11311
11312 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11313 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11314 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11315 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11316 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11317 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11318 LDFLAGS. Pull enable_futex check to top-level.
11319 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11320 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11321
11322 First attempt at real configury.
11323 * Makefile, config.h: Remove file.
11324 * Makefile.am, Makefile.in: New file.
11325 * acinclude.m4 aclocal.m4: New file.
11326 * configure.ac, configure.tgt, configure: New file.
11327
11328 * config/posix/lock.c: Rename from sys-lock.c.
11329 * config/posix/mutex.h: Rename from sys-mutex.h.
11330 * config/posix/sem.c: Rename from sys-sem.c.
11331 * config/posix/sem.h: Rename from sys-sem.h.
11332 * config/posix/proc.c: Rename from sys-proc.c.
11333 * config/posix/time.c: Rename from sys-proc.c.
11334
11335 * config/linux/mutex.c: New file.
11336 * config/linux/mutex.h: New file.
11337 * config/linux/sem.c: New file.
11338 * config/linux/sem.h: New file.
11339 * config/linux/i486/futex.h: New file.
11340 * config/linux/x86_64/futex.h: New file.
11341
11342 2005-05-04 Richard Henderson <rth@redhat.com>
11343
11344 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11345 * libgomp.h: Declare them.
11346 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11347 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11348
11349 2005-05-04 Richard Henderson <rth@redhat.com>
11350
11351 * libgomp-1 code drop
11352
11353 2005-05-04 Richard Henderson <rth@redhat.com>
11354
11355 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11356 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11357 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11358 (gomp_iter_static_next): Update.
11359 (gomp_ordered_static_next): Update.
11360 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11361 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11362 totally empty range.
11363 (gomp_loop_ordered_static_next): Refine test for calling
11364 gomp_ordered_static_next.
11365 * testsuite/ordered-1.c: Add case for more threads than iterations.
11366
11367 * iter.c (gomp_iter_runtime_next_locked): Remove.
11368 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11369 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11370 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11371 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11372 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11373 gomp_loop_ordered_guided_next): Downcase name, make static, add
11374 an external alias with the old name.
11375 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11376 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11377 switch and call one of the above static functions.
11378 * libgomp.h: Update.
11379
11380 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11381 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11382 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11383 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11384 GOMP_loop_ordered_guided_start): Update to match.
11385 * sections.c (GOMP_sections_start): Likewise.
11386 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11387
11388 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11389 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11390 Use bounds check instead of modulus.
11391 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11392 (gomp_ordered_last): Don't sync with ordered_owner here.
11393 (gomp_ordered_next): Likewise.
11394 (gomp_ordered_static_loop_next): Likewise.
11395 * loop.c, libgomp.h: Update to match.
11396
11397 * libgomp.h (GOMP_barrier): Declare.
11398
11399 * testsuite/barrier-1.c: New file.
11400 * testsuite/critical-1.c: New file.
11401 * testsuite/ordered-2.c: New file.
11402 * testsuite/ordered-1.c: New file.
11403 * testsuite/sections-1.c: New file.
11404 * testsuite/single-1.c: New file.
11405 * testsuite/Makefile (TESTS): Add them.
11406
11407 2005-05-04 Richard Henderson <rth@redhat.com>
11408
11409 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11410 * loop.c (GOMP_loop_static_start): If not the startup thread,
11411 acquire the mutex to wait for initialization complete.
11412 (GOMP_loop_ordered_static_start): Likewise.
11413 (GOMP_loop_ordered_runtime_start): Likewise.
11414 (GOMP_loop_ordered_static_first): Remove.
11415 (GOMP_loop_ordered_dynamic_first): Remove.
11416 (GOMP_loop_ordered_guided_first): Remove.
11417 (GOMP_loop_ordered_runtime_first): Remove.
11418 * ordered.c (gomp_ordered_loop_first): Post to own release when
11419 we're the first thread.
11420 (gomp_ordered_loop_last): Wait on release if not owner.
11421 (gomp_ordered_loop_next): Likewise.
11422 (gomp_ordered_static_loop_init): New.
11423 (gomp_ordered_static_loop_next): Use ordered_owner.
11424 (GOMP_ordered_start): Likewise.
11425 * work.c (gomp_new_work_share): Initialize ordered_owner.
11426
11427 2005-05-03 Richard Henderson <rth@redhat.com>
11428
11429 * Makefile (OPT): New.
11430 (CFLAGS): Use it.
11431
11432 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11433 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11434 * libgomp.h, libgomp.map, NOTES: Update to match.
11435
11436 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11437 Add initialized and thr members.
11438 (gomp_thread_start): Pause when initially spawned to wait for
11439 the whole team to be created.
11440 (gomp_team_start): Release team members at the end.
11441
11442 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11443 (f_foo_1): Use GOMP_loop_end.
11444 (f_foo_2): Use GOMP_loop_end_nowait.
11445
11446 * testsuite/loop-2.c: New file.
11447 * testsuite/Makefile (TESTS): Add it.
11448
11449 2005-05-03 Richard Henderson <rth@redhat.com>
11450
11451 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11452 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11453 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11454 initial work_share.
11455
11456 * testsuite/Makefile: New file.
11457 * testsuite/loop-1.c: New file.
11458
11459 2005-05-03 Richard Henderson <rth@redhat.com>
11460
11461 Initial implementation and checkin.
11462 \f
11463 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11464
11465 Copying and distribution of this file, with or without modification,
11466 are permitted in any medium without royalty provided the copyright
11467 notice and this notice are preserved.