1 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
3 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6 2019-09-06 Florian Weimer <fweimer@redhat.com>
8 * configure: Regenerate.
10 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
13 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
14 scanning to conform to the GNU Coding Standards.
15 * configure: Regenerate.
17 2019-08-28 Jakub Jelinek <jakub@redhat.com>
20 * testsuite/libgomp.c/scan-21.c: New test.
21 * testsuite/libgomp.c/scan-22.c: New test.
23 2019-08-27 Jakub Jelinek <jakub@redhat.com>
26 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
28 * testsuite/libgomp.c/scan-12.c: Likewise.
29 * testsuite/libgomp.c/scan-13.c: Likewise.
30 * testsuite/libgomp.c/scan-14.c: Likewise.
31 * testsuite/libgomp.c/scan-15.c: Likewise.
32 * testsuite/libgomp.c/scan-16.c: Likewise.
33 * testsuite/libgomp.c/scan-17.c: Likewise.
34 * testsuite/libgomp.c/scan-18.c: Likewise.
35 * testsuite/libgomp.c/scan-19.c: Likewise.
36 * testsuite/libgomp.c/scan-20.c: Likewise.
37 * testsuite/libgomp.c++/scan-9.C: Likewise.
38 * testsuite/libgomp.c++/scan-10.C: Likewise.
39 * testsuite/libgomp.c++/scan-11.C: Likewise.
40 * testsuite/libgomp.c++/scan-12.C: Likewise.
41 * testsuite/libgomp.c++/scan-14.C: Likewise.
42 * testsuite/libgomp.c++/scan-15.C: Likewise.
43 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
44 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
45 * testsuite/libgomp.c++/scan-16.C: Likewise.
47 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
50 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
51 -std=legacy so invalid code in the test case is accepted.
53 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
56 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
59 2019-08-08 Jakub Jelinek <jakub@redhat.com>
61 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
62 perform the lookup in the first loop only if !not_found_cnt, otherwise
63 perform lookups for it in the second loop guarded with
64 if (not_found_cnt || has_firstprivate).
65 * testsuite/libgomp.c/target-37.c: New test.
66 * testsuite/libgomp.c++/target-22.C: New test.
68 2019-08-07 Jakub Jelinek <jakub@redhat.com>
70 * testsuite/libgomp.c/target-18.c (struct S): New type.
71 (foo): Use use_device_addr clause instead of use_device_ptr clause
72 where required by OpenMP 5.0, add further tests for both use_device_ptr
73 and use_device_addr clauses.
74 * testsuite/libgomp.c++/target-9.C (struct S): New type.
75 (foo): Use use_device_addr clause instead of use_device_ptr clause
76 where required by OpenMP 5.0, add further tests for both use_device_ptr
77 and use_device_addr clauses. Add t and u arguments.
78 (main): Adjust caller.
80 2019-08-06 Jakub Jelinek <jakub@redhat.com>
82 * testsuite/libgomp.c++/loop-13.C: New test.
83 * testsuite/libgomp.c++/loop-14.C: New test.
84 * testsuite/libgomp.c++/loop-15.C: New test.
86 2019-07-31 Jakub Jelinek <jakub@redhat.com>
89 * testsuite/libgomp.c++/for-27.C: New test.
91 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
93 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
94 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
96 2019-07-20 Jakub Jelinek <jakub@redhat.com>
98 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
100 2019-07-08 Jakub Jelinek <jakub@redhat.com>
102 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
103 * testsuite/libgomp.c++/scan-16.C: Likewise.
105 2019-07-06 Jakub Jelinek <jakub@redhat.com>
107 * testsuite/libgomp.c/scan-19.c: New test.
108 * testsuite/libgomp.c/scan-20.c: New test.
110 * testsuite/libgomp.c/scan-11.c: New test.
111 * testsuite/libgomp.c/scan-12.c: New test.
112 * testsuite/libgomp.c/scan-13.c: New test.
113 * testsuite/libgomp.c/scan-14.c: New test.
114 * testsuite/libgomp.c/scan-15.c: New test.
115 * testsuite/libgomp.c/scan-16.c: New test.
116 * testsuite/libgomp.c/scan-17.c: New test.
117 * testsuite/libgomp.c/scan-18.c: New test.
118 * testsuite/libgomp.c++/scan-9.C: New test.
119 * testsuite/libgomp.c++/scan-10.C: New test.
120 * testsuite/libgomp.c++/scan-11.C: New test.
121 * testsuite/libgomp.c++/scan-12.C: New test.
122 * testsuite/libgomp.c++/scan-13.C: New test.
123 * testsuite/libgomp.c++/scan-14.C: New test.
124 * testsuite/libgomp.c++/scan-15.C: New test.
125 * testsuite/libgomp.c++/scan-16.C: New test.
127 2019-07-04 Jakub Jelinek <jakub@redhat.com>
129 * testsuite/libgomp.c/scan-9.c: New test.
130 * testsuite/libgomp.c/scan-10.c: New test.
132 2019-07-03 Jakub Jelinek <jakub@redhat.com>
134 * testsuite/libgomp.c++/scan-1.C: New test.
135 * testsuite/libgomp.c++/scan-2.C: New test.
136 * testsuite/libgomp.c++/scan-3.C: New test.
137 * testsuite/libgomp.c++/scan-4.C: New test.
138 * testsuite/libgomp.c++/scan-5.C: New test.
139 * testsuite/libgomp.c++/scan-6.C: New test.
140 * testsuite/libgomp.c++/scan-7.C: New test.
141 * testsuite/libgomp.c++/scan-8.C: New test.
142 * testsuite/libgomp.c/scan-1.c: New test.
143 * testsuite/libgomp.c/scan-2.c: New test.
144 * testsuite/libgomp.c/scan-3.c: New test.
145 * testsuite/libgomp.c/scan-4.c: New test.
146 * testsuite/libgomp.c/scan-5.c: New test.
147 * testsuite/libgomp.c/scan-6.c: New test.
148 * testsuite/libgomp.c/scan-7.c: New test.
149 * testsuite/libgomp.c/scan-8.c: New test.
151 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
153 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
154 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
157 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
160 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
162 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
165 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
168 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
170 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
171 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
172 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
173 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
176 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
179 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
181 2019-06-16 Tom de Vries <tdevries@suse.de>
183 PR tree-optimization/89376
184 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
186 2019-06-15 Tom de Vries <tdevries@suse.de>
188 PR tree-optimization/89713
189 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
190 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
192 2019-06-15 Jakub Jelinek <jakub@redhat.com>
195 * testsuite/libgomp.c/pr90779.c: New test.
196 * testsuite/libgomp.fortran/pr90779.f90: New test.
198 2019-06-15 Tom de Vries <tdevries@suse.de>
200 PR tree-optimization/90009
201 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
203 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
205 PR tree-optimization/89713
206 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
208 2019-06-11 Jakub Jelinek <jakub@redhat.com>
211 * testsuite/libgomp.c/pr90811.c: New test.
213 2019-06-05 Jakub Jelinek <jakub@redhat.com>
215 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
216 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
218 2019-06-04 Jakub Jelinek <jakub@redhat.com>
220 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
221 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
222 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
223 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
225 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
227 * configure.ac: Call AX_COUNT_CPUS.
228 Substitute CPU_COUNT.
229 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
231 * aclocal.m4: Regenerate.
232 * configure: Regenerate.
233 * Makefile.in, testsuite/Makefile.in: Regenerate.
235 2019-05-29 Jakub Jelinek <jakub@redhat.com>
237 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
239 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
240 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
241 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
243 2019-05-27 Jakub Jelinek <jakub@redhat.com>
245 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
247 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
250 * work.c (gomp_init_work_share): Instead of aligning final ordered
251 value to multiples of long long alignment, align to that the
252 first part (ordered team ids) and if inline_ordered_team_ids
253 is not on a long long alignment boundary within the structure,
254 use __alignof__ (long long) - 1 pad size always.
255 * loop.c (GOMP_loop_start): Fix *mem computation if
256 inline_ordered_team_ids is not aligned on long long alignment boundary
257 within the structure.
258 * loop-ull.c (GOMP_loop_ull_start): Likewise.
259 * sections.c (GOMP_sections2_start): Likewise.
261 2019-05-24 Jakub Jelinek <jakub@redhat.com>
263 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
264 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
267 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
268 HAVE_INTTYPES_H is defined.
269 (print_uint64_t): New typedef.
270 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
271 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
272 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
273 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
274 before casting to void *.
275 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
276 * oacc-mem.c: Don't include config.h nor stdint.h.
277 * target.c: Don't include config.h.
278 * oacc-cuda.c: Likewise.
279 * oacc-host.c: Don't include stdint.h.
281 2019-05-20 Jakub Jelinek <jakub@redhat.com>
284 * alloc.c (_GNU_SOURCE): Define.
286 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
288 * acc_prof.h: New file.
289 * oacc-profiling.c: Likewise.
290 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
291 Add these, respectively.
292 * Makefile.in: Regenerate.
293 * env.c (initialize_env): Call goacc_profiling_initialize.
294 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
295 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
296 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
297 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
298 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
299 acc_prof_register, acc_prof_unregister, and acc_register_library.
300 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
301 GOMP_PLUGIN_goacc_thread.
302 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
303 prof_callbacks_enabled members.
304 (goacc_prof_enabled, goacc_profiling_initialize)
305 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
306 (goacc_profiling_dispatch): Declare.
307 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
308 (GOACC_PROFILING_SETUP_P): Define.
309 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
310 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
311 OpenACC Profiling Interface.
312 * oacc-cuda.c (acc_get_current_cuda_device)
313 (acc_get_current_cuda_context, acc_get_cuda_stream)
314 (acc_set_cuda_stream): Likewise.
315 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
316 (acc_init, acc_set_device_type, acc_get_device_type)
317 (acc_get_device_num, goacc_lazy_initialize): Likewise.
318 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
319 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
320 (acc_unmap_data, present_create_copy, delete_copyout)
321 (update_dev_host): Likewise.
322 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
323 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
325 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
326 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
328 * libgomp.texi: Update.
329 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
331 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
332 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
334 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
336 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
338 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
341 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
343 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
344 (struct goacc_asyncqueue_list): Likewise.
345 (goacc_aq): Likewise.
346 (goacc_aq_list): Likewise.
347 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
348 (GOMP_OFFLOAD_openacc_async_test): Remove.
349 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
350 (GOMP_OFFLOAD_openacc_async_wait): Remove.
351 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
352 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
353 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
354 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
355 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
356 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
357 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
358 (GOMP_OFFLOAD_openacc_async_exec): Declare.
359 (GOMP_OFFLOAD_openacc_async_construct): Declare.
360 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
361 (GOMP_OFFLOAD_openacc_async_test): Declare.
362 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
363 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
364 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
365 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
366 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
368 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
369 (gomp_acc_insert_pointer): Adjust declaration.
370 (gomp_copy_host2dev): New declaration.
371 (gomp_copy_dev2host): Likewise.
372 (gomp_map_vars_async): Likewise.
373 (gomp_unmap_tgt): Likewise.
374 (gomp_unmap_vars_async): Likewise.
375 (gomp_fini_device): Likewise.
377 * oacc-async.c (get_goacc_thread): New function.
378 (get_goacc_thread_device): New function.
379 (lookup_goacc_asyncqueue): New function.
380 (get_goacc_asyncqueue): New function.
381 (acc_async_test): Adjust code to use new async design.
382 (acc_async_test_all): Likewise.
383 (acc_wait): Likewise.
384 (acc_wait_async): Likewise.
385 (acc_wait_all): Likewise.
386 (acc_wait_all_async): Likewise.
387 (goacc_async_free): New function.
388 (goacc_init_asyncqueues): Likewise.
389 (goacc_fini_asyncqueues): Likewise.
390 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
392 (acc_set_cuda_stream): Likewise.
393 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
394 (host_openacc_register_async_cleanup): Remove.
395 (host_openacc_async_exec): New function.
396 (host_openacc_async_test): Adjust parameters.
397 (host_openacc_async_test_all): Remove.
398 (host_openacc_async_wait): Remove.
399 (host_openacc_async_wait_async): Remove.
400 (host_openacc_async_wait_all): Remove.
401 (host_openacc_async_wait_all_async): Remove.
402 (host_openacc_async_set_async): Remove.
403 (host_openacc_async_synchronize): New function.
404 (host_openacc_async_serialize): New function.
405 (host_openacc_async_host2dev): New function.
406 (host_openacc_async_dev2host): New function.
407 (host_openacc_async_queue_callback): New function.
408 (host_openacc_async_construct): New function.
409 (host_openacc_async_destruct): New function.
410 (struct gomp_device_descr host_dispatch): Remove initialization of old
411 interface, add intialization of new async sub-struct.
412 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
413 (goacc_attach_host_thread_to_device): Remove old async code usage.
414 * oacc-int.h (goacc_init_asyncqueues): New declaration.
415 (goacc_fini_asyncqueues): Likewise.
416 (goacc_async_copyout_unmap_vars): Likewise.
417 (goacc_async_free): Likewise.
418 (get_goacc_asyncqueue): Likewise.
419 (lookup_goacc_asyncqueue): Likewise.
420 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
422 (present_create_copy): Adjust code to use new async design.
423 (delete_copyout): Likewise.
424 (update_dev_host): Likewise.
425 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
427 (gomp_acc_remove_pointer): Adjust code to use new async design.
428 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
430 (GOACC_enter_exit_data): Likewise.
431 (goacc_wait): Likewise.
432 (GOACC_update): Likewise.
433 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
434 when called, warn as obsolete in comment.
435 * target.c (goacc_device_copy_async): New function.
436 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
437 add goacc_device_copy_async case.
438 (gomp_copy_dev2host): Likewise.
439 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
440 (gomp_map_pointer): Likewise.
441 (gomp_map_fields_existing): Likewise.
442 (gomp_map_vars_internal): New always_inline function, renamed from
444 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
445 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
446 passing goacc_asyncqueue argument.
447 (gomp_unmap_tgt): Remove static, add attribute_hidden.
448 (gomp_unref_tgt): New function.
449 (gomp_unmap_vars_internal): New always_inline function, renamed from
451 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
452 (gomp_unmap_vars_async): Implement by calling
453 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
454 (gomp_fini_device): New function.
455 (gomp_exit_data): Adjust gomp_copy_dev2host call.
456 (gomp_load_plugin_for_device): Remove old interface, adjust to load
458 (gomp_target_fini): Adjust code to call gomp_fini_device.
460 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
461 (struct ptx_stream): Remove.
462 (struct nvptx_thread): Remove current_stream field.
463 (cuda_map_create): Remove.
464 (cuda_map_destroy): Remove.
469 (struct goacc_asyncqueue): Define.
470 (struct nvptx_callback): Define.
471 (struct ptx_free_block): Define.
472 (struct ptx_device): Remove null_stream, active_streams, async_streams,
473 stream_lock, and next fields.
474 (enum ptx_event_type): Remove.
475 (struct ptx_event): Remove.
476 (ptx_event_lock): Remove.
477 (ptx_events): Remove.
478 (init_streams_for_device): Remove.
479 (fini_streams_for_device): Remove.
480 (select_stream_for_async): Remove.
481 (nvptx_init): Remove ptx_events and ptx_event_lock references.
482 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
484 (nvptx_open_device): Add free_blocks initialization, remove
485 init_streams_for_device call.
486 (nvptx_close_device): Remove fini_streams_for_device call, add
487 free_blocks destruct code.
490 (nvptx_exec): Adjust parameters and code.
491 (nvptx_free): Likewise.
492 (nvptx_host2dev): Remove.
493 (nvptx_dev2host): Remove.
494 (nvptx_set_async): Remove.
495 (nvptx_async_test): Remove.
496 (nvptx_async_test_all): Remove.
497 (nvptx_wait): Remove.
498 (nvptx_wait_async): Remove.
499 (nvptx_wait_all): Remove.
500 (nvptx_wait_all_async): Remove.
501 (nvptx_get_cuda_stream): Remove.
502 (nvptx_set_cuda_stream): Remove.
503 (GOMP_OFFLOAD_alloc): Adjust code.
504 (GOMP_OFFLOAD_free): Likewise.
505 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
506 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
507 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
508 (GOMP_OFFLOAD_openacc_async_wait): Remove.
509 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
510 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
511 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
512 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
513 (cuda_free_argmem): New function.
514 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
515 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
516 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
517 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
518 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
519 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
520 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
521 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
522 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
523 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
524 (cuda_callback_wrapper): New function.
525 (cuda_memcpy_sanity_check): New function.
526 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
527 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
528 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
529 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
531 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
534 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
536 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
538 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
540 2019-03-27 Kevin Buettner <kevinb@redhat.com>
542 * team.c (gomp_team_start): Initialize pool->threads[0].
544 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
546 * testsuite/libgomp.oacc-c++/c++.exp: Specify
547 "-foffload=$offload_target".
548 * testsuite/libgomp.oacc-c/c.exp: Likewise.
549 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
550 * testsuite/lib/libgomp.exp
551 (check_effective_target_openacc_nvidia_accel_configured): Remove,
552 as (conceptually) merged into
553 check_effective_target_openacc_nvidia_accel_selected. Adjust all
556 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
557 * testsuite/libgomp-test-support.exp.in: Adjust.
558 * testsuite/lib/libgomp.exp: Likewise. Don't populate
559 openacc_device_types_s.
560 (offload_target_to_openacc_device_type): New proc.
561 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
562 * testsuite/libgomp.oacc-c/c.exp: Likewise.
563 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
564 * Makefile.in: Regenerate.
565 * configure: Likewise.
566 * testsuite/Makefile.in: Likewise.
568 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
569 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
570 instead of OFFLOAD_TARGETS.
571 * target.c (gomp_target_init): Adjust.
572 * testsuite/libgomp-test-support.exp.in: Likewise.
573 * testsuite/lib/libgomp.exp: Likewise. Populate
574 openacc_device_types_s instead of offload_targets_s_openacc.
575 (check_effective_target_openacc_nvidia_accel_selected)
576 (check_effective_target_openacc_host_selected): Adjust.
577 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
578 * testsuite/libgomp.oacc-c/c.exp: Likewise.
579 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
580 * Makefile.in: Regenerate.
581 * config.h.in: Likewise.
582 * configure: Likewise.
583 * testsuite/Makefile.in: Likewise.
585 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
586 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
587 "offloading: supported, but hardware not accessible".
588 * testsuite/libgomp.oacc-c/c.exp: Likewise.
589 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
591 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
594 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
596 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
597 and related adjustment.
599 2019-01-30 Jakub Jelinek <jakub@redhat.com>
602 * testsuite/libgomp.c++/pr88988.C: New test.
604 2019-01-28 Jakub Jelinek <jakub@redhat.com>
607 * testsuite/libgomp.c/pr89002.c: New test.
609 2019-01-28 Richard Biener <rguenther@suse.de>
612 PR tree-optimization/86865
613 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
615 2019-01-24 Tom de Vries <tdevries@suse.de>
617 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
618 once instantiated_devices drops to 0.
620 2019-01-23 Tom de Vries <tdevries@suse.de>
623 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
625 (nvptx_exec): Don't call map_push if mapnum == 0.
626 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
628 2019-01-23 Tom de Vries <tdevries@suse.de>
632 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
633 (map_fini): Remove "assert (!s->map->active)".
634 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
636 2019-01-23 Tom de Vries <tdevries@suse.de>
639 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
640 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
642 2019-01-15 Tom de Vries <tdevries@suse.de>
645 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
648 2019-01-12 Tom de Vries <tdevries@suse.de>
650 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
651 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
652 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
653 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
655 2019-01-12 Tom de Vries <tdevries@suse.de>
657 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
659 2019-01-12 Tom de Vries <tdevries@suse.de>
661 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
662 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
663 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
665 2019-01-12 Tom de Vries <tdevries@suse.de>
668 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
669 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
671 2019-01-12 Tom de Vries <tdevries@suse.de>
674 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
675 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
677 2019-01-12 Tom de Vries <tdevries@suse.de>
679 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
680 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
681 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
683 2019-01-12 Tom de Vries <tdevries@suse.de>
685 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
686 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
687 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
689 2019-01-12 Tom de Vries <tdevries@suse.de>
691 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
692 resources diagnostic.
694 2019-01-12 Tom de Vries <tdevries@suse.de>
696 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
697 vector length to be 128.
698 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
699 length 2097152 to be reduced to 1024 instead of 32.
701 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
702 James Norris <jnorris@codesourcery.com>
704 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
705 Library Routines", and "Environment Variables".
707 2019-01-11 Tom de Vries <tdevries@suse.de>
709 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
712 2019-01-11 Tom de Vries <tdevries@suse.de>
714 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
716 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
717 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
718 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
719 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
721 2019-01-11 Tom de Vries <tdevries@suse.de>
723 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
726 2019-01-10 Nathan Sidwell <nathan@acm.org>
727 Julian Brown <julian@codesourcery.com>
730 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
731 * testsuite/libgomp.oacc-c++/pr71959.C: New.
733 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
735 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
738 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
740 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
741 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
744 2019-01-09 Tom de Vries <tdevries@suse.de>
747 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
748 #define instead of "const int".
749 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
750 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
751 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
752 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
754 2019-01-09 Tom de Vries <tdevries@suse.de>
756 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
759 2019-01-07 Tom de Vries <tdevries@suse.de>
761 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
762 GOMP_OPENACC_DIM argument.
764 2019-01-03 Tom de Vries <tdevries@suse.de>
766 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
767 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
769 2019-01-01 Jakub Jelinek <jakub@redhat.com>
771 Update copyright years.
773 2019-01-01 Jakub Jelinek <jakub@redhat.com>
775 * libgomp.texi: Bump @copying's copyright year.
777 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
779 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
780 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
781 (GOACC_declare): Redefine the "device" argument to "flags".
783 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
784 Cesar Philippidis <cesar@codesourcery.com>
786 * target.c (struct gomp_coalesce_chunk): New structure.
787 (struct gomp_coalesce_buf): Update the chunks member to use that
788 type. Adjust all users.
790 2018-12-19 Tom de Vries <tdevries@suse.de>
792 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
793 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
794 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
796 2018-12-19 Tom de Vries <tdevries@suse.de>
798 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
799 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
800 gcc/testsuite/gcc.dg/goacc.
801 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
803 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
804 Chung-Lin Tang <cltang@codesourcery.com>
806 * oacc-mem.c (acc_present_or_create): Remove definition and change
807 to alias of acc_create.
808 (acc_present_or_copyin): Remove definition and change to alias of
810 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
811 of acc_present_or_create.
812 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
813 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
814 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
815 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
816 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
817 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
818 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
819 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
820 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
821 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
822 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
823 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
824 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
825 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
826 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
827 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
829 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
832 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
833 "identical parameters".
834 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
835 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
838 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
839 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
842 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
843 (nvptx_wait_async): Unseen async-argument is a no-op.
844 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
845 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
846 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
847 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
848 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
849 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
850 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
851 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
852 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
854 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
855 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
857 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
859 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
860 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
861 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
863 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
866 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
867 (acc_set_cuda_stream): Clarify.
868 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
870 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
872 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
873 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
874 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
875 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
877 2018-12-14 Tom de Vries <tdevries@suse.de>
879 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
880 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
881 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
882 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
883 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
885 2018-12-13 Tom de Vries <tdevries@suse.de>
887 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
888 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
889 * fortran.c (omp_display_affinity_): ... here.
890 * libgomp.h (gomp_print_string): Declare.
891 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
892 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
895 2018-12-13 Jakub Jelinek <jakub@redhat.com>
898 * testsuite/libgomp.c++/for-24.C (results): Include it in
899 omp declare target region.
900 (main): Use map (always, tofrom: results) instead of
901 map (tofrom: results).
903 2018-12-12 Jakub Jelinek <jakub@redhat.com>
906 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
907 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
909 * testsuite/libgomp.c-c++-common/for-16.c: New test.
911 2018-12-12 Andreas Schwab <schwab@suse.de>
913 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
916 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
919 * testsuite/libgomp.fortran/async_io_8.f90: New test.
921 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
922 Jakub Jelinek <jakub@redhat.com>
924 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
925 devicep->host2dev_func.
927 2018-12-08 Jakub Jelinek <jakub@redhat.com>
930 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
931 tls_runtime effective target.
932 (t): New threadprivate variable.
933 (main): Set t in threads which execute iterations of the worksharing
934 loop. Propagate that to the task after the loop and don't abort
935 if the current taskgroup hasn't been cancelled.
937 2018-12-02 Jakub Jelinek <jakub@redhat.com>
939 * testsuite/libgomp.c/task-reduction-3.c: New test.
941 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
943 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
946 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
947 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
949 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
951 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
953 2018-10-19 Richard Biener <rguenther@suse.de>
955 PR tree-optimization/88182
956 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
958 2018-11-26 Jakub Jelinek <jakub@redhat.com>
960 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
961 (RUNTEST): Don't define.
962 (RUNTESTDEFAULTFLAGS): Add.
963 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
964 (distclean-am): Depend on distclean-DEJAGNU.
965 (check-am): If -j% option is present in MFLAGS and if
966 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
967 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
968 * testsuite/Makefile.in: Regenerated.
970 2018-11-26 Richard Biener <rguenther@suse.de>
972 PR tree-optimization/88182
973 * testsuite/libgomp.c++/pr88182.C: New testcase.
975 2018-11-20 Jakub Jelinek <jakub@redhat.com>
978 * config/mingw32/affinity-fmt.c: New file.
980 2018-11-09 Jakub Jelinek <jakub@redhat.com>
982 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
983 (gomp_display_affinity): Use __builtin_choose_expr to handle
984 properly handle argument having integral, or pointer or some other
985 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
986 with uint64_t type instead of %llx and unsigned long long.
988 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
989 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
991 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
993 * affinity.c: Include <string.h>, <stdio.h>.
994 (gomp_display_affinity_place): Remove cpusetp.
995 * teams.c: Include <limits.h>.
997 2018-11-08 Jakub Jelinek <jakub@redhat.com>
999 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
1000 in_reduction clause for s[0].
1002 * affinity.c (gomp_display_affinity_place): New function.
1003 * affinity-fmt.c: New file.
1004 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
1005 * config/linux/affinity.c (gomp_display_affinity_place): New function.
1006 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
1007 Move these functions to ...
1008 * config/nvptx/teams.c: ... here. New file.
1009 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
1011 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
1013 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
1014 and _aligned_malloc.
1015 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
1016 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
1017 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
1018 gomp_affinity_format_len): New variables.
1019 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
1020 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
1021 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
1022 modifiers. Display (non-default) chunk sizes. Print
1023 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
1024 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
1025 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
1026 * fortran.c: Include stdio.h and string.h.
1027 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
1028 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
1029 (omp_set_affinity_format_, omp_get_affinity_format_,
1030 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
1031 omp_pause_resource_all_): New functions.
1032 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
1034 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
1036 * teams.c: ... here. New file.
1037 * libgomp_g.h: Include gstdint.h.
1038 (GOMP_loop_nonmonotonic_runtime_start,
1039 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
1040 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
1041 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
1042 GOMP_parallel_loop_nonmonotonic_runtime,
1043 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1044 GOMP_loop_ull_nonmonotonic_runtime_start,
1045 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
1046 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
1047 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1048 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
1049 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
1050 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1051 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1052 GOMP_teams_reg): Declare.
1053 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
1054 gomp_aligned_alloc uses fallback implementation.
1055 (gomp_aligned_alloc, gomp_aligned_free): Declare.
1056 (enum gomp_schedule_type): Add GFS_MONOTONIC.
1057 (struct gomp_doacross_work_share): Add extra field.
1058 (struct gomp_work_share): Add task_reductions field.
1059 (struct gomp_taskgroup): Add workshare and reductions fields.
1060 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
1061 (gomp_thread_handle): New typedef.
1062 (gomp_display_affinity_place, gomp_set_affinity_format,
1063 gomp_display_string, gomp_display_affinity,
1064 gomp_display_affinity_thread): Declare.
1065 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
1066 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
1067 gomp_workshare_task_reduction_register): Declare.
1068 (gomp_team_start): Add taskgroup argument.
1069 (gomp_pause_host): Declare.
1070 (gomp_init_work_share, gomp_work_share_start): Change bool argument
1072 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
1073 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
1074 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
1075 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1076 GOMP_loop_ull_doacross_start,
1077 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1078 GOMP_loop_maybe_nonmonotonic_runtime_next,
1079 GOMP_loop_maybe_nonmonotonic_runtime_start,
1080 GOMP_loop_nonmonotonic_runtime_next,
1081 GOMP_loop_nonmonotonic_runtime_start,
1082 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1083 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1084 GOMP_loop_ull_nonmonotonic_runtime_next,
1085 GOMP_loop_ull_nonmonotonic_runtime_start,
1086 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1087 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
1088 GOMP_taskgroup_reduction_register,
1089 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1090 GOMP_teams_reg and GOMP_taskwait_depend.
1091 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
1092 omp_{capture,display}_affinity{,_}, and
1093 omp_[gs]et_affinity_format{,_}.
1094 * loop.c: Include string.h.
1095 (GOMP_loop_runtime_next): Add ialias.
1096 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1097 (gomp_loop_static_start, gomp_loop_dynamic_start,
1098 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1099 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1100 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1101 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
1102 or gomp_doacross_init callers.
1103 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
1104 GOMP_loop_doacross_start): New functions.
1105 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1106 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
1107 Mask off GFS_MONOTONIC bit.
1108 (GOMP_loop_maybe_nonmonotonic_runtime_next,
1109 GOMP_loop_maybe_nonmonotonic_runtime_start,
1110 GOMP_loop_nonmonotonic_runtime_next,
1111 GOMP_loop_nonmonotonic_runtime_start,
1112 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1113 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
1115 (gomp_parallel_loop_start): Pass NULL as taskgroup to
1117 * loop_ull.c: Include string.h.
1118 (GOMP_loop_ull_runtime_next): Add ialias.
1119 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1120 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
1121 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
1122 gomp_loop_ull_ordered_dynamic_start,
1123 gomp_loop_ull_ordered_guided_start,
1124 gomp_loop_ull_doacross_static_start,
1125 gomp_loop_ull_doacross_dynamic_start,
1126 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
1127 and gomp_doacross_ull_init callers.
1128 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1129 GOMP_loop_ull_doacross_start): New functions.
1130 (GOMP_loop_ull_runtime_start,
1131 GOMP_loop_ull_ordered_runtime_start,
1132 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
1133 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1134 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1135 GOMP_loop_ull_nonmonotonic_runtime_next,
1136 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
1137 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
1138 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
1139 (omp_pause_resource_t, omp_depend_t): New typedefs.
1140 (enum omp_lock_hint_t): Renamed to ...
1141 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
1142 enumerators using numbers and omp_lock_hint_* as their aliases.
1143 (omp_lock_hint_t): New typedef. Rename to ...
1144 (omp_sync_hint_t): ... this.
1145 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
1146 omp_sync_hint_t instead of omp_lock_hint_t.
1147 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1148 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1150 (omp_target_is_present, omp_target_disassociate_ptr):
1151 Change first argument from void * to const void *.
1152 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
1153 from void * to const void *.
1154 (omp_target_associate_ptr): Change first and second arguments from
1155 void * to const void *.
1156 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
1157 omp_pause_hard): New parameters.
1158 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1159 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1161 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1162 omp_pause_hard): New parameters.
1163 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1164 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1166 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1167 EXTRA argument. If not needed to prepare array, if extra is 0,
1168 clear ws->doacross, otherwise allocate just doacross structure and
1169 extra payload. If array is needed, allocate also extra payload.
1170 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1171 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1173 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1175 (GOMP_parallel): Likewise. Formatting fix.
1176 (GOMP_parallel_reductions): New function.
1177 (GOMP_cancellation_point): If taskgroup has workshare
1178 flag set, check cancelled of prev taskgroup if any.
1179 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1180 on prev taskgroup if any.
1181 * sections.c: Include string.h.
1182 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1183 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1184 (GOMP_sections2_start): New function.
1185 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1186 Pass NULL as taskgroup to gomp_team_start.
1187 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1188 gomp_work_share_start callers.
1189 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1190 If taskgroup has workshare flag set, check cancelled on prev
1191 taskgroup if any. Guard all cancellation tests with
1192 gomp_cancel_var test.
1193 (omp_target_is_present, omp_target_disassociate_ptr):
1194 Change ptr argument from void * to const void *.
1195 (omp_target_memcpy): Change src argument from void * to const void *.
1196 (omp_target_memcpy_rect): Likewise.
1197 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1198 instead of char * where needed.
1199 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1200 from void * to const void *.
1201 (omp_pause_resource, omp_pause_resource_all): New functions.
1202 * task.c (gomp_task_handle_depend): Handle new depend array format
1203 in addition to the old. Handle mutexinoutset kinds the same as
1204 inout for now, handle unspecified kinds.
1205 (gomp_create_target_task): If taskgroup has workshare flag set, check
1206 cancelled on prev taskgroup if any. Guard all cancellation tests with
1207 gomp_cancel_var test. Handle new depend array format count in
1208 addition to the old.
1209 (GOMP_task): Likewise. Adjust function comment.
1210 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1211 cancelled on prev taskgroup if any. Guard all cancellation tests with
1212 gomp_cancel_var test.
1213 (GOMP_taskwait_depend): New function.
1214 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1215 format in addition to the old. Handle mutexinoutset kinds the same as
1216 inout for now, handle unspecified kinds. Fix a function comment typo.
1217 (gomp_taskgroup_init): New function.
1218 (GOMP_taskgroup_start): Use it.
1219 (gomp_reduction_register, gomp_create_artificial_team,
1220 GOMP_taskgroup_reduction_register,
1221 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1222 gomp_parallel_reduction_register,
1223 gomp_workshare_task_reduction_register,
1224 gomp_workshare_taskgroup_start,
1225 GOMP_workshare_task_reduction_unregister): New functions.
1226 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1227 check cancelled on prev taskgroup if any. Guard all cancellation
1228 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1229 by calling GOMP_taskgroup_reduction_register.
1230 * team.c (gomp_thread_attr): Remove comment.
1231 (struct gomp_thread_start_data): Add handle field.
1232 (gomp_thread_start): Call pthread_detach.
1233 (gomp_new_team): Adjust gomp_init_work_share caller.
1234 (gomp_free_pool_helper): Call pthread_detach.
1235 (gomp_team_start): Add taskgroup argument, initialize implicit
1236 tasks' taskgroup field to that. Don't call
1237 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1238 (gomp_team_end): Determine nesting by thr->ts.level != 0
1239 rather than thr->ts.team != NULL.
1240 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1241 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1242 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1243 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1244 if more than 1 allocate also extra payload at the end of array. Never
1245 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1246 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1247 return true instead of ws.
1248 * Makefile.in: Regenerated.
1249 * configure: Regenerated.
1250 * config.h.in: Regenerated.
1251 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1253 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1254 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1255 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1256 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1257 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1258 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1259 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1260 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1261 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1262 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1263 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1264 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1265 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1266 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1267 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1268 define a different N(test), don't define N(f0) to N(f14), but instead
1269 define N(f20) to N(f34) using != comparisons.
1270 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1271 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1272 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1273 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1274 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1275 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1276 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1277 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1278 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1279 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1280 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1281 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1282 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1283 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1284 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1285 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1286 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1287 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1288 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1289 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1290 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1291 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1292 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1293 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1294 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1295 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1296 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1297 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1298 * testsuite/libgomp.c++/depend-1.C: New test.
1299 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1300 * testsuite/libgomp.c++/depobj-1.C: New test.
1301 * testsuite/libgomp.c++/for-16.C: New test.
1302 * testsuite/libgomp.c++/for-21.C: New test.
1303 * testsuite/libgomp.c++/for-22.C: New test.
1304 * testsuite/libgomp.c++/for-23.C: New test.
1305 * testsuite/libgomp.c++/for-24.C: New test.
1306 * testsuite/libgomp.c++/for-25.C: New test.
1307 * testsuite/libgomp.c++/for-26.C: New test.
1308 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1309 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1310 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1311 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1312 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1313 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1314 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1315 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1316 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1317 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1318 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1319 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1320 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1321 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1322 * testsuite/libgomp.c/task-reduction-1.c: New test.
1323 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1324 * testsuite/libgomp.c/task-reduction-2.c: New test.
1325 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1326 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1327 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1328 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1329 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1330 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1331 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1332 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1333 * testsuite/libgomp.c/teams-1.c: New test.
1334 * testsuite/libgomp.c/teams-2.c: New test.
1335 * testsuite/libgomp.c/thread-limit-4.c: New test.
1336 * testsuite/libgomp.c/thread-limit-5.c: New test.
1337 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1339 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1341 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1342 acc_memcpy_to/from_device functions, now with async parameter.
1343 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1344 (acc_memcpy_from_device): Likewise.
1345 (acc_memcpy_to_device_async): New API function.
1346 (acc_memcpy_from_device_async): Likewise.
1347 (present_create_copy): Add async parameter and async setting/unsetting.
1348 (acc_create): Adjust present_create_copy call.
1349 (acc_copyin): Likewise.
1350 (acc_present_or_create): Likewise.
1351 (acc_present_or_copyin): Likewise.
1352 (acc_create_async): New API function.
1353 (acc_copyin_async): New API function.
1354 (delete_copyout): Add async parameter and async setting/unsetting.
1355 (acc_delete): Adjust delete_copyout call.
1356 (acc_copyout): Likewise.
1357 (acc_delete_async): New API function.
1358 (acc_copyout_async): Likewise.
1359 (update_dev_host): Add async parameter and async setting/unsetting.
1360 (acc_update_device): Adjust update_dev_host call.
1361 (acc_update_self): Likewise.
1362 (acc_update_device_async): New API function.
1363 (acc_update_self_async): Likewise.
1364 * openacc.h (acc_copyin_async): Declare new API function.
1365 (acc_create_async): Likewise.
1366 (acc_copyout_async): Likewise.
1367 (acc_delete_async): Likewise.
1368 (acc_update_device_async): Likewise.
1369 (acc_update_self_async): Likewise.
1370 (acc_memcpy_to_device_async): Likewise.
1371 (acc_memcpy_from_device_async): Likewise.
1372 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1373 (acc_copyin_async_64_h): New subroutine.
1374 (acc_copyin_async_array_h): New subroutine.
1375 (acc_create_async_32_h): New subroutine.
1376 (acc_create_async_64_h): New subroutine.
1377 (acc_create_async_array_h): New subroutine.
1378 (acc_copyout_async_32_h): New subroutine.
1379 (acc_copyout_async_64_h): New subroutine.
1380 (acc_copyout_async_array_h): New subroutine.
1381 (acc_delete_async_32_h): New subroutine.
1382 (acc_delete_async_64_h): New subroutine.
1383 (acc_delete_async_array_h): New subroutine.
1384 (acc_update_device_async_32_h): New subroutine.
1385 (acc_update_device_async_64_h): New subroutine.
1386 (acc_update_device_async_array_h): New subroutine.
1387 (acc_update_self_async_32_h): New subroutine.
1388 (acc_update_self_async_64_h): New subroutine.
1389 (acc_update_self_async_array_h): New subroutine.
1390 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1391 (acc_copyin_async_64_h): New subroutine.
1392 (acc_copyin_async_array_h): New subroutine.
1393 (acc_create_async_32_h): New subroutine.
1394 (acc_create_async_64_h): New subroutine.
1395 (acc_create_async_array_h): New subroutine.
1396 (acc_copyout_async_32_h): New subroutine.
1397 (acc_copyout_async_64_h): New subroutine.
1398 (acc_copyout_async_array_h): New subroutine.
1399 (acc_delete_async_32_h): New subroutine.
1400 (acc_delete_async_64_h): New subroutine.
1401 (acc_delete_async_array_h): New subroutine.
1402 (acc_update_device_async_32_h): New subroutine.
1403 (acc_update_device_async_64_h): New subroutine.
1404 (acc_update_device_async_array_h): New subroutine.
1405 (acc_update_self_async_32_h): New subroutine.
1406 (acc_update_self_async_64_h): New subroutine.
1407 (acc_update_self_async_array_h): New subroutine.
1408 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1409 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1410 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1411 acc_memcpy_to_device_async*, acc_update_device_async*, and
1412 acc_update_self_async* entries.
1413 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1414 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1415 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1417 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1420 * Makefile.am: Include multilib.am
1421 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1422 (CLEANFILES): Remove libgomp.info.
1423 * configure.ac: Remove AC_PREREQ.
1424 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1425 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1428 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1429 Julian Brown <julian@codesourcery.com>
1431 * testsuite/libgomp.oacc-c++/this.C: New.
1433 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1435 * plugin/plugin-nvptx.c (struct cuda_map): New.
1436 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1437 h_tail with (cuda_map *) map.
1438 (cuda_map_create): New function.
1439 (cuda_map_destroy): New function.
1440 (map_init): Update to use a linked list of cuda_map objects.
1441 (map_fini): Likewise.
1442 (map_pop): Likewise.
1443 (map_push): Likewise. Return CUdeviceptr instead of void.
1444 (init_streams_for_device): Remove stales references to ptx_stream
1446 (select_stream_for_async): Likewise.
1447 (nvptx_exec): Update call to map_init.
1449 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1450 Julian Brown <julian@codesourcery.com>
1453 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1455 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1456 Thomas Koenig <tkoenig@gcc.gnu.org>
1459 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1460 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1461 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1462 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1463 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1464 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1465 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1467 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1468 Tom de Vries <tdevries@suse.de>
1471 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1472 (cuOccupancyMaxPotentialBlockSize): Declare.
1473 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1474 CUDA_ONE_CALL_MAYBE_NULL.
1475 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1476 CUoccupancyB2DSize and declare
1477 cuOccupancyMaxPotentialBlockSize.
1478 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1479 default num_gangs and num_workers when the driver supports it.
1481 2018-08-08 Tom de Vries <tdevries@suse.de>
1483 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1484 CUDA_ONE_CALL_MAYBE_NULL.
1485 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1486 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1487 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1490 2018-08-08 Tom de Vries <tdevries@suse.de>
1492 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1493 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1496 2018-08-08 Tom de Vries <tdevries@suse.de>
1498 * plugin/plugin-nvptx.c
1499 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1500 (nvptx_open_device): Use
1501 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1503 2018-08-08 Tom de Vries <tdevries@suse.de>
1505 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1506 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1508 2018-08-07 Tom de Vries <tdevries@suse.de>
1510 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1511 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1512 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1513 corresponding call in CUDA_ONE_CALL. Add def/undef of
1514 CUDA_ONE_CALL_MAYBE_NULL.
1515 (CUDA_CALL_EXISTS): Define.
1517 2018-08-07 Tom de Vries <tdevries@suse.de>
1519 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1520 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1521 corresponding undefs right after.
1523 2018-08-04 Tom de Vries <tdevries@suse.de>
1525 * plugin/configfrag.ac: For --without-cuda-driver, set
1526 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1527 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1528 * configure: Regenerate.
1530 2018-08-02 Tom de Vries <tdevries@suse.de>
1533 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1534 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1535 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1537 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1538 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1539 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1541 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1542 Thomas Schwinge <thomas@codesourcery.com>
1544 * config/nvptx/oacc-parallel.c: Truncate.
1546 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1547 James Norris <jnorris@codesourcery.com>
1549 * plugin/plugin-nvptx.c (struct map): Removed.
1550 (map_init, map_pop): Remove use of struct map.
1551 (map_push): Likewise and change argument list.
1552 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1554 2018-08-01 Tom de Vries <tdevries@suse.de>
1556 * plugin/cuda-lib.def: New file. Factor out of ...
1557 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1558 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1561 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1563 Revert 'AsyncI/O patch committed'.
1564 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1565 Thomas Koenig <tkoenig@gcc.gnu.org>
1568 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1569 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1570 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1571 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1572 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1573 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1574 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1576 2018-07-30 Tom de Vries <tdevries@suse.de>
1578 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1579 (nvptx_exec): Ensure worker and vector default dims don't exceed
1580 targ_fn->max_threads_per_block.
1582 2018-07-30 Tom de Vries <tdevries@suse.de>
1584 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1585 (nvptx_open_device): Init default_dims for device.
1586 (nvptx_exec): Use default_dims from device.
1588 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1591 * testsuite/libgomp.c++/for-15.C (results): Include it in
1592 omp declare target region.
1593 (main): Use map (always, tofrom: results) instead of
1594 map (tofrom: results).
1597 * testsuite/libgomp.c/pr86660.c: New test.
1599 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1600 Tom de Vries <tdevries@suse.de>
1602 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1603 sufficient resources to launch a kernel, and give a hint on how to fix
1606 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1607 Tom de Vries <tdevries@suse.de>
1609 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1610 max_threads_per_block and max_threads_per_multiprocessor fields.
1611 (nvptx_open_device): Initialize new fields.
1612 (nvptx_exec): Use num_sms, and new fields.
1614 2018-07-26 Tom de Vries <tdevries@suse.de>
1616 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1617 to correct locations. Remove xfail.
1619 2018-07-26 Tom de Vries <tdevries@suse.de>
1621 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1622 acc_wait. Move acc_async_test calls to correct locations. Remove
1625 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1626 Thomas Koenig <tkoenig@gcc.gnu.org>
1629 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1630 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1631 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1632 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1633 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1634 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1635 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1637 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1640 * testsuite/libgomp.c++/pr86542.C: New test.
1643 * testsuite/libgomp.c++/pr86539.C: New test.
1645 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1648 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1649 (results): Make sure the variable is not inside declare target region.
1650 (qux): Remove unused function.
1652 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1655 * testsuite/libgomp.c++/for-15.C: New test.
1657 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1660 * testsuite/libgomp.c++/pr86291.C: New test.
1662 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1664 * libgomp.texi (Top): Move www.openmp.org to https.
1665 (Enabling OpenMP): Ditto.
1666 (omp_get_active_level): Ditto.
1667 (omp_get_ancestor_thread_num): Ditto.
1668 (omp_get_cancellation): Ditto.
1669 (omp_get_default_device): Ditto.
1670 (omp_get_dynamic): Ditto.
1671 (omp_get_level): Ditto.
1672 (omp_get_max_active_levels): Ditto.
1673 (omp_get_max_task_priority): Ditto.
1674 (omp_get_max_threads): Ditto.
1675 (omp_get_nested): Ditto.
1676 (omp_get_num_devices): Ditto.
1677 (omp_get_num_procs): Ditto.
1678 (omp_get_num_teams): Ditto.
1679 (omp_get_num_threads): Ditto.
1680 (omp_get_proc_bind): Ditto.
1681 (omp_get_schedule): Ditto.
1682 (omp_get_team_num): Ditto.
1683 (omp_get_team_size): Ditto.
1684 (omp_get_thread_limit): Ditto.
1685 (omp_get_thread_num): Ditto.
1686 (omp_in_parallel): Ditto.
1687 (omp_in_final): Ditto.
1688 (omp_is_initial_device): Ditto.
1689 (omp_set_default_device): Ditto.
1690 (omp_set_dynamic): Ditto.
1691 (omp_set_max_active_levels): Ditto.
1692 (omp_set_nested): Ditto.
1693 (omp_set_num_threads): Ditto.
1694 (omp_set_schedule): Ditto.
1695 (omp_init_lock): Ditto.
1696 (omp_set_lock): Ditto.
1697 (omp_test_lock): Ditto.
1698 (omp_unset_lock): Ditto.
1699 (omp_destroy_lock): Ditto.
1700 (omp_init_nest_lock): Ditto.
1701 (omp_set_nest_lock): Ditto.
1702 (omp_test_nest_lock): Ditto.
1703 (omp_unset_nest_lock): Ditto.
1704 (omp_destroy_nest_lock): Ditto.
1705 (omp_get_wtick): Ditto.
1706 (omp_get_wtime): Ditto.
1707 (OMP_CANCELLATION): Ditto.
1708 (OMP_DISPLAY_ENV): Ditto.
1709 (OMP_DEFAULT_DEVICE): Ditto.
1710 (OMP_DYNAMIC): Ditto.
1711 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1712 (OMP_MAX_TASK_PRIORITY): Ditto.
1713 (OMP_NESTED): Ditto.
1714 (OMP_NUM_THREADS): Ditto.
1715 (OMP_PROC_BIND): Ditto.
1716 (OMP_PLACES): Ditto.
1717 (OMP_STACKSIZE): Ditto.
1718 (OMP_SCHEDULE): Ditto.
1719 (OMP_THREAD_LIMIT): Ditto.
1720 (OMP_WAIT_POLICY): Ditto.
1722 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1723 James Norris <jnorris@codesourcery.com>
1724 Julian Brown <julian@codesourcery.com>
1725 Thomas Schwinge <thomas@codesourcery.com>
1726 Tom de Vries <tom@codesourcery.com>
1728 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1729 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1730 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1731 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1732 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1733 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1734 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1735 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1736 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1737 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1739 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1741 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1743 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1745 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1747 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1749 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1751 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1753 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1755 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1757 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1759 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1761 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1763 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1765 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1767 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1769 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1771 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1773 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1775 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1777 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1779 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1781 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1783 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1785 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1787 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1789 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1791 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1792 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1793 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1794 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1795 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1796 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1797 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1798 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1799 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1801 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1803 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1804 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1805 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1807 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1808 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1809 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1811 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1813 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1815 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1817 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1819 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1821 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1823 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1825 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1827 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1829 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1831 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1833 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1835 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1837 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1839 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1840 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1841 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1842 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1843 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1844 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1845 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1847 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1848 Thomas Schwinge <thomas@codesourcery.com>
1849 Cesar Philippidis <cesar@codesourcery.com>
1851 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1852 (gomp_acc_remove_pointer): Update declaration.
1853 (gomp_acc_declare_allocate): Declare.
1854 (gomp_remove_var): Declare.
1855 * libgomp.map (OACC_2.5): Define.
1856 * oacc-mem.c (acc_map_data): Update refcount.
1857 (acc_unmap_data): Likewise.
1858 (present_create_copy): Likewise.
1859 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1860 (acc_copyin): Likewise.
1861 (FLAG_FINALIZE): Define.
1862 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1863 (acc_delete_finalize): New function.
1864 (acc_delete_finalize_async): New function.
1865 (acc_copyout_finalize): New function.
1866 (acc_copyout_finalize_async): New function.
1867 (gomp_acc_insert_pointer): Update refcounts.
1868 (gomp_acc_remove_pointer): Return if data is not present on the
1870 * oacc-parallel.c (find_pset): Rename to find_pointer.
1871 (find_pointer): Add support for GOMP_MAP_POINTER.
1872 (handle_ftn_pointers): New function.
1873 (GOACC_parallel_keyed): Update refcounts of variables.
1874 (GOACC_enter_exit_data): Add support for finalized data mappings.
1875 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1877 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1878 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1879 for GOMP_MAP_FORCE_FROM.
1880 * openacc.f90 (module openacc_internal): Add
1881 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1882 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1883 acc_copyout_finalize and acc_delete_finalize.
1884 (acc_copyout_finalize_32_h): New subroutine.
1885 (acc_copyout_finalize_64_h): New subroutine.
1886 (acc_copyout_finalize_array_h): New subroutine.
1887 (acc_delete_finalize_32_h): New subroutine.
1888 (acc_delete_finalize_64_h): New subroutine.
1889 (acc_delete_finalize_array_h): New subroutine.
1890 * openacc.h (acc_copyout_finalize): Declare.
1891 (acc_copyout_finalize_async): Declare.
1892 (acc_delete_finalize): Declare.
1893 (acc_delete_finalize_async): Declare.
1894 * openacc_lib.h (acc_copyout_finalize): New interface.
1895 (acc_delete_finalize): New interface.
1896 * target.c (gomp_map_vars): Update dynamic_refcount.
1897 (gomp_remove_var): New function.
1898 (gomp_unmap_vars): Use it.
1899 (gomp_unload_image_from_device): Likewise.
1900 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1901 case to utilize OpenACC 2.5 data clause semantics.
1902 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1903 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1904 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1905 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1906 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1907 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1908 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1909 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1910 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1911 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1912 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1913 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1914 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1915 utilize OpenACC 2.5 data clause semantics.
1916 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1917 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1918 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1919 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1920 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1921 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1922 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1923 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1924 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1926 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1930 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1931 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1932 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1933 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1934 * testsuite/libgomp.fortran/task2.f90: Ditto.
1935 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1936 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1937 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1938 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1939 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1940 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1941 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1942 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1943 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1945 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1948 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1950 2018-05-09 Tom de Vries <tom@codesourcery.com>
1953 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1954 to GOACC_enter_exit_data.
1956 2018-05-09 Tom de Vries <tom@codesourcery.com>
1959 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1960 (async_synchronous_p): New function.
1961 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1963 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1964 async_valid_stream_id_p.
1965 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1966 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1968 2018-05-07 Tom de Vries <tom@codesourcery.com>
1971 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1972 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1974 2018-05-03 Tom de Vries <tom@codesourcery.com>
1977 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1978 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1979 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1980 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1982 2018-05-02 Tom de Vries <tom@codesourcery.com>
1985 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1986 GOMP_OPENACC_DIM ...
1987 * env.c (parse_gomp_openacc_dim): ... here. New function.
1988 (initialize_env): Call parse_gomp_openacc_dim.
1989 (goacc_default_dims): Define.
1990 * libgomp.h (goacc_default_dims): Declare.
1991 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1992 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1993 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1994 GOMP_PLUGIN_acc_default_dim.
1995 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1996 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1998 2018-05-02 Tom de Vries <tom@codesourcery.com>
2001 * testsuite/libgomp.c++/udr-9.C: Update.
2002 * testsuite/libgomp.c++/atomic-16.C: Remove.
2003 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
2004 * testsuite/libgomp.c++/loop-13.C: Remove.
2005 * testsuite/libgomp.c++/loop-14.C: Remove.
2006 * testsuite/libgomp.c++/loop-15.C: Remove.
2007 * testsuite/libgomp.c++/monotonic-1.C: Remove.
2008 * testsuite/libgomp.c++/monotonic-2.C: Remove.
2009 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
2010 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
2011 * testsuite/libgomp.c++/ordered-1.C: Remove.
2012 * testsuite/libgomp.c++/pr45784.C: Remove.
2013 * testsuite/libgomp.c++/pr64824.C: Remove.
2014 * testsuite/libgomp.c++/pr64868.C: Remove.
2015 * testsuite/libgomp.c++/pr66199-1.C: Remove.
2016 * testsuite/libgomp.c++/pr66199-2.C: Remove.
2017 * testsuite/libgomp.c++/pr66199-3.C: Remove.
2018 * testsuite/libgomp.c++/pr66199-4.C: Remove.
2019 * testsuite/libgomp.c++/pr66199-5.C: Remove.
2020 * testsuite/libgomp.c++/pr66199-6.C: Remove.
2021 * testsuite/libgomp.c++/pr66199-7.C: Remove.
2022 * testsuite/libgomp.c++/pr66199-8.C: Remove.
2023 * testsuite/libgomp.c++/pr66199-9.C: Remove.
2024 * testsuite/libgomp.c++/pr69389.C: Remove.
2025 * testsuite/libgomp.c++/simd10.C: Remove.
2026 * testsuite/libgomp.c++/simd11.C: Remove.
2027 * testsuite/libgomp.c++/simd12.C: Remove.
2028 * testsuite/libgomp.c++/simd13.C: Remove.
2029 * testsuite/libgomp.c++/target-1.C: Remove.
2030 * testsuite/libgomp.c++/target-3.C: Remove.
2031 * testsuite/libgomp.c++/target-4.C: Remove.
2032 * testsuite/libgomp.c++/target-5.C: Remove.
2033 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
2034 * testsuite/libgomp.c++/taskloop-1.C: Remove.
2035 * testsuite/libgomp.c++/taskloop-2.C: Remove.
2036 * testsuite/libgomp.c++/taskloop-3.C: Remove.
2037 * testsuite/libgomp.c++/taskloop-4.C: Remove.
2038 * testsuite/libgomp.c++/udr-9.C: Remove.
2039 * testsuite/libgomp.c++/for-10.C: Remove.
2040 * testsuite/libgomp.c++/for-11.C: Remove.
2041 * testsuite/libgomp.c++/for-12.C: Remove.
2042 * testsuite/libgomp.c++/for-13.C: Remove.
2043 * testsuite/libgomp.c++/for-14.C: Remove.
2044 * testsuite/libgomp.c++/for-9.C: Remove.
2045 * testsuite/libgomp.c/atomic-18.c: Move ...
2046 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
2047 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
2048 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
2049 * testsuite/libgomp.c/loop-13.c: Move ...
2050 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
2051 * testsuite/libgomp.c/loop-14.c: Move ...
2052 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
2053 * testsuite/libgomp.c/loop-15.c: Remove.
2054 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
2055 * testsuite/libgomp.c/monotonic-1.c: Move ...
2056 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
2057 * testsuite/libgomp.c/monotonic-2.c: Move ...
2058 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
2059 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
2060 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
2061 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
2062 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
2063 * testsuite/libgomp.c/ordered-4.c: Move ...
2064 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
2065 * testsuite/libgomp.c/pr45784.c: Move ...
2066 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
2067 * testsuite/libgomp.c/pr64824.c: Move ...
2068 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
2069 * testsuite/libgomp.c/pr64868.c: Move ...
2070 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
2071 * testsuite/libgomp.c/pr66199-1.c: Move ...
2072 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
2073 * testsuite/libgomp.c/pr66199-2.c: Move ...
2074 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
2075 * testsuite/libgomp.c/pr66199-3.c: Move ...
2076 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
2077 * testsuite/libgomp.c/pr66199-4.c: Move ...
2078 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
2079 * testsuite/libgomp.c/pr66199-5.c: Move ...
2080 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
2081 * testsuite/libgomp.c/pr66199-6.c: Move ...
2082 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
2083 * testsuite/libgomp.c/pr66199-7.c: Move ...
2084 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
2085 * testsuite/libgomp.c/pr66199-8.c: Move ...
2086 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
2087 * testsuite/libgomp.c/pr66199-9.c: Move ...
2088 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
2089 * testsuite/libgomp.c/pr69389.c: Move ...
2090 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
2091 * testsuite/libgomp.c/simd-14.c: Move ...
2092 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
2093 * testsuite/libgomp.c/simd-15.c: Move ...
2094 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
2095 * testsuite/libgomp.c/simd-16.c: Move ...
2096 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
2097 * testsuite/libgomp.c/simd-17.c: Move ...
2098 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
2099 * testsuite/libgomp.c/target-1.c: Move ...
2100 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
2101 * testsuite/libgomp.c/target-10.c: Move ...
2102 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
2103 * testsuite/libgomp.c/target-13.c: Move ...
2104 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
2105 * testsuite/libgomp.c/target-2.c: Move ...
2106 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
2107 * testsuite/libgomp.c/taskgroup-1.c: Move ...
2108 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
2109 * testsuite/libgomp.c/taskloop-1.c: Move ...
2110 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
2111 * testsuite/libgomp.c/taskloop-2.c: Move ...
2112 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
2113 * testsuite/libgomp.c/taskloop-3.c: Move ...
2114 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
2115 * testsuite/libgomp.c/taskloop-4.c: Move ...
2116 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
2117 * testsuite/libgomp.c/udr-1.c: Move ...
2118 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
2119 * testsuite/libgomp.c/for-1.c: Move ...
2120 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
2121 * testsuite/libgomp.c/for-1.h: Move ...
2122 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
2123 * testsuite/libgomp.c/for-2.c: Move ...
2124 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
2125 * testsuite/libgomp.c/for-2.h: Move ...
2126 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
2127 * testsuite/libgomp.c/for-3.c: Move ...
2128 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
2129 * testsuite/libgomp.c/for-4.c: Move ...
2130 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
2131 * testsuite/libgomp.c/for-5.c: Move ...
2132 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
2133 * testsuite/libgomp.c/for-6.c: Move ...
2134 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
2136 2018-05-02 Tom de Vries <tom@codesourcery.com>
2139 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
2140 __builtin_goacc_parlevel_{id,size}.
2141 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
2142 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
2143 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
2144 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
2145 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
2146 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
2147 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
2148 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
2149 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
2150 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
2151 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
2152 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
2153 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
2154 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
2155 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
2156 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
2157 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
2158 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2159 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2160 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2161 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2162 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2163 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2165 2018-05-02 Tom de Vries <tom@codesourcery.com>
2168 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2170 2018-05-02 Tom de Vries <tom@codesourcery.com>
2173 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2175 2018-04-29 Julian Brown <julian@codesourcery.com>
2176 Tom de Vries <tom@codesourcery.com>
2179 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2180 arbitrary order for iterations of atomic subtract check.
2182 2018-04-28 Tom de Vries <tom@codesourcery.com>
2185 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2186 atomic capture results obtained in parallel loop to an array, instead of
2189 2018-04-26 Tom de Vries <tom@codesourcery.com>
2192 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2193 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2194 (process_GOMP_NVPTX_JIT): New function.
2195 (link_ptx): Use process_GOMP_NVPTX_JIT.
2197 2018-04-26 Richard Biener <rguenther@suse.de>
2198 Tom de Vries <tom@codesourcery.com>
2201 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2203 2018-04-26 Tom de Vries <tom@codesourcery.com>
2206 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2207 recursion depth from 25 to 23.
2208 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2210 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2212 * configure: Regenerated.
2214 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2215 Tom de Vries <tom@codesourcery.com>
2218 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2220 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2223 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2224 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2225 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2226 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2227 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2228 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2231 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2233 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2235 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2237 * configure: Regenerated.
2239 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2242 * configure: Regenerate.
2244 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2245 Tom de Vries <tom@codesourcery.com>
2248 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2249 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2251 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2255 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2256 test from gfortran.dg to here.
2258 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2260 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2261 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2263 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2266 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2267 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2269 2018-04-05 Tom de Vries <tom@codesourcery.com>
2272 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2274 2018-03-26 Tom de Vries <tom@codesourcery.com>
2276 PR tree-optimization/85063
2277 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2278 * testsuite/libgomp.c/switch-conversion.c: New test.
2279 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2280 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2282 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2285 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2286 call abort by STOP n.
2287 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2288 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2289 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2290 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2291 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2292 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2293 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2294 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2295 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2296 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2297 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2298 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2299 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2300 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2301 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2302 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2303 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2304 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2305 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2306 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2307 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2308 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2309 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2310 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2311 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2312 * testsuite/libgomp.fortran/character1.f90: Likewise.
2313 * testsuite/libgomp.fortran/character2.f90: Likewise.
2314 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2315 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2316 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2317 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2318 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2319 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2320 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2321 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2322 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2323 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2324 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2325 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2326 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2327 * testsuite/libgomp.fortran/do1.f90: Likewise.
2328 * testsuite/libgomp.fortran/do2.f90: Likewise.
2329 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2330 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2331 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2332 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2333 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2334 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2335 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2336 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2337 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2338 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2339 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2340 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2341 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2342 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2343 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2344 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2345 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2346 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2347 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2348 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2349 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2350 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2351 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2352 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2353 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2354 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2355 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2356 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2357 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2358 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2359 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2360 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2361 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2362 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2363 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2364 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2365 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2366 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2367 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2368 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2369 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2370 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2371 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2372 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2373 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2374 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2375 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2376 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2377 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2378 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2379 * testsuite/libgomp.fortran/lib2.f: Likewise.
2380 * testsuite/libgomp.fortran/lib3.f: Likewise.
2381 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2382 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2383 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2384 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2385 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2386 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2387 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2388 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2389 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2390 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2391 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2392 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2393 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2394 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2395 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2396 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2397 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2398 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2399 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2400 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2401 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2402 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2403 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2404 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2405 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2406 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2407 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2408 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2409 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2410 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2411 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2412 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2413 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2414 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2415 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2416 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2417 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2418 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2419 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2420 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2421 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2422 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2423 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2424 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2425 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2426 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2427 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2428 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2429 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2430 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2431 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2432 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2433 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2434 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2435 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2436 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2437 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2438 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2439 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2440 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2441 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2442 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2443 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2444 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2445 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2446 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2447 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2448 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2449 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2450 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2451 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2452 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2453 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2454 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2455 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2456 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2457 * testsuite/libgomp.fortran/stack.f90: Likewise.
2458 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2459 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2460 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2461 * testsuite/libgomp.fortran/target1.f90: Likewise.
2462 * testsuite/libgomp.fortran/target2.f90: Likewise.
2463 * testsuite/libgomp.fortran/target3.f90: Likewise.
2464 * testsuite/libgomp.fortran/target4.f90: Likewise.
2465 * testsuite/libgomp.fortran/target5.f90: Likewise.
2466 * testsuite/libgomp.fortran/target6.f90: Likewise.
2467 * testsuite/libgomp.fortran/target7.f90: Likewise.
2468 * testsuite/libgomp.fortran/target8.f90: Likewise.
2469 * testsuite/libgomp.fortran/task1.f90: Likewise.
2470 * testsuite/libgomp.fortran/task2.f90: Likewise.
2471 * testsuite/libgomp.fortran/task3.f90: Likewise.
2472 * testsuite/libgomp.fortran/task4.f90: Likewise.
2473 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2474 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2475 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2476 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2477 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2478 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2479 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2480 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2481 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2482 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2483 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2484 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2485 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2486 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2487 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2488 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2489 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2490 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2491 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2492 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2493 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2494 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2495 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2496 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2497 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2498 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2499 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2500 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2501 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2502 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2503 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2504 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2505 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2506 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2507 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2508 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2509 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2510 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2511 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2512 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2513 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2514 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2515 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2516 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2517 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2518 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2519 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2520 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2521 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2522 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2523 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2524 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2525 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2526 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2527 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2528 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2529 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2530 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2531 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2532 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2533 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2534 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2535 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2536 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2537 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2538 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2539 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2540 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2541 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2542 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2543 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2544 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2545 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2546 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2547 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2548 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2549 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2550 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2551 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2552 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2553 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2554 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2555 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2556 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2557 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2558 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2559 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2560 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2561 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2562 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2563 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2564 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2565 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2566 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2567 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2568 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2569 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2570 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2571 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2572 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2573 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2574 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2575 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2576 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2577 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2578 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2579 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2580 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2581 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2582 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2583 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2584 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2585 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2586 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2587 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2588 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2589 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2590 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2591 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2592 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2593 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2594 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2595 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2596 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2597 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2598 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2600 2018-03-20 Richard Biener <rguenther@suse.de>
2602 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2603 parallelizable loop.
2605 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2608 * configure: Regenerate.
2610 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2613 * libgomp.fortran/pr84418-1.f90: New test.
2614 * libgomp.fortran/pr84418-2.f90: New test.
2616 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2619 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2620 -std=f2003 -fall-intrinsics into dg-additional-options.
2622 2018-02-08 Martin Jambor <mjambor@suse.cz>
2624 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2627 2018-02-08 Martin Jambor <mjambor@suse.cz>
2629 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2631 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2633 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2634 [__cplusplus]: Declare extern "C".
2636 2018-02-07 Tom de Vries <tom@codesourcery.com>
2639 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2641 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2642 Jakub Jelinek <jakub@redhat.com>
2645 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2646 instead of omp_lock_t.
2648 2018-01-25 Tom de Vries <tom@codesourcery.com>
2651 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2653 2018-01-24 Tom de Vries <tom@codesourcery.com>
2656 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2658 2018-01-24 Tom de Vries <tom@codesourcery.com>
2661 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2663 2018-01-19 Tom de Vries <tom@codesourcery.com>
2664 Cesar Philippidis <cesar@codesourcery.com>
2667 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2668 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2670 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2672 Update copyright years.
2674 * libgomp.texi: Bump @copying's copyright year.
2676 2017-12-30 Tom de Vries <tom@codesourcery.com>
2679 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2680 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2682 2017-12-27 Tom de Vries <tom@codesourcery.com>
2685 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2686 (test_nonstatic): Fix return type to workaround PR83046.
2688 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2691 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2692 j suffix instead of i.
2693 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2696 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2698 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2699 call to acc_wait (1).
2701 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2704 * testsuite/libgomp.fortran/pr81304.f90: New test.
2706 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2709 * libgomp.fortran/pr81841.f90: New test.
2711 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2714 * target.c (gomp_target_init): Compute lengths just once and
2715 use them in both malloc size and subsequent copying.
2717 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2719 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2720 * acinclude.m4: Add cet.m4.
2721 * configure: Regenerate.
2722 * Makefile.in: Likewise.
2723 * testsuite/Makefile.in: Likewise.
2725 2017-11-15 Tom de Vries <tom@codesourcery.com>
2727 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2728 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2729 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2730 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2731 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2732 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2734 2017-11-14 Tom de Vries <tom@codesourcery.com>
2736 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2739 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2742 * testsuite/libgomp.c++/pr82835.C: New test.
2744 2017-11-06 Martin Liska <mliska@suse.cz>
2746 * testsuite/libgomp.c++/loop-2.C: Return a value
2747 for functions with non-void return type, or change type to void,
2748 or add -Wno-return-type for test.
2749 * testsuite/libgomp.c++/loop-4.C: Likewise.
2750 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2751 * testsuite/libgomp.c++/shared-1.C: Likewise.
2752 * testsuite/libgomp.c++/single-1.C: Likewise.
2753 * testsuite/libgomp.c++/single-2.C: Likewise.
2755 2017-10-31 Tom de Vries <tom@codesourcery.com>
2757 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2758 "do {} while (false)".
2759 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2760 after HSA_DEBUG call.
2762 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2764 * target.c (struct gomp_coalesce_buf): New type.
2765 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2766 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2767 (gomp_copy_host2dev): Add CBUF argument, if copying into
2768 the cached ranges, memcpy into buffer instead of copying
2770 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2771 Add CBUF argument, pass it through to other calls.
2772 (gomp_map_vars): Aggregate copies from host to device if small enough
2773 and with small enough gaps in between into memcpy into a buffer and
2774 fewer host to device copies from the buffer.
2775 (gomp_update): Adjust gomp_copy_host2dev caller.
2777 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2779 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2781 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2782 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2783 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2784 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2786 2017-10-16 Tom de Vries <tom@codesourcery.com>
2788 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2789 openacc_nvidia_accel_selected.
2790 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2791 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2792 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2793 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2794 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2795 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2796 openacc_nvidia_accel_selected. Skip for shared memory device.
2797 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2798 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2800 2017-10-09 Martin Jambor <mjambor@suse.cz>
2803 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2805 2017-10-07 Tom de Vries <tom@codesourcery.com>
2807 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2808 Remove acc_device_nvidia references.
2809 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2812 2017-10-05 Tom de Vries <tom@codesourcery.com>
2814 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2815 vector_length(32) clause from acc parallel directive.
2816 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2818 2017-10-04 Tom de Vries <tom@codesourcery.com>
2820 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2821 (main): Reduce sum of arr elements. Assert that hres is exactly
2822 representable in 32-bit floating point.
2823 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2824 (main): Reduce sum of arr elements. Assert that hres and hmres are
2825 exactly representable in 32-bit floating point.
2826 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2828 2017-09-28 Tom de Vries <tom@codesourcery.com>
2830 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2832 * testsuite/libgomp.c++/pr69393.C: Same.
2833 * testsuite/libgomp.c++/taskloop-1.C: Same.
2834 * testsuite/libgomp.c++/taskloop-3.C: Same.
2835 * testsuite/libgomp.c++/taskloop-4.C: Same.
2836 * testsuite/libgomp.c/for-4.c: Same.
2837 * testsuite/libgomp.c/pr66199-3.c: Same.
2838 * testsuite/libgomp.c/pr66199-4.c: Same.
2839 * testsuite/libgomp.c/pr66199-6.c: Same.
2840 * testsuite/libgomp.c/taskloop-1.c: Same.
2841 * testsuite/libgomp.c/taskloop-3.c: Same.
2842 * testsuite/libgomp.c/taskloop-4.c: Same.
2843 * testsuite/libgomp.fortran/aligned1.f03: Same.
2844 * testsuite/libgomp.fortran/condinc1.f: Same.
2845 * testsuite/libgomp.fortran/condinc3.f90: Same.
2846 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2847 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2848 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2849 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2850 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2851 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2852 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2853 * testsuite/libgomp.fortran/recursion1.f90: Same.
2854 * testsuite/libgomp.fortran/target2.f90: Same.
2855 * testsuite/libgomp.fortran/target5.f90: Same.
2856 * testsuite/libgomp.fortran/task3.f90: Same.
2858 2017-09-28 Tom de Vries <tom@codesourcery.com>
2860 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2861 vector_length(32) clause from acc parallel directive.
2862 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2864 2017-09-27 Tom de Vries <tom@codesourcery.com>
2866 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2867 Remove acc_device_nvidia references.
2869 2017-09-16 Tom de Vries <tom@codesourcery.com>
2872 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2874 2017-09-14 Tom de Vries <tom@codesourcery.com>
2876 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2877 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2878 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2879 * testsuite/libgomp.c/c.exp: Include test-cases from
2880 libgomp.c-c++-common.
2881 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2884 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2887 * testsuite/libgomp.c++/pr81314.C: New test.
2889 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2891 * libgomp.texi (Top): www.openacc.org now uses https.
2892 (Enabling OpenACC): Ditto.
2893 (acc_get_num_devices): Ditto.
2894 (acc_set_device_type): Ditto.
2895 (acc_get_device_type): Ditto.
2896 (acc_set_device_num): Ditto.
2897 (acc_get_device_num): Ditto.
2898 (acc_async_test): Ditto.
2899 (acc_async_test_all): Ditto.
2901 (acc_wait_all): Ditto.
2902 (acc_wait_all_async): Ditto.
2903 (acc_wait_async): Ditto.
2905 (acc_shutdown): Ditto.
2906 (acc_on_device): Ditto.
2907 (acc_malloc): Ditto.
2909 (acc_copyin): Ditto.
2910 (acc_present_or_copyin): Ditto.
2911 (acc_create): Ditto.
2912 (acc_present_or_create): Ditto.
2913 (acc_copyout): Ditto.
2914 (acc_delete): Ditto.
2915 (acc_update_device): Ditto.
2916 (acc_update_self): Ditto.
2917 (acc_map_data): Ditto.
2918 (acc_unmap_data): Ditto.
2919 (acc_deviceptr): Ditto.
2920 (acc_hostptr): Ditto.
2921 (acc_is_present): Ditto.
2922 (acc_memcpy_to_device): Ditto.
2923 (acc_memcpy_from_device): Ditto.
2924 (acc_get_current_cuda_device): Ditto.
2925 (acc_get_current_cuda_context): Ditto.
2926 (acc_get_cuda_stream): Ditto.
2927 (acc_set_cuda_stream): Ditto.
2928 (ACC_DEVICE_TYPE): Ditto.
2929 (ACC_DEVICE_NUM): Ditto.
2930 (OpenACC Library Interoperability): Ditto.
2932 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2935 * testsuite/libgomp.c/pr81687-1.c: New test.
2936 * testsuite/libgomp.c/pr81687-2.c: New test.
2938 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2941 * testsuite/libgomp.c/pr69389.c: New test.
2942 * testsuite/libgomp.c++/pr69389.C: New test.
2944 2017-08-07 Tom de Vries <tom@codesourcery.com>
2947 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2948 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2950 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2953 * testsuite/libgomp.c/pr45784.c: New test.
2954 * testsuite/libgomp.c++/pr45784.C: New test.
2956 2017-07-19 Tom de Vries <tom@codesourcery.com>
2958 * testsuite/libgomp.oacc-c/vec.c: New test.
2960 2017-07-03 Tom de Vries <tom@codesourcery.com>
2962 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2964 2017-06-27 Tom de Vries <tom@codesourcery.com>
2966 * plugin/plugin-nvptx.c (notify_var): New function.
2967 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2969 2017-06-27 Tom de Vries <tom@codesourcery.com>
2971 * env.c (parse_unsigned_long_1): Factor out of ...
2972 (parse_unsigned_long): ... here.
2973 (parse_int_1): Factor out of ...
2974 (parse_int): ... here.
2975 (parse_int_secure): New function.
2976 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2977 * secure_getenv.h: Factor out of ...
2978 * plugin/plugin-hsa.c: ... here.
2979 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2981 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2984 * testsuite/libgomp.c++/pr81130.C: New test.
2986 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2988 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2990 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2991 dg-xfail-run-if default args.
2993 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2995 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2996 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2998 2017-05-30 Jakub Jelinek <jakub@redhat.com>
3001 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
3002 (gomp_affinity_init_level): Use it. Always analyze the core and thread
3003 sibling lists, depending on level just pick up what CPUs to put
3004 together into a place vs. whether add multiple ordered places.
3006 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
3008 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
3009 * libgomp.map (OACC_2.0.1): Add these.
3010 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
3011 for "acc_wait", and "acc_wait_all", respectively.
3012 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
3013 for "acc_wait", and "acc_wait_all", respectively.
3014 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
3015 * libgomp.texi (acc_wait, acc_wait_all): Update.
3016 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
3017 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
3018 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3020 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
3021 acc_present_or_copyin and acc_present_or_create procedures,
3023 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
3024 generally different variants of OpenACC Runtime Library functions.
3025 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3027 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
3028 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3030 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
3031 of preprocessor definitions.
3032 * libgomp.h (strong_alias): Guard by "#ifdef
3033 HAVE_ATTRIBUTE_ALIAS".
3034 * oacc-mem.c: Provide "acc_pcreate" as alias for
3035 "acc_present_or_create", and "acc_pcopyin" as alias for
3036 "acc_present_or_copyin".
3037 * libgomp.map: New version "OACC_2.0.1".
3038 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
3039 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
3041 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
3044 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
3045 when disabling nvptx offloading.
3047 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
3049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
3050 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3051 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3053 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
3054 * testsuite/lib/libgomp.exp
3055 (check_effective_target_openacc_nvidia_accel_configured): New
3057 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
3058 (check_effective_target_c++): New procs.
3059 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
3060 (check_effective_target_c++): Likewise.
3062 2017-05-22 Jakub Jelinek <jakub@redhat.com>
3065 * testsuite/libgomp.c/pr80809-2.c: New test.
3066 * testsuite/libgomp.c/pr80809-3.c: New test.
3069 * testsuite/libgomp.c/pr80809-1.c: New test.
3072 * testsuite/libgomp.c/pr80853.c: New test.
3074 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
3076 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
3077 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
3078 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3079 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3080 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3082 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
3083 Debug output for failure.
3085 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3087 * testsuite/lib/libgomp.exp: Load scanlang.exp.
3089 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3092 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
3093 bootstrap compare failures.
3095 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
3097 * testsuite/libgomp.c/target-36.c: New testcase.
3099 2017-04-13 Jakub Jelinek <jakub@redhat.com>
3101 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
3104 2017-04-11 Jakub Jelinek <jakub@redhat.com>
3107 * testsuite/libgomp.c/pr80394.c: New test.
3109 2017-04-04 Jakub Jelinek <jakub@redhat.com>
3112 * config/posix/thread-stacksize.h: New file.
3113 * config/darwin/thread-stacksize.h: New file.
3114 * config/nvptx/thread-stacksize.h: New file.
3115 * env.c: Include thread-stacksize.h.
3116 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
3117 instead of 0. Call pthread_attr_setstacksize even if
3118 GOMP_DEFAULT_STACKSIZE is non-zero.
3120 2017-03-30 Jakub Jelinek <jakub@redhat.com>
3122 * env.c (initialize_env): Initialize stacksize to 0.
3124 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
3127 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
3129 2017-03-08 Jakub Jelinek <jakub@redhat.com>
3132 * testsuite/libgomp.c/pr79940.c: New test.
3134 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3136 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
3138 Add __float128 options.
3140 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
3142 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
3143 hppa*-*-* dg-skip-if directive.
3145 2017-02-09 Jakub Jelinek <jakub@redhat.com>
3147 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
3148 dg-skip-if directive into a comment.
3150 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
3151 Chung-Lin Tang <cltang@codesourcery.com>
3153 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
3154 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
3155 add additional case.
3156 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
3157 "openacc_nvidia_accel_selected".
3158 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3159 Add num_workers(8) clause.
3161 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
3163 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3165 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3166 include complex.h on hppa*-*-hpux*.
3167 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3169 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3171 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3173 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3174 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3175 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3176 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3177 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3178 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3179 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3180 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3181 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3182 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3184 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3186 * libgomp-plugin.h: #include <stdbool.h>.
3187 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3188 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3189 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3190 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3191 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3192 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3193 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3194 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3195 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3196 (GOMP_OFFLOAD_openacc_async_test)
3197 (GOMP_OFFLOAD_openacc_async_test_all)
3198 (GOMP_OFFLOAD_openacc_async_wait)
3199 (GOMP_OFFLOAD_openacc_async_wait_async)
3200 (GOMP_OFFLOAD_openacc_async_wait_all)
3201 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3202 (GOMP_OFFLOAD_openacc_async_set_async)
3203 (GOMP_OFFLOAD_openacc_create_thread_data)
3204 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3205 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3206 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3207 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3208 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3209 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3211 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3212 (GOMP_OFFLOAD_unload_image): Fix argument types.
3214 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3216 * testsuite/lib/libgomp.exp
3217 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3218 check_compile invocation. Fix up removal of executable. Drop
3219 bogus "2>&1" argument.
3221 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3224 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3225 Martin Jambor <mjambor@suse.cz>
3227 * plugin/hsa.h: Moved to top level include.
3228 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3230 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3233 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3234 of cat to get version from BASE-VER file.
3235 * testsuite/Makefile.in: Regenerated.
3237 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3239 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3242 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3244 * plugin/hsa.h: Add GCC runtime library exception.
3245 * plugin/hsa_ext_finalize.h: Likewise.
3247 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3248 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3249 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3250 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3251 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3252 library to link ptx plugin against.
3253 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3254 (CUDA_CALLS): Define.
3255 (cuda_lib, cuda_lib_inited): New variables.
3256 (init_cuda_lib): New function.
3257 (CUDA_CALL_PREFIX): Define.
3258 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3259 (CUDA_CALL): Use FN instead of (FN).
3260 (CUDA_CALL_NOCHECK): Define.
3261 (cuda_error, fini_streams_for_device, select_stream_for_async,
3262 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3263 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3264 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3265 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3267 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3269 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3270 Use CUDA_CALL_NOCHECK.
3271 * plugin/cuda/cuda.h: New file.
3272 * config.h.in: Regenerated.
3273 * configure: Regenerated.
3276 * configure.ac: Add GCC_BASE_VER.
3277 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3278 get version from BASE-VER file.
3279 * testsuite/Makefile.in: Regenerated.
3280 * configure: Regenerated.
3281 * Makefile.in: Regenerated.
3283 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3286 * Makefile.am: Make fincludedir multilib-aware.
3287 * Makefile.in: Regenerate.
3289 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3291 Update copyright years.
3293 * libgomp.texi: Bump @copying's copyright year.
3295 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3297 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3298 pthread_spinlock_t instead of gomp_mutex_t lock.
3299 (gomp_get_thread_pool): Likewise.
3300 (gomp_release_thread_pool): Likewise.
3301 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3304 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3306 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3307 thread pool in case nthreads == 1.
3309 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3311 * config/nvptx/env.c: Delete.
3312 * icv.c: Move definitions of ICV variables back ...
3313 * env.c: ...here. Do not compile environment-related functionality if
3314 LIBGOMP_OFFLOADED_ONLY is set.
3316 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3318 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3319 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3320 * configure: Regenerate.
3321 * config.h.in: Likewise.
3323 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3325 * Makefile.in: Regenerate with automake-1.11.6.
3326 * aclocal.m4: Likewise.
3327 * configure: Likewise.
3328 * testsuite/Makefile.in: Likewise.
3330 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3332 * config/nvptx/critical.c: Delete to use generic implementation.
3334 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3336 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3337 ../../affinity.c as fallback.
3338 * config/nvptx/affinity.c: Delete to use fallback implementation.
3340 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3341 Jakub Jelinek <jakub@redhat.com>
3342 Dmitry Melnik <dm@ispras.ru>
3344 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3345 * Makefile.in. Regenerate.
3346 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3347 (LIBGOMP_USE_PTHREADS): ...here; new define.
3348 * configure: Regenerate.
3349 * config.h.in: Likewise.
3350 * config/posix/affinity.c: Move to...
3351 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3352 interface by LIBGOMP_USE_PTHREADS.
3353 * critical.c: Split out GOMP_atomic_{start,end} into...
3354 * atomic.c: ...here (new file).
3355 * env.c: Split out ICV definitions into...
3356 * icv.c: ...here (new file) and...
3357 * icv-device.c: ...here. New file.
3358 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3359 (gomp_destroy_lock_30): Ditto.
3360 (gomp_set_lock_30): Ditto.
3361 (gomp_unset_lock_30): Ditto.
3362 (gomp_test_lock_30): Ditto.
3363 (gomp_init_nest_lock_30): Ditto.
3364 (gomp_destroy_nest_lock_30): Ditto.
3365 (gomp_set_nest_lock_30): Ditto.
3366 (gomp_unset_nest_lock_30): Ditto.
3367 (gomp_test_nest_lock_30): Ditto.
3369 * config/nvptx/lock.c: New.
3370 * config/nvptx/bar.c: New.
3371 * config/nvptx/bar.h: New.
3372 * config/nvptx/doacross.h: New.
3373 * config/nvptx/error.c: New.
3374 * config/nvptx/icv-device.c: New.
3375 * config/nvptx/mutex.h: New.
3376 * config/nvptx/pool.h: New.
3377 * config/nvptx/proc.c: New.
3378 * config/nvptx/ptrlock.h: New.
3379 * config/nvptx/sem.h: New.
3380 * config/nvptx/simple-bar.h: New.
3381 * config/nvptx/target.c: New.
3382 * config/nvptx/task.c: New.
3383 * config/nvptx/team.c: New.
3384 * config/nvptx/time.c: New.
3385 * config/posix/simple-bar.h: New.
3386 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3387 (gomp_num_teams_var): Declare.
3388 (struct gomp_thread_pool): Change threads_dock member to
3389 gomp_simple_barrier_t.
3390 [__nvptx__] (gomp_thread): New implementation.
3391 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3392 (gomp_thread_destructor): Ditto.
3393 (gomp_init_thread_affinity): Ditto.
3394 * team.c: Guard uses of Pthreads-specific interfaces by
3395 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3396 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3397 * config/nvptx/alloc.c: Delete.
3398 * config/nvptx/barrier.c: Ditto.
3399 * config/nvptx/fortran.c: Ditto.
3400 * config/nvptx/iter.c: Ditto.
3401 * config/nvptx/iter_ull.c: Ditto.
3402 * config/nvptx/loop.c: Ditto.
3403 * config/nvptx/loop_ull.c: Ditto.
3404 * config/nvptx/ordered.c: Ditto.
3405 * config/nvptx/parallel.c: Ditto.
3406 * config/nvptx/priority_queue.c: Ditto.
3407 * config/nvptx/sections.c: Ditto.
3408 * config/nvptx/single.c: Ditto.
3409 * config/nvptx/splay-tree.c: Ditto.
3410 * config/nvptx/work.c: Ditto.
3411 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3412 -foffload=-lgfortran in addition to -lgfortran.
3413 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3414 * plugin/plugin-nvptx.c: Include <limits.h>.
3415 (struct targ_fn_descriptor): Add new fields.
3416 (struct ptx_device): Ditto. Set them...
3417 (nvptx_open_device): ...here.
3418 (nvptx_adjust_launch_bounds): New.
3419 (nvptx_host2dev): Allow NULL 'nvthd'.
3420 (nvptx_dev2host): Ditto.
3421 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3422 (link_ptx): Adjust log sizes.
3423 (nvptx_host2dev): Allow NULL 'nvthd'.
3424 (nvptx_dev2host): Ditto.
3425 (nvptx_set_clocktick): New. Use it...
3426 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3428 (GOMP_OFFLOAD_dev2dev): New.
3429 (nvptx_adjust_launch_bounds): New.
3430 (nvptx_stacks_size): New.
3431 (nvptx_stacks_alloc): New.
3432 (nvptx_stacks_free): New.
3433 (GOMP_OFFLOAD_run): New.
3434 (GOMP_OFFLOAD_async_run): New (stub).
3436 2016-11-23 Martin Jambor <mjambor@suse.cz>
3438 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3439 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3440 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3442 2016-11-23 Martin Liska <mliska@suse.cz>
3443 Martin Jambor <mjambor@suse.cz>
3445 * plugin/hsa.h: New file.
3446 * plugin/hsa_ext_finalize.h: New file.
3447 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3448 header file unistd.h, and functions secure_getenv, __secure_getenv,
3449 getuid, geteuid, getgid and getegid.
3450 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3452 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3453 Handle various cases of secure_getenv presence, add an implementation
3454 when we can test effective UID and GID.
3455 (struct hsa_runtime_fn_info): New structure.
3456 (hsa_runtime_fn_info hsa_fns): New variable.
3457 (hsa_runtime_lib): Likewise.
3458 (support_cpu_devices): Likewise.
3459 (init_enviroment_variables): Load newly introduced ENV
3461 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3462 (hsa_fatal): Likewise.
3463 (DLSYM_FN): New macro.
3464 (init_hsa_runtime_functions): New function.
3465 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3466 structure. Depending on environment, also allow CPU devices.
3467 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3468 (get_kernarg_memory_region): Likewise.
3469 (GOMP_OFFLOAD_init_device): Likewise.
3470 (destroy_hsa_program): Likewise.
3471 (init_basic_kernel_info): New function.
3472 (GOMP_OFFLOAD_load_image): Use it.
3473 (create_and_finalize_hsa_program): Call hsa run-time functions via
3475 (create_single_kernel_dispatch): Likewise.
3476 (release_kernel_dispatch): Likewise.
3477 (init_single_kernel): Likewise.
3478 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3479 (get_group_size): New function.
3480 (run_kernel): Likewise.
3481 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3482 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3484 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3485 * testsuite/libgomp-test-support.exp.in: Likewise.
3486 * Makefile.in: Regenerated.
3487 * aclocal.m4: Likewise.
3488 * config.h.in: Likewise.
3489 * configure: Likewise.
3490 * testsuite/Makefile.in: Likewise.
3492 2016-11-15 Martin Jambor <mjambor@suse.cz>
3493 Alexander Monakov <amonakov@ispras.ru>
3495 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3496 mapping clauses to target constructs.
3497 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3499 2016-11-15 Matthias Klose <doko@ubuntu.com>
3501 * configure: Regenerate.
3503 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3505 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3506 * omp_lib.h.in (openmp_version): Likewise.
3507 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3509 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3511 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3512 (fib_wrapper): Add map(from: x) clause.
3513 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3515 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3516 (accum): Add map(tmp) clause.
3517 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3518 (accum): Add map(tofrom: tmp) clause.
3519 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3520 (gramSchmidt): Likewise.
3521 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3522 map(tofrom: sum) clause.
3523 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3524 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3525 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3526 only allowed on the loop iterator.
3527 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3528 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3529 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3530 * testsuite/libgomp.fortran/doacross1.f90: New test.
3531 * testsuite/libgomp.fortran/doacross3.f90: New test.
3532 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3533 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3534 * testsuite/libgomp.fortran/doacross2.f90: New test.
3535 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3536 #pragma omp atomic read.
3537 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3538 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3540 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3541 Nathan Sidwell <nathan@acm.org>
3543 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3544 to determine default geometry.
3545 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3548 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3550 * hashtab.h: Use standard GPLv3 with runtime exception
3553 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3555 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3556 size when allocating new thread.
3558 2016-09-14 Marek Polacek <polacek@redhat.com>
3560 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3562 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3565 * testsuite/libgomp.fortran/pr71014.f90: New test.
3567 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3570 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3571 firstprivate clauses.
3572 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3574 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3575 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3576 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3577 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3578 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3579 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3580 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3581 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3582 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3583 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3584 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3585 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3587 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3590 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3592 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3595 * testsuite/libgomp.c++/pr58706.C: New test.
3597 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3599 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3600 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3601 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3603 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3604 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3606 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3608 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3609 test, and don't hardcode -O0.
3611 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3613 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3615 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3617 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3620 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3623 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3624 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3626 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3629 * testsuite/libgomp.fortran/associate3.f90: New test.
3631 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3633 * testsuite/libgomp.c++/target-21.C: New test.
3635 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3637 * testsuite/libgomp.c++/target-20.C: New test.
3639 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3640 Cesar Philippidis <cesar@codesourcery.com>
3643 * libgomp.oacc-c/nested-function-1.c: New file.
3644 * libgomp.oacc-c/nested-function-2.c: Likewise.
3645 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3646 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3647 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3649 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3652 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3653 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3654 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3656 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3658 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3659 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3661 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3664 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3666 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3668 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3669 instead of invalid schedule(static, 0).
3670 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3672 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3674 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3675 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3676 parameter, use to set async stream around call to gomp_unmap_vars,
3677 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3678 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3679 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3680 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3681 (event_add): Add int parameter, initialize 'val' field when
3682 adding new ptx_event struct.
3683 (nvptx_evec): Adjust event_add() call arguments.
3684 (nvptx_host2dev): Likewise.
3685 (nvptx_dev2host): Likewise.
3686 (nvptx_wait_async): Likewise.
3687 (nvptx_wait_all_async): Likewise.
3688 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3689 pass to event_add() call.
3690 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3692 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3693 call openacc.register_async_cleanup_func() hook.
3694 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3695 * target.c (gomp_copy_from_async): Delete function.
3696 (gomp_map_vars): Remove async_refcount.
3697 (gomp_unmap_vars): Likewise.
3698 (gomp_load_image_to_device): Likewise.
3699 (omp_target_associate_ptr): Likewise.
3700 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3701 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3702 (gomp_copy_from_async): Remove.
3704 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3706 * target.c (gomp_device_copy): New function.
3707 (gomp_copy_host2dev): Likewise.
3708 (gomp_copy_dev2host): Likewise.
3709 (gomp_free_device_memory): Likewise.
3710 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3711 (gomp_map_pointer): Likewise.
3712 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3713 NULL value from alloc_func plugin hook.
3714 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3715 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3716 (gomp_unmap_vars): Likewise.
3717 (gomp_update): Adjust to call gomp_copy_dev2host and
3718 gomp_copy_host2dev functions.
3719 (gomp_unload_image_from_device): Handle false value from
3720 unload_image_func plugin hook.
3721 (gomp_init_device): Handle false value from init_device_func
3723 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3724 (omp_target_free): Adjust to call gomp_free_device_memory.
3725 (omp_target_memcpy): Handle return values from host2dev_func,
3726 dev2host_func, and dev2dev_func plugin hooks.
3727 (omp_target_memcpy_rect_worker): Likewise.
3728 (gomp_target_fini): Handle false value from fini_device_func
3730 * libgomp.h (struct gomp_device_descr): Adjust return type of
3731 init_device_func, fini_device_func, unload_image_func, free_func,
3732 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3733 * oacc-init.c (acc_shutdown_1): Handle false value from
3734 fini_device_func plugin hook.
3735 * oacc-host.c (host_init_device): Change return type to bool.
3736 (host_fini_device): Likewise.
3737 (host_unload_image): Likewise.
3738 (host_free): Likewise.
3739 (host_dev2host): Likewise.
3740 (host_host2dev): Likewise.
3741 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3742 (acc_memcpy_to_device): Likewise.
3743 (acc_memcpy_from_device): Likewise.
3744 (delete_copyout): Add libfnname parameter, handle free_func
3745 hook fatal error case.
3746 (acc_delete): Adjust delete_copyout call.
3747 (acc_copyout): Likewise.
3748 (update_dev_host): Move gomp_mutex_unlock to after
3749 host2dev/dev2host hook calls.
3751 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3752 to 'hsa_error_msg', for clarity.
3753 (hsa_fatal): Likewise.
3754 (hsa_error): New function.
3755 (init_hsa_context): Change return type to bool, adjust to return
3757 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3759 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3760 return false on error.
3761 (get_agent_info): Adjust to return NULL on error.
3762 (destroy_hsa_program): Change return type to bool, adjust to
3763 return false on error.
3764 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3765 (destroy_module): Change return type to bool, adjust to
3766 return false on error.
3767 (GOMP_OFFLOAD_unload_image): Likewise.
3768 (GOMP_OFFLOAD_fini_device): Likewise.
3769 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3770 (GOMP_OFFLOAD_free): Change to return false when called.
3771 (GOMP_OFFLOAD_dev2host): Likewise.
3772 (GOMP_OFFLOAD_host2dev): Likewise.
3773 (GOMP_OFFLOAD_dev2dev): Likewise.
3775 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3776 (CUDA_CALL): Likewise.
3777 (CUDA_CALL_ASSERT): Likewise.
3778 (map_init): Change return type to bool, use CUDA_CALL* macros.
3779 (map_fini): Likewise.
3780 (init_streams_for_device): Change return type to bool, adjust
3782 (fini_streams_for_device): Change return type to bool, adjust
3784 (select_stream_for_async): Release stream_lock before calls to
3785 GOMP_PLUGIN_fatal, adjust call to map_init.
3786 (nvptx_init): Use CUDA_CALL* macros.
3787 (nvptx_attach_host_thread_to_device): Change return type to bool,
3788 use CUDA_CALL* macros.
3789 (nvptx_open_device): Use CUDA_CALL* macros.
3790 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3792 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3793 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3794 (nvptx_exec): Use CUDA_CALL* macros.
3795 (nvptx_alloc): Use CUDA_CALL* macros.
3796 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3797 (nvptx_host2dev): Likewise.
3798 (nvptx_dev2host): Likewise.
3799 (nvptx_wait): Use CUDA_CALL* macros.
3800 (nvptx_wait_async): Likewise.
3801 (nvptx_wait_all): Likewise.
3802 (nvptx_wait_all_async): Likewise.
3803 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3804 use CUDA_CALL* macros, adjust call to map_fini.
3805 (GOMP_OFFLOAD_init_device): Change return type to bool,
3806 adjust code accordingly.
3807 (GOMP_OFFLOAD_fini_device): Likewise.
3808 (GOMP_OFFLOAD_load_image): Adjust calls to
3809 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3810 use CUDA_CALL* macros.
3811 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3813 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3814 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3815 handle error return.
3816 (GOMP_OFFLOAD_dev2host): Likewise.
3817 (GOMP_OFFLOAD_host2dev): Likewise.
3818 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3819 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3821 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3823 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3824 (acc_free): Likewise.
3825 (acc_memcpy_to_device): Likewise.
3826 (acc_memcpy_from_device): Likewise.
3827 (acc_deviceptr): Likewise.
3828 (acc_hostptr): Likewise.
3829 (acc_is_present): Likewise.
3830 (acc_map_data): Likewise.
3831 (acc_unmap_data): Likewise.
3832 (present_create_copy): Likewise.
3833 (delete_copyout): Likewise.
3834 (update_dev_host): Likewise.
3835 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3836 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3837 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3838 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3839 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3840 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3841 it only runs on nvptx targets.
3842 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3843 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3844 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3845 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3846 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3847 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3848 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3849 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3850 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3851 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3852 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3853 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3854 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3855 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3856 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3857 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3858 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3859 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3860 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3861 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3862 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3863 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3864 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3866 2016-05-23 Martin Jambor <mjambor@suse.cz>
3868 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3870 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3872 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3873 to gomp_init_targets_once.
3874 (acc_set_device_type): Remove !cached_base_dev condition on call to
3875 gomp_init_targets_once, move call to before acc_device_lock acquire,
3877 (acc_get_device_num): Remove !cached_base_dev condition on call to
3878 gomp_init_targets_once.
3879 (acc_set_device_num): Likewise.
3881 2016-05-16 Martin Jambor <mjambor@suse.cz>
3883 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3885 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3887 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3888 expected partitioning.
3890 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3893 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3894 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3895 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3897 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3899 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3902 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3905 * testsuite/libgomp.c/pr70680-1.c: New test.
3906 * testsuite/libgomp.c/pr70680-2.c: New test.
3908 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3910 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3911 pass parameter variables to subroutines.
3913 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3916 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3918 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3921 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3922 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3924 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3926 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3927 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3928 GOACC_declare prototype.
3930 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3931 Merge this file, and...
3932 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3933 ... this file, and...
3934 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3935 ... this file, and...
3936 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3937 ... this file, and...
3938 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3939 ... this file, and...
3940 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3941 ... this file, and...
3942 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3943 ... this file, and...
3944 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3945 ... this file, and...
3946 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3947 ... this file, and...
3948 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3949 ... this file, and...
3950 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3951 ... this file, and...
3952 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3953 ... this file, and...
3954 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3955 ... this file into...
3956 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3959 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3960 Make failure observable.
3962 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3964 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3966 * target.c (gomp_target_fallback_firstprivate,
3967 gomp_target_unshare_firstprivate): Removed.
3968 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3969 before waiting for dependencies.
3970 (gomp_target_task_fn): Don't copy firstprivate vars here.
3971 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3972 firstprivate_copies here.
3973 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3974 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3975 explicit/implicit firstprivate.
3977 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3981 PR tree-optimization/70373
3985 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3987 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3989 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3991 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3993 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3995 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3997 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3999 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
4001 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
4003 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
4004 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
4005 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
4006 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
4008 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
4010 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
4012 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
4014 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
4016 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4017 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4018 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
4019 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
4020 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
4021 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
4023 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4024 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4025 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4026 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4027 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
4028 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
4029 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
4030 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
4031 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
4032 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4033 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4034 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4035 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4036 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4037 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
4039 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
4040 James Norris <jnorris@codesourcery.com>
4041 Nathan Sidwell <nathan@codesourcery.com>
4042 Julian Brown <julian@codesourcery.com>
4043 Cesar Philippidis <cesar@codesourcery.com>
4044 Chung-Lin Tang <cltang@codesourcery.com>
4045 Tom de Vries <tom@codesourcery.com>
4047 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
4048 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4049 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4050 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
4051 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4052 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4053 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4054 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4055 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4057 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4059 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
4061 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
4062 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
4066 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4068 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
4070 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4072 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4073 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4074 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4075 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4076 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4077 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
4079 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
4080 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
4083 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
4085 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
4087 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
4089 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
4091 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
4092 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
4093 ... this new file. Update.
4094 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
4095 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
4096 ... this new file. Update.
4097 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
4098 file. Incorporate...
4099 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
4101 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
4103 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
4105 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
4107 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4109 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
4110 set-torture-options.
4112 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
4114 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
4116 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4117 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
4118 -fno-builtin-acc_on_device instead of -O0.
4119 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
4121 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4122 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
4124 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4125 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4126 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4127 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4128 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4129 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4131 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4132 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4133 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4136 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4137 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4138 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4139 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4140 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4141 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
4143 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
4145 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
4148 2016-03-24 Martin Liska <mliska@suse.cz>
4150 * plugin/plugin-hsa.c (packet_store_release): New function
4151 that is taken from the HSA runtime manual.
4152 (GOMP_OFFLOAD_run): Use the function.
4154 2016-03-23 Jakub Jelinek <jakub@redhat.com>
4157 * testsuite/libgomp.c++/pr70376.C: New test.
4159 2016-03-23 Tom de Vries <tom@codesourcery.com>
4161 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4162 initialization of lresult and lvresult.
4163 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4165 2016-03-23 James Norris <jnorris@codesourcery.com>
4166 Daichi Fukuoka <dc-fukuoka@sgi.com>
4169 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4170 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4171 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4172 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4174 2016-03-23 Martin Liska <mliska@suse.cz>
4177 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4178 argument just in case a dispatched kernel uses that argument.
4180 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4182 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4183 -ftree-parallelize-loops/-fopenacc changes.
4184 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4186 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4188 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4190 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4192 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4193 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4195 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4197 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4198 always_ld_library_path the path to libgcc_s.
4200 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4203 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4205 2016-03-09 Tom de Vries <tom@codesourcery.com>
4207 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4208 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4209 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4211 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4212 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4213 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4214 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4216 2016-03-07 Martin Jambor <mjambor@suse.cz>
4218 * testsuite/lib/libgomp.exp
4219 (check_effective_target_hsa_offloading_selected_nocache): New.
4220 (check_effective_target_hsa_offloading_selected): Likewise.
4221 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4222 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4223 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4224 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4225 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4226 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4227 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4228 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4229 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4230 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4231 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4232 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4233 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4234 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4235 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4236 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4237 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4239 2016-03-07 Martin Jambor <mjambor@suse.cz>
4241 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4242 non-shared memory accelerators.
4243 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4244 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4245 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4246 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4247 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4248 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4249 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4250 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4251 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4253 2016-03-07 Martin Jambor <mjambor@suse.cz>
4255 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4258 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4261 * testsuite/libgomp.c++/pr69555-1.C: New test.
4262 * testsuite/libgomp.c++/pr69555-2.C: New test.
4264 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4265 Martin Jambor <mjambor@suse.cz>
4267 * testsuite/lib/libgomp.exp
4268 (check_effective_target_offload_device_shared_as): New proc.
4269 * testsuite/libgomp.c++/declare_target-1.C: New test.
4271 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4274 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4276 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4278 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4279 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4282 -ftree-parallelize-loops/-fopenacc changes.
4283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4292 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4294 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4299 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4304 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4305 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4308 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4310 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4312 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4315 * testsuite/libgomp.c/pr69805.c: New test.
4317 2016-02-16 Tom de Vries <tom@codesourcery.com>
4320 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4322 2016-02-09 Tom de Vries <tom@codesourcery.com>
4324 PR tree-optimization/69599
4325 * testsuite/libgomp.c/omp-nested-3.c: New test.
4326 * testsuite/libgomp.c/pr46032-2.c: New test.
4327 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4328 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4330 2016-02-09 Tom de Vries <tom@codesourcery.com>
4333 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4335 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4337 * testsuite/libgomp.c/target-31.c: Fix testcase.
4339 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4341 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4343 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4344 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4345 reduction and map clauses.
4346 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4348 2016-02-02 James Norris <jnorris@codesourcery.com>
4350 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4352 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4354 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4355 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4357 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4360 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4362 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4363 (hsa_kmt_lib): Set variables.
4364 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4365 always_ld_library_path.
4366 * Makefile.in: Regenerate.
4367 * configure: Likewise.
4368 * testsuite/Makefile.in: Likewise.
4370 * plugin/configfrag.ac (offload_additional_options)
4371 (offload_additional_lib_paths): Don't amend for hsa offloading.
4372 * configure: Regenerate.
4374 * plugin/configfrag.ac: Don't configure for offloading target if
4375 we don't build the corresponding plugin.
4376 * configure: Regenerate.
4378 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4380 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4381 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4383 2016-01-26 Tom de Vries <tom@codesourcery.com>
4385 PR tree-optimization/69110
4386 * testsuite/libgomp.c/pr69110.c: New test.
4388 2016-01-25 Richard Biener <rguenther@suse.de>
4391 * testsuite/libgomp.c++/pr69393.C: New testcase.
4393 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4395 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4396 function wasn't mapped to the device with non-shared memory.
4398 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4400 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4402 2016-01-19 Martin Jambor <mjambor@suse.cz>
4403 Martin Liska <mliska@suse.cz>
4405 * plugin/Makefrag.am: Add HSA plugin requirements.
4406 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4407 (HSA_RUNTIME_LIB): Likewise.
4408 (HSA_RUNTIME_CPPFLAGS): Likewise.
4409 (HSA_RUNTIME_INCLUDE): New substitution.
4410 (HSA_RUNTIME_LIB): Likewise.
4411 (HSA_RUNTIME_LDFLAGS): Likewise.
4412 (hsa-runtime): New configure option.
4413 (hsa-runtime-include): Likewise.
4414 (hsa-runtime-lib): Likewise.
4415 (PLUGIN_HSA): New substitution variable.
4416 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4418 (PLUGIN_HSA_CPPFLAGS): Likewise.
4419 (PLUGIN_HSA_LDFLAGS): Likewise.
4420 (PLUGIN_HSA_LIBS): Likewise.
4421 Check that we have access to HSA run-time.
4422 * libgomp-plugin.h (offload_target_type): New element
4423 OFFLOAD_TARGET_TYPE_HSA.
4424 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4426 (bool gomp_create_target_task): Updated.
4427 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4428 new field can_run_func.
4429 * libgomp_g.h (GOMP_target_ext): Update prototype.
4430 * oacc-host.c (host_run): Added a new parameter args.
4431 * target.c (calculate_firstprivate_requirements): New function.
4432 (copy_firstprivate_data): Likewise.
4433 (gomp_target_fallback_firstprivate): Use them.
4434 (gomp_target_unshare_firstprivate): New function.
4435 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4437 (GOMP_target): Do host fallback for all shared memory devices. Do not
4438 pass any args to plugins.
4439 (GOMP_target_ext): Introduce device-specific argument parameter args.
4440 Allow host fallback if device shares memory. Do not remap data if
4441 device has shared memory.
4442 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4443 like host fallback for mappings.
4444 (GOMP_target_data): Treat shared memory devices like host fallback.
4445 (GOMP_target_data_ext): Likewise.
4446 (GOMP_target_update): Likewise.
4447 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4448 gomp_create_target_task.
4449 (GOMP_target_enter_exit_data): Likewise.
4450 (omp_target_alloc): Treat shared memory devices like host fallback.
4451 (omp_target_free): Likewise.
4452 (omp_target_is_present): Likewise.
4453 (omp_target_memcpy): Likewise.
4454 (omp_target_memcpy_rect): Likewise.
4455 (omp_target_associate_ptr): Likewise.
4456 (gomp_load_plugin_for_device): Also load can_run.
4457 * task.c (GOMP_PLUGIN_target_task_completion): Free
4458 firstprivate_copies.
4459 (gomp_create_target_task): Accept new argument args and store it to
4461 * plugin/plugin-hsa.c: New file.
4463 2016-01-18 Tom de Vries <tom@codesourcery.com>
4465 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4466 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4467 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4468 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4469 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4470 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4471 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4472 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4473 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4475 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4477 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4479 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4480 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4481 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4482 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4483 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4484 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4485 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4486 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4488 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4490 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4492 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4494 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4496 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4498 2016-01-12 James Norris <jnorris@codesourcery.com>
4500 * libgomp.texi: Updates for OpenACC.
4502 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4504 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4506 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4509 * testsuite/libgomp.fortran/pr66680.f90: New test.
4511 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4514 * testsuite/libgomp.c/pr68960.c: New test.
4516 2016-01-06 Nathan Sidwell <nathan@acm.org>
4518 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4519 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4521 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4523 Update copyright years.
4525 * libgomp.texi: Bump @copying's copyright year.
4527 2015-12-31 Nathan Sidwell <nathan@acm.org>
4529 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4530 dg-additional-options syntax.
4531 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4532 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4533 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4534 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4535 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4536 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4537 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4538 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4539 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4540 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4541 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4542 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4543 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4544 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4545 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4546 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4547 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4548 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4550 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4552 * libgomp.h (REFCOUNT_LINK): Define.
4553 (struct splay_tree_key_s): Add link_key.
4554 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4555 Replace target address of the pointer with target address of newly
4556 mapped object in the splay tree. Set link pointer on target to the
4557 device address of the mapped object.
4558 (gomp_unmap_vars): Restore target address of the pointer in the splay
4559 tree for REFCOUNT_LINK objects after unmapping.
4560 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4561 declare target link" objects.
4562 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4563 "omp declare target link" objects, which were mapped for the image.
4564 (gomp_exit_data): Restore target address of the pointer in the splay
4565 tree for REFCOUNT_LINK objects after unmapping.
4566 * testsuite/libgomp.c/target-link-1.c: New file.
4568 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4570 * libgomp.h (gomp_device_state): New enum.
4571 (struct gomp_device_descr): Replace is_initialized with state.
4572 (gomp_fini_device): Remove declaration.
4573 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4574 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4575 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4576 (acc_set_device_type): Use state instead of is_initialized.
4577 (acc_set_device_num): Likewise.
4578 * target.c (resolve_device): Use state instead of is_initialized.
4579 Do not initialize finalized device.
4580 (gomp_map_vars): Do nothing if device is finalized.
4581 (gomp_unmap_vars): Likewise.
4582 (gomp_update): Likewise.
4583 (GOMP_offload_register_ver): Use state instead of is_initialized.
4584 (GOMP_offload_unregister_ver): Likewise.
4585 (gomp_init_device): Likewise.
4586 (gomp_unload_device): Likewise.
4587 (gomp_fini_device): Remove.
4588 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4589 (GOMP_target): Go to host fallback if device is finalized.
4590 (GOMP_target_ext): Likewise.
4591 (gomp_exit_data): Do nothing if device is finalized.
4592 (gomp_target_task_fn): Go to host fallback if device is finalized.
4593 (gomp_target_fini): New static function.
4594 (gomp_target_init): Use state instead of is_initialized.
4595 Call gomp_target_fini at exit.
4597 2015-12-09 Tom de Vries <tom@codesourcery.com>
4599 PR tree-optimization/68716
4600 * testsuite/libgomp.c/omp-nested-2.c: New test.
4602 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4604 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4605 target openacc_nvidia_accel_selected.
4606 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4607 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4608 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4609 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4611 2015-12-01 Julian Brown <julian@codesourcery.com>
4612 James Norris <James_Norris@mentor.com>
4614 * oacc-parallel.c (GOACC_host_data): New function.
4615 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4616 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4617 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4618 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4619 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4620 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4621 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4623 2015-11-30 James Norris <jnorris@codesourcery.com>
4624 Cesar Philippidis <cesar@codesourcery.com>
4627 * libgomp.oacc-fortran/routine-5.f90: New test.
4628 * libgomp.oacc-fortran/routine-7.f90: New test.
4629 * libgomp.oacc-fortran/routine-9.f90: New test.
4631 2015-11-30 Tom de Vries <tom@codesourcery.com>
4633 PR tree-optimization/46032
4634 * testsuite/libgomp.c/pr46032.c: New test.
4636 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4639 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4640 (gomp_create_target_task): Call it before freeing
4641 GOMP_TARGET_TASK_DATA tasks.
4644 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4645 in between case label and OpenMP standalone directives.
4646 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4648 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4650 * configure: Regenerate.
4652 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4654 * testsuite/libgomp.c/target-35.c: New test.
4656 2015-11-22 James Norris <jnorris@codesourcery.com>
4657 Cesar Philippidis <cesar@codesourcery.com>
4659 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4660 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4661 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4662 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4663 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4665 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4668 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4669 * testsuite/libgomp.c/reduction-12.c: Likewise.
4670 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4671 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4673 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4675 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4676 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4677 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4678 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4679 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4681 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4682 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4684 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4686 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4687 worker & gang cases.
4688 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4690 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4692 * config/nvptx/priority_queue.c: New file.
4694 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4696 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4699 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4700 Aldy Hernandez <aldyh@redhat.com>
4701 Ilya Verbin <ilya.verbin@intel.com>
4703 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4704 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4705 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4706 iterators or IV by chunk size.
4707 * parallel.c (gomp_resolve_num_threads): Don't assume that
4708 if thr->ts.team is non-NULL, then pool must be non-NULL.
4709 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4710 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4711 GOMP_PLUGIN_target_task_completion.
4712 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4713 * Makefile.in: Regenerate.
4714 * libgomp.h: Shuffle prototypes and forward definitions around so
4715 priority queues can be defined.
4716 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4717 (enum gomp_target_task_state): New enum.
4718 (struct gomp_target_task): Add state, tgt, task and team fields.
4719 (gomp_create_target_task): Change return type to bool, add
4721 (gomp_target_task_fn): Change return type to bool.
4722 (struct gomp_device_descr): Add async_run_func.
4723 (struct gomp_task): Remove children, next_child, prev_child,
4724 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4726 (struct gomp_taskgroup): Remove children.
4727 Add taskgroup_queue.
4728 (struct gomp_team): Change task_queue type to a priority queue.
4729 (splay_compare): Define inline.
4730 (priority_queue_offset): New.
4731 (priority_node_to_task): New.
4732 (task_to_priority_node): New.
4733 * oacc-mem.c: Do not include splay-tree.h.
4734 * priority_queue.c: New file.
4735 * priority_queue.h: New file.
4736 * splay-tree.c: Do not include splay-tree.h.
4737 (splay_tree_foreach_internal): New.
4738 (splay_tree_foreach): New.
4739 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4740 (splay_tree_callback): Define typedef.
4741 * target.c (splay_compare): Move to libgomp.h.
4742 (GOMP_target): Don't adjust *thr in any way around running offloaded
4744 (GOMP_target_ext): Likewise. Handle target nowait.
4745 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4746 return value from gomp_create_target_task, if false, fallthrough
4747 as if no dependencies exist.
4748 (gomp_target_task_fn): Change return type to bool, return true
4749 if the task should have another part scheduled later. Handle
4751 (gomp_load_plugin_for_device): Initialize async_run.
4752 * task.c (gomp_init_task): Initialize children_queue.
4753 (gomp_clear_parent_in_list): New.
4754 (gomp_clear_parent_in_tree): New.
4755 (gomp_clear_parent): Handle priorities.
4756 (GOMP_task): Likewise.
4757 (priority_queue_move_task_first,
4758 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4760 (gomp_create_target_task): Use priority queues. Change return type
4761 to bool, add state argument, return false if for async
4762 {{enter,exit} data,update} constructs no dependencies need to be
4763 waited for, handle target nowait. Set task->fn to NULL instead of
4764 gomp_target_task_fn.
4765 (verify_children_queue): Remove.
4766 (priority_list_upgrade_task): New.
4767 (priority_queue_upgrade_task): New.
4768 (verify_task_queue): Remove.
4769 (priority_list_downgrade_task): New.
4770 (priority_queue_downgrade_task): New.
4771 (gomp_task_run_pre): Use priority queues.
4772 Abstract code out to priority_queue_downgrade_task.
4773 (gomp_task_run_post_handle_dependers): Use priority queues.
4774 (gomp_task_run_post_remove_parent): Likewise.
4775 (gomp_task_run_post_remove_taskgroup): Likewise.
4776 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4778 (GOMP_taskwait): Likewise.
4779 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4780 priority-queue_upgrade_task.
4781 (GOMP_taskgroup_start): Use priority queues.
4782 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4783 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4785 * taskloop.c (GOMP_taskloop): Handle priorities.
4786 * team.c (gomp_new_team): Call priority_queue_init.
4787 (free_team): Call priority_queue_free.
4788 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4789 team created for target nowait in implicit parallel region.
4790 (gomp_team_start): For nested check, test thr->ts.level instead of
4791 thr->ts.team != NULL.
4792 * testsuite/libgomp.c/doacross-3.c: New test.
4793 * testsuite/libgomp.c/ordered-5.c: New test.
4794 * testsuite/libgomp.c/priority.c: New test.
4795 * testsuite/libgomp.c/target-31.c: New test.
4796 * testsuite/libgomp.c/target-32.c: New test.
4797 * testsuite/libgomp.c/target-33.c: New test.
4798 * testsuite/libgomp.c/target-34.c: New test.
4800 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4802 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4804 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4807 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4809 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4810 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4812 2015-11-12 James Norris <jnorris@codesourcery.com>
4813 Joseph Myers <joseph@codesourcery.com>
4815 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4816 * oacc-parallel.c (GOACC_declare): New function.
4817 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4818 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4819 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4820 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4821 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4823 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4825 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4827 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4829 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4830 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4832 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4834 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4837 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4839 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4840 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4841 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4842 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4843 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4845 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4847 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4848 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4850 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4851 Ilya Verbin <ilya.verbin@intel.com>
4853 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4854 GOMP_loop_nonmonotonic_dynamic_start,
4855 GOMP_loop_nonmonotonic_guided_next,
4856 GOMP_loop_nonmonotonic_guided_start,
4857 GOMP_loop_ull_nonmonotonic_dynamic_next,
4858 GOMP_loop_ull_nonmonotonic_dynamic_start,
4859 GOMP_loop_ull_nonmonotonic_guided_next,
4860 GOMP_loop_ull_nonmonotonic_guided_start,
4861 GOMP_parallel_loop_nonmonotonic_dynamic,
4862 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4863 (GOMP_target_41): Renamed to ...
4864 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4866 (GOMP_target_data_41): Renamed to ...
4867 (GOMP_target_data_ext): ... this.
4868 (GOMP_target_update_41): Renamed to ...
4869 (GOMP_target_update_ext): ... this.
4870 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4871 GOMP_target_data_ext and GOMP_target_update_ext instead of
4872 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4873 Export GOMP_loop_nonmonotonic_dynamic_next,
4874 GOMP_loop_nonmonotonic_dynamic_start,
4875 GOMP_loop_nonmonotonic_guided_next,
4876 GOMP_loop_nonmonotonic_guided_start,
4877 GOMP_loop_ull_nonmonotonic_dynamic_next,
4878 GOMP_loop_ull_nonmonotonic_dynamic_start,
4879 GOMP_loop_ull_nonmonotonic_guided_next,
4880 GOMP_loop_ull_nonmonotonic_guided_start,
4881 GOMP_parallel_loop_nonmonotonic_dynamic and
4882 GOMP_parallel_loop_nonmonotonic_guided.
4883 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4884 GOMP_parallel_loop_nonmonotonic_guided,
4885 GOMP_loop_nonmonotonic_dynamic_start,
4886 GOMP_loop_nonmonotonic_guided_start,
4887 GOMP_loop_nonmonotonic_dynamic_next,
4888 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4889 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4890 GOMP_loop_ull_nonmonotonic_guided_start,
4891 GOMP_loop_ull_nonmonotonic_dynamic_next,
4892 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4893 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4895 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4896 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4897 Use gomp_map_val function.
4898 (gomp_target_fallback_firstprivate): New static function.
4899 (GOMP_target_41): Renamed to ...
4900 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4901 arguments. Move firstprivate fallback handling into a new
4903 (GOMP_target_data_41): Renamed to ...
4904 (GOMP_target_data_ext): ... this.
4905 (GOMP_target_update_41): Renamed to ...
4906 (GOMP_target_update_ext): ... this.
4907 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4908 gomp_map_0len_lookup instead of gomp_map_lookup.
4909 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4911 * testsuite/libgomp.c/target-28.c: Likewise.
4912 * testsuite/libgomp.c/monotonic-1.c: New test.
4913 * testsuite/libgomp.c/monotonic-2.c: New test.
4914 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4915 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4916 * testsuite/libgomp.c/pr66199-5.c: New test.
4917 * testsuite/libgomp.c/pr66199-6.c: New test.
4918 * testsuite/libgomp.c/pr66199-7.c: New test.
4919 * testsuite/libgomp.c/pr66199-8.c: New test.
4920 * testsuite/libgomp.c/pr66199-9.c: New test.
4921 * testsuite/libgomp.c/reduction-11.c: New test.
4922 * testsuite/libgomp.c/reduction-12.c: New test.
4923 * testsuite/libgomp.c/reduction-13.c: New test.
4924 * testsuite/libgomp.c/reduction-14.c: New test.
4925 * testsuite/libgomp.c/reduction-15.c: New test.
4926 * testsuite/libgomp.c/target-12.c (main): Adjust for
4927 omp_target_is_present change for one-past-last element.
4928 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4929 the same var is both mapped and privatized.
4930 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4931 handling of zero-length array sections.
4932 * testsuite/libgomp.c/target-28.c: New test.
4933 * testsuite/libgomp.c/target-29.c: New test.
4934 * testsuite/libgomp.c/target-30.c: New test.
4935 * testsuite/libgomp.c/target-teams-1.c: New test.
4936 * testsuite/libgomp.c++/member-6.C: New test.
4937 * testsuite/libgomp.c++/member-7.C: New test.
4938 * testsuite/libgomp.c++/monotonic-1.C: New test.
4939 * testsuite/libgomp.c++/monotonic-2.C: New test.
4940 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4941 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4942 * testsuite/libgomp.c++/pr66199-3.C: New test.
4943 * testsuite/libgomp.c++/pr66199-4.C: New test.
4944 * testsuite/libgomp.c++/pr66199-5.C: New test.
4945 * testsuite/libgomp.c++/pr66199-6.C: New test.
4946 * testsuite/libgomp.c++/pr66199-7.C: New test.
4947 * testsuite/libgomp.c++/pr66199-8.C: New test.
4948 * testsuite/libgomp.c++/pr66199-9.C: New test.
4949 * testsuite/libgomp.c++/reduction-11.C: New test.
4950 * testsuite/libgomp.c++/reduction-12.C: New test.
4951 * testsuite/libgomp.c++/target-13.C: New test.
4952 * testsuite/libgomp.c++/target-14.C: New test.
4953 * testsuite/libgomp.c++/target-15.C: New test.
4954 * testsuite/libgomp.c++/target-16.C: New test.
4955 * testsuite/libgomp.c++/target-17.C: New test.
4956 * testsuite/libgomp.c++/target-18.C: New test.
4957 * testsuite/libgomp.c++/target-19.C: New test.
4959 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4961 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4963 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4964 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4965 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4966 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4967 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4968 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4969 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4970 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4971 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4972 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4973 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4974 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4975 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4976 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4978 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4980 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4981 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4982 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4983 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4984 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4985 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4986 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4987 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4989 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4991 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4992 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4993 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4994 * oacc-host.c (host_openacc_exec): Likewise.
4995 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4997 2015-11-03 Julian Brown <julian@codesourcery.com>
4998 Thomas Schwinge <thomas@codesourcery.com>
5000 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
5001 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5002 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
5004 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
5005 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
5007 2015-11-03 James Norris <jnorris@codesourcery.com>
5009 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
5011 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
5013 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
5014 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
5015 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5016 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
5017 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5019 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5021 * openacc.h (enum acc_device_t): Reformat. Ensure layout
5023 (enum acc_async_t): Reformat.
5024 (acc_on_device): Declare compatible with builtin and provide C++
5026 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
5028 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
5029 Cesar Philippidis <cesar@codesourcery.com>
5031 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
5032 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
5033 ... this. Add a description of the test at the top of the file.
5034 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
5035 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
5036 ... this. Add a description of the test at the top of the file.
5038 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5040 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
5041 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
5042 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
5043 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
5044 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
5045 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
5047 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5049 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
5052 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5055 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
5057 2015-10-27 James Norris <jnorris@codesourcery.com>
5059 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
5060 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
5062 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
5064 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
5065 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5067 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
5068 acc_device_nvidia usage.
5069 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5070 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5071 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5073 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
5074 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
5077 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
5081 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
5082 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
5084 2015-10-23 Tom de Vries <tom@codesourcery.com>
5087 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
5089 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
5091 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5093 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5095 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
5096 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
5098 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
5099 to 0 when mapnum is 0.
5101 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
5103 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
5104 Cast to int from int32_t.
5106 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5107 Aldy Hernandez <aldyh@redhat.com>
5108 Ilya Verbin <ilya.verbin@intel.com>
5110 * config/linux/affinity.c (omp_get_place_num_procs,
5111 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5112 * config/linux/doacross.h: New file.
5113 * config/posix/affinity.c (omp_get_place_num_procs,
5114 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5115 * config/posix/doacross.h: New file.
5116 * env.c: Include gomp-constants.h.
5117 (struct gomp_task_icv): Rename run_sched_modifier to
5118 run_sched_chunk_size.
5119 (gomp_max_task_priority_var): New variable.
5120 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
5121 (handle_omp_display_env): Change _OPENMP value from 201307 to
5122 201511. Print OMP_MAX_TASK_PRIORITY.
5123 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
5124 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
5125 chunk_size and run_sched_modifier to run_sched_chunk_size.
5126 (omp_get_max_task_priority, omp_get_initial_device,
5127 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
5128 omp_get_partition_place_nums): New functions.
5129 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
5130 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
5132 (omp_get_num_places_, omp_get_place_num_procs_,
5133 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
5134 omp_get_place_proc_ids_8_, omp_get_place_num_,
5135 omp_get_partition_num_places_, omp_get_partition_place_nums_,
5136 omp_get_partition_place_nums_8_, omp_get_initial_device_,
5137 omp_get_max_task_priority_): New functions.
5138 * libgomp_g.h (GOMP_loop_doacross_static_start,
5139 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
5140 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
5141 GOMP_loop_ull_doacross_dynamic_start,
5142 GOMP_loop_ull_doacross_guided_start,
5143 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
5144 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
5145 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
5146 GOMP_target_data_41, GOMP_target_update_41,
5147 GOMP_target_enter_exit_data): New prototypes.
5148 (GOMP_task): Add prototype argument.
5149 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
5150 (struct gomp_doacross_work_share): New type.
5151 (struct gomp_work_share): Add doacross field.
5152 (struct gomp_task_icv): Rename run_sched_modifier to
5153 run_sched_chunk_size.
5154 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
5155 GOMP_TASK_UNDEFERRED. Add comments.
5156 (struct gomp_task_depend_entry): Add comments.
5157 (struct gomp_task): Likewise.
5158 (struct gomp_taskgroup): Likewise.
5159 (struct gomp_target_task): New type.
5160 (struct gomp_team): Add comment.
5161 (gomp_get_place_proc_ids_8, gomp_doacross_init,
5162 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5163 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5164 (struct target_var_desc): New type.
5165 (struct target_mem_desc): Adjust comment. Use struct
5166 target_var_desc instead of splay_tree_key for list.
5167 (REFCOUNT_INFINITY): Define.
5168 (struct splay_tree_key_s): Remove copy_from field.
5169 (struct gomp_device_descr): Add dev2dev_func field.
5170 (enum gomp_map_vars_kind): New enum.
5171 (gomp_map_vars): Add one argument.
5172 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5173 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5174 omp_get_place_num_procs, omp_get_place_num_procs_,
5175 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5176 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5177 omp_get_place_num_, omp_get_partition_num_places,
5178 omp_get_partition_num_places_, omp_get_partition_place_nums,
5179 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5180 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5181 omp_target_free, omp_target_is_present, omp_target_memcpy,
5182 omp_target_memcpy_rect, omp_target_associate_ptr and
5183 omp_target_disassociate_ptr.
5184 (GOMP_4.0.2): Renamed to ...
5185 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5186 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5187 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5188 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5189 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5190 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5191 GOMP_loop_ull_doacross_guided_start,
5192 GOMP_loop_ull_doacross_runtime_start,
5193 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5194 GOMP_doacross_ull_wait.
5195 * libgomp.texi: Document omp_get_max_task_priority.
5196 Rename modifier argument to chunk_size for omp_set_schedule and
5197 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5198 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5199 to run_sched_chunk_size renaming.
5200 (GOMP_loop_ordered_runtime_start): Likewise.
5201 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5202 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5203 GOMP_parallel_loop_runtime_start): New functions.
5204 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5205 to run_sched_chunk_size renaming.
5206 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5207 GOMP_loop_doacross_guided_start): New functions or aliases.
5208 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5209 run_sched_modifier to run_sched_chunk_size renaming.
5210 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5211 (gomp_loop_ull_doacross_static_start,
5212 gomp_loop_ull_doacross_dynamic_start,
5213 gomp_loop_ull_doacross_guided_start,
5214 GOMP_loop_ull_doacross_runtime_start): New functions.
5215 (GOMP_loop_ull_doacross_static_start,
5216 GOMP_loop_ull_doacross_dynamic_start,
5217 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5218 * oacc-mem.c (acc_map_data, present_create_copy,
5219 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5221 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5222 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5223 instead of false to gomp_map_vars.
5224 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5225 * omp.h.in (omp_lock_hint_t): New type.
5226 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5227 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5228 omp_get_place_num, omp_get_partition_num_places,
5229 omp_get_partition_place_nums, omp_get_initial_device,
5230 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5231 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5232 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5234 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5235 (omp_lock_hint_none, omp_lock_hint_uncontended,
5236 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5237 omp_lock_hint_speculative): New parameters.
5238 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5239 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5240 omp_get_place_num, omp_get_partition_num_places,
5241 omp_get_partition_place_nums, omp_get_initial_device,
5242 omp_get_max_task_priority): New interfaces.
5243 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5245 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5246 (omp_lock_hint_none, omp_lock_hint_uncontended,
5247 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5248 omp_lock_hint_speculative): New parameters.
5249 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5250 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5251 omp_get_place_num, omp_get_partition_num_places,
5252 omp_get_partition_place_nums, omp_get_initial_device,
5253 omp_get_max_task_priority): New functions and subroutines.
5254 * ordered.c: Include stdarg.h and string.h.
5255 (MAX_COLLAPSED_BITS): Define.
5256 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5257 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5258 GOMP_doacross_ull_wait): New functions.
5259 * target.c: Include errno.h.
5260 (resolve_device): If device is not initialized, call
5261 gomp_init_device on it.
5262 (gomp_map_lookup): New function.
5263 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5264 Don't bump refcount if REFCOUNT_INFINITY. Handle
5265 GOMP_MAP_ALWAYS_TO_P.
5266 (get_kind): Rename is_openacc argument to short_mapkind.
5267 (gomp_map_pointer): Use gomp_map_lookup.
5268 (gomp_map_fields_existing): New function.
5269 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5270 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5271 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5272 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5273 Adjust for tgt->list changed type and copy_from living in there.
5274 (gomp_copy_from_async): Adjust for tgt->list changed type and
5275 copy_from living in there.
5276 (gomp_unmap_vars): Likewise.
5277 (gomp_update): Likewise. Rename is_openacc argument to
5278 short_mapkind. Don't fail if object is not mapped.
5279 (gomp_load_image_to_device): Initialize refcount to
5281 (gomp_target_fallback): New function.
5282 (gomp_get_target_fn_addr): Likewise.
5283 (GOMP_target): Adjust gomp_map_vars caller, use
5284 gomp_get_target_fn_addr and gomp_target_fallback.
5285 (GOMP_target_41): New function.
5286 (gomp_target_data_fallback): New function.
5287 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5288 (GOMP_target_data_41): New function.
5289 (GOMP_target_update): Adjust gomp_update caller.
5290 (GOMP_target_update_41): New function.
5291 (gomp_exit_data, GOMP_target_enter_exit_data,
5292 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5293 omp_target_is_present, omp_target_memcpy,
5294 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5295 omp_target_associate_ptr, omp_target_disassociate_ptr,
5296 gomp_load_plugin_for_device): New functions.
5297 * task.c: Include gomp-constants.h. Include taskloop.c
5298 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5299 (gomp_task_handle_depend): New function.
5300 (GOMP_task): Use it. Add priority argument. Use
5301 gomp-constant.h constants instead of hardcoded numbers.
5302 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5303 (gomp_create_target_task): New function.
5304 (verify_children_queue, verify_taskgroup_queue,
5305 verify_task_queue): New functions.
5306 (gomp_task_run_pre): Call verify_*_queue functions.
5307 If an upcoming tied task is about to leave the sibling or
5308 taskgroup queues in an invalid state, adjust appropriately.
5309 Remove taskgroup argument. Add comments.
5310 (gomp_task_run_post_handle_dependers): Add comments.
5311 (gomp_task_run_post_remove_parent): Likewise.
5312 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5313 (GOMP_taskwait): Likewise. Add comments.
5314 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5315 problem such that the first non parent_depends_on task does not
5316 end up at the end of the children queue.
5317 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5318 GOMP_TASK_UNDEFERRED.
5319 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5320 * taskloop.c: New file.
5321 * testsuite/lib/libgomp.exp
5322 (check_effective_target_offload_device_nonshared_as): New proc.
5323 * testsuite/libgomp.c/affinity-2.c: New test.
5324 * testsuite/libgomp.c/doacross-1.c: New test.
5325 * testsuite/libgomp.c/doacross-2.c: New test.
5326 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5327 Add map clause to target.
5328 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5329 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5330 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5331 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5332 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5334 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5335 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5336 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5337 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5338 not defined. Use those where needed.
5339 * testsuite/libgomp.c/for-4.c: New test.
5340 * testsuite/libgomp.c/for-5.c: New test.
5341 * testsuite/libgomp.c/for-6.c: New test.
5342 * testsuite/libgomp.c/linear-1.c: New test.
5343 * testsuite/libgomp.c/ordered-4.c: New test.
5344 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5345 only allowed on the loop iterator.
5346 * testsuite/libgomp.c/pr66199-3.c: New test.
5347 * testsuite/libgomp.c/pr66199-4.c: New test.
5348 * testsuite/libgomp.c/reduction-7.c: New test.
5349 * testsuite/libgomp.c/reduction-8.c: New test.
5350 * testsuite/libgomp.c/reduction-9.c: New test.
5351 * testsuite/libgomp.c/reduction-10.c: New test.
5352 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5354 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5355 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5356 * testsuite/libgomp.c/target-11.c: New test.
5357 * testsuite/libgomp.c/target-12.c: New test.
5358 * testsuite/libgomp.c/target-13.c: New test.
5359 * testsuite/libgomp.c/target-14.c: New test.
5360 * testsuite/libgomp.c/target-15.c: New test.
5361 * testsuite/libgomp.c/target-16.c: New test.
5362 * testsuite/libgomp.c/target-17.c: New test.
5363 * testsuite/libgomp.c/target-18.c: New test.
5364 * testsuite/libgomp.c/target-19.c: New test.
5365 * testsuite/libgomp.c/target-20.c: New test.
5366 * testsuite/libgomp.c/target-21.c: New test.
5367 * testsuite/libgomp.c/target-22.c: New test.
5368 * testsuite/libgomp.c/target-23.c: New test.
5369 * testsuite/libgomp.c/target-24.c: New test.
5370 * testsuite/libgomp.c/target-25.c: New test.
5371 * testsuite/libgomp.c/target-26.c: New test.
5372 * testsuite/libgomp.c/target-27.c: New test.
5373 * testsuite/libgomp.c/taskloop-1.c: New test.
5374 * testsuite/libgomp.c/taskloop-2.c: New test.
5375 * testsuite/libgomp.c/taskloop-3.c: New test.
5376 * testsuite/libgomp.c/taskloop-4.c: New test.
5377 * testsuite/libgomp.c++/ctor-13.C: New test.
5378 * testsuite/libgomp.c++/doacross-1.C: New test.
5379 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5380 Replace offload_device with offload_device_nonshared_as.
5381 * testsuite/libgomp.c++/for-12.C: New test.
5382 * testsuite/libgomp.c++/for-13.C: New test.
5383 * testsuite/libgomp.c++/for-14.C: New test.
5384 * testsuite/libgomp.c++/linear-1.C: New test.
5385 * testsuite/libgomp.c++/member-1.C: New test.
5386 * testsuite/libgomp.c++/member-2.C: New test.
5387 * testsuite/libgomp.c++/member-3.C: New test.
5388 * testsuite/libgomp.c++/member-4.C: New test.
5389 * testsuite/libgomp.c++/member-5.C: New test.
5390 * testsuite/libgomp.c++/ordered-1.C: New test.
5391 * testsuite/libgomp.c++/reduction-5.C: New test.
5392 * testsuite/libgomp.c++/reduction-6.C: New test.
5393 * testsuite/libgomp.c++/reduction-7.C: New test.
5394 * testsuite/libgomp.c++/reduction-8.C: New test.
5395 * testsuite/libgomp.c++/reduction-9.C: New test.
5396 * testsuite/libgomp.c++/reduction-10.C: New test.
5397 * testsuite/libgomp.c++/reference-1.C: New test.
5398 * testsuite/libgomp.c++/simd14.C: New test.
5399 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5400 * testsuite/libgomp.c++/target-5.C: New test.
5401 * testsuite/libgomp.c++/target-6.C: New test.
5402 * testsuite/libgomp.c++/target-7.C: New test.
5403 * testsuite/libgomp.c++/target-8.C: New test.
5404 * testsuite/libgomp.c++/target-9.C: New test.
5405 * testsuite/libgomp.c++/target-10.C: New test.
5406 * testsuite/libgomp.c++/target-11.C: New test.
5407 * testsuite/libgomp.c++/target-12.C: New test.
5408 * testsuite/libgomp.c++/taskloop-1.C: New test.
5409 * testsuite/libgomp.c++/taskloop-2.C: New test.
5410 * testsuite/libgomp.c++/taskloop-3.C: New test.
5411 * testsuite/libgomp.c++/taskloop-4.C: New test.
5412 * testsuite/libgomp.c++/taskloop-5.C: New test.
5413 * testsuite/libgomp.c++/taskloop-6.C: New test.
5414 * testsuite/libgomp.c++/taskloop-7.C: New test.
5415 * testsuite/libgomp.c++/taskloop-8.C: New test.
5416 * testsuite/libgomp.c++/taskloop-9.C: New test.
5417 * testsuite/libgomp.fortran/affinity1.f90: New test.
5418 * testsuite/libgomp.fortran/affinity2.f90: New test.
5420 2015-10-13 Tom de Vries <tom@codesourcery.com>
5422 PR tree-optimization/67476
5423 * testsuite/libgomp.c/autopar-3.c: New test.
5424 * testsuite/libgomp.c/autopar-4.c: New test.
5425 * testsuite/libgomp.c/autopar-5.c: New test.
5426 * testsuite/libgomp.c/autopar-6.c: New test.
5427 * testsuite/libgomp.c/autopar-7.c: New test.
5428 * testsuite/libgomp.c/autopar-8.c: New test.
5430 2015-10-12 James Norris <jnorris@codesourcery.com>
5432 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5435 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5437 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5440 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5442 * oacc-ptx.h: Remove file, moving its content into...
5443 * config/nvptx/fortran.c: ... here...
5444 * config/nvptx/oacc-init.c: ..., here...
5445 * config/nvptx/oacc-parallel.c: ..., and here.
5446 * config/nvptx/openacc.f90: New file.
5447 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5448 (link_ptx): Don't link in predefined bits of PTX code.
5450 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5451 Bernd Schmidt <bernds@codesourcery.com>
5453 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5454 (struct targ_ptx_obj): New.
5455 (nvptx_tdata): Move earlier, change data format.
5456 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5458 (GOMP_OFFLOAD_load_image): Adjust.
5460 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5462 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5463 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5476 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5478 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5479 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5480 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5481 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5482 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5483 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5484 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5485 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5486 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5487 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5488 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5489 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5490 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5492 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5493 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5494 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5495 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5496 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5497 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5498 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5499 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5500 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5501 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5502 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5503 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5504 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5505 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5506 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5507 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5508 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5509 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5510 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5511 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5512 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5513 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5514 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5515 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5516 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5517 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5518 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5519 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5520 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5521 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5522 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5523 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5524 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5526 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5528 * oacc-init.c (acc_on_device): Force optimization level.
5530 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5532 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5533 (cuda_errlist): Delete.
5534 (cuda_error): Reimplement.
5536 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5538 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5540 * libgomp.map (GOACC_parallel_keyed): New.
5541 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5543 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5544 and take keyed varargs list. Adjust call to exec_func.
5545 (GOACC_parallel): Force host fallback.
5546 * libgomp_g.h (GOACC_parallel): Remove.
5547 (GOACC_parallel_keyed): Declare.
5548 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5549 (stuct targ_gn_descriptor): Replace name field with launch field.
5550 (nvptx_exec): Lose separate geometry args, take array. Process
5551 dynamic dimensions and adjust.
5552 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5553 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5555 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5557 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5560 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5563 * oacc-int.h (goacc_host_init): Add declaration.
5564 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5565 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5567 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5568 Sebastian Pop <s.pop@samsung.com>
5570 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5572 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5573 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5574 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5575 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5576 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5578 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5580 * configure.tgt: Add missing ;; in between nvptx and rtems
5583 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5585 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5586 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5587 (gomp_thread_pool_reservoir): Add priority member.
5588 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5590 (parse_thread_pools): Likewise.
5591 * team.c (gomp_team_start): Call configuration provided
5592 gomp_adjust_thread_attr(). Destroy thread attributes if
5594 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5596 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5598 * config/posix/pool.h: New.
5599 * config/rtems/pool.h: Likewise.
5600 * config/rtems/proc.c: Likewise.
5601 * libgomp.h (gomp_thread_destructor): Declare.
5602 * team.c: Include configuration provided "pool.h".
5603 (gomp_get_thread_pool): Define in configuration.
5604 (gomp_team_end): Call configuration defined
5605 gomp_release_thread_pool().
5607 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5609 * config/rtems/bar.c: New.
5610 * config/rtems/bar.h: Likewise.
5611 * config/rtems/mutex.c: Likewise.
5612 * config/rtems/mutex.h: Likewise.
5613 * config/rtems/sem.c: Likewise.
5614 * config/rtems/sem.h: Likewise.
5615 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5616 <sys/lock.h> header file.
5617 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5618 supported by Newlib.
5619 * configure: Regenerate.
5621 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5623 * team.c (gomp_new_thread_pool): Delete and move content to ...
5624 (gomp_get_thread_pool): ... new function. Allocate and
5625 initialize thread pool on demand.
5626 (get_last_team): Use gomp_get_thread_pool().
5627 (gomp_team_start): Delete thread pool initialization.
5629 2015-09-03 Tom de Vries <tom@codesourcery.com>
5631 PR tree-optimization/65637
5632 * testsuite/libgomp.c/autopar-2.c: New test.
5634 2015-08-29 Tom de Vries <tom@codesourcery.com>
5636 PR tree-optimization/46193
5637 * testsuite/libgomp.c/pr46193.c: New test.
5639 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5642 * libgomp.map: Add 4.0.2 version.
5643 * target.c (offload_image_descr): Add version field.
5644 (gomp_load_image_to_device): Add version argument. Adjust plugin
5645 call. Improve load mismatch diagnostic.
5646 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5648 (GOMP_offload_regster): Make stub function, move bulk to ...
5649 (GOMP_offload_register_ver): ... here. Process version argument.
5650 (GOMP_offload_unregister): Make stub function, move bulk to ...
5651 (GOMP_offload_unregister_ver): ... here. Process version argument.
5652 (gomp_init_device): Process version field.
5653 (gomp_unload_device): Process version field.
5654 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5655 macros. Check plugin version.
5656 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5657 loader and unloader types.
5658 * oacc-host.c: Include gomp-constants.h.
5659 (host_version): New.
5660 (host_load_image, host_unload_image): Adjust.
5661 (host_dispatch): Add host_version.
5662 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5663 (GOMP_OFFLOAD_version): New.
5664 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5665 (GOMP_OFFLOAD_unload_image): Likewise.
5666 * plugin/plugin-host.c: Include gomp-constants.h.
5667 (GOMP_OFFLOAD_version): New.
5668 (GOMP_OFFLOAD_load_image): Add version arg.
5669 (GOMP_OFFLOAD_unload_image): Likewise.
5671 2015-08-24 Tom de Vries <tom@codesourcery.com>
5673 PR tree-optimization/65468
5674 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5676 2015-08-24 Tom de Vries <tom@codesourcery.com>
5678 PR tree-optimization/65468
5679 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5681 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5685 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5686 (gomp_iter_guided_next): Idem.
5687 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5688 (gomp_iter_ull_guided_next): Idem.
5689 * config/linux/wait.h (do_spin): Idem.
5691 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5693 * libgomp-plugin.h (enum offload_target_type): Remove
5694 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5695 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5696 * openacc.h (enum acc_device_t): Likewise.
5697 * openacc_lib.h: Likewise.
5698 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5699 (acc_on_device): Just use __builtin_acc_on_device.
5700 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5701 of acc_on_device builtin.
5702 * plugin/plugin-host.h: Remove file.
5703 * plugin/plugin-host.c: Likewise, but salvage some content into...
5704 * oacc-host.c: ... this file.
5705 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5706 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5707 * Makefile.in: Regenerate.
5708 * configure: Likewise.
5709 * testsuite/lib/libgomp.exp
5710 (check_effective_target_openacc_host_nonshm_selected): Remove.
5711 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5712 ACC_DEVICE_TYPE=host_nonshm.
5713 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5714 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5715 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5716 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5717 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5718 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5720 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5721 Jakub Jelinek <jakub@redhat.com>
5723 * config/nvptx/affinity.c: New file.
5724 * config/nvptx/alloc.c: Likewise.
5725 * config/nvptx/bar.c: Likewise.
5726 * config/nvptx/barrier.c: Likewise.
5727 * config/nvptx/critical.c: Likewise.
5728 * config/nvptx/env.c: Likewise.
5729 * config/nvptx/error.c: Likewise.
5730 * config/nvptx/fortran.c: Likewise.
5731 * config/nvptx/iter.c: Likewise.
5732 * config/nvptx/iter_ull.c: Likewise.
5733 * config/nvptx/libgomp-plugin.c: Likewise.
5734 * config/nvptx/lock.c: Likewise.
5735 * config/nvptx/loop.c: Likewise.
5736 * config/nvptx/loop_ull.c: Likewise.
5737 * config/nvptx/mutex.c: Likewise.
5738 * config/nvptx/oacc-async.c: Likewise.
5739 * config/nvptx/oacc-cuda.c: Likewise.
5740 * config/nvptx/oacc-host.c: Likewise.
5741 * config/nvptx/oacc-init.c: Likewise.
5742 * config/nvptx/oacc-mem.c: Likewise.
5743 * config/nvptx/oacc-parallel.c: Likewise.
5744 * config/nvptx/oacc-plugin.c: Likewise.
5745 * config/nvptx/omp-lock.h: Likewise.
5746 * config/nvptx/ordered.c: Likewise.
5747 * config/nvptx/parallel.c: Likewise.
5748 * config/nvptx/proc.c: Likewise.
5749 * config/nvptx/ptrlock.c: Likewise.
5750 * config/nvptx/sections.c: Likewise.
5751 * config/nvptx/sem.c: Likewise.
5752 * config/nvptx/single.c: Likewise.
5753 * config/nvptx/splay-tree.c: Likewise.
5754 * config/nvptx/target.c: Likewise.
5755 * config/nvptx/task.c: Likewise.
5756 * config/nvptx/team.c: Likewise.
5757 * config/nvptx/time.c: Likewise.
5758 * config/nvptx/work.c: Likewise.
5759 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5760 * configure: Regenerate.
5761 * configure.tgt (config_path): Set to "nvptx" for target
5764 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5766 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5768 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5770 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5771 (cuda_errlist): Constify.
5772 (errmsg): Move into ...
5773 (cuda_error): ... here. Make smaller.
5774 (_XSTR, _STR): Delete.
5775 (cuda_synames): Delete.
5776 (verify_device_library): Delete.
5777 (nvptx_init): Don't call it.
5779 2015-07-28 Tom de Vries <tom@codesourcery.com>
5781 * testsuite/libgomp.c/uns-outer-4.c: New test.
5783 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5785 * testsuite/libgomp.c/pr66714.c: New test.
5787 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5790 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5791 (fib_ref): New function.
5792 (fib): Correct corner cases in the recursion.
5793 (main): Replace the non-simd loop with fib_ref call.
5794 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5796 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5797 for the last array element value. Replace the non-simd loop with
5798 fib_ref call. Remove redundant b_ref array. Remove the comparison
5799 of the last array element with according Fibonacci sequence element.
5800 (fib): Correct corner cases in the recursion.
5802 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5804 * target.c (gomp_offload_image_to_device): Rename to ...
5805 (gomp_load_image_to_device): ... here.
5806 (GOMP_offload_register): Adjust call.
5807 (gomp_init_device): Likewise.
5808 (gomp_unload_image_from_device): New. Broken out of ...
5809 (GOMP_offload_unregister): ... here. Call it.
5810 (gomp_unload_device): New.
5811 * libgomp.h (gomp_unload_device): Declare.
5812 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5815 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5817 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5819 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5821 (goacc_waits): Move !num_waits handling to ...
5822 (GOACC_wait): ... here, the only caller that might have zero waits.
5824 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5825 (struct ptx_image_data): Move earlier, add fns field.
5826 (struct ptx_device): Add images and image_lock fields.
5827 (ptx_images, ptx_image_lock): Delete.
5828 (nvptx_open_device): Initialize images and image_lock fields.
5829 (nvptx_close_device): Destroy image_lock.
5830 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5831 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5834 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5836 * target.c (GOMP_offload_register): Use int for device type arg.
5837 (GOMP_offload_unregister): Likewise.
5839 * target.c (struct_offload_image_descr): Constify host_table.
5840 (gomp_offload_image_to_device): Likewise.
5841 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5843 * libgomp.h (gomp_device_descr): Constify target data arguments.
5844 * target.c (struct offload_image_descr): Constify target_data.
5845 (gomp_offload_image_to_device): Likewise.
5846 (GOMP_offload_register): Likewise.
5847 (GOMP_offload_unrefister): Likewise.
5848 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5849 GOMP_OFFLOAD_unload_image): Constify target data.
5850 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5851 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5853 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5855 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5856 Workaround driver library const error.
5857 (struct nvptx_tdata, nvptx_tdata_t): New.
5858 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5861 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5863 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5864 of EPS parameter from integer to real.
5865 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5866 type of EPS parameter from integer to real.
5868 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5870 * team.c (get_last_team): New.
5871 (gomp_new_team): Recycle last non-nested team if possible.
5872 (gomp_team_end): Move team work share list free lock destruction
5874 (free_team): ... here.
5876 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5878 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5879 and ref from int to double. Replaced their comparison with
5880 an inequality of their difference and EPS.
5881 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5882 comparison of pri and a reference number with an inequality of their
5884 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5885 the comparison of sum and sum_ref with an inequality of their
5887 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5888 the comparison of pri and a reference number with an inequality of
5889 their difference and EPS.
5891 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5893 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5894 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5895 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5896 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5897 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5898 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5899 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5900 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5901 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5902 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5903 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5904 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5905 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5907 (vec_mult): Likewise. Add #pragma omp taskwait.
5908 (main): Adjust caller.
5909 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5910 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5911 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5912 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5913 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5914 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5915 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5916 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5917 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5918 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5919 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5920 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5921 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5922 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5923 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5924 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5925 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5926 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5927 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5928 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5929 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5930 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5931 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5932 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5933 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5934 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5935 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5936 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5937 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5938 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5939 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5940 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5941 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5942 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5943 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5944 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5945 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5946 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5947 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5948 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5949 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5950 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5951 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5952 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5953 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5954 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5955 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5956 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5957 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5958 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5959 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5960 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5961 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5962 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5963 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5964 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5965 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5966 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5967 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5968 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5969 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5970 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5971 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5972 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5973 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5974 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5975 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5976 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5977 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5978 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5979 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5980 (vec_mult): Add !$omp taskwait.
5981 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5982 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5983 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5984 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5985 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5986 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5987 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5988 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5989 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5990 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5991 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5992 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5993 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5994 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5995 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5996 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5997 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5998 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5999 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
6000 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
6001 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
6002 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
6003 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
6004 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
6005 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
6006 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
6007 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
6008 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
6009 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
6010 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
6011 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
6012 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
6013 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
6014 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
6015 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
6016 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
6017 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
6018 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
6019 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
6020 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
6021 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
6022 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
6023 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
6024 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
6025 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
6026 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
6027 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
6028 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
6029 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
6030 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
6031 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
6032 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
6033 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
6034 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
6035 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
6036 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
6037 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
6038 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
6039 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
6040 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
6041 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
6042 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
6043 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
6044 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
6045 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
6046 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
6047 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
6049 2015-07-10 Tom de Vries <tom@codesourcery.com>
6051 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
6052 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
6054 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6057 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
6058 in a 64-bit configuration.
6059 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
6060 offloading testing if no such device is available.
6061 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6062 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6064 2015-07-08 Tom de Vries <tom@codesourcery.com>
6066 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
6068 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6070 2015-07-07 Tom de Vries <tom@codesourcery.com>
6072 PR tree-optimization/66642
6073 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
6074 iteration count case.
6075 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
6076 function, factor out of ...
6077 (main): ... here. Test low iteration count case.
6079 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
6081 * libgomp.h (gomp_thread_pool): Comment last_team field.
6083 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
6085 * testsuite/libgomp.c++/pr66702-1.C: Require
6086 vect_simd_clones effective target.
6087 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
6089 2015-06-30 Tom de Vries <tom@codesourcery.com>
6091 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6092 already set. Use DEFAULT_CFLAGS in dg-runtest.
6093 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
6096 2015-06-30 Tom de Vries <tom@codesourcery.com>
6098 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6099 already set. Use DEFAULT_CFLAGS in dg-runtest.
6100 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
6101 * testsuite/libgomp.c++/pr64824.C: Same.
6102 * testsuite/libgomp.c++/pr64868.C: Same.
6103 * testsuite/libgomp.c++/pr66199-1.C: Same.
6104 * testsuite/libgomp.c++/pr66199-2.C: Same.
6105 * testsuite/libgomp.c++/target-2.C: Same.
6106 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
6107 -std=<standard> option.
6108 * testsuite/libgomp.c++/udr-11.C: Same.
6109 * testsuite/libgomp.c++/udr-12.C: Same.
6110 * testsuite/libgomp.c++/udr-13.C: Same.
6111 * testsuite/libgomp.c++/udr-14.C: Same.
6112 * testsuite/libgomp.c++/udr-15.C: Same.
6113 * testsuite/libgomp.c++/udr-16.C: Same.
6114 * testsuite/libgomp.c++/udr-17.C: Same.
6115 * testsuite/libgomp.c++/udr-18.C: Same.
6116 * testsuite/libgomp.c++/udr-19.C: Same.
6117 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
6118 * testsuite/libgomp.c++/simd-1.C: Same.
6119 * testsuite/libgomp.c++/simd-2.C: Same.
6120 * testsuite/libgomp.c++/simd-3.C: Same.
6121 * testsuite/libgomp.c++/simd-4.C: Same.
6122 * testsuite/libgomp.c++/simd-5.C: Same.
6123 * testsuite/libgomp.c++/simd-6.C: Same.
6124 * testsuite/libgomp.c++/simd-7.C: Same.
6125 * testsuite/libgomp.c++/simd-8.C: Same.
6126 * testsuite/libgomp.c++/simd-9.C: Same.
6127 * testsuite/libgomp.c++/simd10.C: Same.
6128 * testsuite/libgomp.c++/simd11.C: Same.
6129 * testsuite/libgomp.c++/simd12.C: Same.
6130 * testsuite/libgomp.c++/simd13.C: Same.
6132 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6135 * testsuite/libgomp.c++/pr66702-1.C: New test.
6136 * testsuite/libgomp.c++/pr66702-2.C: New test.
6138 2015-06-30 Tom de Vries <tom@codesourcery.com>
6140 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
6141 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
6142 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
6143 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
6145 2015-06-30 Tom de Vries <tom@codesourcery.com>
6147 PR tree-optimization/66652
6148 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
6149 using restrict pointers.
6150 (main): Add arguments to calls to f.
6151 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6153 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
6155 * configure.ac: Fix check for header <sys/sysctl.h>.
6156 * configure: Regenerate.
6157 * config.h.in: Likewise.
6159 2015-06-23 Tom de Vries <tom@codesourcery.com>
6161 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6163 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6165 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6167 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6171 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6172 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6174 2015-06-15 Tom de Vries <tom@codesourcery.com>
6176 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6177 dg-additional-options for any remaining options.
6178 * testsuite/libgomp.c/atomic-2.c: Same.
6179 * testsuite/libgomp.c/atomic-4.c: Same.
6180 * testsuite/libgomp.c/atomic-5.c: Same.
6181 * testsuite/libgomp.c/atomic-6.c: Same.
6182 * testsuite/libgomp.c/autopar-1.c: Same.
6183 * testsuite/libgomp.c/copyin-1.c: Same.
6184 * testsuite/libgomp.c/copyin-2.c: Same.
6185 * testsuite/libgomp.c/copyin-3.c: Same.
6186 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6187 * testsuite/libgomp.c/nestedfn-5.c: Same.
6188 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6189 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6190 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6191 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6192 * testsuite/libgomp.c/pr32362-1.c: Same.
6193 * testsuite/libgomp.c/pr32362-2.c: Same.
6194 * testsuite/libgomp.c/pr32362-3.c: Same.
6195 * testsuite/libgomp.c/pr39591-1.c: Same.
6196 * testsuite/libgomp.c/pr39591-2.c: Same.
6197 * testsuite/libgomp.c/pr39591-3.c: Same.
6198 * testsuite/libgomp.c/pr58392.c: Same.
6199 * testsuite/libgomp.c/pr58756.c: Same.
6200 * testsuite/libgomp.c/simd-1.c: Same.
6201 * testsuite/libgomp.c/simd-10.c: Same.
6202 * testsuite/libgomp.c/simd-11.c: Same.
6203 * testsuite/libgomp.c/simd-12.c: Same.
6204 * testsuite/libgomp.c/simd-13.c: Same.
6205 * testsuite/libgomp.c/simd-14.c: Same.
6206 * testsuite/libgomp.c/simd-15.c: Same.
6207 * testsuite/libgomp.c/simd-2.c: Same.
6208 * testsuite/libgomp.c/simd-3.c: Same.
6209 * testsuite/libgomp.c/simd-4.c: Same.
6210 * testsuite/libgomp.c/simd-5.c: Same.
6211 * testsuite/libgomp.c/simd-6.c: Same.
6212 * testsuite/libgomp.c/simd-7.c: Same.
6213 * testsuite/libgomp.c/simd-8.c: Same.
6214 * testsuite/libgomp.c/simd-9.c: Same.
6216 2015-06-15 Tom de Vries <tom@codesourcery.com>
6218 * testsuite/libgomp.c/pr35625.c: Fix typo.
6220 2015-06-15 Tom de Vries <tom@codesourcery.com>
6222 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6224 * testsuite/libgomp.c/atomic-3.c: Same.
6225 * testsuite/libgomp.c/debug-1.c: Same.
6226 * testsuite/libgomp.c/nqueens-1.c: Same.
6227 * testsuite/libgomp.c/pr26171.c: Same.
6228 * testsuite/libgomp.c/pr48591.c: Same.
6229 * testsuite/libgomp.c/pr64824.c: Same.
6230 * testsuite/libgomp.c/pr64868.c: Same.
6231 * testsuite/libgomp.c/pr66133.c: Same.
6232 * testsuite/libgomp.c/pr66199-1.c: Same.
6233 * testsuite/libgomp.c/pr66199-2.c: Same.
6234 * testsuite/libgomp.c/target-8.c: Same.
6236 2015-06-15 Tom de Vries <tom@codesourcery.com>
6238 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6240 * testsuite/libgomp.c/for-1.c: Same.
6241 * testsuite/libgomp.c/for-2.c: Same.
6242 * testsuite/libgomp.c/for-3.c: Same.
6243 * testsuite/libgomp.c/pr35625.c: Same.
6244 * testsuite/libgomp.c/pr39154.c: Same.
6245 * testsuite/libgomp.c/simd-16.c: Same.
6246 * testsuite/libgomp.c/simd-17.c: Same.
6248 2015-06-13 Tom de Vries <tom@codesourcery.com>
6250 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6252 2015-06-13 Tom de Vries <tom@codesourcery.com>
6254 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6255 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6256 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6258 (main): Use N instead of hardcoded constants.
6260 2015-06-05 Tom de Vries <tom@codesourcery.com>
6262 merge from gomp4 branch:
6263 2015-05-28 Tom de Vries <tom@codesourcery.com>
6265 PR tree-optimization/65443
6266 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6267 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6268 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6270 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6272 * testsuite/libgomp.graphite/bounds.c: Adjust for
6273 cleanup-tree-dump removal.
6274 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6275 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6276 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6277 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6278 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6279 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6280 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6281 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6282 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6283 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6285 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6287 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6288 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6289 (futex_wake) [!__x86_64__]: Ditto.
6291 2015-05-28 Julian Brown <julian@codesourcery.com>
6293 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6294 function comment. Only call gomp_fatal if new argument is true.
6295 (acc_dev_num_out_of_range): New function.
6296 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6297 acc_dev_num_out_of_range as appropriate.
6298 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6299 (acc_get_device_num, acc_set_device_num): Update calls to
6301 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6304 2015-05-28 Julian Brown <julian@codesourcery.com>
6307 * oacc-init.c (plugin/plugin-host.h): Include.
6308 (acc_on_device): Check whether we're in an offloaded region for
6310 plugin. Don't use __builtin_acc_on_device.
6311 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6312 nonshm_exec flag in thread-local data.
6313 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6314 data for host_nonshm plugin.
6315 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6316 for host_nonshm plugin.
6317 * plugin/plugin-host.h: New.
6319 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6321 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6323 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6325 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6327 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6328 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6331 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6333 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6335 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6337 * target.c (gomp_map_pointer): New function abstracting out
6338 GOMP_MAP_POINTER handling.
6339 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6342 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6345 * testsuite/libgomp.c/pr66199-1.c: New test.
6346 * testsuite/libgomp.c/pr66199-2.c: New test.
6347 * testsuite/libgomp.c++/pr66199-1.C: New test.
6348 * testsuite/libgomp.c++/pr66199-2.C: New test.
6349 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6350 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6352 2015-05-19 Julian Brown <julian@codesourcery.com>
6354 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6357 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6360 * testsuite/libgomp.c/pr66133.c: New test.
6362 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6364 * Makefile.in: Regenerated with automake-1.11.6.
6365 * aclocal.m4: Likewise.
6366 * config.h.in: Likewise.
6367 * configure: Likewise.
6368 * testsuite/Makefile.in: Likewise.
6370 2015-05-08 Jason Merrill <jason@redhat.com>
6372 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6375 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6377 2015-05-06 Julian Brown <julian@codesourcery.com>
6379 * oacc-init.c (acc_device_lock): Add explanatory comment.
6380 (resolve_device): Add comment about locking requirement.
6381 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6382 gomp_init_device and gomp_fini_device calls.
6383 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6384 (acc_get_device_num, acc_set_device_num): Add locking around
6385 resolve_device and gomp_init_device calls.
6387 2015-05-06 Julian Brown <julian@codesourcery.com>
6389 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6390 goacc_thread_lock on error paths.
6391 * oacc-mem.c (lookup_host): Remove locking from function. Note
6392 locking requirement for caller in function comment.
6393 (lookup_dev): Likewise.
6394 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6395 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6396 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6399 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6403 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6404 don't expect "0x" prefix for "%p" format specifier, don't expect
6405 "(nil)" for NULL pointer.
6406 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6408 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6409 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6412 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6414 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6422 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6429 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6432 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6434 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6435 accurately specify what we're looking for.
6436 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6437 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6438 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6439 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6440 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6442 2015-04-30 James Norris <jnorris@codesourcery.com>
6445 * testsuite/lib/libgomp.exp
6446 (check_effective_target_openacc_host_selected)
6447 (check_effective_target_openacc_host_nonshm_selected): New
6449 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6451 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6452 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6453 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6454 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6455 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6456 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6457 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6458 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6459 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6460 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6461 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6462 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6463 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6464 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6465 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6466 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6467 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6468 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6469 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6470 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6471 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6473 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6474 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6475 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6476 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6477 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6478 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6479 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6489 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6490 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6491 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6493 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6495 2015-04-08 Julian Brown <julian@codesourcery.com>
6497 * libgomp.h (target_mem_desc: Remove mem_map field.
6498 (acc_dispatch_t): Remove open_device_func, close_device_func,
6499 get_device_num_func, set_device_num_func, target_data members.
6500 Change create_thread_data_func argument to device number instead of
6502 * oacc-async.c (assert.h): Include.
6503 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6504 (acc_wait_all, acc_wait_all_async): Use current host thread's
6505 active device, not base_dev.
6506 * oacc-cuda.c (acc_get_current_cuda_device)
6507 (acc_get_current_cuda_context, acc_get_cuda_stream)
6508 (acc_set_cuda_stream): Likewise.
6509 * oacc-host.c (host_dispatch): Don't set open_device_func,
6510 close_device_func, get_device_num_func or set_device_num_func.
6511 * oacc-init.c (base_dev, init_key): Remove.
6512 (cached_base_dev): New.
6513 (name_of_acc_device_t): New.
6514 (acc_init_1): Initialise default-numbered device, not zeroth.
6515 (acc_shutdown_1): Close all devices of a given type.
6516 (goacc_destroy_thread): Don't use base_dev.
6517 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6518 (goacc_attach_host_thread_to_device): New.
6519 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6520 (acc_get_num_devices): Don't use base_dev.
6521 (acc_set_device_type): Reimplement.
6522 (acc_get_device_type): Don't use base_dev.
6523 (acc_get_device_num): Tweak logic.
6524 (acc_set_device_num): Likewise.
6525 (acc_on_device): Use acc_get_device_type.
6526 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6527 (goacc_lazy_initialize): Reimplement with acc_init and
6528 goacc_attach_host_thread_to_device.
6529 * oacc-int.h (goacc_thread): Add base_dev field.
6530 (base_dev): Remove extern declaration.
6531 (goacc_attach_host_thread_to_device): Add prototype.
6532 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6534 (acc_free): Likewise.
6535 (acc_memcpy_to_device): Likewise.
6536 (acc_memcpy_from_device): Likewise.
6537 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6538 goacc_lazy_initialize (throughout).
6539 (GOACC_parallel): Use tgt_offset to locate target functions.
6540 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6541 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6542 (gomp_load_plugin_for_device): Remove open_device, close_device,
6543 get_device_num, set_device_num openacc hook initialisation. Don't set
6544 openacc.target_data.
6545 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6546 (GOMP_OFFLOAD_openacc_close_device)
6547 (GOMP_OFFLOAD_openacc_get_device_num)
6548 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6549 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6551 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6552 (instantiated_devices, ptx_dev_lock): New.
6553 (struct ptx_image_data): New.
6554 (ptx_devices, ptx_images, ptx_image_lock): New.
6555 (fini_streams_for_device): Reorder cuStreamDestroy call.
6556 (nvptx_get_num_devices): Remove forward declaration.
6557 (nvptx_init): Change return type to bool.
6558 (nvptx_fini): Remove.
6559 (nvptx_attach_host_thread_to_device): New.
6560 (nvptx_open_device): Return struct ptx_device* instead of void*.
6561 (nvptx_close_device): Change argument type to struct ptx_device*,
6562 return type to void.
6563 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6564 (kernel_target_data, kernel_host_table): Remove static globals.
6565 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6566 (GOMP_OFFLOAD_init_device): Reimplement.
6567 (GOMP_OFFLOAD_fini_device): Likewise.
6568 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6569 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6570 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6571 (GOMP_OFFLOAD_openacc_open_device)
6572 (GOMP_OFFLOAD_openacc_close_device)
6573 (GOMP_OFFLOAD_openacc_set_device_num)
6574 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6575 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6579 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6581 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6583 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6584 * libgomp.h (struct gomp_memory_mapping): Remove.
6585 (struct target_mem_desc): Change type of mem_map from
6586 gomp_memory_mapping * to splay_tree_s *.
6587 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6588 Add load_image_func, unload_image_func.
6589 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6590 Remove offload_regions_registered.
6591 (gomp_init_tables): Remove.
6592 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6594 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6595 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6596 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6597 offload_regions_registered.
6598 Initialize load_image_func, unload_image_func, mem_map.root.
6599 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6600 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6601 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6602 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6603 gomp_memory_mapping *. Use dev's lock and splay_tree.
6604 (lookup_dev): Use dev's lock.
6605 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6606 (acc_is_present): Likewise.
6607 (acc_map_data): Likewise.
6608 (acc_unmap_data): Likewise. Use dev's lock.
6609 (present_create_copy): Likewise.
6610 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6611 (update_dev_host): Likewise.
6612 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6613 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6614 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6615 (GOMP_OFFLOAD_get_table): Remove
6616 (GOMP_OFFLOAD_load_image): New function.
6617 (GOMP_OFFLOAD_unload_image): New function.
6618 * target.c (register_lock): New mutex for offload image registration.
6619 (num_devices): Do not guard with PLUGIN_SUPPORT.
6620 (gomp_realloc_unlock): New static function.
6621 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6623 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6624 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6625 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6627 (gomp_unmap_vars): Likewise.
6628 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6629 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6630 (gomp_offload_image_to_device): New static function.
6631 (GOMP_offload_register): Add mutex lock.
6632 Call gomp_offload_image_to_device for all initialized devices.
6633 Replace gomp_realloc with gomp_realloc_unlock.
6634 (GOMP_offload_unregister): New function.
6635 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6636 get_table_func from the plugin with calls to init_device_func and
6637 gomp_offload_image_to_device.
6638 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6640 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6641 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6642 (GOMP_target_data): Do not call gomp_init_tables.
6643 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6644 (gomp_load_plugin_for_device): Replace register_image and get_table
6645 with load_image and unload_image in DLSYM ().
6646 (gomp_register_images_for_device): Remove function.
6647 (gomp_target_init): Do not initialize current_device.mem_map.*,
6648 current_device.offload_regions_registered.
6649 Remove call to gomp_register_images_for_device.
6650 Do not free offload_images and num_offload_images.
6652 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6655 * testsuite/libgomp.fortran/pr65597.f90: New test.
6657 2015-03-27 Tom de Vries <tom@codesourcery.com>
6660 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6661 (init, check): New function.
6662 (foo): Change return type to void.
6663 (main): Call init and check.
6665 2015-03-27 Tom de Vries <tom@codesourcery.com>
6668 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6669 (foo): Use M for non-inner loops to scale down test-case.
6671 2015-03-25 Kai Tietz <ktietz@redhat.com>
6674 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6675 (GOACC_data_start): Likewise.
6676 * target.c (gomp_map_vars): Likewise.
6678 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6680 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6683 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6685 * testsuite/libgomp.c/target-10.c: New test.
6686 * testsuite/libgomp.c++/target-4.C: New test.
6688 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6690 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6691 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6693 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6695 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6696 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6697 (pthread.h): Check for this header file.
6698 * configure: Regenerate.
6700 2015-02-25 Tom de Vries <tom@codesourcery.com>
6702 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6703 (check_reduction_op, check_reduction_macro, max, min):
6705 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6707 (main): Use new functions.
6709 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6711 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6712 char * for variables holding dlerror return values.
6715 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6717 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6719 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6720 Cesar Philippidis <cesar@codesourcery.com>
6722 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6723 GOACC_ctaid, and GOACC_nctaid routines.
6725 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6728 * testsuite/libgomp.c/atomic-18.c: New test.
6729 * testsuite/libgomp.c++/atomic-16.C: New test.
6731 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6735 * testsuite/libgomp.c/pr64824.c: New test.
6736 * testsuite/libgomp.c/pr64868.c: New test.
6737 * testsuite/libgomp.c++/pr64824.C: New test.
6738 * testsuite/libgomp.c++/pr64868.C: New test.
6740 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6743 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6744 Link with -lpthread.
6745 * config/aix/plugin-suffix.h: Delete.
6747 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6750 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6751 (*-*-darwin*): Use config_path "bsd darwin posix".
6752 (*-*-hpux*): Use config_path "hpux posix".
6753 * target.c: Add include of plugin-suffix.h and use
6754 SONAME_SUFFIX macro.
6755 * config/aix/plugin-suffix.h: New file.
6756 * config/darwin/plugin-suffix.h: New file.
6757 * config/hpux/plugin-suffix.h: New file.
6758 * config/posix/plugin-suffix.h: New file.
6760 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6763 * libgomp.c/pr64734.c: New test.
6765 2015-01-23 Tom de Vries <tom@codesourcery.com>
6768 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6770 2015-01-23 Tom de Vries <tom@codesourcery.com>
6773 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6776 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6779 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6780 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6781 formal parameter. Update all users.
6782 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6783 Document unused formal parameter.
6785 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6787 * oacc-parallel.c: Don't include <alloca.h>.
6788 (GOACC_parallel): Use gomp_alloca instead of alloca.
6790 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6792 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6794 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6795 James Norris <jnorris@codesourcery.com>
6796 Tom de Vries <tom@codesourcery.com>
6797 Julian Brown <julian@codesourcery.com>
6798 Cesar Philippidis <cesar@codesourcery.com>
6799 Nathan Sidwell <nathan@codesourcery.com>
6800 Tobias Burnus <burnus@net-b.de>
6802 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6803 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6804 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6805 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6806 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6807 Include $(top_srcdir)/plugin/Makefrag.am.
6808 (nodist_libsubinclude_HEADERS): Add openacc.h.
6809 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6810 openacc.f90, openacc.mod, openacc_kinds.mod.
6811 (omp_lib.mod): Generalize into...
6812 (%.mod): ... this new rule.
6813 (openacc_kinds.mod, openacc.mod): New rules.
6814 * plugin/configfrag.ac: New file.
6815 * configure.ac: Move plugin/offloading support into it. Include
6816 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6817 * plugin/Makefrag.am: New file.
6818 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6819 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6821 (libgomp-test-support.exp): New rule.
6822 (all-local): Depend on it.
6823 * Makefile.in: Regenerate.
6824 * testsuite/Makefile.in: Regenerate.
6825 * config.h.in: Likewise.
6826 * configure: Likewise.
6827 * configure.tgt: Harden shell syntax.
6828 * env.c: Include "oacc-int.h".
6829 (parse_acc_device_type): New function.
6830 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6832 (initialize_env): Initialize those. Call
6833 goacc_runtime_initialize.
6834 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6835 (gomp_fatal): Call gomp_vfatal.
6836 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6837 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6838 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6839 (splay_tree_node, splay_tree, splay_tree_key)
6840 (struct target_mem_desc, struct splay_tree_key_s)
6841 (struct gomp_memory_mapping, struct acc_dispatch_t)
6842 (struct gomp_device_descr, gomp_acc_insert_pointer)
6843 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6844 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6845 (gomp_free_memmap, gomp_fini_device): New declarations.
6846 (gomp_vdebug, gomp_debug): New macros.
6847 Include "splay-tree.h".
6848 * libgomp.map (OACC_2.0): New symbol version. Use for
6849 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6850 acc_set_device_type_h_, acc_get_device_type,
6851 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6852 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6853 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6854 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6855 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6856 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6857 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6858 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6859 acc_copyin_array_h_, acc_present_or_copyin,
6860 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6861 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6862 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6863 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6864 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6865 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6866 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6867 acc_update_device, acc_update_device_32_h_,
6868 acc_update_device_64_h_, acc_update_device_array_h_,
6869 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6870 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6871 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6872 acc_is_present_64_h_, acc_is_present_array_h_,
6873 acc_memcpy_to_device, acc_memcpy_from_device,
6874 acc_get_current_cuda_device, acc_get_current_cuda_context,
6875 acc_get_cuda_stream, acc_set_cuda_stream.
6876 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6877 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6878 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6879 GOACC_get_num_threads.
6880 (GOMP_PLUGIN_1.0): New symbol version. Use for
6881 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6882 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6883 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6884 GOMP_PLUGIN_acc_thread.
6885 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6886 environment variable.
6887 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6888 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6889 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6890 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6891 (splay_tree_remove): New declarations.
6892 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6893 (splay_tree_remove, splay_tree_lookup): Move into...
6894 * splay-tree.c: ... this new file.
6895 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6896 (splay_tree_node, splay_tree, splay_tree_key)
6897 (struct target_mem_desc, struct splay_tree_key_s)
6898 (struct gomp_device_descr): Don't declare.
6899 (num_devices_openmp): New variable.
6900 (gomp_get_num_devices ): Use it.
6901 (gomp_init_targets_once): New function.
6902 (gomp_get_num_devices ): Use it.
6903 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6904 (gomp_fini_device, gomp_register_image_for_device): New functions.
6905 (gomp_map_vars): Add devaddrs parameter.
6906 (gomp_update): Add mm parameter.
6907 (gomp_init_device): Move most of it into...
6908 (gomp_init_tables): ... this new function.
6909 (gomp_register_images_for_device): Remove function.
6910 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6911 Make them hidden instead of static.
6912 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6913 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6914 (GOMP_target_end_data, GOMP_target_update)
6915 (gomp_load_plugin_for_device, gomp_target_init): Update for
6917 * oacc-async.c: New file.
6918 * oacc-cuda.c: Likewise.
6919 * oacc-host.c: Likewise.
6920 * oacc-init.c: Likewise.
6921 * oacc-int.h: Likewise.
6922 * oacc-mem.c: Likewise.
6923 * oacc-parallel.c: Likewise.
6924 * oacc-plugin.c: Likewise.
6925 * oacc-plugin.h: Likewise.
6926 * oacc-ptx.h: Likewise.
6927 * openacc.f90: Likewise.
6928 * openacc.h: Likewise.
6929 * openacc_lib.h: Likewise.
6930 * plugin/plugin-host.c: Likewise.
6931 * plugin/plugin-nvptx.c: Likewise.
6932 * libgomp-plugin.c: Likewise.
6933 * libgomp-plugin.h: Likewise.
6934 * libgomp_target.h: Remove file after merging content into the
6935 former file. Update all users.
6936 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6937 (offload_targets_s, offload_targets_s_openacc): New variables.
6938 (check_effective_target_openacc_nvidia_accel_present)
6939 (check_effective_target_openacc_nvidia_accel_selected): New
6941 (libgomp_init): Update for OpenACC changes.
6942 * testsuite/libgomp-test-support.exp.in: New file.
6943 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6944 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6945 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6946 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6947 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6948 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6949 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6950 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6951 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6952 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6953 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6955 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6956 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6957 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6958 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6959 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6960 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6961 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6962 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6963 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6964 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6965 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6966 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6967 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6968 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6969 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6970 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6971 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6972 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6973 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6974 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6975 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6976 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6977 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6978 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6979 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6980 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6981 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6982 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6983 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6985 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7012 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7013 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7015 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7016 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7017 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
7019 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7020 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7021 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
7022 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
7023 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
7024 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
7025 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7026 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7027 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7028 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
7029 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7032 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7037 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7038 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7039 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
7041 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7043 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
7044 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
7045 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
7046 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7047 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
7048 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
7049 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
7050 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
7051 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
7052 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7053 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
7054 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7055 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7056 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
7057 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7058 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7059 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7060 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7061 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7062 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7063 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7064 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7065 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7066 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7067 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7068 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7069 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
7071 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
7072 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
7073 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
7074 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
7075 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7076 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
7077 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7078 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7079 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7080 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7081 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7082 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
7084 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
7085 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
7086 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
7087 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7088 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
7089 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7090 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7091 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7092 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7093 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7094 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7095 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7096 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7097 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7098 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7099 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7100 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7101 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7102 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7103 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7104 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7105 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7106 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7107 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7108 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7109 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7110 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7111 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7112 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7113 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7114 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7115 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7116 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7117 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7118 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7119 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7120 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7121 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7122 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7123 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7124 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7125 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7126 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7127 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7128 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7129 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7130 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7131 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7132 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7133 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7134 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7135 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7136 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7137 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7138 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7139 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7140 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7141 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7142 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7143 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7145 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
7146 Julian Brown <julian@codesourcery.com>
7147 David Malcolm <dmalcolm@redhat.com>
7149 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
7150 to "GNU Offloading and Multi Processing Runtime Library". Change
7152 * configure: Regenerate.
7153 * libgomp.texi: Update.
7155 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
7157 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7159 * configure: Regenerate.
7161 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7162 "intelmic" in $offload_targets.
7164 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7166 Update copyright years.
7168 * libgomp.texi: Bump @copying's copyright year.
7170 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7172 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7173 Move load of target-supportes.exp earlier.
7175 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7177 * testsuite/libgomp.c/target-9.c: New test.
7179 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7181 * config.h.in: Regenerate.
7182 * configure: Regenerate.
7183 * configure.ac: Add GCC_CHECK_EMUTLS.
7184 * libgomp.h: Add check for USE_EMUTLS: this case
7185 is equal to HAVE_TLS.
7188 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7190 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7192 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7193 Ilya Verbin <ilya.verbin@intel.com>
7195 * testsuite/libgomp.c/target-critical-1.c: New test.
7197 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7199 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7200 to dg-options unless expensive testing is on.
7201 (TESTITERS): Define to N if not defined.
7202 (main): Use TESTITERS instead of N.
7203 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7204 dg-additional-options depending on whether expensive testing is on.
7205 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7206 Decrease N to 100000 and CHUNKSZ to 10000.
7208 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7211 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7212 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7214 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7216 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7218 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7221 * configure: Regenerated.
7223 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7225 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7226 vect_simd_clones effective target.
7227 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7229 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7231 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7232 of 32 as block_size.
7233 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7234 instead of 32 as block_size.
7236 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7237 Ilya Verbin <ilya.verbin@intel.com>
7239 * Makefile.in: Regenerate.
7240 * configure: Regenerate.
7241 * configure.ac: Set up offload_additional_options,
7242 offload_additional_lib_paths and offload_targets.
7243 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7244 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7245 * testsuite/Makefile.in: Regenerate.
7246 * testsuite/lib/libgomp.exp (libgomp_init): Append
7247 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7248 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7249 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7251 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7252 Ilya Verbin <ilya.verbin@intel.com>
7253 Kirill Yukhin <kirill.yukhin@intel.com>
7254 Ilya Tocar <ilya.tocar@intel.com>
7256 * testsuite/lib/libgomp.exp
7257 (check_effective_target_offload_device): New.
7258 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7259 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7260 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7261 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7262 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7263 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7264 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7265 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7266 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7267 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7268 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7269 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7270 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7271 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7272 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7273 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7274 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7275 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7276 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7277 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7278 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7279 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7280 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7281 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7282 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7283 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7284 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7285 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7286 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7287 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7288 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7289 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7290 * testsuite/libgomp.c/target-7.c: Fix test.
7291 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7292 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7293 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7294 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7295 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7296 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7297 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7298 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7299 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7300 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7301 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7302 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7303 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7304 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7305 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7306 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7307 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7308 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7309 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7310 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7311 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7312 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7313 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7314 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7315 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7316 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7317 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7318 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7319 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7320 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7321 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7323 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7324 Ilya Verbin <ilya.verbin@intel.com>
7325 Thomas Schwinge <thomas@codesourcery.com>
7326 Andrey Turetskiy <andrey.turetskiy@intel.com>
7328 * libgomp.map (GOMP_4.0.1): New symbol version.
7329 Add GOMP_offload_register.
7330 * libgomp_target.h: New file.
7331 * splay-tree.h: New file.
7332 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7333 (gomp_target_init): New forward declaration.
7334 (gomp_is_initialized): New static variable.
7335 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7336 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7338 (offload_images, num_offload_images, devices, num_devices): New static
7340 (splay_compare): New static function.
7341 (struct gomp_device_descr): New structure.
7342 (gomp_get_num_devices): Call gomp_target_init.
7343 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7344 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7345 (GOMP_offload_register): New function.
7346 (GOMP_target): Arrange for host callback to be performed in a separate
7347 initial thread and contention group, inheriting ICVs from
7348 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7349 Add device initialization and lookup for target function in splay tree.
7350 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7351 (GOMP_target_end_data): Call gomp_unmap_vars.
7352 (GOMP_target_update): Add device initialization and call gomp_update.
7353 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7354 (gomp_target_init): New static functions.
7356 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7357 Thomas Schwinge <thomas@codesourcery.com>
7358 Ilya Verbin <ilya.verbin@intel.com>
7359 Andrey Turetskiy <andrey.turetskiy@intel.com>
7361 * config.h.in: Regenerate.
7362 * configure: Regenerate.
7363 * configure.ac: Check for libdl, required for plugin support.
7364 (PLUGIN_SUPPORT): Define if plugins are supported.
7365 (enable_offload_targets): Support Intel MIC targets.
7366 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7368 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7371 * configure: Regenerate.
7373 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7375 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7377 2014-10-06 Marek Polacek <polacek@redhat.com>
7379 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7380 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7381 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7382 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7384 2014-10-06 Marek Polacek <polacek@redhat.com>
7386 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7387 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7388 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7389 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7390 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7391 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7392 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7393 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7394 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7395 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7396 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7397 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7398 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7399 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7400 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7401 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7402 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7403 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7406 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7409 * testsuite/libgomp.c/pr61200.c: New test.
7411 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7414 * testsuite/libgomp.c++/pr63248.C: New test.
7416 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7418 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7419 is not zero, but taskgroup->children is NULL and there are
7420 any task->children, schedule those instead of waiting.
7421 * testsuite/libgomp.c/depend-6.c: New test.
7422 * testsuite/libgomp.c/depend-7.c: New test.
7423 * testsuite/libgomp.c/depend-8.c: New test.
7424 * testsuite/libgomp.c/depend-9.c: New test.
7425 * testsuite/libgomp.c/depend-10.c: New test.
7427 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7429 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7430 (struct gomp_taskwait): New type.
7431 (struct gomp_task): Add taskwait and parent_depends_on, remove
7432 in_taskwait and taskwait_sem fields.
7433 (gomp_finish_task): Don't destroy taskwait_sem.
7434 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7435 taskwait and parent_depends_on.
7436 (GOMP_task): For if (0) tasks with depend clause that depend on
7437 earlier tasks don't defer them, instead call
7438 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7439 Initialize redundant_out field, for redundant out entries just
7440 move them at the end of linked list instead of removing them
7441 completely, and set redundant_out flag instead of redundant.
7442 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7444 (gomp_task_run_post_handle_dependers): If parent is in
7445 gomp_task_maybe_wait_for_dependencies and newly runnable task
7446 is not parent_depends_on, queue it in parent->children linked
7447 list after all runnable tasks with parent_depends_on set.
7448 Adjust for addition of taskwait indirection.
7449 (gomp_task_run_post_remove_parent): If parent is in
7450 gomp_task_maybe_wait_for_dependencies and task to be removed
7451 is parent_depends_on, decrement n_depend and if needed awake
7452 parent. Adjust for addition of taskwait indirection.
7453 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7454 (gomp_task_maybe_wait_for_dependencies): New function.
7455 * testsuite/libgomp.c/depend-5.c: New test.
7457 2014-07-13 Tobias Burnus <burnus@net-b.de>
7459 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7460 with TS 18508/Fortran 2015.
7462 2014-07-06 Marek Polacek <polacek@redhat.com>
7465 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7467 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7469 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7470 matches regex $lang_source_re, add $lang_include_flags to options.
7471 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7472 * testsuite/libgomp.c++/c++.exp: Likewise.
7473 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7474 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7476 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7478 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7480 * testsuite/libgomp.fortran/fortran.exp: Explain
7481 gfortran-dg-runtest usage.
7483 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7485 * testsuite/libgomp.fortran/simd5.f90: New test.
7486 * testsuite/libgomp.fortran/simd6.f90: New test.
7487 * testsuite/libgomp.fortran/simd7.f90: New test.
7489 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7491 * testsuite/libgomp.c/for-2.c: Define SC to static for
7492 #pragma omp for simd testing.
7493 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7494 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7496 * testsuite/libgomp.c/simd-14.c: New test.
7497 * testsuite/libgomp.c/simd-15.c: New test.
7498 * testsuite/libgomp.c/simd-16.c: New test.
7499 * testsuite/libgomp.c/simd-17.c: New test.
7500 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7501 #pragma omp for simd testing.
7502 * testsuite/libgomp.c++/simd10.C: New test.
7503 * testsuite/libgomp.c++/simd11.C: New test.
7504 * testsuite/libgomp.c++/simd12.C: New test.
7505 * testsuite/libgomp.c++/simd13.C: New test.
7507 * testsuite/libgomp.fortran/aligned1.f03: New test.
7508 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7509 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7510 tasks with !$omp parallel !$omp single.
7511 * testsuite/libgomp.fortran/target8.f90: New test.
7512 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7513 not to use trim in the combiner, instead call elemental function.
7514 (fn): New elemental function.
7515 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7517 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7519 * testsuite/libgomp.fortran/udr12.f90: New test.
7520 * testsuite/libgomp.fortran/udr13.f90: New test.
7521 * testsuite/libgomp.fortran/udr14.f90: New test.
7522 * testsuite/libgomp.fortran/udr15.f90: New test.
7524 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7526 * omp_lib.f90.in (openmp_version): Set to 201307.
7527 * omp_lib.h.in (openmp_version): Likewise.
7528 * testsuite/libgomp.c/target-8.c: New test.
7529 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7530 and inbranch clauses.
7531 * testsuite/libgomp.fortran/depend-3.f90: New test.
7532 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7534 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7535 * testsuite/libgomp.fortran/target1.f90: New test.
7536 * testsuite/libgomp.fortran/target2.f90: New test.
7537 * testsuite/libgomp.fortran/target3.f90: New test.
7538 * testsuite/libgomp.fortran/target4.f90: New test.
7539 * testsuite/libgomp.fortran/target5.f90: New test.
7540 * testsuite/libgomp.fortran/target6.f90: New test.
7541 * testsuite/libgomp.fortran/target7.f90: New test.
7543 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7546 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7547 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7548 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7549 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7550 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7551 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7552 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7553 * testsuite/libgomp.fortran/associate1.f90: New test.
7554 * testsuite/libgomp.fortran/associate2.f90: New test.
7555 * testsuite/libgomp.fortran/procptr1.f90: New test.
7557 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7559 * testsuite/libgomp.fortran/simd1.f90: New test.
7560 * testsuite/libgomp.fortran/udr1.f90: New test.
7561 * testsuite/libgomp.fortran/udr2.f90: New test.
7562 * testsuite/libgomp.fortran/udr3.f90: New test.
7563 * testsuite/libgomp.fortran/udr4.f90: New test.
7564 * testsuite/libgomp.fortran/udr5.f90: New test.
7565 * testsuite/libgomp.fortran/udr6.f90: New test.
7566 * testsuite/libgomp.fortran/udr7.f90: New test.
7567 * testsuite/libgomp.fortran/udr8.f90: New test.
7568 * testsuite/libgomp.fortran/udr9.f90: New test.
7569 * testsuite/libgomp.fortran/udr10.f90: New test.
7570 * testsuite/libgomp.fortran/udr11.f90: New test.
7572 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7574 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7575 vect_simd_clones effective target.
7576 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7578 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7581 * testsuite/libgomp.c++/simd-9.C: New test.
7583 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7585 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7586 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7587 texts according to their @menu entry positions.
7589 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7591 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7592 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7593 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7594 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7595 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7596 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7597 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7598 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7599 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7600 * testsuite/libgomp.fortran/depend-1.f90: New test.
7601 * testsuite/libgomp.fortran/depend-2.f90: New test.
7602 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7603 * testsuite/libgomp.fortran/simd1.f90: New test.
7604 * testsuite/libgomp.fortran/simd2.f90: New test.
7605 * testsuite/libgomp.fortran/simd3.f90: New test.
7606 * testsuite/libgomp.fortran/simd4.f90: New test.
7607 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7609 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7611 * testsuite/libgomp.c/simd-10.c: New test.
7612 * testsuite/libgomp.c/simd-11.c: New test.
7613 * testsuite/libgomp.c/simd-12.c: New test.
7614 * testsuite/libgomp.c/simd-13.c: New test.
7616 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7618 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7619 atomic type clauses in any order and optional comma in between.
7620 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7621 * testsuite/libgomp.c/atomic-17.c: Likewise.
7623 * testsuite/libgomp.c/simd-7.c: New test.
7624 * testsuite/libgomp.c/simd-8.c: New test.
7625 * testsuite/libgomp.c/simd-9.c: New test.
7626 * testsuite/libgomp.c/loop-16.c: New test.
7628 2014-04-02 Richard Henderson <rth@redhat.com>
7630 * config/linux/futex.h (futex_wait): Get error value from errno.
7631 (futex_wake): Likewise.
7633 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7636 * testsuite/libgomp.c++/udr-11.C: New test.
7637 * testsuite/libgomp.c++/udr-12.C: New test.
7638 * testsuite/libgomp.c++/udr-13.C: New test.
7639 * testsuite/libgomp.c++/udr-14.C: New test.
7640 * testsuite/libgomp.c++/udr-15.C: New test.
7641 * testsuite/libgomp.c++/udr-16.C: New test.
7642 * testsuite/libgomp.c++/udr-17.C: New test.
7643 * testsuite/libgomp.c++/udr-18.C: New test.
7644 * testsuite/libgomp.c++/udr-19.C: New test.
7646 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7648 Update copyright years
7650 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7652 * hashtab.h: Use the standard form for the copyright notice.
7654 2014-01-02 Tobias Burnus <burnus@net-b.de>
7656 * libgomp.texi: Bump @copying's copyright year.
7658 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7660 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7661 alloca () with __builtin_alloca ().
7662 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7663 * testsuite/libgomp.c/lock-3.c: Likewise.
7664 * testsuite/libgomp.c/pr48591.c: Likewise.
7666 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7669 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7672 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7675 * testsuite/libgomp.c/pr58756.c: New test.
7677 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7680 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7683 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7685 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7687 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7688 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7689 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7690 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7693 * libgomp_g.h: Include <stddef.h> for size_t.
7695 * libgomp.spec.in: Update comment about libgomp's dependencies.
7696 * configure.ac: Likewise.
7697 * configure: Regenerate.
7699 2013-10-16 Tobias Burnus <burnus@net-b.de>
7701 * libgomp.texi: (Runtime Library Routines): Update references for
7702 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7703 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7704 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7705 (Environment Variables): Update references for OpenMP 4.0. Add
7706 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7707 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7710 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7712 * env.c (parse_bind_var): Initialize value to avoid
7713 (false positive) warning.
7715 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7718 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7720 (gomp_init_num_threads): Move i variable declaration into
7721 #ifdef CPU_ALLOC_SIZE block.
7722 * config/linux/affinity.c (gomp_affinity_init_level): Test
7723 gomp_places_list_len == 0 rather than gomp_places_list == 0
7724 when checking for topology reading error.
7725 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7726 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7727 gomp_places_list, only parse env var and always return false.
7728 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7729 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7730 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7731 and either of these variables were parsed correctly into a places
7734 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7735 Jakub Jelinek <jakub@redhat.com>
7737 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7738 of 5 loopfn matches.
7739 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7740 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7741 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7742 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7743 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7744 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7745 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7746 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7748 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7750 * Makefile.am (omp_lib.mod): Streamline rule.
7751 * Makefile.in: Regenerate.
7753 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7756 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7757 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7758 * testsuite/libgomp.fortran/lib2.f: Likewise.
7759 * testsuite/libgomp.fortran/lib3.f: Likewise.
7761 * configure.ac: Typo fix.
7762 * configure: Regenerate.
7764 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7765 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7767 * omp.h.in: Don't touch the user's namespace.
7769 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7770 Tobias Burnus <burnus@net-b.de>
7771 Richard Henderson <rth@redhat.com>
7773 * target.c: New file.
7774 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7775 * Makefile.in: Regenerated.
7776 * libgomp_g.h (GOMP_task): Add depend argument.
7777 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7778 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7779 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7780 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7781 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7782 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7783 GOMP_taskgroup_start, GOMP_taskgroup_end,
7784 GOMP_parallel_sections): New prototypes.
7785 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7786 (omp_is_initial_device_): New function.
7787 (ULP, STR1, STR2, ialias_redirect): Removed.
7788 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7789 omp_set_default_device_8_, omp_get_default_device_,
7790 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7792 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7793 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7794 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7796 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7797 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7798 omp_set_default_device, omp_set_default_device_,
7799 omp_set_default_device_8_, omp_get_default_device,
7800 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7801 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7802 omp_get_team_num_): Export @@OMP_4.0.
7803 * team.c (struct gomp_thread_start_data): Add place field.
7804 (gomp_thread_start): Clear thr->thread_pool and
7805 thr->task before returning. Use gomp_team_barrier_wait_final
7806 instead of gomp_team_barrier_wait. Initialize thr->place.
7807 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7808 team_cancelled and task_queued_count fields.
7809 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7810 before calling pthread_exit.
7811 (gomp_free_thread): No longer static. Use
7812 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7813 (gomp_team_start): Add flags argument. Set
7814 thr->thread_pool->threads_busy to nthreads immediately after creating
7815 new pool. Use gomp_managed_threads_lock instead of
7816 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7817 (gomp_team_end): Use gomp_managed_threads_lock instead of
7818 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7819 of gomp_team_barrier_wait. If team->team_cancelled, call
7820 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7821 rather than thr->ts.work_share.
7822 (initialize_team): Don't call gomp_sem_init here.
7823 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7825 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7826 * env.c (gomp_global_icv): Add default_device_var, target_data and
7827 bind_var initializers.
7828 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7829 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7830 gomp_places_list_len): New variables.
7831 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7832 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7834 (gomp_cancel_var): New global variable.
7835 (parse_int): New function.
7836 (handle_omp_display_env): New function.
7837 (initialize_env): Use it. Initialize default_device_var.
7838 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7839 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7840 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7841 been successfully parsed (and call gomp_init_affinity in that case).
7842 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7843 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7844 omp_get_team_num, omp_is_initial_device): New functions.
7845 * libgomp.h: Include stdlib.h.
7846 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7848 (struct target_mem_desc): Forward declare.
7849 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7850 and thread_limit_var fields.
7851 (gomp_get_num_devices): New prototype.
7852 (gomp_cancel_var): New extern decl.
7853 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7854 team_cancelled and task_queued_count fields. Add comments about
7855 task_{,queued_,running_}count.
7856 (gomp_cancel_kind): New enum.
7857 (gomp_work_share_end_cancel): New prototype.
7858 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7859 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7861 (struct gomp_taskgroup): New type.
7862 (struct gomp_task_depend_entry,
7863 struct gomp_dependers_vec): New types.
7864 (gomp_finish_task): Free depend_hash if non-NULL.
7865 (struct gomp_team_state): Add place_partition_off
7866 and place_partition_len fields.
7867 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7868 gomp_places_list_len): New extern decls.
7869 (struct gomp_thread): Add place field.
7870 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7871 (gomp_init_thread_affinity): Add place argument.
7872 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7873 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7874 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7875 gomp_affinity_init_level, gomp_affinity_print_place): New
7877 (gomp_team_start): Add flags argument.
7878 (gomp_thread_limit_var, gomp_remaining_threads_count,
7879 gomp_remaining_threads_lock): Remove.
7880 (gomp_managed_threads_lock): New variable.
7881 (struct gomp_thread_pool): Add threads_busy field.
7882 (gomp_free_thread): New prototype.
7883 * task.c: Include hashtab.h.
7884 (hash_entry_type): New typedef.
7885 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7886 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7887 copy_ctors_done and taskgroup fields.
7888 (GOMP_task): Add depend argument, handle depend clauses. If
7889 gomp_team_barrier_cancelled or if it's taskgroup has been
7890 cancelled, don't queue or start new tasks. Set copy_ctors_done
7891 field if needed. Initialize taskgroup field. If copy_ctors_done
7892 and already cancelled, don't discard the task. If taskgroup is
7893 non-NULL, enqueue the task into taskgroup queue. Increment
7894 num_children field in taskgroup. Increment task_queued_count.
7895 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7896 gomp_task_run_post_remove_taskgroup): New inline functions.
7897 (gomp_task_run_post_handle_depend_hash,
7898 gomp_task_run_post_handle_dependers,
7899 gomp_task_run_post_handle_depend): New functions.
7900 (GOMP_taskwait): Use them. If more than one new tasks
7901 have been queued, wake other threads if needed.
7902 (gomp_barrier_handle_tasks): Likewise. If
7903 gomp_team_barrier_cancelled, don't start any new tasks, just free
7905 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7907 (omp_proc_bind_kind, omp_proc_bind_false,
7908 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7909 omp_proc_bind_spread): New params.
7910 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7911 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7912 omp_get_team_num, omp_is_initial_device): New interfaces.
7913 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7914 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7915 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7916 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7917 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7918 useless use omp_lib_kinds.
7919 * omp.h.in (omp_proc_bind_t): New typedef.
7920 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7921 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7922 omp_get_team_num, omp_is_initial_device): New prototypes.
7923 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7924 through to gomp_team_start.
7925 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7926 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7927 Adjust gomp_parallel_loop_start callers.
7928 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7929 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7930 GOMP_loop_end_cancel): New functions.
7931 (GOMP_parallel_end): Add ialias_redirect.
7932 * hashtab.h: New file.
7933 * libgomp.texi (Environment Variables): Minor cleanup,
7934 update section refs to OpenMP 4.0rc2.
7935 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7936 environment variables.
7937 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7938 team->work_shares_to_free to thr->ts.work_share before calling
7940 (gomp_work_share_end_cancel): New function.
7941 * config/linux/proc.c: Include errno.h.
7942 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7943 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7944 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7945 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7946 gomp_cpuset_size is sizeof (cpu_set_t).
7947 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7948 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7949 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7950 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7951 contain any logical CPUs.
7952 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7953 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7954 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7955 pthread_getaffinity_np. Check gomp_places_list instead of
7956 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7957 * config/linux/bar.c (gomp_barrier_wait_end,
7958 gomp_barrier_wait_last): Use BAR_* defines.
7959 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7960 from state where needed. Set work_share_cancelled to 0 on last
7962 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7963 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7965 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7966 Add cpusetsize argument.
7967 (gomp_cpuset_size, gomp_cpusetp): Declare.
7968 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7969 (affinity_counter): Remove.
7970 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7971 if CPU_ALLOC_SIZE isn't defined.
7972 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7973 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7974 bind current thread to the first place.
7975 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7976 pthread_setaffinity_np to gomp_places_list[place].
7977 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7978 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7979 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7980 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7981 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7982 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7983 (gomp_barrier_t): Add awaited_final field.
7984 (gomp_barrier_init): Initialize awaited_final field.
7985 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7986 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7988 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7990 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7991 gomp_team_barrier_cancelled): New inline functions.
7992 (gomp_barrier_last_thread,
7993 gomp_team_barrier_set_task_pending,
7994 gomp_team_barrier_clear_task_pending,
7995 gomp_team_barrier_set_waiting_for_tasks,
7996 gomp_team_barrier_waiting_for_tasks,
7997 gomp_team_barrier_done): Use BAR_* defines.
7998 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7999 (gomp_barrier_wait_end): Use BAR_* defines.
8000 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
8001 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
8003 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
8004 gomp_team_barrier_cancel): New functions.
8005 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
8007 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8008 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8009 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8010 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
8011 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8012 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8013 (gomp_barrier_t): Add cancellable field.
8014 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
8015 gomp_team_barrier_cancel): New prototypes.
8016 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
8017 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
8018 gomp_team_barrier_cancelled): New inline functions.
8019 (gomp_barrier_wait_start, gomp_barrier_last_thread,
8020 gomp_team_barrier_set_task_pending,
8021 gomp_team_barrier_clear_task_pending,
8022 gomp_team_barrier_set_waiting_for_tasks,
8023 gomp_team_barrier_waiting_for_tasks,
8024 gomp_team_barrier_done): Use BAR_* defines.
8025 * barrier.c (GOMP_barrier_cancel): New function.
8026 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
8027 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8028 omp_proc_bind_spread): New params.
8029 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8030 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8031 omp_get_team_num, omp_is_initial_device): New externals.
8032 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
8034 (gomp_resolve_num_threads): Adjust for thread_limit now being in
8035 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8036 infinity. If not nested, just return minimum of max_num_threads
8037 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
8038 to the returned value. Otherwise, don't update atomically
8039 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
8040 (GOMP_parallel_end): Adjust for thread_limit now being in
8041 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8042 infinity. Adjust threads_busy in the pool rather than
8043 gomp_remaining_threads_count. Remember team->nthreads and call
8044 gomp_team_end before adjusting threads_busy, if not nested
8045 afterwards, just set it to 1 non-atomically. Add ialias.
8046 (GOMP_parallel_start): Adjust gomp_team_start caller.
8047 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
8048 * testsuite/libgomp.c/affinity-1.c: New test.
8049 * testsuite/libgomp.c/atomic-15.c: New test.
8050 * testsuite/libgomp.c/atomic-16.c: New test.
8051 * testsuite/libgomp.c/atomic-17.c: New test.
8052 * testsuite/libgomp.c/cancel-for-1.c: New test.
8053 * testsuite/libgomp.c/cancel-for-2.c: New test.
8054 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
8055 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
8056 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
8057 * testsuite/libgomp.c/cancel-sections-1.c: New test.
8058 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
8059 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
8060 * testsuite/libgomp.c/depend-1.c: New test.
8061 * testsuite/libgomp.c/depend-2.c: New test.
8062 * testsuite/libgomp.c/depend-3.c: New test.
8063 * testsuite/libgomp.c/depend-4.c: New test.
8064 * testsuite/libgomp.c/for-1.c: New test.
8065 * testsuite/libgomp.c/for-1.h: New file.
8066 * testsuite/libgomp.c/for-2.c: New test.
8067 * testsuite/libgomp.c/for-2.h: New file.
8068 * testsuite/libgomp.c/for-3.c: New test.
8069 * testsuite/libgomp.c/pr58392.c: New test.
8070 * testsuite/libgomp.c/simd-1.c: New test.
8071 * testsuite/libgomp.c/simd-2.c: New test.
8072 * testsuite/libgomp.c/simd-3.c: New test.
8073 * testsuite/libgomp.c/simd-4.c: New test.
8074 * testsuite/libgomp.c/simd-5.c: New test.
8075 * testsuite/libgomp.c/simd-6.c: New test.
8076 * testsuite/libgomp.c/target-1.c: New test.
8077 * testsuite/libgomp.c/target-2.c: New test.
8078 * testsuite/libgomp.c/target-3.c: New test.
8079 * testsuite/libgomp.c/target-4.c: New test.
8080 * testsuite/libgomp.c/target-5.c: New test.
8081 * testsuite/libgomp.c/target-6.c: New test.
8082 * testsuite/libgomp.c/target-7.c: New test.
8083 * testsuite/libgomp.c/taskgroup-1.c: New test.
8084 * testsuite/libgomp.c/thread-limit-1.c: New test.
8085 * testsuite/libgomp.c/thread-limit-2.c: New test.
8086 * testsuite/libgomp.c/thread-limit-3.c: New test.
8087 * testsuite/libgomp.c/udr-1.c: New test.
8088 * testsuite/libgomp.c/udr-2.c: New test.
8089 * testsuite/libgomp.c/udr-3.c: New test.
8090 * testsuite/libgomp.c++/affinity-1.C: New test.
8091 * testsuite/libgomp.c++/atomic-10.C: New test.
8092 * testsuite/libgomp.c++/atomic-11.C: New test.
8093 * testsuite/libgomp.c++/atomic-12.C: New test.
8094 * testsuite/libgomp.c++/atomic-13.C: New test.
8095 * testsuite/libgomp.c++/atomic-14.C: New test.
8096 * testsuite/libgomp.c++/atomic-15.C: New test.
8097 * testsuite/libgomp.c++/cancel-for-1.C: New test.
8098 * testsuite/libgomp.c++/cancel-for-2.C: New test.
8099 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
8100 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
8101 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
8102 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
8103 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
8104 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
8105 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
8106 * testsuite/libgomp.c++/cancel-test.h: New file.
8107 * testsuite/libgomp.c++/for-9.C: New test.
8108 * testsuite/libgomp.c++/for-10.C: New test.
8109 * testsuite/libgomp.c++/for-11.C: New test.
8110 * testsuite/libgomp.c++/simd-1.C: New test.
8111 * testsuite/libgomp.c++/simd-2.C: New test.
8112 * testsuite/libgomp.c++/simd-3.C: New test.
8113 * testsuite/libgomp.c++/simd-4.C: New test.
8114 * testsuite/libgomp.c++/simd-5.C: New test.
8115 * testsuite/libgomp.c++/simd-6.C: New test.
8116 * testsuite/libgomp.c++/simd-7.C: New test.
8117 * testsuite/libgomp.c++/simd-8.C: New test.
8118 * testsuite/libgomp.c++/target-1.C: New test.
8119 * testsuite/libgomp.c++/target-2.C: New test.
8120 * testsuite/libgomp.c++/target-2-aux.cc: New file.
8121 * testsuite/libgomp.c++/target-3.C: New test.
8122 * testsuite/libgomp.c++/taskgroup-1.C: New test.
8123 * testsuite/libgomp.c++/udr-1.C: New test.
8124 * testsuite/libgomp.c++/udr-2.C: New test.
8125 * testsuite/libgomp.c++/udr-3.C: New test.
8126 * testsuite/libgomp.c++/udr-4.C: New test.
8127 * testsuite/libgomp.c++/udr-5.C: New test.
8128 * testsuite/libgomp.c++/udr-6.C: New test.
8129 * testsuite/libgomp.c++/udr-7.C: New test.
8130 * testsuite/libgomp.c++/udr-8.C: New test.
8131 * testsuite/libgomp.c++/udr-9.C: New test.
8133 2013-09-20 Jakub Jelinek <jakub@redhat.com>
8136 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
8139 2013-09-20 Alan Modra <amodra@gmail.com>
8141 * configure: Regenerate.
8143 2013-09-19 Jakub Jelinek <jakub@redhat.com>
8145 * testsuite/libgomp.c/sections-2.c: New test.
8147 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
8149 * testsuite/libgomp.fortran/strassen.f90:
8150 Add dg-skip-if aarch64_tiny.
8152 2013-06-20 Iain Sandoe <iain@codesourcery.com>
8153 Cesar Philippidis <cesar@codesourcery.com>
8155 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
8156 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
8157 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
8158 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8159 * testsuite/libgomp.graphite/graphite.exp: Likewise.
8160 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8161 Use dg-runtest rather than gfortran-dg-runtest.
8163 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8165 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8166 Linux-based x86 systems to cover all GNU systems.
8167 * testsuite/libgomp.c/lock-3.c: Likewise.
8168 * testsuite/libgomp.c/pr48591.c: Likewise.
8170 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8172 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8173 GNU/Hurd, as done for Linux-based systems.
8175 * config/posix/ptrlock.h: Fix comment.
8177 2013-05-27 Tobias Burnus <burnus@net-b.de>
8180 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8181 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8182 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8183 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8184 omp_destroy_nest_lock): Correct arguments to match the one in
8186 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8187 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8188 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8189 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8191 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8193 * testsuite/libgomp.c/loop-13.c: New test.
8194 * testsuite/libgomp.c/loop-14.c: New test.
8195 * testsuite/libgomp.c/loop-15.c: New test.
8196 * testsuite/libgomp.c++/loop-13.C: New test.
8197 * testsuite/libgomp.c++/loop-14.C: New test.
8198 * testsuite/libgomp.c++/loop-15.C: New test.
8200 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8203 * testsuite/libgomp.c++/pr56217.C: New test.
8205 2013-02-01 Alan Modra <amodra@gmail.com>
8207 * task.c (GOMP_task, GOMP_taskwait): Comment.
8209 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8210 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8213 * config/linux/wait.h (do_spin): Use atomic load for addr.
8214 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8215 for intptr and ptrlock.
8216 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8219 2013-01-22 Alan Modra <amodra@gmail.com>
8223 * task.c (GOMP_task): Revert 2011-12-09 change.
8224 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8225 barrier to read task->children..
8226 (gomp_barrier_handle_tasks): ..and matching atomic store with
8227 release barrier here when setting parent->children to NULL.
8229 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8230 Tobias Burnus <burnus@net-b.de>
8233 * testsuite/libgomp.fortran/fortran.exp: Use
8234 -fintrinsic-modules-path= instead of
8235 -fintrinsic-modules-path.
8237 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8239 Update copyright years.
8241 2012-12-19 Tobias Burnus <burnus@net-b.de>
8243 * testsuite/libgomp.fortran/fortran.exp: Set
8244 -fintrinsic-modules-path.
8246 2012-12-19 Tobias Burnus <burnus@net-b.de>
8248 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8249 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8251 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8254 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8255 if pool had any threads_used.
8257 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8259 * testsuite/libgomp.c++/pr24455.C: Use
8260 -Wl,-undefined,dynamic_lookup on darwin.
8262 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8264 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8266 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8268 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8270 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8271 Jim MacArthur <jim.macarthur@arm.com>
8272 Marcus Shawcroft <marcus.shawcroft@arm.com>
8273 Nigel Stephens <nigel.stephens@arm.com>
8274 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8275 Richard Earnshaw <rearnsha@arm.com>
8276 Sofiane Naci <sofiane.naci@arm.com>
8277 Stephen Thomas <stephen.thomas@arm.com>
8278 Tejas Belagod <tejas.belagod@arm.com>
8279 Yufeng Zhang <yufeng.zhang@arm.com>
8281 * configure.tgt: Add AArch64.
8283 2012-10-04 Jason Merrill <jason@redhat.com>
8285 * testsuite/libgomp.c++/tls-init1.C: New.
8287 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8289 * configure: Regenerated.
8291 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8293 * config/linux/mips/futex.h (sys_futex0): Change to static
8294 function with noinline, nomips16 attributes under MIPS16. Adjust
8295 asm statement to place 'li v0,SYS_futex' immediately before
8298 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8300 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8301 conflict with index.html on case-insensitive file systems.
8303 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8305 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8306 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8308 2012-07-02 Richard Guenther <rguenther@suse.de>
8309 Michael Matz <matz@suse.de>
8310 Tobias Grosser <tobias@grosser.es>
8311 Sebastian Pop <sebpop@gmail.com>
8313 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8314 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8315 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8316 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8318 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8320 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8322 2012-06-22 Richard Guenther <rguenther@suse.de>
8324 Merge from graphite branch
8325 2012-01-13 Tobias Grosser <tobias@grosser.es>
8327 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8328 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8330 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8333 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8334 use GOMP_barrier () call instead.
8335 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8336 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8337 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8338 call GOMP_barrier instead.
8339 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8341 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8344 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8345 argument to memset call.
8347 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8349 * configure: Regenerated.
8351 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8353 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8355 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8358 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8360 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8363 * testsuite/libgomp.c/pr52547.c: New test.
8365 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8367 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8369 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8371 * configure.tgt (mips-sgi-irix6*): Remove.
8373 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8375 * configure.tgt (alpha*-dec-osf*): Remove.
8377 * config/osf/sem.h: Remove.
8378 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8380 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8382 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8384 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8387 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8388 Remove ENABLE_SYMVERS_SOL2.
8389 * configure: Regenerate.
8390 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8391 (PREPROCESS): New variable.
8392 (libgomp.ver): New target.
8393 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8394 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8395 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8397 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8398 * Makefile.in: Regenerate.
8400 2012-02-14 Walter Lee <walt@tilera.com>
8402 * configure.tgt: Handle tilegx and tilepro.
8403 * config/linux/tile/futex.h: New file.
8405 2012-02-08 Richard Guenther <rguenther@suse.de>
8407 PR tree-optimization/46886
8408 * testsuite/libgomp.c/pr46886.c: New testcase.
8410 2012-01-25 Matthias Klose <doko@ubuntu.com>
8412 * config/linux/arm: Remove empty directory.
8413 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8415 2011-12-09 Alan Modra <amodra@gmail.com>
8418 * task.c (GOMP_taskwait): Don't access task->children outside of
8419 task_lock mutex region.
8420 (GOMP_task): Likewise.
8422 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8425 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8427 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8428 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8429 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8430 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8431 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8433 2011-12-02 Alan Modra <amodra@gmail.com>
8435 * config/linux/affinity.c: Use atomic rather than sync builtin.
8436 * config/linux/lock.c: Likewise.
8437 * config/linux/ptrlock.h: Likewise.
8438 * config/linux/ptrlock.c: Likewise.
8439 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8440 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8441 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8442 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8443 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8444 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8445 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8446 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8447 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8448 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8450 2011-11-30 Alan Modra <amodra@gmail.com>
8453 * config/linux/bar.h: Use atomic rather than sync builtins.
8454 * config/linux/bar.c: Likewise. Add missing acquire
8455 synchronisation on generation field.
8456 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8459 2011-11-30 Alan Modra <amodra@gmail.com>
8461 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8462 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8463 * config/linux/mutex.h: Use atomic rather than sync builtins.
8464 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8465 * config/linux/omp-lock.h: Comment fix.
8466 * config/linux/arm/mutex.h: Delete.
8467 * config/linux/powerpc/mutex.h: Delete.
8468 * config/linux/ia64/mutex.h: Delete.
8469 * config/linux/mips/mutex.h: Delete.
8471 2011-11-30 Alan Modra <amodra@gmail.com>
8474 * config/linux/sem.h: Rewrite.
8475 * config/linux/sem.c: Rewrite.
8477 2011-11-28 Richard Henderson <rth@redhat.com>
8479 * libgomp.h (enum memmodel): New.
8481 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8483 * configure: Regenerate.
8485 2011-10-10 Matthias Klose <doko@ubuntu.com>
8487 * config/posix95: Remove empty directory.
8489 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8491 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8493 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8496 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8497 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8499 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8501 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8503 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8506 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8508 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8510 * config/linux/proc.h: New.
8511 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8512 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8513 (gomp_init_num_threads): Update call to cpuset_popcount.
8514 (get_num_procs): Ditto.
8515 * config/linux/affinity.c (gomp_init_affinity): Call
8516 gomp_cpuset_popcount.
8518 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8522 * omp.h.in (omp_in_final): New prototype.
8523 * omp_lib.f90.in (omp_in_final): New interface.
8524 (omp_integer_kind, omp_logical_kind): Remove
8525 and replace all its uses in the module with 4.
8526 (openmp_version): Change to 201107.
8527 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8528 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8529 kind for the parameters.
8530 (omp_in_final): New external.
8531 (openmp_version): Change to 201107.
8532 * task.c (omp_in_final): New function.
8533 (gomp_init_task): Initialize final_task.
8534 (GOMP_task): Remove unused attribute from flags. Handle final
8536 (GOMP_taskyield): New function.
8537 (omp_in_final): Return true if if (false) or final (true) task
8538 or descendant of final (true).
8539 * fortran.c (omp_in_final_): New function.
8540 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8541 (GOMP_3.0): Export GOMP_taskyield.
8542 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8544 (parse_unsigned_long_list): New function.
8545 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8546 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8547 even if parse_affinity returned false.
8548 * config/linux/affinity.c (gomp_init_affinity): Handle
8549 gomp_cpu_affinity_len == 0.
8550 * libgomp_g.h (GOMP_taskyield): New prototype.
8551 * libgomp.h (struct gomp_task): Add final_task field.
8552 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8553 * team.c (gomp_team_start): Override new task's nthreads_var icv
8554 if list form OMP_NUM_THREADS has been used and it has value for
8555 the new nesting level.
8557 * testsuite/libgomp.c/atomic-11.c: New test.
8558 * testsuite/libgomp.c/atomic-12.c: New test.
8559 * testsuite/libgomp.c/atomic-13.c: New test.
8560 * testsuite/libgomp.c/atomic-14.c: New test.
8561 * testsuite/libgomp.c/reduction-6.c: New test.
8562 * testsuite/libgomp.c/task-5.c: New test.
8563 * testsuite/libgomp.c++/atomic-2.C: New test.
8564 * testsuite/libgomp.c++/atomic-3.C: New test.
8565 * testsuite/libgomp.c++/atomic-4.C: New test.
8566 * testsuite/libgomp.c++/atomic-5.C: New test.
8567 * testsuite/libgomp.c++/atomic-6.C: New test.
8568 * testsuite/libgomp.c++/atomic-7.C: New test.
8569 * testsuite/libgomp.c++/atomic-8.C: New test.
8570 * testsuite/libgomp.c++/atomic-9.C: New test.
8571 * testsuite/libgomp.c++/task-8.C: New test.
8572 * testsuite/libgomp.c++/reduction-4.C: New test.
8573 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8574 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8575 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8576 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8577 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8578 * testsuite/libgomp.fortran/pointer1.f90: New test.
8579 * testsuite/libgomp.fortran/pointer2.f90: New test.
8580 * testsuite/libgomp.fortran/task4.f90: New test.
8582 2011-08-02 Tobias Burnus <burnus@net-b.de>
8584 * libgomp.texi: Update OpenMP spec references to 3.1.
8585 (omp_in_final,OMP_PROC_BIND): New sections.
8586 (OMP_NUM_THREADS): Document that the value can be now a list.
8587 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8589 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8591 * config/linux/x86/futex.h: Check __x86_64__ instead of
8594 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8598 * testsuite/libgomp.c/pr49897-1.c: New test.
8599 * testsuite/libgomp.c/pr49897-2.c: New test.
8600 * testsuite/libgomp.c/pr49898-1.c: New test.
8601 * testsuite/libgomp.c/pr49898-2.c: New test.
8603 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8605 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8606 for ia32 instead of ilp32.
8608 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8609 * testsuite/libgomp.c/atomic-6.c: Likewise.
8611 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8613 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8614 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8616 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8619 * config/osf/sem.h: New file.
8620 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8622 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8625 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8628 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8630 * config/linux/wait.h (do_spin): New inline, largely copied
8631 from do_wait, just don't do futex_wait here, instead return true if
8633 (do_wait): Implement using do_spin.
8634 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8636 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8637 __sync_bool_compare_and_swap, pass the oldval to
8638 gomp_mutex_lock_slow.
8639 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8640 If all mutex contenders are just spinning and not sleeping, don't
8641 change state to 2 unnecessarily. Optimize the loop when state has
8642 already become 2 to use just one atomic operation per loop instead
8644 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8646 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8647 __sync_bool_compare_and_swap, pass the oldval to
8648 gomp_mutex_lock_slow.
8650 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8653 * iter.c (gomp_iter_static_next): For chunk size 0
8654 only use n ceil/ nthreads size for the first
8655 n % nthreads threads in the team instead of
8656 all threads except for the last few ones which
8657 get less work or none at all.
8658 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8659 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8660 chunk argument, set run_sched_modifier to 0 for static
8661 resp. 1 for other kinds. If chunk argument is 0
8662 and not static, set value to 1.
8664 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8667 * testsuite/libgomp.c++/pr49043.C: New test.
8670 * testsuite/libgomp.c++/pr48869.C: New test.
8672 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8675 * fortran.c: Include limits.h.
8677 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8679 (omp_set_num_threads_8_, omp_set_schedule_8_,
8680 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8681 omp_get_team_size_8_): Use TO_INT macro.
8682 * testsuite/libgomp.fortran/pr48894.f90: New test.
8684 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8687 * testsuite/libgomp.c/pr48591.c: New test.
8689 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8692 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8693 * configure: Regenerate.
8695 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8698 * testsuite/libgomp.fortran/task3.f90: New test.
8700 2011-02-24 Tobias Burnus <burnus@net-b.de>
8702 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8704 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8707 * libgomp.texi (omp_get_wtime): Don't say time in the past
8710 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8713 * testsuite/libgomp.fortran/fortran.exp: Check for both
8714 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8715 but $blddir != "", still append ${blddir}/${lang_library_path}
8718 2011-02-16 Tobias Burnus <burnus@net-b.de>
8721 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8722 of libquadmath.a before adding its libpath to ldflags.
8724 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8727 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8728 to FUTEX_WAIT futex syscall.
8729 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8731 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8733 * configure: Regenerate.
8735 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8738 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8740 2011-01-16 Gerald Pfeifer
8742 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8744 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8747 * libgomp.fortran/allocatable6.f90: New test.
8749 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8751 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8752 * configure: Regenerate.
8754 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8758 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8759 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8760 * aclocal.m4: Regenerate.
8761 * configure: Regenerate.
8762 * Makefile.in: Regenerate.
8763 * testsuite/Makefile.in: Regenerate.
8765 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8768 * libgomp.fortran/pr46753.f90: New test.
8771 * env.c (initialize_env): Default to spin count 300000
8772 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8776 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8777 at the end if sync builtins aren't supported.
8779 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8781 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8783 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8785 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8787 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8789 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8791 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8792 Tobias Burnus <burnus@net-b.de>
8796 * configure: Regenerate.
8798 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8800 * config/linux/futex.h: New.
8801 * config/linux/arm/mutex.h: New.
8802 * configure.tgt (arm*-*-linux*): Add config path.
8804 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8806 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8808 2010-09-23 Tobias Burnus <burnus@net-b.de>
8810 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8811 Change Fortran datatype to LOGICAL.
8812 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8813 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8815 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8817 * configure: Regenerate.
8819 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8821 * libgomp.texi: Add function keyword to a couple of Fortran
8822 interfaces, use integer instead of int for Fortran.
8824 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8826 * libgomp.texi: Fix spelling and pasto problems throughout.
8827 Adjust prototypes to match code.
8829 2010-07-24 Tobias Burnus <burnus@net-b.de>
8831 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8832 silence -fwhole-file warning.
8834 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8836 * configure.tgt (*-*-solaris2.[56]*): Removed.
8838 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8840 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8841 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8842 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8843 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8844 targetting solaris2*.
8845 * configure: Regenerate.
8846 * config.h.in: Regenerate.
8848 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8849 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8850 Add libgomp_version_dep.
8851 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8853 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8854 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8855 * Makefile.in: Regenerate.
8857 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8858 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8859 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8860 to common block, protected by
8861 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8863 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8865 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8867 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8870 * configure: Regenerate.
8872 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8875 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8876 * configure: Regenerate.
8877 * Makefile.in: Regenerate.
8878 * testsuite/Makefile.in: Regenerate.
8880 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8883 * testsuite/libgomp.c/pr43893.c: New test.
8884 * testsuite/libgomp.c++/pr43893.C: New test.
8886 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8889 * testsuite/libgomp.fortran/vla8.f90: New test.
8891 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8894 * config/linux/affinity.c (gomp_init_affinity): Decrease
8895 gomp_available_cpus if affinity mask confines the process to fewer
8897 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8898 non-NULL, just return gomp_available_cpus.
8901 * sections.c (gomp_sections_init): Initialize ws->mode.
8903 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8905 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8906 not unused bar variable.
8907 * configure: Regenerate.
8909 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8911 * Makefile.in: Regenerate.
8912 * aclocal.m4: Regenerate.
8913 * testsuite/Makefile.in: Regenerate.
8915 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8918 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8919 (initialize_env): Adjust callers.
8920 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8921 when the argument is 0.
8923 * testsuite/libgomp.c/pr42942.c: New test.
8925 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8929 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8930 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8932 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8934 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8935 * testsuite/libgomp.c++/task-6.C: Likewise.
8937 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8939 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8941 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8943 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8944 * configure: Regenerate.
8946 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8949 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8951 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8953 * configure.ac: Test for executability of GFORTRAN.
8954 * configure: Regenerate.
8956 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8958 * configure: Regenerate.
8960 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8963 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8965 2010-01-03 Richard Guenther <rguenther@suse.de>
8967 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8969 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8971 * testsuite/libgomp.graphite/pr4118.c: New.
8973 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8975 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8976 for darwin, protect the test with require-effective-target tls_runtime.
8977 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8979 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8982 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8983 link spec %s substitutions for static libraries.
8985 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8988 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8990 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8992 * Makefile.in: Regenerate.
8993 * configure: Regenerate.
8994 * testsuite/Makefile.in: Regenerate.
8996 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8998 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8999 settings for LC_ALL and LANG.
9001 2009-11-25 Jakub Jelinek <jakub@redhat.com>
9004 * testsuite/libgomp.fortran/pr42162.f90: New test.
9006 2009-11-13 Jakub Jelinek <jakub@redhat.com>
9009 * testsuite/libgomp.c/pr42029.c: New test.
9011 2009-10-26 Jakub Jelinek <jakub@redhat.com>
9013 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9014 *s. Accept ld version without text in ()s.
9015 * configure: Regenerated.
9017 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
9019 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
9021 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9024 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
9025 or a hyphen (happens with fortran language disabled).
9026 * configure: Regenerate.
9028 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9030 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
9031 use sed script portable to Solaris /bin/sed for extracting ld
9033 * configure: Regenerate.
9035 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
9037 * testsuite/libgomp.graphite/bounds.c: New test.
9039 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9041 * Makefile.am (libgomp_la_LINK): New.
9042 * Makefile.in: Regenerate.
9044 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9046 * configure.ac (AC_PREREQ): Bump to 2.64.
9048 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9050 * Makefile.am (install-html, install-pdf): Remove.
9051 * Makefile.in: Regenerate.
9053 * Makefile.in: Regenerate.
9054 * aclocal.m4: Regenerate.
9055 * config.h.in: Regenerate.
9056 * configure: Regenerate.
9057 * testsuite/Makefile.in: Regenerate.
9059 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9061 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
9062 * Makefile.in: Regenerate.
9064 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
9066 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
9067 * Makefile.in: Regenerate.
9069 2009-08-19 Tobias Burnus <burnus@net-b.de>
9072 omp_lib.h.in: Fix -std=f95 errors.
9074 2009-08-14 David Edelsohn <edelsohn@gnu.org>
9076 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
9077 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
9078 * testsuite/libgomp.graphite/graphite.exp: New.
9080 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
9082 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
9085 2009-08-04 David Daney <ddaney@caviumnetworks.com>
9087 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
9088 needed memory barrier semantics.
9089 * config/linux/mips/mutex.h: New file.
9091 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9093 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
9095 2009-07-16 Joseph Myers <joseph@codesourcery.com>
9097 * configure: Regenerate.
9099 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
9104 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
9105 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
9106 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
9108 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9110 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
9111 options when choosing a multilib.
9113 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
9115 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
9116 ld_library_path. Use add_path. Add just find_libgcc_s to
9117 ld_library_path, not every libgcc multilib directory.
9118 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
9119 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
9120 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
9122 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
9124 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
9126 * Makefile.am (LTLDFLAGS): Define.
9128 * Makefile.in: Regenerate.
9130 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
9133 * testsuite/libgomp.fortran/fortran.exp: Don't link with
9134 libgfortranbegin, check existence of libgfortran.a instead of
9137 2009-05-20 Jakub Jelinek <jakub@redhat.com>
9140 * team.c (gomp_thread_start): Destroy thr->release semaphore.
9141 (gomp_free_pool_helper): Likewise.
9143 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
9144 Jakub Jelinek <jakub@redhat.com>
9147 * testsuite/libgomp.fortran/workshare2.f90: New test.
9149 2009-04-09 Nick Clifton <nickc@redhat.com>
9151 * iter.c: Change copyright header to refer to version 3 of the
9152 GNU General Public License with version 3.1 of the GCC Runtime
9153 Library Exception and to point readers at the COPYING3 and
9154 COPYING3.RUNTIME files and the FSF's license web page.
9155 * alloc.c: Likewise.
9156 * barrier.c: Likewise.
9157 * config/bsd/proc.c: Likewise.
9158 * config/linux/affinity.c: Likewise.
9159 * config/linux/alpha/futex.h: Likewise.
9160 * config/linux/bar.c: Likewise.
9161 * config/linux/bar.h: Likewise.
9162 * config/linux/ia64/futex.h: Likewise.
9163 * config/linux/ia64/mutex.h: Likewise.
9164 * config/linux/lock.c: Likewise.
9165 * config/linux/mips/futex.h: Likewise.
9166 * config/linux/mutex.c: Likewise.
9167 * config/linux/mutex.h: Likewise.
9168 * config/linux/powerpc/futex.h: Likewise.
9169 * config/linux/proc.c: Likewise.
9170 * config/linux/ptrlock.c: Likewise.
9171 * config/linux/ptrlock.h: Likewise.
9172 * config/linux/s390/futex.h: Likewise.
9173 * config/linux/sem.c: Likewise.
9174 * config/linux/sem.h: Likewise.
9175 * config/linux/sparc/futex.h: Likewise.
9176 * config/linux/wait.h: Likewise.
9177 * config/linux/x86/futex.h: Likewise.
9178 * config/mingw32/proc.c: Likewise.
9179 * config/mingw32/time.c: Likewise.
9180 * config/posix/affinity.c: Likewise.
9181 * config/posix/bar.c: Likewise.
9182 * config/posix/bar.h: Likewise.
9183 * config/posix/lock.c: Likewise.
9184 * config/posix/mutex.h: Likewise.
9185 * config/posix/proc.c: Likewise.
9186 * config/posix/ptrlock.h: Likewise.
9187 * config/posix/sem.c: Likewise.
9188 * config/posix/sem.h: Likewise.
9189 * config/posix/time.c: Likewise.
9190 * config/posix95/lock.c: Likewise.
9191 * critical.c: Likewise.
9193 * error.c: Likewise.
9194 * fortran.c: Likewise.
9195 * iter_ull.c: Likewise.
9196 * libgomp.h: Likewise.
9197 * libgomp_f.h.in: Likewise.
9198 * libgomp_g.h: Likewise.
9200 * loop_ull.c: Likewise.
9201 * omp.h.in: Likewise.
9202 * omp_lib.f90.in: Likewise.
9203 * omp_lib.h.in: Likewise.
9204 * ordered.c: Likewise.
9205 * parallel.c: Likewise.
9206 * sections.c: Likewise.
9207 * single.c: Likewise.
9212 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9214 * testsuite/config/default.exp: Change copyright header to refer to
9215 version 3 of the GNU General Public License and to point readers
9216 at the COPYING3 file and the FSF's license web page.
9218 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9221 * libgomp.c++/pr39573.C: New test.
9223 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9226 * testsuite/libgomp.c/pr39591-1.c: New test.
9227 * testsuite/libgomp.c/pr39591-2.c: New test.
9228 * testsuite/libgomp.c/pr39591-3.c: New test.
9230 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9232 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9233 * testsuite/libgomp.c/atomic-6.c: Ditto.
9235 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9238 * testsuite/libgomp.c/loop-12.c: New test.
9239 * testsuite/libgomp.c/loop-11.c: New test.
9240 * testsuite/libgomp.c++/loop-11.C: New test.
9241 * testsuite/libgomp.c++/loop-12.C: New test.
9242 * testsuite/libgomp.c++/for-8.C: New test.
9244 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9246 * configure: Regenerate.
9248 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9251 * testsuite/libgomp.c/pr39154.c: New test.
9253 2009-01-30 Ian Lance Taylor <iant@google.com>
9255 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9256 libgomp_ld_is_gold. Get gold version number.
9257 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9258 * configure: Rebuild.
9260 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9262 * testsuite/lib/libgomp.exp: Add -B option for targets that
9263 use libgfortran.a%s in their specs.
9265 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9268 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9269 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9270 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9271 * configure: Regenerated.
9272 * config.h.in: Likewise.
9274 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9277 * testsuite/libgomp.c/pr38650.c: New test.
9278 * testsuite/libgomp.c++/pr38650.C: New test.
9280 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9282 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9284 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9286 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9288 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9290 * configure: Regenerate.
9292 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9295 * testsuite/libgomp.c/pr36802-1.c: New test.
9296 * testsuite/libgomp.c/pr36802-2.c: New test.
9297 * testsuite/libgomp.c/pr36802-3.c: New test.
9299 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9302 * config/linux/powerpc/mutex.h: New.
9304 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9307 * testsuite/libgomp.c++/for-7.C: New test.
9310 * testsuite/libgomp.c++/for-6.C: New test.
9312 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9315 * testsuite/lib/libgomp.exp: Include new timeout library files.
9316 (libgomp_target_compile): Set timeout value from new proc.
9318 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9321 * config/linux/ia64/mutex.h: New.
9323 2008-11-04 Tobias Burnus <burnus@net-b.de>
9326 * libgomp.texi (Runtime library routines, environment variables):
9327 Update for OpenMP version 3.0.
9329 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9330 Steve Ellcey <sje@cup.hp.com>
9332 * configure: Regenerate for new libtool.
9333 * Makefile.in: Ditto.
9334 * testsuite/Makefile.in: Ditto.
9336 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9337 Andreas Tobler <a.tobler@schweiz.org>
9339 * config/bsd/proc.c: New file.
9340 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9341 * configure.ac: Check for header <sys/sysctl.h>
9342 * configure: Regenerate.
9343 * config.h.in: Likewise.
9345 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9347 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9349 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9351 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9352 * Makefile.in: Regenerated.
9353 * testsuite/Makefile.in: Regenerated.
9355 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9357 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9358 depend on blddir if blddir exists.
9359 (libgomp_target_compile): Likewise.
9360 * testsuite/libgomp.c++/c++.exp: Likewise.
9361 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9363 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9365 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9366 Do not list GPL as Invariant Section.
9368 2008-07-28 Ilie Garbacea <ilie@mips.com>
9369 Chao-ying Fu <fu@mips.com>
9371 * configure.tgt: Enable futex for MIPS.
9372 * config/linux/mips/futex.h: New file.
9374 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9376 * team.c (gomp_team_end): Free team immediately if it has
9379 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9381 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9382 * testsuite/libgomp.fortran/fortran.exp: Same.
9383 * testsuite/libgomp.c/c.exp: Same.
9384 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9385 directory to library path first.
9387 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9389 * env.c (parse_stacksize): Add cast to avoid warning.
9390 (parse_spincount): Likewise.
9392 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9394 * testsuite/libgomp.c/loop-10.c: New test.
9395 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9396 * libgomp.c++/loop-6.C (main): Likewise.
9399 * testsuite/libgomp.c/debug-1.c: New test.
9401 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9403 * testsuite/libgomp.c/nqueens-1.c: New test.
9406 * testsuite/libgomp.c++/task-7.C: New function.
9408 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9410 * configure: Regenerate.
9412 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9414 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9415 mutex when HAVE_SYNC_BUILTINS isn't defined.
9417 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9419 * libgomp.texi (omp_test_lock): Fix typo.
9421 2008-06-12 Tobias Burnus <burnus@net-b.de>
9423 * omp_lib.f90.in: Add "implicit none".
9425 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9428 * testsuite/libgomp.c/reduction-5.c: New test.
9430 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9432 * libgomp.h (struct gomp_task): Add in_tied_task field.
9433 * task.c (gomp_init_task): Initialize it.
9434 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9435 unconditionally. Don't call gomp_team_barrier_wake if
9436 current task is implicit or if(0) from implicit and number of
9437 running tasks is equal to nthreads - 1.
9440 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9441 omp_get_team_size_8): Fix pastos.
9444 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9445 * configure: Regenerated.
9446 * config.h.in: Regenerated.
9447 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9450 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9453 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9454 (GOMP_loop_ull_dynamic_start): Likewise.
9455 (GOMP_loop_ull_guided_start): Likewise.
9456 (GOMP_loop_ull_ordered_static_start): Likewise.
9457 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9458 (GOMP_loop_ull_ordered_guided_start): Likewise.
9460 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9461 Richard Henderson <rth@redhat.com>
9462 Ulrich Drepper <drepper@redhat.com>
9463 Jakob Blomer <jakob.blomer@ira.uka.de>
9465 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9466 Substitute also OMP_*LOCK_25*.
9467 * configure: Regenerated.
9468 * config.h.in: Regenerated.
9469 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9470 ptrlock.c and task.c.
9471 * Makefile.in: Regenerated.
9472 * testsuite/Makefile.in: Regenerated.
9474 * loop_ull.c: New file.
9475 * iter_ull.c: New file.
9476 * libgomp.h: Include ptrlock.h.
9477 (enum gomp_task_kind): New type.
9478 (struct gomp_team): Add task_lock, task_queue, task_count,
9479 task_running_count, single_count fields. Add
9480 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9481 Remove work_share_lock, generation_mask,
9482 oldest_live_gen, num_live_gen and init_work_shares fields, add
9483 work work_share_list_alloc, work_share_list_free and work_share_chunk
9484 fields. Change work_shares from pointer to pointers into an array.
9485 Change ordered_release field into gomp_sem_t ** from flexible array
9486 member. Add implicit_task and initial_work_shares fields.
9487 Move close to the end of the struct.
9488 (struct gomp_team_state): Add single_count, last_work_share,
9489 active_level and level fields, remove work_share_generation.
9490 (gomp_barrier_handle_tasks): New prototype.
9491 (gomp_finish_task): New inline function.
9492 (struct gomp_work_share): Move chunk_size, end, incr into
9493 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9494 next_ll fields. Reshuffle fields. Add next_alloc,
9495 next_ws, next_free and inline_ordered_team_ids fields, change
9496 ordered_team_ids into pointer from flexible array member.
9497 Add mode field. Put lock and next into a different cache line
9498 from most of the write-once fields.
9499 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9500 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9501 gomp_iter_ull_guided_next): New prototypes.
9502 (gomp_new_icv): New prototype.
9503 (struct gomp_thread): Add thread_pool and task fields.
9504 (struct gomp_thread_pool): New type.
9505 (gomp_new_team): New prototype.
9506 (gomp_team_start): Change type of last argument.
9507 (gomp_new_work_share): Removed.
9508 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9509 (gomp_work_share_init_done): New static inline.
9510 (gomp_throttled_spin_count_var, gomp_available_cpus,
9511 gomp_managed_threads): New extern decls.
9512 (gomp_init_task): New prototype.
9513 (gomp_spin_count_var): New extern var decl.
9514 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9515 or no alias support, or if not PIC.
9516 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9517 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9518 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9519 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9520 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9521 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9522 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9523 gomp_test_nest_lock_25): New prototypes.
9524 (omp_lock_symver, strong_alias): Define.
9525 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9527 (gomp_end_task): New.
9528 (struct gomp_task_icv, gomp_global_icv): New.
9529 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9530 (struct gomp_task): New.
9531 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9532 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9534 (gomp_schedule_type): Reorder enum to match
9536 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9538 (gomp_thread_start): Add gomp_team_barrier_wait call.
9539 For non-nested case remove clearing of docked thread thr fields.
9540 Use pool fields instead of global gomp_* variables. Use
9541 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9542 Create tasks for each member thread.
9543 (free_team): Only destroy team barrier, task_lock here and free it.
9544 (gomp_free_thread): Free last_team if non-NULL.
9545 (gomp_team_end): Call gomp_team_barrier_wait instead of
9546 gomp_barrier_wait. For nested case call one extra
9547 gomp_barrier_wait. Move here some destruction from free_team.
9548 Call free_team on pool->last_team if any, rather than freeing
9549 current team. Destroy work_share_list_free_lock ifndef
9551 (gomp_new_icv): New function.
9552 (gomp_threads, gomp_threads_size, gomp_threads_used,
9553 gomp_threads_dock): Removed.
9554 (gomp_thread_destructor): New variable.
9555 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9557 (gomp_team_start): Create new pool if current thread doesn't have
9558 one. Use pool fields instead of global gomp_* variables.
9559 Initialize thread_pool field for new threads. Clear single_count.
9560 Change last argument from ws to team, don't create
9561 new team, set ts.work_share to &team->work_shares[0] and clear
9562 ts.last_work_share. Don't clear ts.work_share_generation.
9563 If number of threads changed, adjust atomically gomp_managed_threads.
9564 Use gomp_init_task instead of gomp_new_task,
9565 set thr->task to the corresponding implicit_task array entry.
9566 Create tasks for each member thread. Initialize ts.level.
9567 (initialize_team): Call pthread_key_create on
9568 gomp_thread_destructor.
9569 (team_destructor): New function.
9570 (new_team): Removed.
9571 (gomp_new_team): New function.
9572 (free_team): Free gomp_work_share blocks chained through next_alloc,
9573 instead of freeing work_shares and destroying work_share_lock.
9574 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9575 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9576 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9577 of gomp_barrier_wait.
9578 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9579 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9580 if gomp_work_share_start returned true. Don't unlock ws->lock.
9581 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9582 of gomp_barrier_wait.
9583 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9584 gomp_work_share_init_done if gomp_work_share_start returned true.
9585 Don't unlock ws->lock.
9586 * work.c: Include stddef.h.
9587 (free_work_share): Use work_share_list_free_lock instead
9588 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9589 Call gomp_fini_work_share and then either free ws if orphaned, or
9590 put it into work_share_list_free list of the current team.
9591 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9593 (gomp_work_share_start, gomp_work_share_end,
9594 gomp_work_share_end_nowait): Rewritten.
9595 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9596 (openmp_version): Set to 200805.
9597 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9598 omp_sched_guided, omp_sched_auto): New parameters.
9599 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9600 omp_set_max_active_levels, omp_get_max_active_levels,
9601 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9602 omp_get_active_level): New interfaces.
9603 * omp_lib.h.in (openmp_version): Set to 200805.
9604 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9605 omp_sched_guided, omp_sched_auto): New parameters.
9606 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9607 omp_set_max_active_levels, omp_get_max_active_levels,
9608 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9609 omp_get_active_level): New externals.
9610 * loop.c: Include limits.h.
9611 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9613 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9614 Likewise. Use gomp_icv.
9615 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9616 ts.static_trip here.
9617 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9618 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9619 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9620 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9621 don't unlock ws->lock, otherwise lock it.
9622 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9623 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9624 (gomp_parallel_loop_start): Call gomp_new_team instead of
9625 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9626 Adjust gomp_team_start caller. Pass 0 as second argument to
9627 gomp_resolve_num_threads.
9628 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9629 If adding ws->chunk_size nthreads + 1 times after end won't
9630 overflow, set ws->mode to 1.
9631 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9632 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9633 GOMP_loop_ull_ordered_static_start,
9634 GOMP_loop_ull_ordered_dynamic_start,
9635 GOMP_loop_ull_ordered_guided_start,
9636 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9637 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9638 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9639 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9640 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9642 * libgomp.map: Export lock routines also @@OMP_2.0.
9643 (GOMP_loop_ordered_dynamic_first,
9644 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9645 GOMP_loop_ordered_static_first): Remove.
9646 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9647 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9648 GOMP_loop_ull_ordered_dynamic_next,
9649 GOMP_loop_ull_ordered_dynamic_start,
9650 GOMP_loop_ull_ordered_guided_next,
9651 GOMP_loop_ull_ordered_guided_start,
9652 GOMP_loop_ull_ordered_runtime_next,
9653 GOMP_loop_ull_ordered_runtime_start,
9654 GOMP_loop_ull_ordered_static_next,
9655 GOMP_loop_ull_ordered_static_start,
9656 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9657 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9658 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9659 (omp_set_schedule, omp_get_schedule,
9660 omp_get_thread_limit, omp_set_max_active_levels,
9661 omp_get_max_active_levels, omp_get_level,
9662 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9663 omp_set_schedule_, omp_set_schedule_8_,
9664 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9665 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9666 omp_get_max_active_levels_, omp_get_level_,
9667 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9668 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9669 New exports @@OMP_3.0.
9670 * omp.h.in (omp_sched_t): New type.
9671 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9672 omp_set_max_active_levels, omp_get_max_active_levels,
9673 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9674 omp_get_active_level): New prototypes.
9675 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9676 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9677 gomp_thread_limit_var, gomp_remaining_threads_count,
9678 gomp_remaining_threads_lock): New variables.
9679 (parse_spincount): New function.
9680 (initialize_env): Call gomp_init_num_threads unconditionally.
9681 Initialize gomp_available_cpus. Call parse_spincount,
9682 initialize gomp_{,throttled_}spin_count_var
9683 depending on presence and value of OMP_WAIT_POLICY and
9684 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9685 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9686 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9687 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9688 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9689 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9690 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9691 (gomp_global_icv): New.
9692 (parse_schedule): Use it. Parse "auto".
9693 (omp_set_num_threads): Use gomp_icv.
9694 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9696 (omp_get_max_threads): Move from parallel.c.
9697 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9698 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9700 (parse_stacksize, parse_wait_policy): New functions.
9701 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9702 both wrappers for compatibility and new locks.
9703 (omp_set_schedule, omp_get_schedule,
9704 omp_get_thread_limit, omp_set_max_active_levels,
9705 omp_get_max_active_levels, omp_get_level,
9706 omp_get_ancestor_thread_num, omp_get_team_size,
9707 omp_get_active_level): New ialias_redirect.
9708 (omp_set_schedule_, omp_set_schedule_8_,
9709 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9710 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9711 omp_get_max_active_levels_, omp_get_level_,
9712 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9713 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9715 * parallel.c: Include limits.h.
9716 (gomp_resolve_num_threads): Add count argument. Rewritten.
9717 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9718 argument to gomp_team_start. Pass 0 as second argument to
9719 gomp_resolve_num_threads.
9720 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9721 if gomp_thread_limit_var != ULONG_MAX.
9722 (omp_in_parallel): Implement using ts.active_level.
9723 (omp_get_max_threads): Move to env.c.
9724 (omp_get_level, omp_get_ancestor_thread_num,
9725 omp_get_team_size, omp_get_active_level): New functions,
9727 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9728 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9729 gomp_iter_dynamic_next instead of the _locked variant and don't take
9730 lock around it, otherwise acquire it before calling
9731 gomp_iter_dynamic_next_locked.
9732 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9733 gomp_iter_dynamic_next instead of the _locked variant and don't take
9735 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9736 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9737 Adjust gomp_team_start caller. Pass count as second argument to
9738 gomp_resolve_num_threads, don't adjust num_threads after the call.
9740 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9741 ws->chunk_size by incr.
9742 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9744 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9746 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9747 (omp_check_defines): Check even the compat defines.
9748 * config/linux/ptrlock.c: New file.
9749 * config/linux/ptrlock.h: New file.
9750 * config/linux/wait.h: New file.
9751 * config/posix/ptrlock.c: New file.
9752 * config/posix/ptrlock.h: New file.
9753 * config/linux/bar.h (gomp_team_barrier_wait,
9754 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9755 (gomp_team_barrier_set_task_pending,
9756 gomp_team_barrier_clear_task_pending,
9757 gomp_team_barrier_set_waiting_for_tasks,
9758 gomp_team_barrier_waiting_for_tasks,
9759 gomp_team_barrier_done): New inlines.
9760 (gomp_barrier_t): Rewritten.
9761 (gomp_barrier_state_t): New typedef.
9762 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9763 gomp_barrier_wait_start): Rewritten.
9764 (gomp_barrier_wait_end): Change second argument to
9765 gomp_barrier_state_t.
9766 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9768 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9770 (gomp_barrier_wait_end): Rewritten.
9771 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9772 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9773 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9774 (gomp_barrier_state_t): New typedef.
9775 (gomp_team_barrier_wait,
9776 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9777 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9778 into the return value. Return gomp_barrier_state_t.
9779 (gomp_team_barrier_set_task_pending,
9780 gomp_team_barrier_clear_task_pending,
9781 gomp_team_barrier_set_waiting_for_tasks,
9782 gomp_team_barrier_waiting_for_tasks,
9783 gomp_team_barrier_done): New inlines.
9784 (gomp_barrier_wait_end): Change second argument to
9785 gomp_barrier_state_t.
9786 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9788 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9789 (gomp_barrier_wait_end): Change second argument to
9790 gomp_barrier_state_t.
9791 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9792 gomp_team_barrier_wake): New functions.
9793 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9795 (gomp_futex_wake, gomp_futex_wait): New variables.
9796 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9797 * config/linux/lock.c: Rewrite to make locks task owned,
9798 for backwards compatibility provide the old entrypoints
9799 if symbol versioning. Include wait.h instead of libgomp.h and
9801 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9802 * config/posix95/lock.c: Rewrite to make locks task owned,
9803 for backwards compatibility provide the old entrypoints
9804 if symbol versioning.
9805 * config/posix/lock.c: Rewrite to make locks task owned,
9806 for backwards compatibility provide the old entrypoints
9807 if symbol versioning.
9808 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9809 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9810 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9811 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9812 (sys_futex0): Return error code.
9813 (futex_wake, futex_wait): If ENOSYS was returned, clear
9814 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9815 (cpu_relax, atomic_write_barrier): New static inlines.
9816 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9817 (futex_wake, futex_wait): If ENOSYS was returned, clear
9818 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9819 (cpu_relax, atomic_write_barrier): New static inlines.
9820 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9821 (sys_futex0): Return error code.
9822 (futex_wake, futex_wait): If ENOSYS was returned, clear
9823 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9824 (cpu_relax, atomic_write_barrier): New static inlines.
9825 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9826 (sys_futex0): Return error code.
9827 (futex_wake, futex_wait): If ENOSYS was returned, clear
9828 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9829 (cpu_relax, atomic_write_barrier): New static inlines.
9830 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9831 (sys_futex0): Return error code.
9832 (futex_wake, futex_wait): If ENOSYS was returned, clear
9833 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9834 (cpu_relax, atomic_write_barrier): New static inlines.
9835 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9836 (sys_futex0): Return error code.
9837 (futex_wake, futex_wait): If ENOSYS was returned, clear
9838 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9839 (cpu_relax, atomic_write_barrier): New static inlines.
9840 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9842 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9843 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9844 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9846 (omp_nest_lock_t): Change owner into void *, add lock field.
9847 * config/posix95/omp-lock.h: Include semaphore.h.
9848 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9849 (omp_lock_t): Use sem_t instead of mutex if semaphores
9851 (omp_nest_lock_t): Likewise. Change owner to void *.
9852 * config/posix/omp-lock.h: Include semaphore.h.
9853 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9854 (omp_lock_t): Use sem_t instead of mutex if semaphores
9856 (omp_nest_lock_t): Likewise. Add owner field.
9858 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9860 * testsuite/libgomp.c/collapse-1.c: New test.
9861 * testsuite/libgomp.c/collapse-2.c: New test.
9862 * testsuite/libgomp.c/collapse-3.c: New test.
9863 * testsuite/libgomp.c/icv-1.c: New test.
9864 * testsuite/libgomp.c/icv-2.c: New test.
9865 * testsuite/libgomp.c/lib-2.c: New test.
9866 * testsuite/libgomp.c/lock-1.c: New test.
9867 * testsuite/libgomp.c/lock-2.c: New test.
9868 * testsuite/libgomp.c/lock-3.c: New test.
9869 * testsuite/libgomp.c/loop-4.c: New test.
9870 * testsuite/libgomp.c/loop-5.c: New test.
9871 * testsuite/libgomp.c/loop-6.c: New test.
9872 * testsuite/libgomp.c/loop-7.c: New test.
9873 * testsuite/libgomp.c/loop-8.c: New test.
9874 * testsuite/libgomp.c/loop-9.c: New test.
9875 * testsuite/libgomp.c/nested-3.c: New test.
9876 * testsuite/libgomp.c/nestedfn-6.c: New test.
9877 * testsuite/libgomp.c/sort-1.c: New test.
9878 * testsuite/libgomp.c/task-1.c: New test.
9879 * testsuite/libgomp.c/task-2.c: New test.
9880 * testsuite/libgomp.c/task-3.c: New test.
9881 * testsuite/libgomp.c/task-4.c: New test.
9882 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9883 to C++ testsuite default compiler options.
9884 * testsuite/libgomp.c++/collapse-1.C: New test.
9885 * testsuite/libgomp.c++/collapse-2.C: New test.
9886 * testsuite/libgomp.c++/ctor-10.C: New test.
9887 * testsuite/libgomp.c++/for-1.C: New test.
9888 * testsuite/libgomp.c++/for-2.C: New test.
9889 * testsuite/libgomp.c++/for-3.C: New test.
9890 * testsuite/libgomp.c++/for-4.C: New test.
9891 * testsuite/libgomp.c++/for-5.C: New test.
9892 * testsuite/libgomp.c++/loop-8.C: New test.
9893 * testsuite/libgomp.c++/loop-9.C: New test.
9894 * testsuite/libgomp.c++/loop-10.C: New test.
9895 * testsuite/libgomp.c++/task-1.C: New test.
9896 * testsuite/libgomp.c++/task-2.C: New test.
9897 * testsuite/libgomp.c++/task-3.C: New test.
9898 * testsuite/libgomp.c++/task-4.C: New test.
9899 * testsuite/libgomp.c++/task-5.C: New test.
9900 * testsuite/libgomp.c++/task-6.C: New test.
9901 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9902 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9903 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9904 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9905 * testsuite/libgomp.fortran/collapse1.f90: New test.
9906 * testsuite/libgomp.fortran/collapse2.f90: New test.
9907 * testsuite/libgomp.fortran/collapse3.f90: New test.
9908 * testsuite/libgomp.fortran/collapse4.f90: New test.
9909 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9910 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9911 * testsuite/libgomp.fortran/lib4.f90: New test.
9912 * testsuite/libgomp.fortran/lock-1.f90: New test.
9913 * testsuite/libgomp.fortran/lock-2.f90: New test.
9914 * testsuite/libgomp.fortran/nested1.f90: New test.
9915 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9916 * testsuite/libgomp.fortran/strassen.f90: New test.
9917 * testsuite/libgomp.fortran/tabs1.f90: New test.
9918 * testsuite/libgomp.fortran/tabs2.f: New test.
9919 * testsuite/libgomp.fortran/task1.f90: New test.
9920 * testsuite/libgomp.fortran/task2.f90: New test.
9921 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9922 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9923 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9924 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9925 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9927 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9930 * testsuite/libgomp.c++/ctor-11.C: New test.
9931 * testsuite/libgomp.c++/ctor-12.C: New test.
9933 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9935 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9937 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9940 * testsuite/libgomp.c/atomic-5.c: New test.
9941 * testsuite/libgomp.c/atomic-6.c: New test.
9942 * testsuite/libgomp.c/autopar-1.c: New test.
9944 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9946 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9947 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9948 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9949 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9950 * configure: Regenerate.
9951 * Makefile.in, testsuite/Makefile.in: Likewise.
9953 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9956 * aclocal.m4: Regenerate.
9957 * configure: Regenerate.
9959 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9962 * testsuite/libgomp.c/atomic-4.c: New test.
9965 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9966 (gomp_iter_guided_next): Likewise.
9967 * testsuite/libgomp.c/pr35625.c: New test.
9969 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9971 * aclocal.m4: Regenerate.
9972 * configure: Likewise.
9973 * Makefile.in: Likewise.
9974 * testsuite/Makefile.in: Likewise.
9976 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9979 * testsuite/libgomp.c++/pr35185.C: New test.
9981 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9984 * testsuite/libgomp.c/pr35549.c: New test.
9986 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9988 * testsuite/libgomp.c/atomic-3.c: New test.
9990 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9993 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9996 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9999 * configure.ac: Add ACX_HEADER_STRING.
10000 * env.c: Include strings.h.
10001 * aclocal.m4: Regenerate.
10002 * config.h.in: Regenerate.
10003 * configure: Regenerate.
10004 * Makefile.in: Regenerate.
10005 * testsuite/Makefile.in: Regenerate.
10007 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10009 PR middle-end/35196
10010 * testsuite/libgomp.c/pr35196.c: New test.
10012 PR middle-end/35130
10013 * testsuite/libgomp.fortran/pr35130.f90: New test.
10014 * testsuite/libgomp.c/pr35130.c: New test.
10016 2008-01-25 Jakub Jelinek <jakub@redhat.com>
10018 PR middle-end/33880
10019 * testsuite/libgomp.c/pr33880.c: New test.
10020 * testsuite/libgomp.fortran/pr33880.f90: New test.
10022 2008-01-24 David Edelsohn <edelsohn@gnu.org>
10024 * configure: Regenerate.
10026 2008-01-08 Jakub Jelinek <jakub@redhat.com>
10028 * configure.ac: Move futex checking into ../config/futex.m4.
10029 * configure: Rebuilt.
10030 * aclocal.m4: Rebuilt.
10031 * Makefile.in: Rebuilt.
10033 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
10034 2007-10-15 ../config/tls.m4 change.
10036 2007-12-19 Jakub Jelinek <jakub@redhat.com>
10039 * testsuite/libgomp.c/pr34513.c: New test.
10040 * testsuite/libgomp.c++/pr34513.C: New test.
10042 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
10045 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
10047 2007-12-04 Jakub Jelinek <jakub@redhat.com>
10049 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
10051 2007-12-03 Jakub Jelinek <jakub@redhat.com>
10053 * testsuite/libgomp.c/private-1.c: New test.
10055 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
10056 Paolo Bonzini <bonzini@gnu.org>
10058 * Makefile.am: Use space as vpath separator. Use 'vpath %'
10059 instead of 'VPATH ='.
10060 * Makefile.in: Regenerate.
10062 2007-11-23 Matthias Klose <doko@ubuntu.com>
10064 * configure.ac: Adjust makeinfo version check.
10065 * configure: Regenerate.
10067 2007-11-10 Jakub Jelinek <jakub@redhat.com>
10070 * testsuite/libgomp.fortran/pr34020.f90: New test.
10072 2007-11-06 Jakub Jelinek <jakub@redhat.com>
10075 * testsuite/libgomp.c++/atomic-1.C: New test.
10077 2007-10-25 Jakub Jelinek <jakub@redhat.com>
10080 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
10081 Make x and y integers rather than (implicit) reals. Add private (j)
10082 clause to the last omp parallel.
10084 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
10086 * configure: Regenerate following changes to ../config/tls.m4.
10088 2007-09-28 Jakub Jelinek <jakub@redhat.com>
10090 * testsuite/libgomp.fortran/stack.f90: New test.
10092 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
10094 * config/mingw32/proc.c: New file.
10096 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
10098 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
10099 (main): Use __get_cpuid to get i386 target fetaures.
10100 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
10101 (main): Use __get_cpuid to get x86_64 target fetaures.
10103 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
10106 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
10107 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
10109 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10112 * testsuite/libgomp.fortran/pr32550.f90: New test.
10113 * testsuite/libgomp.fortran/crayptr2.f90: New test.
10115 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
10117 * aclocal.m4: Regenerated.
10119 2007-07-05 Tobias Burnus <burnus@net-b.de>
10122 * testsuite/libgomp.fortran/pr32359.f90: New.
10124 2007-07-02 Jakub Jelinek <jakub@redhat.com>
10127 * sections.c (GOMP_parallel_sections_start): Only decrease
10128 number of threads to COUNT if dyn_var is true.
10129 * testsuite/libgomp.c/pr32468.c: New test.
10131 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10134 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
10136 2007-06-21 Jakub Jelinek <jakub@redhat.com>
10138 PR middle-end/32362
10139 * testsuite/libgomp.c/pr32362-1.c: New test.
10140 * testsuite/libgomp.c/pr32362-2.c: New test.
10141 * testsuite/libgomp.c/pr32362-3.c: New test.
10143 2007-06-07 Jakub Jelinek <jakub@redhat.com>
10145 * team.c (gomp_team_start): Fix setting up thread_attr
10148 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
10150 * configure: Regenerate.
10152 2007-05-23 Steve Ellcey <sje@cup.hp.com>
10154 * Makefile.in: Regenerate.
10155 * configure: Regenerate.
10156 * aclocal.m4: Regenerate.
10157 * testsuite/Makefile.in: Regenerate.
10159 2007-05-04 Jakub Jelinek <jakub@redhat.com>
10161 * config/linux/proc.c: New file.
10164 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10166 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
10168 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10170 2007-04-16 Matthias Klose <doko@debian.org>
10172 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10173 flags if not building with -m64.
10174 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10175 flag for i?86-*-* targets, if current target matches -m64.
10177 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10179 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10180 * Makefile.in: Regenerate.
10182 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10185 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10187 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10189 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10191 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10193 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10194 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10195 (parse_affinity): New function.
10196 (initialize_env): Call it and gomp_init_affinity.
10197 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10198 create new pthread_attr_t and call gomp_init_thread_affinity
10199 on it for each thread before passing the attribute to pthread_create.
10200 * config/linux/affinity.c: New file.
10201 * config/posix/affinity.c: New file.
10202 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10203 * configure: Rebuilt.
10204 * config.h.in: Rebuilt.
10205 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10206 * Makefile.in: Rebuilt.
10208 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10210 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10212 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10213 and use it if found.
10215 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10217 * testsuite/config/default.exp: New file.
10218 * testsuite/lib/libgomp.exp: New file.
10219 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10220 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10221 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10222 (libgomp_load): Remove.
10223 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10224 always_ld_library_path, not ld_library_path. Set additional_flags
10225 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10226 (target_compile): Do not call libgomp_init. Append lang_library_path
10227 and lang_link_flags to options.
10228 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10229 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10231 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10232 always_ld_library_path. Set LD_LIBRARY_PATH here.
10233 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10234 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10235 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10237 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10238 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10239 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10240 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10241 * testsuite/libgomp.c/atomic-10.c: Ditto.
10243 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10245 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10246 dg-final cleanup-modules line.
10247 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10248 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10249 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10250 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10251 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10252 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10253 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10255 2007-03-18 Andreas Schwab <schwab@suse.de>
10257 * acinclude.m4: Adjust regular expression for ld version
10259 * configure: Regenerate.
10261 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10263 * Makefile.am: Add install-pdf target as copied from
10264 automake v1.10 rules.
10265 * Makefile.in: Regenerate
10267 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10270 * configure: Regenerate.
10273 * testsuite/libgomp.c++/pr30703.C: New test.
10275 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10278 2006-07-05 Eric Christopher <echristo@apple.com>
10279 * configure.ac: Depend addition of -pthread on host OS.
10280 * configure: Regenerate.
10282 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10284 * libgomp.texi: Fix spacing after abbreviations.
10286 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10289 * configure.ac: Add check for makeinfo
10290 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10291 if an appropiate version of makeinfo is found.
10292 * aclocal.m4: Regenerated.
10293 * configure: Regenerated.
10294 * Makefile.in: Regenerated.
10295 * testsuite/Makefile.in: Regenerated.
10297 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10300 * libgomp.texi: More about implementation-dependent settings.
10302 2007-01-26 Tobias Burnus <burnus@net-b.de>
10304 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10306 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10308 PR middle-end/30494
10309 * testsuite/libgomp.c/pr30494.c: New test.
10311 2007-01-15 Tom Tromey <tromey@redhat.com>
10313 * configure: Rebuilt.
10314 * configure.ac: Fixed comment.
10316 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10318 * libgomp.texi: Document implementation specific default values of
10319 environment variables.
10321 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10324 * libgomp.texi: New file.
10325 * configure.ac: Add --enable-generated-files-in-srcdir option.
10326 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10328 * Makefile.in: Regenerated.
10329 * config.h.in: Regenerated.
10330 * testsuite/Makefile.in: Regenerated.
10333 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10336 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10338 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10340 * configure: Regenerate.
10342 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10345 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10346 start if there shouldn't be any loop iterations.
10347 (gomp_loop_ordered_static_start): Remove start == end test.
10348 * testsuite/libgomp.c/pr29947-1.c: New test.
10349 * testsuite/libgomp.c/pr29947-2.c: New test.
10351 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10353 * configure.tgt: Force initial-exec TLS model on Linux only.
10355 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10357 * configure: Regenerated.
10359 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10361 * env.c (parse_schedule): Reject out of range values.
10362 (parse_unsigned_long): Reject out of range, negative or zero values.
10364 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10367 * testsuite/libgomp.fortran/pr29629.f90: New test.
10369 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10372 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10373 * config/posix95: New directory.
10374 * config/posix95/omp-lock.h: New file.
10375 * config/posix95/lock.c: Likewise.
10377 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10379 * aclocal.m4: Regenerate.
10380 * configure: Regenerate.
10382 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10384 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10387 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10389 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10391 * configure: Regenerate.
10392 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10394 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10396 PR middle-end/25261
10397 PR middle-end/28790
10398 * testsuite/libgomp.c/nestedfn-4.c: New test.
10399 * testsuite/libgomp.c/nestedfn-5.c: New test.
10400 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10403 * testsuite/libgomp.fortran/condinc1.f: New test.
10404 * testsuite/libgomp.fortran/condinc2.f: New test.
10405 * testsuite/libgomp.fortran/condinc3.f90: New test.
10406 * testsuite/libgomp.fortran/condinc4.f90: New test.
10407 * testsuite/libgomp.fortran/condinc1.inc: New file.
10409 2006-09-18 Tom Tromey <tromey@redhat.com>
10411 * configure: Rebuilt.
10413 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10416 PR preprocessor/14634
10417 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10419 * configure: Regenerate.
10421 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10423 * testsuite/libgomp.fortran/reduction3.f90: Change
10424 -2147483648 to -huge(i)-1 to avoid overflow.
10425 * testsuite/libgomp.fortran/reduction4.f90: Change
10426 Z'ffffffff' to not(0) to avoid overflow.
10428 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10431 * Makefile.am (libsubincludedir): New.
10432 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10433 * Makefile.in: Regenerate.
10435 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10438 * env.c: Include ctype.h.
10439 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10440 leading and/or trailing whitespace and compare strings case
10443 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10446 * testsuite/libgomp.fortran/pr28390.f: New test.
10448 2006-07-05 Eric Christopher <echristo@apple.com>
10450 * configure.ac: Depend addition of -pthread on host OS.
10451 * configure: Regenerate.
10453 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10455 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10456 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10459 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10463 * configure.ac: If neither --enable-linux-futex nor
10464 --disable-linux-futex is passed, determine the default by checking
10465 for compiling and/or running against NPTL. With --enable-linux-futex,
10466 check if SYS_gettid and SYS_futex are defined.
10467 * configure: Rebuilt.
10469 2006-06-14 Richard Henderson <rth@redhat.com>
10472 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10473 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10475 2006-06-09 Richard Henderson <rth@redhat.com>
10477 * env.c (gomp_nthreads_var): Change to unsigned long.
10478 (gomp_run_sched_chunk): Likewise.
10479 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10480 (initialize_env): Initialize gomp_thread_attr.
10481 * libgomp.h (gomp_nthreads_var): Update decl.
10482 (gomp_run_sched_chunk): Likewise.
10483 (gomp_thread_attr): Declare.
10484 * team.c (gomp_thread_attr): Export.
10485 (initialize_team): Don't initialize it.
10487 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10490 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10491 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10493 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10495 * config/mingw32/time.c: New file.
10496 * configure.tgt: Use it.
10498 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10500 * Makefile.am: Add install-html target. Add install-html to .PHONY
10501 * Makefile.in: Regenerate.
10503 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10506 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10507 * testsuite/libgomp.c/critical-1.c: Likewise.
10508 * testsuite/libgomp.c/loop-1.c: Likewise.
10509 * testsuite/libgomp.c/loop-2.c: Likewise.
10510 * testsuite/libgomp.c/single-1.c: Likewise.
10511 * testsuite/libgomp.c/ordered-1.c: Likewise.
10512 * testsuite/libgomp.c/ordered-2.c: Likewise.
10514 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10516 PR middle-end/27416
10517 * libgomp.fortran/pr27416-1.f90: New test.
10519 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10522 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10523 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10525 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10528 * testsuite/libgomp.c/pr26943-1.c: New test.
10529 * testsuite/libgomp.c/pr26943-2.c: New test.
10530 * testsuite/libgomp.c/pr26943-3.c: New test.
10531 * testsuite/libgomp.c/pr26943-4.c: New test.
10532 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10533 * testsuite/libgomp.c++/pr26943.C: New test.
10535 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10537 PR middle-end/27337
10538 * testsuite/libgomp.c++/pr27337.C: New test.
10540 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10543 * testsuite/libgomp.c/pr26171.c: New test.
10545 2006-04-25 Richard Henderson <rth@redhat.com>
10548 * configure.ac: Use GCC_CHECK_TLS.
10549 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10550 * Makefile.in, aclocal.m4, configure: Regenerate.
10552 2006-04-10 Matthias Klose <doko@debian.org>
10554 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10555 directory names containing underscores.
10557 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10560 * testsuite/libgomp.c++/pr26691.C: New test.
10562 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10564 * testsuite/libgomp.fortran/retval2.f90: New test.
10566 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10568 * testsuite/libgomp.c++: New directory.
10570 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10572 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10573 * config/posix/sem.c: Implement the above.
10575 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10577 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10578 define HAVE_BROKEN_POSIX_SEMAPHORES.
10579 * configure: Rebuilt.
10580 * config.h.in: Rebuilt.
10582 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10585 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10586 for the other pthread check.
10587 * configure: Regenerate.
10588 * config.h.in: Regenerate.
10590 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10594 * Makefile.am (fincludedir): New variable.
10595 (nodist_include_HEADERS): Remove Fortran files.
10596 (nodist_finclude_HEADERS): New variable.
10597 * Makefile.in: Regenerated.
10599 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10601 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10602 Remove tests for returning assumed character length arrays.
10604 2006-02-12 Roger Sayle <roger@eyesopen.com>
10605 John David Anglin <dave@hiauly1.hia.nrc.ca>
10608 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10610 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10612 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10614 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10616 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10617 part of LD_LIBRARY_PATH manually.
10619 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10622 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10625 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10628 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10629 * configure.ac (PERL): Don't set.
10630 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10631 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10632 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10633 * omp.h.in: Wrap the new configure substitutions with @ characters.
10634 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10635 * aclocal.m4, configure, Makefile.in: Regenerate.
10636 * mkomp_h.pl: Delete.
10638 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10641 * configure.ac: Use GCC_HEADER_STDINT.
10642 * libgomp.h: Include gstdint.h.
10643 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10644 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10646 2006-01-24 Richard Henderson <rth@redhat.com>
10649 * configure.ac: Add AM_MAINTAINER_MODE.
10650 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10652 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10654 * Makefile.in: Regenerate.
10655 * testsuite/Makefile.in: Regenerate.
10656 * aclocal.m4: Regenerate.
10658 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10660 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10662 * configure.ac: Add check for loadavg.h.
10663 (link_gomp): Adjust comment.
10664 * configure: Regenerate.
10665 * config.h.in: Regenerate.
10667 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10670 * configure.ac: Remove check for alloca.h.
10671 * configure: Regenerate.
10672 * config.h.in: Regenerate.
10673 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10674 * team.c: Remove use of alloca.h.
10675 Call gomp_alloca instead of alloca.
10677 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10680 * team.c: Add include of alloca.h.
10681 * configure.ac: Add check for alloca.h.
10682 * configure: Regenerate.
10683 * config.h.in: Regenerate.
10685 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10688 * testsuite/libgomp.fortran/pr25219.f90: New test.
10690 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10692 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10693 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10694 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10695 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10696 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10697 testsuite/libgomp.fortran/threadprivate1.f90,
10698 testsuite/libgomp.fortran/threadprivate2.f90,
10699 testsuite/libgomp.fortran/threadprivate3.f90,
10700 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10701 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10702 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10703 effective-target to TLS runtime.
10705 * testsuite/libgomp.fortran/pr25162.f: Require
10706 effective-target TLS runtime.
10708 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10710 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10711 * testsuite/libgomp.c/nestedfn-3.c: New test.
10713 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10716 * testsuite/libgomp.fortran/pr25162.f: New test.
10718 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10720 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10721 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10723 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10725 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10726 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10727 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10728 single.c, team.c, work.c, config/linux/alpha/futex.h,
10729 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10730 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10731 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10732 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10733 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10734 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10735 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10738 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10740 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10741 to nodist_noinst_HEADERS.
10742 * Makefile.in: Rebuilt.
10744 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10745 add integer count field.
10746 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10747 omp_nest_lock_t type change.
10748 (omp_init_nest_lock): Likewise. Initialize count to 0.
10749 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10751 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10753 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10754 Increment count if successful and return the new nesting level.
10755 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10756 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10757 * testsuite/libgomp.c/lib-1.c: New test.
10758 * testsuite/libgomp.fortran/lib1.f90: New test.
10759 * testsuite/libgomp.fortran/lib2.f: New test.
10760 * testsuite/libgomp.fortran/lib3.f: New test.
10762 2005-11-17 Richard Henderson <rth@redhat.com>
10765 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10766 * configure.ac (link_gomp): New. Substitute it.
10767 (AC_CONFIG_FILES): Add libgomp.spec.
10768 * libgomp.spec.in: New file.
10769 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10770 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10772 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10774 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10775 reduction(-:var) behaving the same as reduction(+:var).
10776 * testsuite/libgomp.c/reduction-4.c: New test.
10778 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10780 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10781 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10782 testsuite/libgomp.c/copyin-3.c,
10783 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10784 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10785 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10786 testsuite/libgomp.c++/pr24455.C,
10787 testsuite/libgomp.fortran/threadprivate1.f90,
10788 testsuite/libgomp.fortran/threadprivate2.f90,
10789 testsuite/libgomp.fortran/threadprivate3.f90,
10790 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10791 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10792 testsuite/libgomp.fortran/omp_parse3.f90: Require
10793 effective-target TLS.
10795 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10799 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10802 * team.c (initialize_team): Pass NULL rather than free as
10803 pthread_key_create destructor. Initialize thread specific data
10804 pointer in initial thread to a static local variable rather than
10807 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10809 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10810 its location to ld_library_path.
10812 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10814 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10816 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10818 * testsuite/libgomp.c: Rename from libgomp.dg.
10820 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10822 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10823 threadprivate variable 'i'.
10825 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10827 * config/linux/s390/futex.h: New file.
10828 * configure.tgt: Use it.
10830 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10831 before the parallel.
10833 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10836 * testsuite/libgomp.c++/master-1.C: New test.
10838 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10840 * testsuite/libgomp.dg/copyin-3.c: New test.
10842 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10844 * testsuite/libgomp.fortran/retval1.f90: New test.
10845 * testsuite/libgomp.fortran/vla7.f90: New test.
10847 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10849 * testsuite/libgomp.fortran/vla2.f90: New test.
10850 * testsuite/libgomp.fortran/vla3.f90: New test.
10851 * testsuite/libgomp.fortran/vla4.f90: New test.
10852 * testsuite/libgomp.fortran/vla5.f90: New test.
10853 * testsuite/libgomp.fortran/vla6.f90: New test.
10855 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10857 * config/linux/sparc/futex.h: New file.
10858 * configure.tgt: Use it.
10859 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10861 * critical.c: Include stdlib.h.
10862 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10863 ignoring return value.
10864 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10865 LIBGOMP_CHECK_SYNC_BUILTINS check.
10866 * configure: Rebuilt.
10868 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10870 * testsuite/libgomp.fortran/vla1.f90: New test.
10872 2005-10-31 Richard Henderson <rth@redhat.com>
10874 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10875 setting 's' in different threads.
10877 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10879 * libgomp.h (attribute_hidden, ialias): Define.
10880 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10881 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10882 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10883 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10884 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10885 omp_test_lock, omp_test_nest_lock): Likewise.
10886 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10887 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10888 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10889 omp_test_lock, omp_test_nest_lock): Likewise.
10890 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10891 omp_get_dynamic, omp_get_nested): Likewise.
10892 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10893 omp_get_thread_num, omp_in_parallel): Likewise.
10894 * fortran.c (ialias_redirect): Define.
10895 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10896 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10897 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10898 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10899 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10900 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10901 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10902 omp_get_wtime): Add ialias_redirect.
10904 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10906 * fortran.c: Include stdlib.h.
10908 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10910 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10911 * Makefile.in: Regenerated.
10913 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10915 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10916 * libgomp_f.h.in (omp_check_defines): New function.
10917 * env.c: Include libgomp_f.h.
10918 (initialize_env): Call omp_check_defines.
10920 * testsuite/libgomp.dg/copyin-2.c: New test.
10921 * testsuite/libgomp.c++/copyin-2.C: New test.
10922 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10924 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10925 * testsuite/libgomp.fortran/sharing2.f90: New test.
10927 * testsuite/libgomp.dg/copyin-1.c: New test.
10928 * testsuite/libgomp.c++/copyin-1.C: New test.
10930 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10932 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10934 * testsuite/libgomp.fortran/workshare1.f90: New test.
10936 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10938 * libgomp.fortran/sharing1.f90: New test.
10940 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10943 * testsuite/libgomp.c++/loop-7.C: New test.
10945 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10947 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10948 * testsuite/libgomp.fortran/reduction6.f90: New test.
10949 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10951 2005-10-23 Richard Henderson <rth@redhat.com>
10953 * testsuite/libgomp.c++/ctor-1.C: New.
10954 * testsuite/libgomp.c++/ctor-2.C: New.
10955 * testsuite/libgomp.c++/ctor-3.C: New.
10956 * testsuite/libgomp.c++/ctor-4.C: New.
10957 * testsuite/libgomp.c++/ctor-5.C: New.
10958 * testsuite/libgomp.c++/ctor-6.C: New.
10959 * testsuite/libgomp.c++/ctor-7.C: New.
10960 * testsuite/libgomp.c++/ctor-8.C: New.
10961 * testsuite/libgomp.c++/ctor-9.C: New.
10963 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10966 * testsuite/libgomp.c++/pr24455-1.C: New test.
10967 * testsuite/libgomp.c++/pr24455.C: New test.
10968 * testsuite/libgomp.dg/pr24455-1.c: New test.
10969 * testsuite/libgomp.dg/pr24455.c: New test.
10971 2005-10-20 Richard Henderson <rth@redhat.com>
10973 * testsuite/libgomp.c++/loop-6.C: New.
10974 * testsuite/libgomp.dg/loop-3.c: New.
10976 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10978 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10979 explicitly private.
10980 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10983 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10985 * testsuite/libgomp.fortran/jacobi.f: New test.
10987 2005-10-19 Richard Henderson <rth@redhat.com>
10989 * configure.tgt (i?86-linux): Default to with_arch instead of
10990 CFLAGS. Add -mtune to match target_cpu.
10991 (x86_64-linux): Tune to i686.
10993 * fortran.c (omp_test_nest_lock_): Fix typo.
10995 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10997 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10998 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10999 * testsuite/libgomp.dg/ordered-3.c: New test.
11001 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
11002 Remove volatile keyword.
11004 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
11005 in COMMON block to avoid warnings on 64-bit targets.
11007 2005-10-18 Diego Novillo <dnovillo@redhat.com>
11009 * testsuite/libgomp.dg/shared-3.c: New test.
11011 2005-10-18 Jakub Jelinek <jakub@redhat.com>
11013 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
11014 * testsuite/libgomp.fortran/reduction5.f90: New test.
11016 2005-10-18 Jakub Jelinek <jakub@redhat.com>
11018 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
11020 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
11021 flush loop now that __sync_synchronize has proper memory barrier.
11022 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
11023 Add -ffixed-form to dg-options.
11025 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11027 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
11028 from subdirectories.
11029 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
11030 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
11031 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
11032 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
11033 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
11034 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
11035 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
11036 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
11037 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
11038 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
11039 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
11040 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
11041 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
11042 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
11043 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
11044 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
11045 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
11046 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
11047 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
11048 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
11049 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
11050 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
11051 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
11052 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
11053 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
11055 2005-10-17 Jakub Jelinek <jakub@redhat.com>
11057 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
11058 lang_library_path exists. Use find instead of glob to gather tests.
11059 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
11061 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11063 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
11064 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
11065 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
11066 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
11067 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
11068 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
11069 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
11070 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
11071 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
11072 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
11073 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
11074 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
11075 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
11077 2005-10-15 Jakub Jelinek <jakub@redhat.com>
11079 * testsuite/libgomp.dg/vla-1.c: New test.
11081 * testsuite/libgomp.fortran/reference2.f90: New test.
11083 * testsuite/libgomp.fortran/character2.f90: Remove explicit
11084 declaration of omp_get_thread_num.
11085 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
11088 * testsuite/libgomp.fortran/reduction1.f90: New test.
11089 * testsuite/libgomp.fortran/reduction2.f90: New test.
11090 * testsuite/libgomp.fortran/reduction3.f90: New test.
11091 * testsuite/libgomp.fortran/reduction4.f90: New test.
11093 2005-10-13 Richard Henderson <rth@redhat.com>
11095 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
11096 * Makefile.in: Regenerate.
11097 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
11098 * libgomp.h: Include bar.h.
11099 (struct gomp_barrier): Remove.
11100 (struct gomp_team): Add barrier. Replace master_barrier with
11101 master_release. Replace threads with ordered_release.
11102 (struct gomp_thread): Replace barrier with release.
11103 * ordered.c (gomp_ordered_first): Update for ordered_release change.
11104 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
11105 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
11106 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
11107 (GOMP_single_copy_end): Likewise.
11108 * team.c (gomp_threads_dock): New.
11109 (gomp_barrier_init, gomp_barrier_destroy): Remove.
11110 (gomp_thread_start): Use gomp_barrier_wait.
11111 (new_team, free_team): Update for gomp_team changes.
11112 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
11113 (gomp_team_end): Use gomp_barrier_wait.
11114 (initialize_team): Update for gomp_thread changes.
11115 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
11116 (gomp_work_share_end_nowait): Use atomic ops when available.
11117 * config/linux/bar.c, config/linux/bar.h: New files.
11118 * config/posix/bar.c, config/posix/bar.h: New files.
11120 2005-10-13 Jakub Jelinek <jakub@redhat.com>
11122 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
11123 * testsuite/libgomp.dg/single-2.c: New test.
11125 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
11126 lang_link_flags): Unset, so that they aren't inherited from previously
11129 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
11131 2005-10-12 Richard Henderson <rth@redhat.com>
11133 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
11134 (libgomp_init): Use lang_test_file, lang_library_path, and
11135 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
11137 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
11138 (lang_test_file, lang_link_flags): New.
11139 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
11141 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
11142 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
11143 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
11144 testsuite/libgomp.c++/parallel-1.C,
11145 testsuite/libgomp.c++/reduction-1.C,
11146 testsuite/libgomp.c++/reduction-2.C,
11147 testsuite/libgomp.c++/reduction-3.C,
11148 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
11149 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
11150 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
11151 New files, largely cribbed from the C testsuite.
11153 2005-10-12 Jakub Jelinek <jakub@redhat.com>
11155 * testsuite/libgomp.fortran/character1.f90: New test.
11156 * testsuite/libgomp.fortran/character2.f90: New test.
11158 * testsuite/libgomp.dg/nested-1.c: New test.
11159 * testsuite/libgomp.dg/nested-2.c: New test.
11160 * testsuite/libgomp.fortran/do1.f90: New test.
11161 * testsuite/libgomp.fortran/do2.f90: New test.
11163 * testsuite/libgomp.fortran/reference1.f90: New test.
11165 2005-10-11 Jakub Jelinek <jakub@redhat.com>
11167 * testsuite/libgomp.dg/reduction-1.c: New test.
11168 * testsuite/libgomp.dg/reduction-2.c: New test.
11169 * testsuite/libgomp.dg/reduction-3.c: New test.
11171 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11173 * testsuite/libgomp.dg/atomic-1.c: New test.
11174 * testsuite/libgomp.dg/atomic-2.c: New test.
11176 2005-10-09 Richard Henderson <rth@redhat.com>
11178 * critical.c (atomic_lock): New.
11179 (initialize_critical): Initialize it.
11180 (GOMP_atomic_start, GOMP_atomic_end): New.
11181 * libgomp.map: Export them.
11182 * libgomp_g.h: Declare them.
11184 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11186 2005-10-02 Richard Henderson <rth@redhat.com>
11188 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11189 to XCFLAGS instead of CFLAGS.
11191 2005-09-30 Richard Henderson <rth@redhat.com>
11193 * configure.ac: Determine whether -pthread or -lpthread is needed.
11194 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11195 * Makefine.in, configure: Rebuild.
11197 2005-09-28 Richard Henderson <rth@redhat.com>
11199 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11200 * testsuite/libgomp.dg/omp-single-3.c: New test.
11202 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11204 * testsuite/libgomp.dg/omp-single-2.c: New test.
11205 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11207 2005-09-27 Richard Henderson <rth@redhat.com>
11209 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11210 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11212 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11214 * testsuite/libgomp.dg/omp-loop03.c: New test.
11216 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11218 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11220 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11222 * testsuite/libgomp.dg/omp-single-1.c: New test.
11223 * testsuite/libgomp.dg/shared-1.c: Return 0.
11224 Add prototype for abort.
11225 * testsuite/libgomp.dg/shared-2.c: Likewise.
11227 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11229 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11232 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11234 * testsuite/libgomp.dg/shared-1.c: New test.
11235 * testsuite/libgomp.dg/shared-2.c: New test.
11237 2005-09-24 Richard Henderson <rth@redhat.com>
11239 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11241 2005-09-24 Richard Henderson <rth@redhat.com>
11243 * iter.c (gomp_iter_static_next): Round up when computing number
11244 of iterations. Don't bother distributing a remainder equally.
11246 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11247 Don't call srand. Zero b before testing.
11250 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11252 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11253 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11255 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11257 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11258 without !$omp end do, followed immediately by subroutine end.
11260 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11262 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11264 2005-09-22 Richard Henderson <rth@redhat.com>
11266 * critical.c (GOMP_critical_name_start): Change argument to void**.
11267 Reuse the pointer space if the mutex fits.
11268 (GOMP_critical_name_end): Likewise.
11269 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11270 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11271 (GOMP_critical_name_end): Likewise.
11272 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11273 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11275 2005-09-20 Richard Henderson <rth@redhat.com>
11277 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11278 (create_lock_lock): New.
11279 (initialize_critical): Initialize it.
11280 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11281 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11283 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11285 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11287 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11289 * testsuite/libgomp.dg/omp-loop01.c: New test.
11290 * testsuite/libgomp.dg/omp-loop02.c: New test.
11292 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11294 * configure.ac (AC_PROG_FC): Add.
11295 (USE_FORTRAN): New automake conditional.
11296 * configure: Rebuilt.
11297 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11298 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11299 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11300 Add rules to build them.
11301 * Makefile.in: Rebuilt.
11302 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11303 OMP_NEST_LOCK_KIND.
11304 * libgomp.map: Add Fortran wrappers.
11305 * libgomp_f.h.in: New file.
11306 * omp_lib.h.in: New file.
11307 * omp_lib.f90.in: New file.
11308 * fortran.c: New file.
11309 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11310 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11311 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11312 libgfortran has been built.
11313 * testsuite/libgomp.fortran/fortran.exp: New file.
11314 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11315 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11316 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11317 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11318 * testsuite/libgomp.fortran/omp_hello.f: New test.
11319 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11320 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11321 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11322 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11323 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11324 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11325 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11326 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11328 2005-08-30 Richard Henderson <rth@redhat.com>
11330 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11331 function for when aliases are not usable.
11332 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11333 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11334 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11335 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11336 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11337 GOMP_loop_ordered_guided_next): Likewise.
11338 * ordered.c (GOMP_ordered_start): Likewise.
11340 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11342 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11343 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11344 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11345 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11346 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11347 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11348 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11349 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11350 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11352 2005-07-07 Eric Christopher <echristo@redhat.com>
11353 Diego Novillo <dnovillo@redhat.com>
11355 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11356 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11358 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11359 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11360 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11361 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11362 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11363 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11364 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11366 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11368 * TOPLEVEL.patch: Remove.
11370 2005-05-16 Richard Henderson <rth@redhat.com>
11372 * configure.ac: Test for clock_gettime.
11373 * config.h.in, configure: Rebuild.
11374 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11375 (omp_get_wtime): Use clock_gettime if available.
11376 (omp_get_wtick): Use clock_getres if available.
11378 2005-05-11 Richard Henderson <rth@redhat.com>
11380 * config/linux/ia64/futex.h: New file.
11381 * configure.tgt: Use it.
11383 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11385 2005-05-07 Richard Henderson <rth@redhat.com>
11387 * config/linux/powerpc/futex.h: New file.
11388 * configure.tgt: Use it.
11390 * config/linux/i486/futex.h: Merge ...
11391 * config/linux/x86_64/futex.h: ... into ...
11392 * config/linux/x86/futex.h: ... here.
11393 * configure.tgt: Update to match.
11395 2005-05-06 Richard Henderson <rth@redhat.com>
11397 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11398 * config/linux/i486/futex.h: Likewise.
11399 * config/linux/x86_64/futex.h: Likewise.
11401 * config/linux/lock.c: New file.
11402 * config/linux/omp-lock.h: New file.
11404 * critical.c, env.h: Don't include omp.h
11405 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11406 * config/posix/time.c: Likewise.
11407 * config/posix/omp-lock.h: New file.
11408 * libgomp.h: Include omp-lock.h and omp.h.
11409 * Makefile.am (nodist_include_HEADERS): New.
11411 * configure.ac (PERL): New.
11412 * mkomp_h.pl: New file.
11413 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11415 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11417 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11418 build directory. Re-add -march=i486 hack.
11420 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11421 (libgomp_link_flags): Remove.
11422 (libgomp_initialized): Remove.
11423 (libgomp_init): Don't protect from reinitialization. Copy code
11424 from libstdc++ for getting the multilib set correctly.
11426 2005-05-05 Richard Henderson <rth@redhat.com>
11428 * config/linux/alpha/futex.h: New file.
11429 * configure.tgt (alpha*-*-linux*): Use it.
11431 * config/posix/mutex.c: New file.
11432 * config/posix/sem.c: Use libgomp.h.
11434 * configure.tgt (x86_64-linux): Also test CC for -m32.
11435 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11437 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11440 * Makefile.am (SUBDIRS): New.
11441 (libgomp_la_LDFLAGS): Add -lpthread.
11442 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11443 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11445 * libgomp_g.h: New file.
11446 * libgomp.h: Split out all public declarations to libgomp_g.h.
11447 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11448 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11449 * config/linux/sem.h: Likewise.
11450 * config/posix/sem.h: Likewise.
11452 * Makefile.am (AM_LDFLAGS): New.
11453 (libgomp_version_script): Split out from ...
11454 (libgomp_la_LDFLAGS): ... here.
11455 (libgomp_version_info): New.
11456 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11457 (LIBGOMP_ENABLE): New.
11458 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11459 (LIBGOMP_ENABLE_SYMVERS): New.
11460 * configure.ac (AC_INIT): Version 1.0.
11461 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11462 (enable-linux-futex): Likewise. Rename from enable-futex.
11463 (libtool_VERSION): New.
11464 (LIBGOMP_ENABLE_SYMVERS): Use it.
11465 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11466 * Makefile.in, aclocal.m4, configure: Rebuild.
11468 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11469 (gomp_mutex_unlock_slow): Fix typo.
11470 * config/linux/sem.c: Similarly.
11471 (gomp_sem_post_slow): Fix typo.
11472 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11473 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11474 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11476 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11477 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11478 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11479 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11480 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11481 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11482 LDFLAGS. Pull enable_futex check to top-level.
11483 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11484 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11486 First attempt at real configury.
11487 * Makefile, config.h: Remove file.
11488 * Makefile.am, Makefile.in: New file.
11489 * acinclude.m4 aclocal.m4: New file.
11490 * configure.ac, configure.tgt, configure: New file.
11492 * config/posix/lock.c: Rename from sys-lock.c.
11493 * config/posix/mutex.h: Rename from sys-mutex.h.
11494 * config/posix/sem.c: Rename from sys-sem.c.
11495 * config/posix/sem.h: Rename from sys-sem.h.
11496 * config/posix/proc.c: Rename from sys-proc.c.
11497 * config/posix/time.c: Rename from sys-proc.c.
11499 * config/linux/mutex.c: New file.
11500 * config/linux/mutex.h: New file.
11501 * config/linux/sem.c: New file.
11502 * config/linux/sem.h: New file.
11503 * config/linux/i486/futex.h: New file.
11504 * config/linux/x86_64/futex.h: New file.
11506 2005-05-04 Richard Henderson <rth@redhat.com>
11508 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11509 * libgomp.h: Declare them.
11510 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11511 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11513 2005-05-04 Richard Henderson <rth@redhat.com>
11515 * libgomp-1 code drop
11517 2005-05-04 Richard Henderson <rth@redhat.com>
11519 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11520 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11521 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11522 (gomp_iter_static_next): Update.
11523 (gomp_ordered_static_next): Update.
11524 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11525 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11526 totally empty range.
11527 (gomp_loop_ordered_static_next): Refine test for calling
11528 gomp_ordered_static_next.
11529 * testsuite/ordered-1.c: Add case for more threads than iterations.
11531 * iter.c (gomp_iter_runtime_next_locked): Remove.
11532 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11533 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11534 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11535 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11536 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11537 gomp_loop_ordered_guided_next): Downcase name, make static, add
11538 an external alias with the old name.
11539 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11540 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11541 switch and call one of the above static functions.
11542 * libgomp.h: Update.
11544 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11545 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11546 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11547 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11548 GOMP_loop_ordered_guided_start): Update to match.
11549 * sections.c (GOMP_sections_start): Likewise.
11550 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11552 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11553 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11554 Use bounds check instead of modulus.
11555 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11556 (gomp_ordered_last): Don't sync with ordered_owner here.
11557 (gomp_ordered_next): Likewise.
11558 (gomp_ordered_static_loop_next): Likewise.
11559 * loop.c, libgomp.h: Update to match.
11561 * libgomp.h (GOMP_barrier): Declare.
11563 * testsuite/barrier-1.c: New file.
11564 * testsuite/critical-1.c: New file.
11565 * testsuite/ordered-2.c: New file.
11566 * testsuite/ordered-1.c: New file.
11567 * testsuite/sections-1.c: New file.
11568 * testsuite/single-1.c: New file.
11569 * testsuite/Makefile (TESTS): Add them.
11571 2005-05-04 Richard Henderson <rth@redhat.com>
11573 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11574 * loop.c (GOMP_loop_static_start): If not the startup thread,
11575 acquire the mutex to wait for initialization complete.
11576 (GOMP_loop_ordered_static_start): Likewise.
11577 (GOMP_loop_ordered_runtime_start): Likewise.
11578 (GOMP_loop_ordered_static_first): Remove.
11579 (GOMP_loop_ordered_dynamic_first): Remove.
11580 (GOMP_loop_ordered_guided_first): Remove.
11581 (GOMP_loop_ordered_runtime_first): Remove.
11582 * ordered.c (gomp_ordered_loop_first): Post to own release when
11583 we're the first thread.
11584 (gomp_ordered_loop_last): Wait on release if not owner.
11585 (gomp_ordered_loop_next): Likewise.
11586 (gomp_ordered_static_loop_init): New.
11587 (gomp_ordered_static_loop_next): Use ordered_owner.
11588 (GOMP_ordered_start): Likewise.
11589 * work.c (gomp_new_work_share): Initialize ordered_owner.
11591 2005-05-03 Richard Henderson <rth@redhat.com>
11593 * Makefile (OPT): New.
11596 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11597 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11598 * libgomp.h, libgomp.map, NOTES: Update to match.
11600 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11601 Add initialized and thr members.
11602 (gomp_thread_start): Pause when initially spawned to wait for
11603 the whole team to be created.
11604 (gomp_team_start): Release team members at the end.
11606 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11607 (f_foo_1): Use GOMP_loop_end.
11608 (f_foo_2): Use GOMP_loop_end_nowait.
11610 * testsuite/loop-2.c: New file.
11611 * testsuite/Makefile (TESTS): Add it.
11613 2005-05-03 Richard Henderson <rth@redhat.com>
11615 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11616 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11617 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11618 initial work_share.
11620 * testsuite/Makefile: New file.
11621 * testsuite/loop-1.c: New file.
11623 2005-05-03 Richard Henderson <rth@redhat.com>
11625 Initial implementation and checkin.
11627 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11629 Copying and distribution of this file, with or without modification,
11630 are permitted in any medium without royalty provided the copyright
11631 notice and this notice are preserved.