1 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
3 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5 (goacc_insert_pointer): ... from here, "present" case.
6 (goacc_insert_pointer): Inline function into...
7 (GOACC_enter_exit_data): ... here, and simplify.
9 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
11 (goacc_insert_pointer): ... from here, "not present" case.
13 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
16 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
17 'goacc_enter_data', 'goacc_exit_data'.
19 * oacc-mem.c (delete_copyout): Refactor into...
20 (goacc_exit_data): ... this. Adjust all users.
22 * oacc-mem.c (present_create_copy): Refactor into...
23 (goacc_enter_data): ... this. Adjust all users.
25 * target.c (gomp_unmap_vars_internal): Add a safeguard to
28 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
34 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
36 (GOACC_enter_exit_data): Simplify accordingly.
37 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
39 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
40 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
42 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
44 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
45 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
47 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
49 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
51 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
55 * oacc-mem.c (acc_map_data, present_create_copy)
56 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
57 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
58 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
59 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
60 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
61 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
62 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
63 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
66 * target.c (gomp_unmap_tgt): Make it 'static'.
67 * libgomp.h (gomp_unmap_tgt): Remove.
69 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
72 * testsuite/libgomp.c/pr86416-1.c: New.
73 * testsuite/libgomp.c/pr86416-2.c: New.
75 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
77 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
78 all symbols as public except for the 'use …, only' imported symbol,
80 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
81 all symbols from module openacc_kinds as PUBLIC
82 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
84 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
86 2019-12-13 Julian Brown <julian@codesourcery.com>
90 * libgomp.h (gomp_remove_var_async): Add prototype.
91 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
93 * target.c (gomp_unref_tgt): Change return type to bool, indicating
94 whether target_mem_desc was unmapped.
95 (gomp_unref_tgt_void): New.
96 (gomp_remove_var): Reimplement in terms of...
97 (gomp_remove_var_internal): ...this new helper function.
98 (gomp_remove_var_async): New, implemented using above helper function.
99 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
102 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
104 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
105 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
106 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
107 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
108 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
110 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
111 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
113 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
115 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
116 as public except for the 'use …, only' imported symbol, which is
118 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
119 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
120 attributes for acc_copyout_finalize and acc_delete_finalize.
122 2019-12-11 Jakub Jelinek <jakub@redhat.com>
125 * testsuite/libgomp.fortran/atomic1.f90: New test.
127 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
130 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
131 reference counting for structured 'REFCOUNT_INFINITY'. Add some
133 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
134 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
135 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
136 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
137 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
139 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
140 * oacc-mem.c: ... here.
141 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
142 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
143 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
145 * libgomp_g.h: Update.
147 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
148 * oacc-async.c: ... here.
149 * oacc-int.h (goacc_wait): Declare.
150 * libgomp_g.h: Update
153 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
155 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
157 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
159 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
161 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
163 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
166 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
167 Julian Brown <julian@codesourcery.com>
169 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
170 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
172 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
174 * omp_lib.h.in: Fix spelling of function declaration
175 omp_get_cancell(l)ation.
176 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
178 * env.c: Fix comment typos.
179 * oacc-host.c: Likewise.
180 * ordered.c: Likewise.
183 * config/gcn/task.c: Likewise.
184 * config/gcn/team.c: Likewise.
185 * config/nvptx/task.c: Likewise.
186 * config/nvptx/team.c: Likewise.
187 * plugin/plugin-gcn.c: Likewise.
188 * testsuite/libgomp.fortran/jacobi.f: Likewise.
189 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
192 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
194 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
195 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
196 unnecessary 'dg-additional-options "-w"'.
198 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
199 Julian Brown <julian@codesourcery.com>
204 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
205 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
207 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
209 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
211 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
213 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
216 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
217 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
219 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
221 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
223 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
225 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
227 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
229 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
230 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
241 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
242 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
243 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
245 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
247 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
249 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
250 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
253 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
255 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
257 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
259 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
261 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
262 ... with their content moved into, and extended in this new file.
263 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
265 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
267 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
269 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
272 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
275 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
277 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
279 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
281 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
283 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
285 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
286 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
287 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
288 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
290 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
291 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
293 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
295 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
297 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
298 Kwok Cheung Yeung <kcy@codesourcery.com>
300 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
301 if input it a NULL pointer.
302 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
303 diagnostic of NULL pointer.
304 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
305 * testsuite/libgomp.fortran/optional-map.f90: New.
306 * testsuite/libgomp.fortran/use_device_addr-1.f90
307 (test_dummy_opt_callee_1_absent): New.
308 (test_dummy_opt_call_1): Call it.
309 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
310 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
311 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
312 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
313 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
314 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
315 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
316 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
317 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
318 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
319 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
320 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
321 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
322 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
323 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
324 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
326 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
328 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
329 expect dg-output of 'Error termination.' for GCN.
330 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
331 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
333 2019-12-04 Jakub Jelinek <jakub@redhat.com>
336 * testsuite/libgomp.fortran/teams1.f90: New test.
337 * testsuite/libgomp.fortran/teams2.f90: New test.
339 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
341 * oacc-init.c (acc_known_device_type): Add function.
342 (unknown_device_type_error): Add function.
343 (name_of_acc_device_t): Change to call unknown_device_type_error
345 (resolve_device): Use acc_known_device_type.
346 (acc_init): Fail if acc_device_t argument is not valid.
347 (acc_shutdown): Likewise.
348 (acc_get_num_devices): Likewise.
349 (acc_set_device_type): Likewise.
350 (acc_get_device_num): Likewise.
351 (acc_set_device_num): Likewise.
352 (acc_on_device): Add comment that argument validity is not checked.
354 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
356 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
358 (check_effective_target_openacc_amdgcn_accel_present): New proc.
359 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
360 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
361 * testsuite/libgomp.oacc-c/c.exp: Likewise.
362 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
364 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
367 * configure.tgt: Avoid IE tls on *-*-musl*.
369 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
371 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
372 adding a common-block test case.
374 2019-11-29 Jakub Jelinek <jakub@redhat.com>
377 * testsuite/libgomp.c++/udr-20.C: New test.
378 * testsuite/libgomp.c++/udr-21.C: New test.
380 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
382 * testsuite/lib/libgomp.exp
383 (check_effective_target_offload_target_nvptx): New proc.
384 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
386 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
387 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
388 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
390 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
392 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
393 * testsuite/libgomp.c/pr39591-2.c: Likewise.
394 * testsuite/libgomp.c/pr39591-3.c: Likewise.
395 * testsuite/libgomp.c/private-1.c: Likewise.
396 * testsuite/libgomp.c/task-1.c: Likewise.
397 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
399 2019-11-20 Julian Brown <julian@codesourcery.com>
401 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
403 (queue_push_launch): Lock aq->mutex before calling
404 wait_for_queue_nonfull.
405 (queue_push_callback): Likewise.
406 (queue_push_asyncwait): Likewise.
407 (queue_push_placeholder): Likewise.
409 2019-11-20 Julian Brown <julian@codesourcery.com>
411 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
412 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
413 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
416 2019-11-20 Julian Brown <julian@codesourcery.com>
420 * oacc-mem.c (present_create_copy): Fix device pointer return value in
421 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
422 in non-present/create case.
423 (delete_copyout): Change error condition to fail only on copies outside
424 of mapped block. Adjust error message accordingly.
425 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
426 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
427 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
429 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
430 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
431 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
433 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
435 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
436 libatomic in build-tree testing.
438 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
440 * testsuite/Makefile.in: Regenerate.
442 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
444 * testsuite/libgomp.c/target-print-1.c: New file.
445 * testsuite/libgomp.fortran/target-print-1.f90: New file.
446 * testsuite/libgomp.oacc-c/print-1.c: New file.
447 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
449 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
450 Kwok Cheung Yeung <kcy@codesourcery.com>
451 Julian Brown <julian@codesourcery.com>
452 Tom de Vries <tom@codesourcery.com>
454 * plugin/Makefrag.am: Add amdgcn plugin support.
455 * plugin/configfrag.ac: Likewise.
456 * plugin/plugin-gcn.c: New file.
457 * configure: Regenerate.
458 * Makefile.in: Regenerate.
459 * testsuite/Makefile.in: Regenerate.
461 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
463 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
464 and use team_malloc variants.
465 (gomp_gcn_exit_kernel): Use team_free.
466 * libgomp.h (TEAM_ARENA_SIZE): Define.
467 (TEAM_ARENA_START): Define.
468 (TEAM_ARENA_FREE): Define.
469 (TEAM_ARENA_END): Define.
470 (team_malloc): New function.
471 (team_malloc_cleared): New function.
472 (team_free): New function.
473 * team.c (gomp_new_team): Initialize and use team_malloc.
474 (free_team): Use team_free.
475 (gomp_free_thread): Use team_free.
476 (gomp_pause_host): Use team_free.
477 * work.c (gomp_init_work_share): Use team_malloc.
478 (gomp_fini_work_share): Use team_free.
480 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
481 Kwok Cheung Yeung <kcy@codesourcery.com>
482 Julian Brown <julian@codesourcery.com>
483 Tom de Vries <tom@codesourcery.com>
485 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
486 * Makefile.in: Regenerate.
487 * config.h.in (PLUGIN_GCN): Add new undef.
488 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
489 * config/gcn/affinity-fmt.c: New file.
490 * config/gcn/bar.c: New file.
491 * config/gcn/bar.h: New file.
492 * config/gcn/doacross.h: New file.
493 * config/gcn/icv-device.c: New file.
494 * config/gcn/oacc-target.c: New file.
495 * config/gcn/simple-bar.h: New file.
496 * config/gcn/target.c: New file.
497 * config/gcn/task.c: New file.
498 * config/gcn/team.c: New file.
499 * config/gcn/time.c: New file.
500 * configure.ac: Add amdgcn*-*-*.
501 * configure: Regenerate.
502 * configure.tgt: Add amdgcn*-*-*.
503 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
504 * libgomp.h (gcn_thrs): Add amdgcn variant.
505 (set_gcn_thrs): Likewise.
506 (gomp_thread): Likewise.
507 * oacc-int.h (goacc_thread): Likewise.
508 * oacc-target.c: New file.
509 * openacc.f90 (acc_device_gcn): New parameter.
510 * openacc.h (acc_device_t): Add acc_device_gcn.
511 * team.c (gomp_free_pool_helper): Add amdgcn support.
513 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
514 Julian Brown <julian@codesourcery.com>
516 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
518 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
520 * oacc-host.c (host_openacc_async_construct): Add device parameter.
521 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
524 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
526 * configure.tgt (nvptx*-*-*): Add "accel" directory.
527 * config/nvptx/libgomp-plugin.c: Move ...
528 * config/accel/libgomp-plugin.c: ... to here.
529 * config/nvptx/lock.c: Move ...
530 * config/accel/lock.c: ... to here.
531 * config/nvptx/mutex.c: Move ...
532 * config/accel/mutex.c: ... to here.
533 * config/nvptx/mutex.h: Move ...
534 * config/accel/mutex.h: ... to here.
535 * config/nvptx/oacc-async.c: Move ...
536 * config/accel/oacc-async.c: ... to here.
537 * config/nvptx/oacc-cuda.c: Move ...
538 * config/accel/oacc-cuda.c: ... to here.
539 * config/nvptx/oacc-host.c: Move ...
540 * config/accel/oacc-host.c: ... to here.
541 * config/nvptx/oacc-init.c: Move ...
542 * config/accel/oacc-init.c: ... to here.
543 * config/nvptx/oacc-mem.c: Move ...
544 * config/accel/oacc-mem.c: ... to here.
545 * config/nvptx/oacc-plugin.c: Move ...
546 * config/accel/oacc-plugin.c: ... to here.
547 * config/nvptx/omp-lock.h: Move ...
548 * config/accel/omp-lock.h: ... to here.
549 * config/nvptx/openacc.f90: Move ...
550 * config/accel/openacc.f90: ... to here.
551 * config/nvptx/pool.h: Move ...
552 * config/accel/pool.h: ... to here.
553 * config/nvptx/proc.c: Move ...
554 * config/accel/proc.c: ... to here.
555 * config/nvptx/ptrlock.c: Move ...
556 * config/accel/ptrlock.c: ... to here.
557 * config/nvptx/ptrlock.h: Move ...
558 * config/accel/ptrlock.h: ... to here.
559 * config/nvptx/sem.c: Move ...
560 * config/accel/sem.c: ... to here.
561 * config/nvptx/sem.h: Move ...
562 * config/accel/sem.h: ... to here.
563 * config/nvptx/thread-stacksize.h: Move ...
564 * config/accel/thread-stacksize.h: ... to here.
566 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
567 Tobias Burnus <tobias@codesourcery.com>
568 Frederik Harwath <frederik@codesourcery.com>
569 Thomas Schwinge <thomas@codesourcery.com>
572 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
573 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
574 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
576 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
577 Kwok Cheung Yeung <kcy@codesourcery.com>
579 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
580 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
582 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
584 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
586 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
588 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
589 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
591 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
593 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
594 Add expected warnings about missing reduction clauses.
595 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
597 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
599 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
602 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
604 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
605 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
606 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
607 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
608 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
609 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
611 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
614 * testsuite/libgomp.fortran/allocatable2.f90: Use
615 unique numbers with 'stop'.
616 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
617 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
618 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
619 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
620 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
622 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
624 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
625 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
626 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
627 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
628 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
629 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
631 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
633 * testsuite/libgomp.fortran/target9.f90: New.
635 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
637 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
638 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
639 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
640 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
641 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
642 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
643 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
644 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
645 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
646 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
647 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
648 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
649 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
650 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
651 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
652 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
653 * testsuite/libgomp.fortran/associate1.f90: Ditto.
654 * testsuite/libgomp.fortran/associate2.f90: Ditto.
655 * testsuite/libgomp.fortran/associate3.f90: Ditto.
656 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
657 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
658 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
659 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
660 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
661 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
662 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
663 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
664 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
665 * testsuite/libgomp.fortran/character1.f90: Ditto.
666 * testsuite/libgomp.fortran/character2.f90: Ditto.
667 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
668 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
669 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
670 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
671 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
672 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
673 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
674 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
675 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
676 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
677 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
678 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
679 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
680 * testsuite/libgomp.fortran/do1.f90: Ditto.
681 * testsuite/libgomp.fortran/do2.f90: Ditto.
682 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
683 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
684 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
685 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
686 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
687 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
688 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
689 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
690 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
691 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
692 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
693 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
694 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
695 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
696 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
697 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
698 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
699 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
700 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
701 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
702 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
703 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
704 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
705 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
706 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
707 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
708 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
709 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
710 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
711 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
712 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
713 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
714 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
715 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
716 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
717 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
718 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
719 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
720 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
721 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
722 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
723 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
724 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
725 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
726 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
727 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
728 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
729 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
730 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
731 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
732 * testsuite/libgomp.fortran/lib1.f90: Ditto.
733 * testsuite/libgomp.fortran/lib4.f90: Ditto.
734 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
735 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
736 * testsuite/libgomp.fortran/nested1.f90: Ditto.
737 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
738 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
739 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
740 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
741 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
742 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
743 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
744 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
745 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
746 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
747 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
748 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
749 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
750 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
751 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
752 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
753 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
754 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
755 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
756 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
757 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
758 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
759 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
760 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
761 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
762 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
763 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
764 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
765 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
766 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
767 * testsuite/libgomp.fortran/pr28390.f: Ditto.
768 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
769 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
770 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
771 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
772 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
773 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
774 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
775 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
776 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
777 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
778 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
779 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
780 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
781 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
782 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
783 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
784 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
785 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
786 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
787 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
788 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
789 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
790 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
791 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
792 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
793 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
794 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
795 * testsuite/libgomp.fortran/reference1.f90: Ditto.
796 * testsuite/libgomp.fortran/reference2.f90: Ditto.
797 * testsuite/libgomp.fortran/retval1.f90: Ditto.
798 * testsuite/libgomp.fortran/retval2.f90: Ditto.
799 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
800 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
801 * testsuite/libgomp.fortran/simd1.f90: Ditto.
802 * testsuite/libgomp.fortran/simd2.f90: Ditto.
803 * testsuite/libgomp.fortran/simd3.f90: Ditto.
804 * testsuite/libgomp.fortran/simd4.f90: Ditto.
805 * testsuite/libgomp.fortran/simd5.f90: Ditto.
806 * testsuite/libgomp.fortran/simd6.f90: Ditto.
807 * testsuite/libgomp.fortran/simd7.f90: Ditto.
808 * testsuite/libgomp.fortran/stack.f90: Ditto.
809 * testsuite/libgomp.fortran/strassen.f90: Ditto.
810 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
811 * testsuite/libgomp.fortran/tabs2.f: Ditto.
812 * testsuite/libgomp.fortran/target1.f90: Ditto.
813 * testsuite/libgomp.fortran/target2.f90: Ditto.
814 * testsuite/libgomp.fortran/target3.f90: Ditto.
815 * testsuite/libgomp.fortran/target4.f90: Ditto.
816 * testsuite/libgomp.fortran/target5.f90: Ditto.
817 * testsuite/libgomp.fortran/target6.f90: Ditto.
818 * testsuite/libgomp.fortran/target7.f90: Ditto.
819 * testsuite/libgomp.fortran/target8.f90: Ditto.
820 * testsuite/libgomp.fortran/task1.f90: Ditto.
821 * testsuite/libgomp.fortran/task2.f90: Ditto.
822 * testsuite/libgomp.fortran/task3.f90: Ditto.
823 * testsuite/libgomp.fortran/task4.f90: Ditto.
824 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
825 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
826 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
827 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
828 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
829 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
830 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
831 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
832 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
833 * testsuite/libgomp.fortran/udr1.f90: Ditto.
834 * testsuite/libgomp.fortran/udr10.f90: Ditto.
835 * testsuite/libgomp.fortran/udr11.f90: Ditto.
836 * testsuite/libgomp.fortran/udr12.f90: Ditto.
837 * testsuite/libgomp.fortran/udr13.f90: Ditto.
838 * testsuite/libgomp.fortran/udr14.f90: Ditto.
839 * testsuite/libgomp.fortran/udr15.f90: Ditto.
840 * testsuite/libgomp.fortran/udr2.f90: Ditto.
841 * testsuite/libgomp.fortran/udr3.f90: Ditto.
842 * testsuite/libgomp.fortran/udr4.f90: Ditto.
843 * testsuite/libgomp.fortran/udr5.f90: Ditto.
844 * testsuite/libgomp.fortran/udr6.f90: Ditto.
845 * testsuite/libgomp.fortran/udr7.f90: Ditto.
846 * testsuite/libgomp.fortran/udr8.f90: Ditto.
847 * testsuite/libgomp.fortran/udr9.f90: Ditto.
848 * testsuite/libgomp.fortran/vla1.f90: Ditto.
849 * testsuite/libgomp.fortran/vla2.f90: Ditto.
850 * testsuite/libgomp.fortran/vla3.f90: Ditto.
851 * testsuite/libgomp.fortran/vla4.f90: Ditto.
852 * testsuite/libgomp.fortran/vla5.f90: Ditto.
853 * testsuite/libgomp.fortran/vla6.f90: Ditto.
854 * testsuite/libgomp.fortran/vla7.f90: Ditto.
855 * testsuite/libgomp.fortran/vla8.f90: Ditto.
856 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
857 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
859 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
861 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
862 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
863 Ditto; add 'dg-do run' for torture testing.
864 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
865 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
866 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
867 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
868 * testsuite/libgomp.fortran/pr28390.f: Ditto.
869 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
870 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
871 * testsuite/libgomp.fortran/task2.f90: Ditto.
872 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
873 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
874 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
875 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
876 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
877 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
879 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
881 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
882 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
883 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
884 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
885 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
886 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
887 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
888 Use 'stop' not abort().
889 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
890 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
891 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
892 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
893 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
894 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
895 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
896 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
897 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
898 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
899 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
900 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
901 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
902 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
903 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
904 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
905 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
907 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
909 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
911 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
913 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
915 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
917 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
919 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
921 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
923 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
925 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
927 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
929 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
931 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
933 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
934 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
935 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
936 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
937 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
938 Likewise and also add 'dg-do run'.
939 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
942 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
943 Tobias Burnus <tobias@codesourcery.com>
945 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
946 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
947 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
949 2019-10-14 Jakub Jelinek <jakub@redhat.com>
952 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
955 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
957 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
958 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
960 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
963 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
966 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
969 * testsuite/libgomp.fortran/fortran.exp: Conditionally
971 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
973 2019-10-09 Jakub Jelinek <jakub@redhat.com>
976 * target.c (gomp_map_vars_internal): Readd the previous
977 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
978 though do that just in the !not_found_cnt case.
980 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
982 * gfortran.dg/gomp/target-simd.f90: New.
984 2019-10-02 Julian Brown <julian@codesourcery.com>
985 Cesar Philippidis <cesar@codesourcery.com>
987 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
988 * target.c (FIELD_TGT_EMPTY): Define.
989 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
990 as switch instead of list of ifs.
991 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
993 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
995 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
996 include. Replace alloca () with __builtin_alloca ().
997 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
999 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1001 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1002 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1003 * oacc-parallel.c: Don't include "libgomp_g.h".
1004 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1005 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1006 * aclocal.m4: Regenerated.
1007 * config.h.in: Regenerated.
1008 * configure: Regenerated.
1009 * Makefile.in: Regenerated.
1011 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1013 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1015 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1017 * configure: Regenerate.
1019 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1021 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1022 string is initialized.
1024 2019-09-06 Florian Weimer <fweimer@redhat.com>
1026 * configure: Regenerate.
1028 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1031 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1032 scanning to conform to the GNU Coding Standards.
1033 * configure: Regenerate.
1035 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.c/scan-21.c: New test.
1039 * testsuite/libgomp.c/scan-22.c: New test.
1041 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1044 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1046 * testsuite/libgomp.c/scan-12.c: Likewise.
1047 * testsuite/libgomp.c/scan-13.c: Likewise.
1048 * testsuite/libgomp.c/scan-14.c: Likewise.
1049 * testsuite/libgomp.c/scan-15.c: Likewise.
1050 * testsuite/libgomp.c/scan-16.c: Likewise.
1051 * testsuite/libgomp.c/scan-17.c: Likewise.
1052 * testsuite/libgomp.c/scan-18.c: Likewise.
1053 * testsuite/libgomp.c/scan-19.c: Likewise.
1054 * testsuite/libgomp.c/scan-20.c: Likewise.
1055 * testsuite/libgomp.c++/scan-9.C: Likewise.
1056 * testsuite/libgomp.c++/scan-10.C: Likewise.
1057 * testsuite/libgomp.c++/scan-11.C: Likewise.
1058 * testsuite/libgomp.c++/scan-12.C: Likewise.
1059 * testsuite/libgomp.c++/scan-14.C: Likewise.
1060 * testsuite/libgomp.c++/scan-15.C: Likewise.
1061 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1062 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1063 * testsuite/libgomp.c++/scan-16.C: Likewise.
1065 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1068 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1069 -std=legacy so invalid code in the test case is accepted.
1071 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1074 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1077 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1079 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1080 perform the lookup in the first loop only if !not_found_cnt, otherwise
1081 perform lookups for it in the second loop guarded with
1082 if (not_found_cnt || has_firstprivate).
1083 * testsuite/libgomp.c/target-37.c: New test.
1084 * testsuite/libgomp.c++/target-22.C: New test.
1086 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1088 * testsuite/libgomp.c/target-18.c (struct S): New type.
1089 (foo): Use use_device_addr clause instead of use_device_ptr clause
1090 where required by OpenMP 5.0, add further tests for both use_device_ptr
1091 and use_device_addr clauses.
1092 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1093 (foo): Use use_device_addr clause instead of use_device_ptr clause
1094 where required by OpenMP 5.0, add further tests for both use_device_ptr
1095 and use_device_addr clauses. Add t and u arguments.
1096 (main): Adjust caller.
1098 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1100 * testsuite/libgomp.c++/loop-13.C: New test.
1101 * testsuite/libgomp.c++/loop-14.C: New test.
1102 * testsuite/libgomp.c++/loop-15.C: New test.
1104 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1107 * testsuite/libgomp.c++/for-27.C: New test.
1109 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1111 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1112 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1114 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1116 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1118 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1120 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1121 * testsuite/libgomp.c++/scan-16.C: Likewise.
1123 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1125 * testsuite/libgomp.c/scan-19.c: New test.
1126 * testsuite/libgomp.c/scan-20.c: New test.
1128 * testsuite/libgomp.c/scan-11.c: New test.
1129 * testsuite/libgomp.c/scan-12.c: New test.
1130 * testsuite/libgomp.c/scan-13.c: New test.
1131 * testsuite/libgomp.c/scan-14.c: New test.
1132 * testsuite/libgomp.c/scan-15.c: New test.
1133 * testsuite/libgomp.c/scan-16.c: New test.
1134 * testsuite/libgomp.c/scan-17.c: New test.
1135 * testsuite/libgomp.c/scan-18.c: New test.
1136 * testsuite/libgomp.c++/scan-9.C: New test.
1137 * testsuite/libgomp.c++/scan-10.C: New test.
1138 * testsuite/libgomp.c++/scan-11.C: New test.
1139 * testsuite/libgomp.c++/scan-12.C: New test.
1140 * testsuite/libgomp.c++/scan-13.C: New test.
1141 * testsuite/libgomp.c++/scan-14.C: New test.
1142 * testsuite/libgomp.c++/scan-15.C: New test.
1143 * testsuite/libgomp.c++/scan-16.C: New test.
1145 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1147 * testsuite/libgomp.c/scan-9.c: New test.
1148 * testsuite/libgomp.c/scan-10.c: New test.
1150 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1152 * testsuite/libgomp.c++/scan-1.C: New test.
1153 * testsuite/libgomp.c++/scan-2.C: New test.
1154 * testsuite/libgomp.c++/scan-3.C: New test.
1155 * testsuite/libgomp.c++/scan-4.C: New test.
1156 * testsuite/libgomp.c++/scan-5.C: New test.
1157 * testsuite/libgomp.c++/scan-6.C: New test.
1158 * testsuite/libgomp.c++/scan-7.C: New test.
1159 * testsuite/libgomp.c++/scan-8.C: New test.
1160 * testsuite/libgomp.c/scan-1.c: New test.
1161 * testsuite/libgomp.c/scan-2.c: New test.
1162 * testsuite/libgomp.c/scan-3.c: New test.
1163 * testsuite/libgomp.c/scan-4.c: New test.
1164 * testsuite/libgomp.c/scan-5.c: New test.
1165 * testsuite/libgomp.c/scan-6.c: New test.
1166 * testsuite/libgomp.c/scan-7.c: New test.
1167 * testsuite/libgomp.c/scan-8.c: New test.
1169 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1171 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1172 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1175 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1178 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1180 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1183 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1186 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1188 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1189 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1190 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1191 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1197 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1199 2019-06-16 Tom de Vries <tdevries@suse.de>
1201 PR tree-optimization/89376
1202 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1204 2019-06-15 Tom de Vries <tdevries@suse.de>
1206 PR tree-optimization/89713
1207 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1208 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1210 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1213 * testsuite/libgomp.c/pr90779.c: New test.
1214 * testsuite/libgomp.fortran/pr90779.f90: New test.
1216 2019-06-15 Tom de Vries <tdevries@suse.de>
1218 PR tree-optimization/90009
1219 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1221 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1223 PR tree-optimization/89713
1224 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1226 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1229 * testsuite/libgomp.c/pr90811.c: New test.
1231 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1233 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1234 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1236 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1238 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1239 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1240 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1241 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1243 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1245 * configure.ac: Call AX_COUNT_CPUS.
1246 Substitute CPU_COUNT.
1247 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1249 * aclocal.m4: Regenerate.
1250 * configure: Regenerate.
1251 * Makefile.in, testsuite/Makefile.in: Regenerate.
1253 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1255 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1257 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1258 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1259 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1261 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1263 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1265 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1268 * work.c (gomp_init_work_share): Instead of aligning final ordered
1269 value to multiples of long long alignment, align to that the
1270 first part (ordered team ids) and if inline_ordered_team_ids
1271 is not on a long long alignment boundary within the structure,
1272 use __alignof__ (long long) - 1 pad size always.
1273 * loop.c (GOMP_loop_start): Fix *mem computation if
1274 inline_ordered_team_ids is not aligned on long long alignment boundary
1275 within the structure.
1276 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1277 * sections.c (GOMP_sections2_start): Likewise.
1279 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1281 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1282 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1285 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1286 HAVE_INTTYPES_H is defined.
1287 (print_uint64_t): New typedef.
1288 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1289 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1290 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1291 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1292 before casting to void *.
1293 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1294 * oacc-mem.c: Don't include config.h nor stdint.h.
1295 * target.c: Don't include config.h.
1296 * oacc-cuda.c: Likewise.
1297 * oacc-host.c: Don't include stdint.h.
1299 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1302 * alloc.c (_GNU_SOURCE): Define.
1304 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1306 * acc_prof.h: New file.
1307 * oacc-profiling.c: Likewise.
1308 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1309 Add these, respectively.
1310 * Makefile.in: Regenerate.
1311 * env.c (initialize_env): Call goacc_profiling_initialize.
1312 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1313 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1314 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1315 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1316 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1317 acc_prof_register, acc_prof_unregister, and acc_register_library.
1318 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1319 GOMP_PLUGIN_goacc_thread.
1320 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1321 prof_callbacks_enabled members.
1322 (goacc_prof_enabled, goacc_profiling_initialize)
1323 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1324 (goacc_profiling_dispatch): Declare.
1325 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1326 (GOACC_PROFILING_SETUP_P): Define.
1327 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1328 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1329 OpenACC Profiling Interface.
1330 * oacc-cuda.c (acc_get_current_cuda_device)
1331 (acc_get_current_cuda_context, acc_get_cuda_stream)
1332 (acc_set_cuda_stream): Likewise.
1333 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1334 (acc_init, acc_set_device_type, acc_get_device_type)
1335 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1336 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1337 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1338 (acc_unmap_data, present_create_copy, delete_copyout)
1339 (update_dev_host): Likewise.
1340 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1341 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1343 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1344 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1346 * libgomp.texi: Update.
1347 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1349 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1350 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1352 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1354 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1356 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1359 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1361 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1362 (struct goacc_asyncqueue_list): Likewise.
1363 (goacc_aq): Likewise.
1364 (goacc_aq_list): Likewise.
1365 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1366 (GOMP_OFFLOAD_openacc_async_test): Remove.
1367 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1368 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1369 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1370 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1371 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1372 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1373 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1374 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1375 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1376 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1377 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1378 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1379 (GOMP_OFFLOAD_openacc_async_test): Declare.
1380 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1381 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1382 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1383 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1384 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1386 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1387 (gomp_acc_insert_pointer): Adjust declaration.
1388 (gomp_copy_host2dev): New declaration.
1389 (gomp_copy_dev2host): Likewise.
1390 (gomp_map_vars_async): Likewise.
1391 (gomp_unmap_tgt): Likewise.
1392 (gomp_unmap_vars_async): Likewise.
1393 (gomp_fini_device): Likewise.
1395 * oacc-async.c (get_goacc_thread): New function.
1396 (get_goacc_thread_device): New function.
1397 (lookup_goacc_asyncqueue): New function.
1398 (get_goacc_asyncqueue): New function.
1399 (acc_async_test): Adjust code to use new async design.
1400 (acc_async_test_all): Likewise.
1401 (acc_wait): Likewise.
1402 (acc_wait_async): Likewise.
1403 (acc_wait_all): Likewise.
1404 (acc_wait_all_async): Likewise.
1405 (goacc_async_free): New function.
1406 (goacc_init_asyncqueues): Likewise.
1407 (goacc_fini_asyncqueues): Likewise.
1408 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1410 (acc_set_cuda_stream): Likewise.
1411 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1412 (host_openacc_register_async_cleanup): Remove.
1413 (host_openacc_async_exec): New function.
1414 (host_openacc_async_test): Adjust parameters.
1415 (host_openacc_async_test_all): Remove.
1416 (host_openacc_async_wait): Remove.
1417 (host_openacc_async_wait_async): Remove.
1418 (host_openacc_async_wait_all): Remove.
1419 (host_openacc_async_wait_all_async): Remove.
1420 (host_openacc_async_set_async): Remove.
1421 (host_openacc_async_synchronize): New function.
1422 (host_openacc_async_serialize): New function.
1423 (host_openacc_async_host2dev): New function.
1424 (host_openacc_async_dev2host): New function.
1425 (host_openacc_async_queue_callback): New function.
1426 (host_openacc_async_construct): New function.
1427 (host_openacc_async_destruct): New function.
1428 (struct gomp_device_descr host_dispatch): Remove initialization of old
1429 interface, add initialization of new async sub-struct.
1430 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1431 (goacc_attach_host_thread_to_device): Remove old async code usage.
1432 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1433 (goacc_fini_asyncqueues): Likewise.
1434 (goacc_async_copyout_unmap_vars): Likewise.
1435 (goacc_async_free): Likewise.
1436 (get_goacc_asyncqueue): Likewise.
1437 (lookup_goacc_asyncqueue): Likewise.
1438 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1440 (present_create_copy): Adjust code to use new async design.
1441 (delete_copyout): Likewise.
1442 (update_dev_host): Likewise.
1443 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1445 (gomp_acc_remove_pointer): Adjust code to use new async design.
1446 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1448 (GOACC_enter_exit_data): Likewise.
1449 (goacc_wait): Likewise.
1450 (GOACC_update): Likewise.
1451 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1452 when called, warn as obsolete in comment.
1453 * target.c (goacc_device_copy_async): New function.
1454 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1455 add goacc_device_copy_async case.
1456 (gomp_copy_dev2host): Likewise.
1457 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1458 (gomp_map_pointer): Likewise.
1459 (gomp_map_fields_existing): Likewise.
1460 (gomp_map_vars_internal): New always_inline function, renamed from
1462 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1463 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1464 passing goacc_asyncqueue argument.
1465 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1466 (gomp_unref_tgt): New function.
1467 (gomp_unmap_vars_internal): New always_inline function, renamed from
1469 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1470 (gomp_unmap_vars_async): Implement by calling
1471 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1472 (gomp_fini_device): New function.
1473 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1474 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1475 new async interface.
1476 (gomp_target_fini): Adjust code to call gomp_fini_device.
1478 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1479 (struct ptx_stream): Remove.
1480 (struct nvptx_thread): Remove current_stream field.
1481 (cuda_map_create): Remove.
1482 (cuda_map_destroy): Remove.
1487 (struct goacc_asyncqueue): Define.
1488 (struct nvptx_callback): Define.
1489 (struct ptx_free_block): Define.
1490 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1491 stream_lock, and next fields.
1492 (enum ptx_event_type): Remove.
1493 (struct ptx_event): Remove.
1494 (ptx_event_lock): Remove.
1495 (ptx_events): Remove.
1496 (init_streams_for_device): Remove.
1497 (fini_streams_for_device): Remove.
1498 (select_stream_for_async): Remove.
1499 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1500 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1502 (nvptx_open_device): Add free_blocks initialization, remove
1503 init_streams_for_device call.
1504 (nvptx_close_device): Remove fini_streams_for_device call, add
1505 free_blocks destruct code.
1507 (event_add): Remove.
1508 (nvptx_exec): Adjust parameters and code.
1509 (nvptx_free): Likewise.
1510 (nvptx_host2dev): Remove.
1511 (nvptx_dev2host): Remove.
1512 (nvptx_set_async): Remove.
1513 (nvptx_async_test): Remove.
1514 (nvptx_async_test_all): Remove.
1515 (nvptx_wait): Remove.
1516 (nvptx_wait_async): Remove.
1517 (nvptx_wait_all): Remove.
1518 (nvptx_wait_all_async): Remove.
1519 (nvptx_get_cuda_stream): Remove.
1520 (nvptx_set_cuda_stream): Remove.
1521 (GOMP_OFFLOAD_alloc): Adjust code.
1522 (GOMP_OFFLOAD_free): Likewise.
1523 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1524 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1525 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1526 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1527 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1528 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1529 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1530 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1531 (cuda_free_argmem): New function.
1532 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1533 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1534 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1535 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1536 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1537 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1538 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1539 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1540 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1541 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1542 (cuda_callback_wrapper): New function.
1543 (cuda_memcpy_sanity_check): New function.
1544 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1545 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1546 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1547 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1549 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1552 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1554 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1556 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1558 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1560 * team.c (gomp_team_start): Initialize pool->threads[0].
1562 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1564 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1565 "-foffload=$offload_target".
1566 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1567 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1568 * testsuite/lib/libgomp.exp
1569 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1570 as (conceptually) merged into
1571 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1574 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1575 * testsuite/libgomp-test-support.exp.in: Adjust.
1576 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1577 openacc_device_types_s.
1578 (offload_target_to_openacc_device_type): New proc.
1579 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1580 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1581 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1582 * Makefile.in: Regenerate.
1583 * configure: Likewise.
1584 * testsuite/Makefile.in: Likewise.
1586 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1587 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1588 instead of OFFLOAD_TARGETS.
1589 * target.c (gomp_target_init): Adjust.
1590 * testsuite/libgomp-test-support.exp.in: Likewise.
1591 * testsuite/lib/libgomp.exp: Likewise. Populate
1592 openacc_device_types_s instead of offload_targets_s_openacc.
1593 (check_effective_target_openacc_nvidia_accel_selected)
1594 (check_effective_target_openacc_host_selected): Adjust.
1595 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1596 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1597 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1598 * Makefile.in: Regenerate.
1599 * config.h.in: Likewise.
1600 * configure: Likewise.
1601 * testsuite/Makefile.in: Likewise.
1603 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1604 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1605 "offloading: supported, but hardware not accessible".
1606 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1607 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1609 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1612 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1614 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1615 and related adjustment.
1617 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1620 * testsuite/libgomp.c++/pr88988.C: New test.
1622 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.c/pr89002.c: New test.
1627 2019-01-28 Richard Biener <rguenther@suse.de>
1630 PR tree-optimization/86865
1631 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1633 2019-01-24 Tom de Vries <tdevries@suse.de>
1635 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1636 once instantiated_devices drops to 0.
1638 2019-01-23 Tom de Vries <tdevries@suse.de>
1641 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1643 (nvptx_exec): Don't call map_push if mapnum == 0.
1644 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1646 2019-01-23 Tom de Vries <tdevries@suse.de>
1650 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1651 (map_fini): Remove "assert (!s->map->active)".
1652 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1654 2019-01-23 Tom de Vries <tdevries@suse.de>
1657 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1658 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1660 2019-01-15 Tom de Vries <tdevries@suse.de>
1663 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1666 2019-01-12 Tom de Vries <tdevries@suse.de>
1668 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1669 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1670 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1671 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1673 2019-01-12 Tom de Vries <tdevries@suse.de>
1675 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1677 2019-01-12 Tom de Vries <tdevries@suse.de>
1679 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1680 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1681 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1683 2019-01-12 Tom de Vries <tdevries@suse.de>
1686 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1687 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1689 2019-01-12 Tom de Vries <tdevries@suse.de>
1692 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1693 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1695 2019-01-12 Tom de Vries <tdevries@suse.de>
1697 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1698 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1699 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1701 2019-01-12 Tom de Vries <tdevries@suse.de>
1703 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1704 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1705 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1707 2019-01-12 Tom de Vries <tdevries@suse.de>
1709 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1710 resources diagnostic.
1712 2019-01-12 Tom de Vries <tdevries@suse.de>
1714 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1715 vector length to be 128.
1716 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1717 length 2097152 to be reduced to 1024 instead of 32.
1719 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1720 James Norris <jnorris@codesourcery.com>
1722 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1723 Library Routines", and "Environment Variables".
1725 2019-01-11 Tom de Vries <tdevries@suse.de>
1727 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1730 2019-01-11 Tom de Vries <tdevries@suse.de>
1732 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1734 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1735 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1736 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1737 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1739 2019-01-11 Tom de Vries <tdevries@suse.de>
1741 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1744 2019-01-10 Nathan Sidwell <nathan@acm.org>
1745 Julian Brown <julian@codesourcery.com>
1748 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1749 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1751 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1753 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1756 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1758 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1759 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1762 2019-01-09 Tom de Vries <tdevries@suse.de>
1765 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1766 #define instead of "const int".
1767 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1768 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1769 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1770 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1772 2019-01-09 Tom de Vries <tdevries@suse.de>
1774 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1777 2019-01-07 Tom de Vries <tdevries@suse.de>
1779 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1780 GOMP_OPENACC_DIM argument.
1782 2019-01-03 Tom de Vries <tdevries@suse.de>
1784 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1785 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1787 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1789 Update copyright years.
1791 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1793 * libgomp.texi: Bump @copying's copyright year.
1795 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1797 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1798 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1799 (GOACC_declare): Redefine the "device" argument to "flags".
1801 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1802 Cesar Philippidis <cesar@codesourcery.com>
1804 * target.c (struct gomp_coalesce_chunk): New structure.
1805 (struct gomp_coalesce_buf): Update the chunks member to use that
1806 type. Adjust all users.
1808 2018-12-19 Tom de Vries <tdevries@suse.de>
1810 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1811 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1812 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1814 2018-12-19 Tom de Vries <tdevries@suse.de>
1816 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1817 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1818 gcc/testsuite/gcc.dg/goacc.
1819 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1821 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1822 Chung-Lin Tang <cltang@codesourcery.com>
1824 * oacc-mem.c (acc_present_or_create): Remove definition and change
1825 to alias of acc_create.
1826 (acc_present_or_copyin): Remove definition and change to alias of
1828 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1829 of acc_present_or_create.
1830 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1831 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1832 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1833 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1834 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1835 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1836 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1837 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1838 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1839 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1840 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1841 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1842 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1843 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1844 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1845 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1847 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1850 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
1851 "identical parameters".
1852 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
1853 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
1856 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
1857 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
1860 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
1861 (nvptx_wait_async): Unseen async-argument is a no-op.
1862 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
1863 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
1864 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1865 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1866 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1867 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
1868 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
1869 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
1870 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
1872 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
1873 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1875 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
1877 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
1878 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1879 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1881 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1884 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
1885 (acc_set_cuda_stream): Clarify.
1886 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1888 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
1890 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
1891 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
1892 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
1893 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1895 2018-12-14 Tom de Vries <tdevries@suse.de>
1897 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
1898 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
1899 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
1900 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
1901 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
1903 2018-12-13 Tom de Vries <tdevries@suse.de>
1905 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
1906 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
1907 * fortran.c (omp_display_affinity_): ... here.
1908 * libgomp.h (gomp_print_string): Declare.
1909 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
1910 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1913 2018-12-13 Jakub Jelinek <jakub@redhat.com>
1916 * testsuite/libgomp.c++/for-24.C (results): Include it in
1917 omp declare target region.
1918 (main): Use map (always, tofrom: results) instead of
1919 map (tofrom: results).
1921 2018-12-12 Jakub Jelinek <jakub@redhat.com>
1924 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
1925 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
1927 * testsuite/libgomp.c-c++-common/for-16.c: New test.
1929 2018-12-12 Andreas Schwab <schwab@suse.de>
1931 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
1934 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1937 * testsuite/libgomp.fortran/async_io_8.f90: New test.
1939 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
1940 Jakub Jelinek <jakub@redhat.com>
1942 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
1943 devicep->host2dev_func.
1945 2018-12-08 Jakub Jelinek <jakub@redhat.com>
1948 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
1949 tls_runtime effective target.
1950 (t): New threadprivate variable.
1951 (main): Set t in threads which execute iterations of the worksharing
1952 loop. Propagate that to the task after the loop and don't abort
1953 if the current taskgroup hasn't been cancelled.
1955 2018-12-02 Jakub Jelinek <jakub@redhat.com>
1957 * testsuite/libgomp.c/task-reduction-3.c: New test.
1959 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
1961 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
1964 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
1965 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
1967 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
1969 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
1971 2018-10-19 Richard Biener <rguenther@suse.de>
1973 PR tree-optimization/88182
1974 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
1976 2018-11-26 Jakub Jelinek <jakub@redhat.com>
1978 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
1979 (RUNTEST): Don't define.
1980 (RUNTESTDEFAULTFLAGS): Add.
1981 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
1982 (distclean-am): Depend on distclean-DEJAGNU.
1983 (check-am): If -j% option is present in MFLAGS and if
1984 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
1985 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
1986 * testsuite/Makefile.in: Regenerated.
1988 2018-11-26 Richard Biener <rguenther@suse.de>
1990 PR tree-optimization/88182
1991 * testsuite/libgomp.c++/pr88182.C: New testcase.
1993 2018-11-20 Jakub Jelinek <jakub@redhat.com>
1996 * config/mingw32/affinity-fmt.c: New file.
1998 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2000 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2001 (gomp_display_affinity): Use __builtin_choose_expr to handle
2002 properly handle argument having integral, or pointer or some other
2003 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2004 with uint64_t type instead of %llx and unsigned long long.
2006 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2007 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2009 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2011 * affinity.c: Include <string.h>, <stdio.h>.
2012 (gomp_display_affinity_place): Remove cpusetp.
2013 * teams.c: Include <limits.h>.
2015 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2017 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2018 in_reduction clause for s[0].
2020 * affinity.c (gomp_display_affinity_place): New function.
2021 * affinity-fmt.c: New file.
2022 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2023 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2024 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2025 Move these functions to ...
2026 * config/nvptx/teams.c: ... here. New file.
2027 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2029 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2031 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2032 and _aligned_malloc.
2033 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2034 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2035 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2036 gomp_affinity_format_len): New variables.
2037 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2038 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2039 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2040 modifiers. Display (non-default) chunk sizes. Print
2041 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2042 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2043 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2044 * fortran.c: Include stdio.h and string.h.
2045 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2046 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2047 (omp_set_affinity_format_, omp_get_affinity_format_,
2048 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2049 omp_pause_resource_all_): New functions.
2050 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2052 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2054 * teams.c: ... here. New file.
2055 * libgomp_g.h: Include gstdint.h.
2056 (GOMP_loop_nonmonotonic_runtime_start,
2057 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2058 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2059 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2060 GOMP_parallel_loop_nonmonotonic_runtime,
2061 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2062 GOMP_loop_ull_nonmonotonic_runtime_start,
2063 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2064 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2065 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2066 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2067 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2068 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2069 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2070 GOMP_teams_reg): Declare.
2071 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2072 gomp_aligned_alloc uses fallback implementation.
2073 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2074 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2075 (struct gomp_doacross_work_share): Add extra field.
2076 (struct gomp_work_share): Add task_reductions field.
2077 (struct gomp_taskgroup): Add workshare and reductions fields.
2078 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2079 (gomp_thread_handle): New typedef.
2080 (gomp_display_affinity_place, gomp_set_affinity_format,
2081 gomp_display_string, gomp_display_affinity,
2082 gomp_display_affinity_thread): Declare.
2083 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2084 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2085 gomp_workshare_task_reduction_register): Declare.
2086 (gomp_team_start): Add taskgroup argument.
2087 (gomp_pause_host): Declare.
2088 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2090 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2091 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2092 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2093 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2094 GOMP_loop_ull_doacross_start,
2095 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2096 GOMP_loop_maybe_nonmonotonic_runtime_next,
2097 GOMP_loop_maybe_nonmonotonic_runtime_start,
2098 GOMP_loop_nonmonotonic_runtime_next,
2099 GOMP_loop_nonmonotonic_runtime_start,
2100 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2101 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2102 GOMP_loop_ull_nonmonotonic_runtime_next,
2103 GOMP_loop_ull_nonmonotonic_runtime_start,
2104 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2105 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2106 GOMP_taskgroup_reduction_register,
2107 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2108 GOMP_teams_reg and GOMP_taskwait_depend.
2109 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2110 omp_{capture,display}_affinity{,_}, and
2111 omp_[gs]et_affinity_format{,_}.
2112 * loop.c: Include string.h.
2113 (GOMP_loop_runtime_next): Add ialias.
2114 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2115 (gomp_loop_static_start, gomp_loop_dynamic_start,
2116 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2117 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2118 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2119 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2120 or gomp_doacross_init callers.
2121 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2122 GOMP_loop_doacross_start): New functions.
2123 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2124 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2125 Mask off GFS_MONOTONIC bit.
2126 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2127 GOMP_loop_maybe_nonmonotonic_runtime_start,
2128 GOMP_loop_nonmonotonic_runtime_next,
2129 GOMP_loop_nonmonotonic_runtime_start,
2130 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2131 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2133 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2135 * loop_ull.c: Include string.h.
2136 (GOMP_loop_ull_runtime_next): Add ialias.
2137 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2138 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2139 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2140 gomp_loop_ull_ordered_dynamic_start,
2141 gomp_loop_ull_ordered_guided_start,
2142 gomp_loop_ull_doacross_static_start,
2143 gomp_loop_ull_doacross_dynamic_start,
2144 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2145 and gomp_doacross_ull_init callers.
2146 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2147 GOMP_loop_ull_doacross_start): New functions.
2148 (GOMP_loop_ull_runtime_start,
2149 GOMP_loop_ull_ordered_runtime_start,
2150 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2151 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2152 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2153 GOMP_loop_ull_nonmonotonic_runtime_next,
2154 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2155 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2156 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2157 (omp_pause_resource_t, omp_depend_t): New typedefs.
2158 (enum omp_lock_hint_t): Renamed to ...
2159 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2160 enumerators using numbers and omp_lock_hint_* as their aliases.
2161 (omp_lock_hint_t): New typedef. Rename to ...
2162 (omp_sync_hint_t): ... this.
2163 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2164 omp_sync_hint_t instead of omp_lock_hint_t.
2165 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2166 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2168 (omp_target_is_present, omp_target_disassociate_ptr):
2169 Change first argument from void * to const void *.
2170 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2171 from void * to const void *.
2172 (omp_target_associate_ptr): Change first and second arguments from
2173 void * to const void *.
2174 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2175 omp_pause_hard): New parameters.
2176 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2177 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2179 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2180 omp_pause_hard): New parameters.
2181 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2182 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2184 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2185 EXTRA argument. If not needed to prepare array, if extra is 0,
2186 clear ws->doacross, otherwise allocate just doacross structure and
2187 extra payload. If array is needed, allocate also extra payload.
2188 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2189 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2191 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2193 (GOMP_parallel): Likewise. Formatting fix.
2194 (GOMP_parallel_reductions): New function.
2195 (GOMP_cancellation_point): If taskgroup has workshare
2196 flag set, check cancelled of prev taskgroup if any.
2197 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2198 on prev taskgroup if any.
2199 * sections.c: Include string.h.
2200 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2201 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2202 (GOMP_sections2_start): New function.
2203 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2204 Pass NULL as taskgroup to gomp_team_start.
2205 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2206 gomp_work_share_start callers.
2207 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2208 If taskgroup has workshare flag set, check cancelled on prev
2209 taskgroup if any. Guard all cancellation tests with
2210 gomp_cancel_var test.
2211 (omp_target_is_present, omp_target_disassociate_ptr):
2212 Change ptr argument from void * to const void *.
2213 (omp_target_memcpy): Change src argument from void * to const void *.
2214 (omp_target_memcpy_rect): Likewise.
2215 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2216 instead of char * where needed.
2217 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2218 from void * to const void *.
2219 (omp_pause_resource, omp_pause_resource_all): New functions.
2220 * task.c (gomp_task_handle_depend): Handle new depend array format
2221 in addition to the old. Handle mutexinoutset kinds the same as
2222 inout for now, handle unspecified kinds.
2223 (gomp_create_target_task): If taskgroup has workshare flag set, check
2224 cancelled on prev taskgroup if any. Guard all cancellation tests with
2225 gomp_cancel_var test. Handle new depend array format count in
2226 addition to the old.
2227 (GOMP_task): Likewise. Adjust function comment.
2228 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2229 cancelled on prev taskgroup if any. Guard all cancellation tests with
2230 gomp_cancel_var test.
2231 (GOMP_taskwait_depend): New function.
2232 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2233 format in addition to the old. Handle mutexinoutset kinds the same as
2234 inout for now, handle unspecified kinds. Fix a function comment typo.
2235 (gomp_taskgroup_init): New function.
2236 (GOMP_taskgroup_start): Use it.
2237 (gomp_reduction_register, gomp_create_artificial_team,
2238 GOMP_taskgroup_reduction_register,
2239 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2240 gomp_parallel_reduction_register,
2241 gomp_workshare_task_reduction_register,
2242 gomp_workshare_taskgroup_start,
2243 GOMP_workshare_task_reduction_unregister): New functions.
2244 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2245 check cancelled on prev taskgroup if any. Guard all cancellation
2246 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2247 by calling GOMP_taskgroup_reduction_register.
2248 * team.c (gomp_thread_attr): Remove comment.
2249 (struct gomp_thread_start_data): Add handle field.
2250 (gomp_thread_start): Call pthread_detach.
2251 (gomp_new_team): Adjust gomp_init_work_share caller.
2252 (gomp_free_pool_helper): Call pthread_detach.
2253 (gomp_team_start): Add taskgroup argument, initialize implicit
2254 tasks' taskgroup field to that. Don't call
2255 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2256 (gomp_team_end): Determine nesting by thr->ts.level != 0
2257 rather than thr->ts.team != NULL.
2258 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2259 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2260 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2261 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2262 if more than 1 allocate also extra payload at the end of array. Never
2263 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2264 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2265 return true instead of ws.
2266 * Makefile.in: Regenerated.
2267 * configure: Regenerated.
2268 * config.h.in: Regenerated.
2269 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2271 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2272 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2273 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2274 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2275 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2276 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2277 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2278 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2279 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2280 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2281 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2282 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2283 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2284 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2285 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2286 define a different N(test), don't define N(f0) to N(f14), but instead
2287 define N(f20) to N(f34) using != comparisons.
2288 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2289 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2290 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2291 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2292 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2293 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2294 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2295 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2296 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2297 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2298 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2299 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2300 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2301 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2302 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2303 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2304 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2305 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2306 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2307 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2308 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2309 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2310 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2311 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2312 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2313 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2314 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2315 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2316 * testsuite/libgomp.c++/depend-1.C: New test.
2317 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2318 * testsuite/libgomp.c++/depobj-1.C: New test.
2319 * testsuite/libgomp.c++/for-16.C: New test.
2320 * testsuite/libgomp.c++/for-21.C: New test.
2321 * testsuite/libgomp.c++/for-22.C: New test.
2322 * testsuite/libgomp.c++/for-23.C: New test.
2323 * testsuite/libgomp.c++/for-24.C: New test.
2324 * testsuite/libgomp.c++/for-25.C: New test.
2325 * testsuite/libgomp.c++/for-26.C: New test.
2326 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2327 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2328 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2329 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2330 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2331 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2332 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2333 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2334 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2335 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2336 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2337 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2338 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2339 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2340 * testsuite/libgomp.c/task-reduction-1.c: New test.
2341 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2342 * testsuite/libgomp.c/task-reduction-2.c: New test.
2343 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2344 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2345 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2346 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2347 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2348 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2349 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2350 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2351 * testsuite/libgomp.c/teams-1.c: New test.
2352 * testsuite/libgomp.c/teams-2.c: New test.
2353 * testsuite/libgomp.c/thread-limit-4.c: New test.
2354 * testsuite/libgomp.c/thread-limit-5.c: New test.
2355 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2357 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2359 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2360 acc_memcpy_to/from_device functions, now with async parameter.
2361 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2362 (acc_memcpy_from_device): Likewise.
2363 (acc_memcpy_to_device_async): New API function.
2364 (acc_memcpy_from_device_async): Likewise.
2365 (present_create_copy): Add async parameter and async setting/unsetting.
2366 (acc_create): Adjust present_create_copy call.
2367 (acc_copyin): Likewise.
2368 (acc_present_or_create): Likewise.
2369 (acc_present_or_copyin): Likewise.
2370 (acc_create_async): New API function.
2371 (acc_copyin_async): New API function.
2372 (delete_copyout): Add async parameter and async setting/unsetting.
2373 (acc_delete): Adjust delete_copyout call.
2374 (acc_copyout): Likewise.
2375 (acc_delete_async): New API function.
2376 (acc_copyout_async): Likewise.
2377 (update_dev_host): Add async parameter and async setting/unsetting.
2378 (acc_update_device): Adjust update_dev_host call.
2379 (acc_update_self): Likewise.
2380 (acc_update_device_async): New API function.
2381 (acc_update_self_async): Likewise.
2382 * openacc.h (acc_copyin_async): Declare new API function.
2383 (acc_create_async): Likewise.
2384 (acc_copyout_async): Likewise.
2385 (acc_delete_async): Likewise.
2386 (acc_update_device_async): Likewise.
2387 (acc_update_self_async): Likewise.
2388 (acc_memcpy_to_device_async): Likewise.
2389 (acc_memcpy_from_device_async): Likewise.
2390 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2391 (acc_copyin_async_64_h): New subroutine.
2392 (acc_copyin_async_array_h): New subroutine.
2393 (acc_create_async_32_h): New subroutine.
2394 (acc_create_async_64_h): New subroutine.
2395 (acc_create_async_array_h): New subroutine.
2396 (acc_copyout_async_32_h): New subroutine.
2397 (acc_copyout_async_64_h): New subroutine.
2398 (acc_copyout_async_array_h): New subroutine.
2399 (acc_delete_async_32_h): New subroutine.
2400 (acc_delete_async_64_h): New subroutine.
2401 (acc_delete_async_array_h): New subroutine.
2402 (acc_update_device_async_32_h): New subroutine.
2403 (acc_update_device_async_64_h): New subroutine.
2404 (acc_update_device_async_array_h): New subroutine.
2405 (acc_update_self_async_32_h): New subroutine.
2406 (acc_update_self_async_64_h): New subroutine.
2407 (acc_update_self_async_array_h): New subroutine.
2408 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2409 (acc_copyin_async_64_h): New subroutine.
2410 (acc_copyin_async_array_h): New subroutine.
2411 (acc_create_async_32_h): New subroutine.
2412 (acc_create_async_64_h): New subroutine.
2413 (acc_create_async_array_h): New subroutine.
2414 (acc_copyout_async_32_h): New subroutine.
2415 (acc_copyout_async_64_h): New subroutine.
2416 (acc_copyout_async_array_h): New subroutine.
2417 (acc_delete_async_32_h): New subroutine.
2418 (acc_delete_async_64_h): New subroutine.
2419 (acc_delete_async_array_h): New subroutine.
2420 (acc_update_device_async_32_h): New subroutine.
2421 (acc_update_device_async_64_h): New subroutine.
2422 (acc_update_device_async_array_h): New subroutine.
2423 (acc_update_self_async_32_h): New subroutine.
2424 (acc_update_self_async_64_h): New subroutine.
2425 (acc_update_self_async_array_h): New subroutine.
2426 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2427 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2428 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2429 acc_memcpy_to_device_async*, acc_update_device_async*, and
2430 acc_update_self_async* entries.
2431 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2432 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2433 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2435 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2438 * Makefile.am: Include multilib.am
2439 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2440 (CLEANFILES): Remove libgomp.info.
2441 * configure.ac: Remove AC_PREREQ.
2442 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2443 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2446 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2447 Julian Brown <julian@codesourcery.com>
2449 * testsuite/libgomp.oacc-c++/this.C: New.
2451 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2453 * plugin/plugin-nvptx.c (struct cuda_map): New.
2454 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2455 h_tail with (cuda_map *) map.
2456 (cuda_map_create): New function.
2457 (cuda_map_destroy): New function.
2458 (map_init): Update to use a linked list of cuda_map objects.
2459 (map_fini): Likewise.
2460 (map_pop): Likewise.
2461 (map_push): Likewise. Return CUdeviceptr instead of void.
2462 (init_streams_for_device): Remove stales references to ptx_stream
2464 (select_stream_for_async): Likewise.
2465 (nvptx_exec): Update call to map_init.
2467 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2468 Julian Brown <julian@codesourcery.com>
2471 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2473 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2474 Thomas Koenig <tkoenig@gcc.gnu.org>
2477 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2478 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2479 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2480 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2481 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2482 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2483 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2485 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2486 Tom de Vries <tdevries@suse.de>
2489 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2490 (cuOccupancyMaxPotentialBlockSize): Declare.
2491 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2492 CUDA_ONE_CALL_MAYBE_NULL.
2493 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2494 CUoccupancyB2DSize and declare
2495 cuOccupancyMaxPotentialBlockSize.
2496 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2497 default num_gangs and num_workers when the driver supports it.
2499 2018-08-08 Tom de Vries <tdevries@suse.de>
2501 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2502 CUDA_ONE_CALL_MAYBE_NULL.
2503 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2504 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2505 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2508 2018-08-08 Tom de Vries <tdevries@suse.de>
2510 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2511 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2514 2018-08-08 Tom de Vries <tdevries@suse.de>
2516 * plugin/plugin-nvptx.c
2517 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2518 (nvptx_open_device): Use
2519 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2521 2018-08-08 Tom de Vries <tdevries@suse.de>
2523 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2524 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2526 2018-08-07 Tom de Vries <tdevries@suse.de>
2528 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2529 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2530 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2531 corresponding call in CUDA_ONE_CALL. Add def/undef of
2532 CUDA_ONE_CALL_MAYBE_NULL.
2533 (CUDA_CALL_EXISTS): Define.
2535 2018-08-07 Tom de Vries <tdevries@suse.de>
2537 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2538 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2539 corresponding undefs right after.
2541 2018-08-04 Tom de Vries <tdevries@suse.de>
2543 * plugin/configfrag.ac: For --without-cuda-driver, set
2544 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2545 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2546 * configure: Regenerate.
2548 2018-08-02 Tom de Vries <tdevries@suse.de>
2551 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2552 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2553 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2555 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2556 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2557 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2559 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2560 Thomas Schwinge <thomas@codesourcery.com>
2562 * config/nvptx/oacc-parallel.c: Truncate.
2564 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2565 James Norris <jnorris@codesourcery.com>
2567 * plugin/plugin-nvptx.c (struct map): Removed.
2568 (map_init, map_pop): Remove use of struct map.
2569 (map_push): Likewise and change argument list.
2570 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2572 2018-08-01 Tom de Vries <tdevries@suse.de>
2574 * plugin/cuda-lib.def: New file. Factor out of ...
2575 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2576 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2579 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2581 Revert 'AsyncI/O patch committed'.
2582 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2583 Thomas Koenig <tkoenig@gcc.gnu.org>
2586 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2587 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2588 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2589 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2590 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2591 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2592 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2594 2018-07-30 Tom de Vries <tdevries@suse.de>
2596 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2597 (nvptx_exec): Ensure worker and vector default dims don't exceed
2598 targ_fn->max_threads_per_block.
2600 2018-07-30 Tom de Vries <tdevries@suse.de>
2602 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2603 (nvptx_open_device): Init default_dims for device.
2604 (nvptx_exec): Use default_dims from device.
2606 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2609 * testsuite/libgomp.c++/for-15.C (results): Include it in
2610 omp declare target region.
2611 (main): Use map (always, tofrom: results) instead of
2612 map (tofrom: results).
2615 * testsuite/libgomp.c/pr86660.c: New test.
2617 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2618 Tom de Vries <tdevries@suse.de>
2620 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2621 sufficient resources to launch a kernel, and give a hint on how to fix
2624 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2625 Tom de Vries <tdevries@suse.de>
2627 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2628 max_threads_per_block and max_threads_per_multiprocessor fields.
2629 (nvptx_open_device): Initialize new fields.
2630 (nvptx_exec): Use num_sms, and new fields.
2632 2018-07-26 Tom de Vries <tdevries@suse.de>
2634 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2635 to correct locations. Remove xfail.
2637 2018-07-26 Tom de Vries <tdevries@suse.de>
2639 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2640 acc_wait. Move acc_async_test calls to correct locations. Remove
2643 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2644 Thomas Koenig <tkoenig@gcc.gnu.org>
2647 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2648 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2649 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2650 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2651 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2652 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2653 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2655 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2658 * testsuite/libgomp.c++/pr86542.C: New test.
2661 * testsuite/libgomp.c++/pr86539.C: New test.
2663 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2666 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2667 (results): Make sure the variable is not inside declare target region.
2668 (qux): Remove unused function.
2670 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2673 * testsuite/libgomp.c++/for-15.C: New test.
2675 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2678 * testsuite/libgomp.c++/pr86291.C: New test.
2680 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2682 * libgomp.texi (Top): Move www.openmp.org to https.
2683 (Enabling OpenMP): Ditto.
2684 (omp_get_active_level): Ditto.
2685 (omp_get_ancestor_thread_num): Ditto.
2686 (omp_get_cancellation): Ditto.
2687 (omp_get_default_device): Ditto.
2688 (omp_get_dynamic): Ditto.
2689 (omp_get_level): Ditto.
2690 (omp_get_max_active_levels): Ditto.
2691 (omp_get_max_task_priority): Ditto.
2692 (omp_get_max_threads): Ditto.
2693 (omp_get_nested): Ditto.
2694 (omp_get_num_devices): Ditto.
2695 (omp_get_num_procs): Ditto.
2696 (omp_get_num_teams): Ditto.
2697 (omp_get_num_threads): Ditto.
2698 (omp_get_proc_bind): Ditto.
2699 (omp_get_schedule): Ditto.
2700 (omp_get_team_num): Ditto.
2701 (omp_get_team_size): Ditto.
2702 (omp_get_thread_limit): Ditto.
2703 (omp_get_thread_num): Ditto.
2704 (omp_in_parallel): Ditto.
2705 (omp_in_final): Ditto.
2706 (omp_is_initial_device): Ditto.
2707 (omp_set_default_device): Ditto.
2708 (omp_set_dynamic): Ditto.
2709 (omp_set_max_active_levels): Ditto.
2710 (omp_set_nested): Ditto.
2711 (omp_set_num_threads): Ditto.
2712 (omp_set_schedule): Ditto.
2713 (omp_init_lock): Ditto.
2714 (omp_set_lock): Ditto.
2715 (omp_test_lock): Ditto.
2716 (omp_unset_lock): Ditto.
2717 (omp_destroy_lock): Ditto.
2718 (omp_init_nest_lock): Ditto.
2719 (omp_set_nest_lock): Ditto.
2720 (omp_test_nest_lock): Ditto.
2721 (omp_unset_nest_lock): Ditto.
2722 (omp_destroy_nest_lock): Ditto.
2723 (omp_get_wtick): Ditto.
2724 (omp_get_wtime): Ditto.
2725 (OMP_CANCELLATION): Ditto.
2726 (OMP_DISPLAY_ENV): Ditto.
2727 (OMP_DEFAULT_DEVICE): Ditto.
2728 (OMP_DYNAMIC): Ditto.
2729 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2730 (OMP_MAX_TASK_PRIORITY): Ditto.
2731 (OMP_NESTED): Ditto.
2732 (OMP_NUM_THREADS): Ditto.
2733 (OMP_PROC_BIND): Ditto.
2734 (OMP_PLACES): Ditto.
2735 (OMP_STACKSIZE): Ditto.
2736 (OMP_SCHEDULE): Ditto.
2737 (OMP_THREAD_LIMIT): Ditto.
2738 (OMP_WAIT_POLICY): Ditto.
2740 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2741 James Norris <jnorris@codesourcery.com>
2742 Julian Brown <julian@codesourcery.com>
2743 Thomas Schwinge <thomas@codesourcery.com>
2744 Tom de Vries <tom@codesourcery.com>
2746 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2747 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2748 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2749 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2750 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2751 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2752 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2753 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2754 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2755 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2757 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2759 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2761 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2763 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2765 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2767 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2769 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2771 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2773 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2775 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2777 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2779 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2781 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2783 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2785 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2787 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2789 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2791 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2793 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2795 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2797 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2799 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2801 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2803 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2805 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2807 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2809 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2810 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2811 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2812 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2813 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2814 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2815 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2816 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2817 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2819 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2821 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2822 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2823 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2825 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2826 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2827 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2829 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2831 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2833 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2835 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2837 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2839 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2841 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2843 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2845 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2847 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2849 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2851 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2853 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2855 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2857 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2858 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
2859 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2860 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
2861 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
2862 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
2863 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
2865 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
2866 Thomas Schwinge <thomas@codesourcery.com>
2867 Cesar Philippidis <cesar@codesourcery.com>
2869 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
2870 (gomp_acc_remove_pointer): Update declaration.
2871 (gomp_acc_declare_allocate): Declare.
2872 (gomp_remove_var): Declare.
2873 * libgomp.map (OACC_2.5): Define.
2874 * oacc-mem.c (acc_map_data): Update refcount.
2875 (acc_unmap_data): Likewise.
2876 (present_create_copy): Likewise.
2877 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
2878 (acc_copyin): Likewise.
2879 (FLAG_FINALIZE): Define.
2880 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
2881 (acc_delete_finalize): New function.
2882 (acc_delete_finalize_async): New function.
2883 (acc_copyout_finalize): New function.
2884 (acc_copyout_finalize_async): New function.
2885 (gomp_acc_insert_pointer): Update refcounts.
2886 (gomp_acc_remove_pointer): Return if data is not present on the
2888 * oacc-parallel.c (find_pset): Rename to find_pointer.
2889 (find_pointer): Add support for GOMP_MAP_POINTER.
2890 (handle_ftn_pointers): New function.
2891 (GOACC_parallel_keyed): Update refcounts of variables.
2892 (GOACC_enter_exit_data): Add support for finalized data mappings.
2893 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
2895 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
2896 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
2897 for GOMP_MAP_FORCE_FROM.
2898 * openacc.f90 (module openacc_internal): Add
2899 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
2900 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
2901 acc_copyout_finalize and acc_delete_finalize.
2902 (acc_copyout_finalize_32_h): New subroutine.
2903 (acc_copyout_finalize_64_h): New subroutine.
2904 (acc_copyout_finalize_array_h): New subroutine.
2905 (acc_delete_finalize_32_h): New subroutine.
2906 (acc_delete_finalize_64_h): New subroutine.
2907 (acc_delete_finalize_array_h): New subroutine.
2908 * openacc.h (acc_copyout_finalize): Declare.
2909 (acc_copyout_finalize_async): Declare.
2910 (acc_delete_finalize): Declare.
2911 (acc_delete_finalize_async): Declare.
2912 * openacc_lib.h (acc_copyout_finalize): New interface.
2913 (acc_delete_finalize): New interface.
2914 * target.c (gomp_map_vars): Update dynamic_refcount.
2915 (gomp_remove_var): New function.
2916 (gomp_unmap_vars): Use it.
2917 (gomp_unload_image_from_device): Likewise.
2918 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
2919 case to utilize OpenACC 2.5 data clause semantics.
2920 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2922 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2923 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2924 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2925 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2926 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2927 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2928 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2929 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2930 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2931 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
2932 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
2933 utilize OpenACC 2.5 data clause semantics.
2934 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2935 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2936 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2937 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2938 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2939 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2940 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2941 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2942 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2944 2018-05-21 Janus Weil <janus@gcc.gnu.org>
2948 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
2949 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2950 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2951 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2952 * testsuite/libgomp.fortran/task2.f90: Ditto.
2953 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2954 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2955 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2956 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2957 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2958 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2959 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2960 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
2961 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
2963 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
2966 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
2968 2018-05-09 Tom de Vries <tom@codesourcery.com>
2971 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
2972 to GOACC_enter_exit_data.
2974 2018-05-09 Tom de Vries <tom@codesourcery.com>
2977 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
2978 (async_synchronous_p): New function.
2979 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
2981 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2982 async_valid_stream_id_p.
2983 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
2984 * oacc-parallel.c (GOACC_parallel_keyed): Same.
2986 2018-05-07 Tom de Vries <tom@codesourcery.com>
2989 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
2990 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
2992 2018-05-03 Tom de Vries <tom@codesourcery.com>
2995 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
2996 extra_tool_flags if it contains an -foffload=-fdump-* flag.
2997 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
2998 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3000 2018-05-02 Tom de Vries <tom@codesourcery.com>
3003 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3004 GOMP_OPENACC_DIM ...
3005 * env.c (parse_gomp_openacc_dim): ... here. New function.
3006 (initialize_env): Call parse_gomp_openacc_dim.
3007 (goacc_default_dims): Define.
3008 * libgomp.h (goacc_default_dims): Declare.
3009 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3010 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3011 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3012 GOMP_PLUGIN_acc_default_dim.
3013 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3014 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3016 2018-05-02 Tom de Vries <tom@codesourcery.com>
3019 * testsuite/libgomp.c++/udr-9.C: Update.
3020 * testsuite/libgomp.c++/atomic-16.C: Remove.
3021 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3022 * testsuite/libgomp.c++/loop-13.C: Remove.
3023 * testsuite/libgomp.c++/loop-14.C: Remove.
3024 * testsuite/libgomp.c++/loop-15.C: Remove.
3025 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3026 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3027 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3028 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3029 * testsuite/libgomp.c++/ordered-1.C: Remove.
3030 * testsuite/libgomp.c++/pr45784.C: Remove.
3031 * testsuite/libgomp.c++/pr64824.C: Remove.
3032 * testsuite/libgomp.c++/pr64868.C: Remove.
3033 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3034 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3035 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3036 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3037 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3038 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3039 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3040 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3041 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3042 * testsuite/libgomp.c++/pr69389.C: Remove.
3043 * testsuite/libgomp.c++/simd10.C: Remove.
3044 * testsuite/libgomp.c++/simd11.C: Remove.
3045 * testsuite/libgomp.c++/simd12.C: Remove.
3046 * testsuite/libgomp.c++/simd13.C: Remove.
3047 * testsuite/libgomp.c++/target-1.C: Remove.
3048 * testsuite/libgomp.c++/target-3.C: Remove.
3049 * testsuite/libgomp.c++/target-4.C: Remove.
3050 * testsuite/libgomp.c++/target-5.C: Remove.
3051 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3052 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3053 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3054 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3055 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3056 * testsuite/libgomp.c++/udr-9.C: Remove.
3057 * testsuite/libgomp.c++/for-10.C: Remove.
3058 * testsuite/libgomp.c++/for-11.C: Remove.
3059 * testsuite/libgomp.c++/for-12.C: Remove.
3060 * testsuite/libgomp.c++/for-13.C: Remove.
3061 * testsuite/libgomp.c++/for-14.C: Remove.
3062 * testsuite/libgomp.c++/for-9.C: Remove.
3063 * testsuite/libgomp.c/atomic-18.c: Move ...
3064 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3065 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3066 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3067 * testsuite/libgomp.c/loop-13.c: Move ...
3068 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3069 * testsuite/libgomp.c/loop-14.c: Move ...
3070 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3071 * testsuite/libgomp.c/loop-15.c: Remove.
3072 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3073 * testsuite/libgomp.c/monotonic-1.c: Move ...
3074 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3075 * testsuite/libgomp.c/monotonic-2.c: Move ...
3076 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3077 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3078 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3079 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3080 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3081 * testsuite/libgomp.c/ordered-4.c: Move ...
3082 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3083 * testsuite/libgomp.c/pr45784.c: Move ...
3084 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3085 * testsuite/libgomp.c/pr64824.c: Move ...
3086 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3087 * testsuite/libgomp.c/pr64868.c: Move ...
3088 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3089 * testsuite/libgomp.c/pr66199-1.c: Move ...
3090 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3091 * testsuite/libgomp.c/pr66199-2.c: Move ...
3092 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3093 * testsuite/libgomp.c/pr66199-3.c: Move ...
3094 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3095 * testsuite/libgomp.c/pr66199-4.c: Move ...
3096 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3097 * testsuite/libgomp.c/pr66199-5.c: Move ...
3098 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3099 * testsuite/libgomp.c/pr66199-6.c: Move ...
3100 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3101 * testsuite/libgomp.c/pr66199-7.c: Move ...
3102 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3103 * testsuite/libgomp.c/pr66199-8.c: Move ...
3104 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3105 * testsuite/libgomp.c/pr66199-9.c: Move ...
3106 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3107 * testsuite/libgomp.c/pr69389.c: Move ...
3108 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3109 * testsuite/libgomp.c/simd-14.c: Move ...
3110 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3111 * testsuite/libgomp.c/simd-15.c: Move ...
3112 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3113 * testsuite/libgomp.c/simd-16.c: Move ...
3114 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3115 * testsuite/libgomp.c/simd-17.c: Move ...
3116 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3117 * testsuite/libgomp.c/target-1.c: Move ...
3118 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3119 * testsuite/libgomp.c/target-10.c: Move ...
3120 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3121 * testsuite/libgomp.c/target-13.c: Move ...
3122 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3123 * testsuite/libgomp.c/target-2.c: Move ...
3124 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3125 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3126 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3127 * testsuite/libgomp.c/taskloop-1.c: Move ...
3128 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3129 * testsuite/libgomp.c/taskloop-2.c: Move ...
3130 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3131 * testsuite/libgomp.c/taskloop-3.c: Move ...
3132 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3133 * testsuite/libgomp.c/taskloop-4.c: Move ...
3134 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3135 * testsuite/libgomp.c/udr-1.c: Move ...
3136 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3137 * testsuite/libgomp.c/for-1.c: Move ...
3138 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3139 * testsuite/libgomp.c/for-1.h: Move ...
3140 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3141 * testsuite/libgomp.c/for-2.c: Move ...
3142 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3143 * testsuite/libgomp.c/for-2.h: Move ...
3144 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3145 * testsuite/libgomp.c/for-3.c: Move ...
3146 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3147 * testsuite/libgomp.c/for-4.c: Move ...
3148 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3149 * testsuite/libgomp.c/for-5.c: Move ...
3150 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3151 * testsuite/libgomp.c/for-6.c: Move ...
3152 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3154 2018-05-02 Tom de Vries <tom@codesourcery.com>
3157 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3158 __builtin_goacc_parlevel_{id,size}.
3159 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3160 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3161 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3162 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3163 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3164 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3165 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3166 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3167 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3168 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3169 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3170 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3171 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3172 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3173 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3174 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3175 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3176 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3177 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3178 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3179 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3180 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3181 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3183 2018-05-02 Tom de Vries <tom@codesourcery.com>
3186 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3188 2018-05-02 Tom de Vries <tom@codesourcery.com>
3191 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3193 2018-04-29 Julian Brown <julian@codesourcery.com>
3194 Tom de Vries <tom@codesourcery.com>
3197 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3198 arbitrary order for iterations of atomic subtract check.
3200 2018-04-28 Tom de Vries <tom@codesourcery.com>
3203 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3204 atomic capture results obtained in parallel loop to an array, instead of
3207 2018-04-26 Tom de Vries <tom@codesourcery.com>
3210 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3211 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3212 (process_GOMP_NVPTX_JIT): New function.
3213 (link_ptx): Use process_GOMP_NVPTX_JIT.
3215 2018-04-26 Richard Biener <rguenther@suse.de>
3216 Tom de Vries <tom@codesourcery.com>
3219 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3221 2018-04-26 Tom de Vries <tom@codesourcery.com>
3224 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3225 recursion depth from 25 to 23.
3226 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3228 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3230 * configure: Regenerated.
3232 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3233 Tom de Vries <tom@codesourcery.com>
3236 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3238 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3241 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3242 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3243 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3244 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3245 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3246 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3249 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3251 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3253 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3255 * configure: Regenerated.
3257 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3260 * configure: Regenerate.
3262 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3263 Tom de Vries <tom@codesourcery.com>
3266 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3267 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3269 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3273 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3274 test from gfortran.dg to here.
3276 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3278 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3279 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3281 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3284 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3285 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3287 2018-04-05 Tom de Vries <tom@codesourcery.com>
3290 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3292 2018-03-26 Tom de Vries <tom@codesourcery.com>
3294 PR tree-optimization/85063
3295 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3296 * testsuite/libgomp.c/switch-conversion.c: New test.
3297 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3298 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3300 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3303 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3304 call abort by STOP n.
3305 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3306 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3307 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3308 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3309 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3310 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3311 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3312 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3313 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3314 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3315 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3316 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3317 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3318 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3319 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3320 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3321 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3322 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3323 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3324 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3325 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3326 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3327 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3328 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3329 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3330 * testsuite/libgomp.fortran/character1.f90: Likewise.
3331 * testsuite/libgomp.fortran/character2.f90: Likewise.
3332 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3333 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3334 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3335 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3336 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3337 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3338 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3339 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3340 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3341 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3342 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3343 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3344 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3345 * testsuite/libgomp.fortran/do1.f90: Likewise.
3346 * testsuite/libgomp.fortran/do2.f90: Likewise.
3347 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3348 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3349 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3350 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3351 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3352 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3353 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3354 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3355 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3356 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3357 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3358 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3359 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3360 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3361 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3362 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3363 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3364 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3365 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3366 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3367 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3368 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3369 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3370 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3371 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3372 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3373 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3374 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3375 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3376 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3377 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3378 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3379 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3380 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3381 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3382 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3383 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3384 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3385 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3386 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3387 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3388 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3389 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3390 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3391 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3392 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3393 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3394 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3395 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3396 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3397 * testsuite/libgomp.fortran/lib2.f: Likewise.
3398 * testsuite/libgomp.fortran/lib3.f: Likewise.
3399 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3400 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3401 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3402 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3403 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3404 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3405 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3406 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3407 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3408 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3409 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3410 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3411 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3412 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3413 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3414 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3415 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3416 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3417 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3418 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3419 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3420 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3421 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3422 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3423 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3424 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3425 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3426 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3427 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3428 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3429 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3430 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3431 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3432 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3433 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3434 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3435 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3436 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3437 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3438 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3439 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3440 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3441 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3442 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3443 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3444 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3445 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3446 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3447 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3448 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3449 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3450 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3451 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3452 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3453 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3454 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3455 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3456 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3457 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3458 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3459 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3460 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3461 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3462 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3463 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3464 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3465 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3466 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3467 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3468 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3469 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3470 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3471 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3472 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3473 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3474 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3475 * testsuite/libgomp.fortran/stack.f90: Likewise.
3476 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3477 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3478 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3479 * testsuite/libgomp.fortran/target1.f90: Likewise.
3480 * testsuite/libgomp.fortran/target2.f90: Likewise.
3481 * testsuite/libgomp.fortran/target3.f90: Likewise.
3482 * testsuite/libgomp.fortran/target4.f90: Likewise.
3483 * testsuite/libgomp.fortran/target5.f90: Likewise.
3484 * testsuite/libgomp.fortran/target6.f90: Likewise.
3485 * testsuite/libgomp.fortran/target7.f90: Likewise.
3486 * testsuite/libgomp.fortran/target8.f90: Likewise.
3487 * testsuite/libgomp.fortran/task1.f90: Likewise.
3488 * testsuite/libgomp.fortran/task2.f90: Likewise.
3489 * testsuite/libgomp.fortran/task3.f90: Likewise.
3490 * testsuite/libgomp.fortran/task4.f90: Likewise.
3491 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3492 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3493 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3494 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3495 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3496 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3497 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3498 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3499 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3500 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3501 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3502 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3503 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3504 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3505 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3506 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3507 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3508 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3509 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3510 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3511 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3512 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3513 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3514 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3515 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3516 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3517 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3518 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3519 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3520 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3521 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3522 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3523 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3524 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3525 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3526 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3527 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3528 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3529 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3530 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3531 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3532 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3533 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3534 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3535 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3536 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3537 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3538 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3539 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3540 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3541 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3542 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3543 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3544 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3545 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3546 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3547 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3548 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3549 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3550 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3551 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3552 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3553 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3554 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3555 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3556 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3557 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3558 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3559 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3560 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3561 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3562 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3563 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3564 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3565 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3566 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3567 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3568 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3569 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3570 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3571 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3572 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3573 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3574 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3575 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3576 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3577 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3578 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3579 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3580 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3581 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3582 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3583 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3584 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3585 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3586 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3587 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3588 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3589 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3590 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3591 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3592 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3593 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3594 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3595 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3596 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3597 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3598 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3599 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3600 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3601 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3602 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3603 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3604 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3605 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3606 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3607 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3608 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3609 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3610 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3611 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3612 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3613 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3614 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3615 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3616 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3618 2018-03-20 Richard Biener <rguenther@suse.de>
3620 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3621 parallelizable loop.
3623 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3626 * configure: Regenerate.
3628 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3631 * libgomp.fortran/pr84418-1.f90: New test.
3632 * libgomp.fortran/pr84418-2.f90: New test.
3634 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3637 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3638 -std=f2003 -fall-intrinsics into dg-additional-options.
3640 2018-02-08 Martin Jambor <mjambor@suse.cz>
3642 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3645 2018-02-08 Martin Jambor <mjambor@suse.cz>
3647 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3649 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3651 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3652 [__cplusplus]: Declare extern "C".
3654 2018-02-07 Tom de Vries <tom@codesourcery.com>
3657 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3659 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3660 Jakub Jelinek <jakub@redhat.com>
3663 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3664 instead of omp_lock_t.
3666 2018-01-25 Tom de Vries <tom@codesourcery.com>
3669 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3671 2018-01-24 Tom de Vries <tom@codesourcery.com>
3674 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3676 2018-01-24 Tom de Vries <tom@codesourcery.com>
3679 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3681 2018-01-19 Tom de Vries <tom@codesourcery.com>
3682 Cesar Philippidis <cesar@codesourcery.com>
3685 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3686 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3688 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3690 Update copyright years.
3692 * libgomp.texi: Bump @copying's copyright year.
3694 2017-12-30 Tom de Vries <tom@codesourcery.com>
3697 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3698 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3700 2017-12-27 Tom de Vries <tom@codesourcery.com>
3703 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3704 (test_nonstatic): Fix return type to workaround PR83046.
3706 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3709 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3710 j suffix instead of i.
3711 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3714 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3716 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3717 call to acc_wait (1).
3719 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3722 * testsuite/libgomp.fortran/pr81304.f90: New test.
3724 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3727 * libgomp.fortran/pr81841.f90: New test.
3729 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3732 * target.c (gomp_target_init): Compute lengths just once and
3733 use them in both malloc size and subsequent copying.
3735 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3737 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3738 * acinclude.m4: Add cet.m4.
3739 * configure: Regenerate.
3740 * Makefile.in: Likewise.
3741 * testsuite/Makefile.in: Likewise.
3743 2017-11-15 Tom de Vries <tom@codesourcery.com>
3745 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3746 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3747 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3748 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3749 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3750 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3752 2017-11-14 Tom de Vries <tom@codesourcery.com>
3754 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3757 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3760 * testsuite/libgomp.c++/pr82835.C: New test.
3762 2017-11-06 Martin Liska <mliska@suse.cz>
3764 * testsuite/libgomp.c++/loop-2.C: Return a value
3765 for functions with non-void return type, or change type to void,
3766 or add -Wno-return-type for test.
3767 * testsuite/libgomp.c++/loop-4.C: Likewise.
3768 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3769 * testsuite/libgomp.c++/shared-1.C: Likewise.
3770 * testsuite/libgomp.c++/single-1.C: Likewise.
3771 * testsuite/libgomp.c++/single-2.C: Likewise.
3773 2017-10-31 Tom de Vries <tom@codesourcery.com>
3775 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3776 "do {} while (false)".
3777 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3778 after HSA_DEBUG call.
3780 2017-10-28 Jakub Jelinek <jakub@redhat.com>
3782 * target.c (struct gomp_coalesce_buf): New type.
3783 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3784 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3785 (gomp_copy_host2dev): Add CBUF argument, if copying into
3786 the cached ranges, memcpy into buffer instead of copying
3788 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3789 Add CBUF argument, pass it through to other calls.
3790 (gomp_map_vars): Aggregate copies from host to device if small enough
3791 and with small enough gaps in between into memcpy into a buffer and
3792 fewer host to device copies from the buffer.
3793 (gomp_update): Adjust gomp_copy_host2dev caller.
3795 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3797 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3799 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3800 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3801 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3802 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3804 2017-10-16 Tom de Vries <tom@codesourcery.com>
3806 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3807 openacc_nvidia_accel_selected.
3808 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3809 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3810 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3811 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3812 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3813 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3814 openacc_nvidia_accel_selected. Skip for shared memory device.
3815 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3816 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3818 2017-10-09 Martin Jambor <mjambor@suse.cz>
3821 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3823 2017-10-07 Tom de Vries <tom@codesourcery.com>
3825 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3826 Remove acc_device_nvidia references.
3827 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3830 2017-10-05 Tom de Vries <tom@codesourcery.com>
3832 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3833 vector_length(32) clause from acc parallel directive.
3834 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3836 2017-10-04 Tom de Vries <tom@codesourcery.com>
3838 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3839 (main): Reduce sum of arr elements. Assert that hres is exactly
3840 representable in 32-bit floating point.
3841 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
3842 (main): Reduce sum of arr elements. Assert that hres and hmres are
3843 exactly representable in 32-bit floating point.
3844 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
3846 2017-09-28 Tom de Vries <tom@codesourcery.com>
3848 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
3850 * testsuite/libgomp.c++/pr69393.C: Same.
3851 * testsuite/libgomp.c++/taskloop-1.C: Same.
3852 * testsuite/libgomp.c++/taskloop-3.C: Same.
3853 * testsuite/libgomp.c++/taskloop-4.C: Same.
3854 * testsuite/libgomp.c/for-4.c: Same.
3855 * testsuite/libgomp.c/pr66199-3.c: Same.
3856 * testsuite/libgomp.c/pr66199-4.c: Same.
3857 * testsuite/libgomp.c/pr66199-6.c: Same.
3858 * testsuite/libgomp.c/taskloop-1.c: Same.
3859 * testsuite/libgomp.c/taskloop-3.c: Same.
3860 * testsuite/libgomp.c/taskloop-4.c: Same.
3861 * testsuite/libgomp.fortran/aligned1.f03: Same.
3862 * testsuite/libgomp.fortran/condinc1.f: Same.
3863 * testsuite/libgomp.fortran/condinc3.f90: Same.
3864 * testsuite/libgomp.fortran/crayptr1.f90: Same.
3865 * testsuite/libgomp.fortran/crayptr2.f90: Same.
3866 * testsuite/libgomp.fortran/crayptr3.f90: Same.
3867 * testsuite/libgomp.fortran/omp_cond1.f: Same.
3868 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
3869 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
3870 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
3871 * testsuite/libgomp.fortran/recursion1.f90: Same.
3872 * testsuite/libgomp.fortran/target2.f90: Same.
3873 * testsuite/libgomp.fortran/target5.f90: Same.
3874 * testsuite/libgomp.fortran/task3.f90: Same.
3876 2017-09-28 Tom de Vries <tom@codesourcery.com>
3878 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
3879 vector_length(32) clause from acc parallel directive.
3880 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
3882 2017-09-27 Tom de Vries <tom@codesourcery.com>
3884 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
3885 Remove acc_device_nvidia references.
3887 2017-09-16 Tom de Vries <tom@codesourcery.com>
3890 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
3892 2017-09-14 Tom de Vries <tom@codesourcery.com>
3894 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
3895 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
3896 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
3897 * testsuite/libgomp.c/c.exp: Include test-cases from
3898 libgomp.c-c++-common.
3899 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
3902 2017-09-14 Jakub Jelinek <jakub@redhat.com>
3905 * testsuite/libgomp.c++/pr81314.C: New test.
3907 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
3909 * libgomp.texi (Top): www.openacc.org now uses https.
3910 (Enabling OpenACC): Ditto.
3911 (acc_get_num_devices): Ditto.
3912 (acc_set_device_type): Ditto.
3913 (acc_get_device_type): Ditto.
3914 (acc_set_device_num): Ditto.
3915 (acc_get_device_num): Ditto.
3916 (acc_async_test): Ditto.
3917 (acc_async_test_all): Ditto.
3919 (acc_wait_all): Ditto.
3920 (acc_wait_all_async): Ditto.
3921 (acc_wait_async): Ditto.
3923 (acc_shutdown): Ditto.
3924 (acc_on_device): Ditto.
3925 (acc_malloc): Ditto.
3927 (acc_copyin): Ditto.
3928 (acc_present_or_copyin): Ditto.
3929 (acc_create): Ditto.
3930 (acc_present_or_create): Ditto.
3931 (acc_copyout): Ditto.
3932 (acc_delete): Ditto.
3933 (acc_update_device): Ditto.
3934 (acc_update_self): Ditto.
3935 (acc_map_data): Ditto.
3936 (acc_unmap_data): Ditto.
3937 (acc_deviceptr): Ditto.
3938 (acc_hostptr): Ditto.
3939 (acc_is_present): Ditto.
3940 (acc_memcpy_to_device): Ditto.
3941 (acc_memcpy_from_device): Ditto.
3942 (acc_get_current_cuda_device): Ditto.
3943 (acc_get_current_cuda_context): Ditto.
3944 (acc_get_cuda_stream): Ditto.
3945 (acc_set_cuda_stream): Ditto.
3946 (ACC_DEVICE_TYPE): Ditto.
3947 (ACC_DEVICE_NUM): Ditto.
3948 (OpenACC Library Interoperability): Ditto.
3950 2017-08-09 Jakub Jelinek <jakub@redhat.com>
3953 * testsuite/libgomp.c/pr81687-1.c: New test.
3954 * testsuite/libgomp.c/pr81687-2.c: New test.
3956 2017-08-07 Jakub Jelinek <jakub@redhat.com>
3959 * testsuite/libgomp.c/pr69389.c: New test.
3960 * testsuite/libgomp.c++/pr69389.C: New test.
3962 2017-08-07 Tom de Vries <tom@codesourcery.com>
3965 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
3966 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
3968 2017-07-27 Jakub Jelinek <jakub@redhat.com>
3971 * testsuite/libgomp.c/pr45784.c: New test.
3972 * testsuite/libgomp.c++/pr45784.C: New test.
3974 2017-07-19 Tom de Vries <tom@codesourcery.com>
3976 * testsuite/libgomp.oacc-c/vec.c: New test.
3978 2017-07-03 Tom de Vries <tom@codesourcery.com>
3980 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
3982 2017-06-27 Tom de Vries <tom@codesourcery.com>
3984 * plugin/plugin-nvptx.c (notify_var): New function.
3985 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
3987 2017-06-27 Tom de Vries <tom@codesourcery.com>
3989 * env.c (parse_unsigned_long_1): Factor out of ...
3990 (parse_unsigned_long): ... here.
3991 (parse_int_1): Factor out of ...
3992 (parse_int): ... here.
3993 (parse_int_secure): New function.
3994 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
3995 * secure_getenv.h: Factor out of ...
3996 * plugin/plugin-hsa.c: ... here.
3997 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
3999 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4002 * testsuite/libgomp.c++/pr81130.C: New test.
4004 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4006 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4008 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4009 dg-xfail-run-if default args.
4011 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4013 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4014 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4016 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4019 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4020 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4021 sibling lists, depending on level just pick up what CPUs to put
4022 together into a place vs. whether add multiple ordered places.
4024 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4026 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4027 * libgomp.map (OACC_2.0.1): Add these.
4028 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4029 for "acc_wait", and "acc_wait_all", respectively.
4030 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4031 for "acc_wait", and "acc_wait_all", respectively.
4032 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4033 * libgomp.texi (acc_wait, acc_wait_all): Update.
4034 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4035 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4036 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4038 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4039 acc_present_or_copyin and acc_present_or_create procedures,
4041 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4042 generally different variants of OpenACC Runtime Library functions.
4043 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4045 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4046 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4048 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4049 of preprocessor definitions.
4050 * libgomp.h (strong_alias): Guard by "#ifdef
4051 HAVE_ATTRIBUTE_ALIAS".
4052 * oacc-mem.c: Provide "acc_pcreate" as alias for
4053 "acc_present_or_create", and "acc_pcopyin" as alias for
4054 "acc_present_or_copyin".
4055 * libgomp.map: New version "OACC_2.0.1".
4056 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4057 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4059 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4062 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4063 when disabling nvptx offloading.
4065 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4068 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4069 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4072 * testsuite/lib/libgomp.exp
4073 (check_effective_target_openacc_nvidia_accel_configured): New
4075 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4076 (check_effective_target_c++): New procs.
4077 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4078 (check_effective_target_c++): Likewise.
4080 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4083 * testsuite/libgomp.c/pr80809-2.c: New test.
4084 * testsuite/libgomp.c/pr80809-3.c: New test.
4087 * testsuite/libgomp.c/pr80809-1.c: New test.
4090 * testsuite/libgomp.c/pr80853.c: New test.
4092 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4094 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4095 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4096 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4097 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4098 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4100 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4101 Debug output for failure.
4103 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4105 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4107 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4110 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4111 bootstrap compare failures.
4113 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4115 * testsuite/libgomp.c/target-36.c: New testcase.
4117 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4119 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4122 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4125 * testsuite/libgomp.c/pr80394.c: New test.
4127 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4130 * config/posix/thread-stacksize.h: New file.
4131 * config/darwin/thread-stacksize.h: New file.
4132 * config/nvptx/thread-stacksize.h: New file.
4133 * env.c: Include thread-stacksize.h.
4134 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4135 instead of 0. Call pthread_attr_setstacksize even if
4136 GOMP_DEFAULT_STACKSIZE is non-zero.
4138 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4140 * env.c (initialize_env): Initialize stacksize to 0.
4142 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4145 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4147 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4150 * testsuite/libgomp.c/pr79940.c: New test.
4152 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4154 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4156 Add __float128 options.
4158 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4160 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4161 hppa*-*-* dg-skip-if directive.
4163 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4165 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4166 dg-skip-if directive into a comment.
4168 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4169 Chung-Lin Tang <cltang@codesourcery.com>
4171 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4172 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4173 add additional case.
4174 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4175 "openacc_nvidia_accel_selected".
4176 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4177 Add num_workers(8) clause.
4179 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4181 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4183 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4184 include complex.h on hppa*-*-hpux*.
4185 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4187 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4189 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4191 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4192 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4193 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4194 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4195 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4196 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4197 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4198 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4199 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4200 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4202 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4204 * libgomp-plugin.h: #include <stdbool.h>.
4205 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4206 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4207 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4208 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4209 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4210 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4211 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4212 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4213 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4214 (GOMP_OFFLOAD_openacc_async_test)
4215 (GOMP_OFFLOAD_openacc_async_test_all)
4216 (GOMP_OFFLOAD_openacc_async_wait)
4217 (GOMP_OFFLOAD_openacc_async_wait_async)
4218 (GOMP_OFFLOAD_openacc_async_wait_all)
4219 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4220 (GOMP_OFFLOAD_openacc_async_set_async)
4221 (GOMP_OFFLOAD_openacc_create_thread_data)
4222 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4223 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4224 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4225 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4226 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4227 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4229 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4230 (GOMP_OFFLOAD_unload_image): Fix argument types.
4232 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4234 * testsuite/lib/libgomp.exp
4235 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4236 check_compile invocation. Fix up removal of executable. Drop
4237 bogus "2>&1" argument.
4239 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4242 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4243 Martin Jambor <mjambor@suse.cz>
4245 * plugin/hsa.h: Moved to top level include.
4246 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4248 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4251 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4252 of cat to get version from BASE-VER file.
4253 * testsuite/Makefile.in: Regenerated.
4255 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4257 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4260 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4262 * plugin/hsa.h: Add GCC runtime library exception.
4263 * plugin/hsa_ext_finalize.h: Likewise.
4265 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4266 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4267 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4268 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4269 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4270 library to link ptx plugin against.
4271 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4272 (CUDA_CALLS): Define.
4273 (cuda_lib, cuda_lib_inited): New variables.
4274 (init_cuda_lib): New function.
4275 (CUDA_CALL_PREFIX): Define.
4276 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4277 (CUDA_CALL): Use FN instead of (FN).
4278 (CUDA_CALL_NOCHECK): Define.
4279 (cuda_error, fini_streams_for_device, select_stream_for_async,
4280 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4281 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4282 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4283 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4285 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4287 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4288 Use CUDA_CALL_NOCHECK.
4289 * plugin/cuda/cuda.h: New file.
4290 * config.h.in: Regenerated.
4291 * configure: Regenerated.
4294 * configure.ac: Add GCC_BASE_VER.
4295 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4296 get version from BASE-VER file.
4297 * testsuite/Makefile.in: Regenerated.
4298 * configure: Regenerated.
4299 * Makefile.in: Regenerated.
4301 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4304 * Makefile.am: Make fincludedir multilib-aware.
4305 * Makefile.in: Regenerate.
4307 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4309 Update copyright years.
4311 * libgomp.texi: Bump @copying's copyright year.
4313 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4315 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4316 pthread_spinlock_t instead of gomp_mutex_t lock.
4317 (gomp_get_thread_pool): Likewise.
4318 (gomp_release_thread_pool): Likewise.
4319 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4322 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4324 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4325 thread pool in case nthreads == 1.
4327 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4329 * config/nvptx/env.c: Delete.
4330 * icv.c: Move definitions of ICV variables back ...
4331 * env.c: ...here. Do not compile environment-related functionality if
4332 LIBGOMP_OFFLOADED_ONLY is set.
4334 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4336 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4337 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4338 * configure: Regenerate.
4339 * config.h.in: Likewise.
4341 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4343 * Makefile.in: Regenerate with automake-1.11.6.
4344 * aclocal.m4: Likewise.
4345 * configure: Likewise.
4346 * testsuite/Makefile.in: Likewise.
4348 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4350 * config/nvptx/critical.c: Delete to use generic implementation.
4352 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4354 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4355 ../../affinity.c as fallback.
4356 * config/nvptx/affinity.c: Delete to use fallback implementation.
4358 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4359 Jakub Jelinek <jakub@redhat.com>
4360 Dmitry Melnik <dm@ispras.ru>
4362 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4363 * Makefile.in. Regenerate.
4364 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4365 (LIBGOMP_USE_PTHREADS): ...here; new define.
4366 * configure: Regenerate.
4367 * config.h.in: Likewise.
4368 * config/posix/affinity.c: Move to...
4369 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4370 interface by LIBGOMP_USE_PTHREADS.
4371 * critical.c: Split out GOMP_atomic_{start,end} into...
4372 * atomic.c: ...here (new file).
4373 * env.c: Split out ICV definitions into...
4374 * icv.c: ...here (new file) and...
4375 * icv-device.c: ...here. New file.
4376 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4377 (gomp_destroy_lock_30): Ditto.
4378 (gomp_set_lock_30): Ditto.
4379 (gomp_unset_lock_30): Ditto.
4380 (gomp_test_lock_30): Ditto.
4381 (gomp_init_nest_lock_30): Ditto.
4382 (gomp_destroy_nest_lock_30): Ditto.
4383 (gomp_set_nest_lock_30): Ditto.
4384 (gomp_unset_nest_lock_30): Ditto.
4385 (gomp_test_nest_lock_30): Ditto.
4387 * config/nvptx/lock.c: New.
4388 * config/nvptx/bar.c: New.
4389 * config/nvptx/bar.h: New.
4390 * config/nvptx/doacross.h: New.
4391 * config/nvptx/error.c: New.
4392 * config/nvptx/icv-device.c: New.
4393 * config/nvptx/mutex.h: New.
4394 * config/nvptx/pool.h: New.
4395 * config/nvptx/proc.c: New.
4396 * config/nvptx/ptrlock.h: New.
4397 * config/nvptx/sem.h: New.
4398 * config/nvptx/simple-bar.h: New.
4399 * config/nvptx/target.c: New.
4400 * config/nvptx/task.c: New.
4401 * config/nvptx/team.c: New.
4402 * config/nvptx/time.c: New.
4403 * config/posix/simple-bar.h: New.
4404 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4405 (gomp_num_teams_var): Declare.
4406 (struct gomp_thread_pool): Change threads_dock member to
4407 gomp_simple_barrier_t.
4408 [__nvptx__] (gomp_thread): New implementation.
4409 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4410 (gomp_thread_destructor): Ditto.
4411 (gomp_init_thread_affinity): Ditto.
4412 * team.c: Guard uses of Pthreads-specific interfaces by
4413 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4414 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4415 * config/nvptx/alloc.c: Delete.
4416 * config/nvptx/barrier.c: Ditto.
4417 * config/nvptx/fortran.c: Ditto.
4418 * config/nvptx/iter.c: Ditto.
4419 * config/nvptx/iter_ull.c: Ditto.
4420 * config/nvptx/loop.c: Ditto.
4421 * config/nvptx/loop_ull.c: Ditto.
4422 * config/nvptx/ordered.c: Ditto.
4423 * config/nvptx/parallel.c: Ditto.
4424 * config/nvptx/priority_queue.c: Ditto.
4425 * config/nvptx/sections.c: Ditto.
4426 * config/nvptx/single.c: Ditto.
4427 * config/nvptx/splay-tree.c: Ditto.
4428 * config/nvptx/work.c: Ditto.
4429 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4430 -foffload=-lgfortran in addition to -lgfortran.
4431 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4432 * plugin/plugin-nvptx.c: Include <limits.h>.
4433 (struct targ_fn_descriptor): Add new fields.
4434 (struct ptx_device): Ditto. Set them...
4435 (nvptx_open_device): ...here.
4436 (nvptx_adjust_launch_bounds): New.
4437 (nvptx_host2dev): Allow NULL 'nvthd'.
4438 (nvptx_dev2host): Ditto.
4439 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4440 (link_ptx): Adjust log sizes.
4441 (nvptx_host2dev): Allow NULL 'nvthd'.
4442 (nvptx_dev2host): Ditto.
4443 (nvptx_set_clocktick): New. Use it...
4444 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4446 (GOMP_OFFLOAD_dev2dev): New.
4447 (nvptx_adjust_launch_bounds): New.
4448 (nvptx_stacks_size): New.
4449 (nvptx_stacks_alloc): New.
4450 (nvptx_stacks_free): New.
4451 (GOMP_OFFLOAD_run): New.
4452 (GOMP_OFFLOAD_async_run): New (stub).
4454 2016-11-23 Martin Jambor <mjambor@suse.cz>
4456 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4457 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4458 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4460 2016-11-23 Martin Liska <mliska@suse.cz>
4461 Martin Jambor <mjambor@suse.cz>
4463 * plugin/hsa.h: New file.
4464 * plugin/hsa_ext_finalize.h: New file.
4465 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4466 header file unistd.h, and functions secure_getenv, __secure_getenv,
4467 getuid, geteuid, getgid and getegid.
4468 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4470 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4471 Handle various cases of secure_getenv presence, add an implementation
4472 when we can test effective UID and GID.
4473 (struct hsa_runtime_fn_info): New structure.
4474 (hsa_runtime_fn_info hsa_fns): New variable.
4475 (hsa_runtime_lib): Likewise.
4476 (support_cpu_devices): Likewise.
4477 (init_enviroment_variables): Load newly introduced ENV
4479 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4480 (hsa_fatal): Likewise.
4481 (DLSYM_FN): New macro.
4482 (init_hsa_runtime_functions): New function.
4483 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4484 structure. Depending on environment, also allow CPU devices.
4485 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4486 (get_kernarg_memory_region): Likewise.
4487 (GOMP_OFFLOAD_init_device): Likewise.
4488 (destroy_hsa_program): Likewise.
4489 (init_basic_kernel_info): New function.
4490 (GOMP_OFFLOAD_load_image): Use it.
4491 (create_and_finalize_hsa_program): Call hsa run-time functions via
4493 (create_single_kernel_dispatch): Likewise.
4494 (release_kernel_dispatch): Likewise.
4495 (init_single_kernel): Likewise.
4496 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4497 (get_group_size): New function.
4498 (run_kernel): Likewise.
4499 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4500 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4502 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4503 * testsuite/libgomp-test-support.exp.in: Likewise.
4504 * Makefile.in: Regenerated.
4505 * aclocal.m4: Likewise.
4506 * config.h.in: Likewise.
4507 * configure: Likewise.
4508 * testsuite/Makefile.in: Likewise.
4510 2016-11-15 Martin Jambor <mjambor@suse.cz>
4511 Alexander Monakov <amonakov@ispras.ru>
4513 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4514 mapping clauses to target constructs.
4515 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4517 2016-11-15 Matthias Klose <doko@ubuntu.com>
4519 * configure: Regenerate.
4521 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4523 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4524 * omp_lib.h.in (openmp_version): Likewise.
4525 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4527 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4529 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4530 (fib_wrapper): Add map(from: x) clause.
4531 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4533 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4534 (accum): Add map(tmp) clause.
4535 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4536 (accum): Add map(tofrom: tmp) clause.
4537 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4538 (gramSchmidt): Likewise.
4539 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4540 map(tofrom: sum) clause.
4541 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4542 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4543 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4544 only allowed on the loop iterator.
4545 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4546 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4547 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4548 * testsuite/libgomp.fortran/doacross1.f90: New test.
4549 * testsuite/libgomp.fortran/doacross3.f90: New test.
4550 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4551 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4552 * testsuite/libgomp.fortran/doacross2.f90: New test.
4553 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4554 #pragma omp atomic read.
4555 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4556 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4558 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4559 Nathan Sidwell <nathan@acm.org>
4561 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4562 to determine default geometry.
4563 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4566 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4568 * hashtab.h: Use standard GPLv3 with runtime exception
4571 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4573 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4574 size when allocating new thread.
4576 2016-09-14 Marek Polacek <polacek@redhat.com>
4578 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4580 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4583 * testsuite/libgomp.fortran/pr71014.f90: New test.
4585 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4588 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4589 firstprivate clauses.
4590 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4592 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4593 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4594 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4595 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4596 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4597 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4598 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4599 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4600 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4601 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4602 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4603 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4605 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4608 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4610 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4613 * testsuite/libgomp.c++/pr58706.C: New test.
4615 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4617 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4618 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4619 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4621 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4622 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4624 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4626 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4627 test, and don't hardcode -O0.
4629 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4631 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4633 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4635 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4638 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4641 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4642 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4644 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4647 * testsuite/libgomp.fortran/associate3.f90: New test.
4649 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4651 * testsuite/libgomp.c++/target-21.C: New test.
4653 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4655 * testsuite/libgomp.c++/target-20.C: New test.
4657 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4658 Cesar Philippidis <cesar@codesourcery.com>
4661 * libgomp.oacc-c/nested-function-1.c: New file.
4662 * libgomp.oacc-c/nested-function-2.c: Likewise.
4663 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4664 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4665 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4667 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4670 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4671 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4672 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4674 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4676 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4677 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4679 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4682 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4684 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4686 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4687 instead of invalid schedule(static, 0).
4688 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4690 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4692 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4693 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4694 parameter, use to set async stream around call to gomp_unmap_vars,
4695 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4696 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4697 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4698 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4699 (event_add): Add int parameter, initialize 'val' field when
4700 adding new ptx_event struct.
4701 (nvptx_evec): Adjust event_add() call arguments.
4702 (nvptx_host2dev): Likewise.
4703 (nvptx_dev2host): Likewise.
4704 (nvptx_wait_async): Likewise.
4705 (nvptx_wait_all_async): Likewise.
4706 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4707 pass to event_add() call.
4708 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4710 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4711 call openacc.register_async_cleanup_func() hook.
4712 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4713 * target.c (gomp_copy_from_async): Delete function.
4714 (gomp_map_vars): Remove async_refcount.
4715 (gomp_unmap_vars): Likewise.
4716 (gomp_load_image_to_device): Likewise.
4717 (omp_target_associate_ptr): Likewise.
4718 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4719 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4720 (gomp_copy_from_async): Remove.
4722 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4724 * target.c (gomp_device_copy): New function.
4725 (gomp_copy_host2dev): Likewise.
4726 (gomp_copy_dev2host): Likewise.
4727 (gomp_free_device_memory): Likewise.
4728 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4729 (gomp_map_pointer): Likewise.
4730 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4731 NULL value from alloc_func plugin hook.
4732 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4733 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4734 (gomp_unmap_vars): Likewise.
4735 (gomp_update): Adjust to call gomp_copy_dev2host and
4736 gomp_copy_host2dev functions.
4737 (gomp_unload_image_from_device): Handle false value from
4738 unload_image_func plugin hook.
4739 (gomp_init_device): Handle false value from init_device_func
4741 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4742 (omp_target_free): Adjust to call gomp_free_device_memory.
4743 (omp_target_memcpy): Handle return values from host2dev_func,
4744 dev2host_func, and dev2dev_func plugin hooks.
4745 (omp_target_memcpy_rect_worker): Likewise.
4746 (gomp_target_fini): Handle false value from fini_device_func
4748 * libgomp.h (struct gomp_device_descr): Adjust return type of
4749 init_device_func, fini_device_func, unload_image_func, free_func,
4750 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4751 * oacc-init.c (acc_shutdown_1): Handle false value from
4752 fini_device_func plugin hook.
4753 * oacc-host.c (host_init_device): Change return type to bool.
4754 (host_fini_device): Likewise.
4755 (host_unload_image): Likewise.
4756 (host_free): Likewise.
4757 (host_dev2host): Likewise.
4758 (host_host2dev): Likewise.
4759 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4760 (acc_memcpy_to_device): Likewise.
4761 (acc_memcpy_from_device): Likewise.
4762 (delete_copyout): Add libfnname parameter, handle free_func
4763 hook fatal error case.
4764 (acc_delete): Adjust delete_copyout call.
4765 (acc_copyout): Likewise.
4766 (update_dev_host): Move gomp_mutex_unlock to after
4767 host2dev/dev2host hook calls.
4769 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4770 to 'hsa_error_msg', for clarity.
4771 (hsa_fatal): Likewise.
4772 (hsa_error): New function.
4773 (init_hsa_context): Change return type to bool, adjust to return
4775 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4777 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4778 return false on error.
4779 (get_agent_info): Adjust to return NULL on error.
4780 (destroy_hsa_program): Change return type to bool, adjust to
4781 return false on error.
4782 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4783 (destroy_module): Change return type to bool, adjust to
4784 return false on error.
4785 (GOMP_OFFLOAD_unload_image): Likewise.
4786 (GOMP_OFFLOAD_fini_device): Likewise.
4787 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4788 (GOMP_OFFLOAD_free): Change to return false when called.
4789 (GOMP_OFFLOAD_dev2host): Likewise.
4790 (GOMP_OFFLOAD_host2dev): Likewise.
4791 (GOMP_OFFLOAD_dev2dev): Likewise.
4793 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4794 (CUDA_CALL): Likewise.
4795 (CUDA_CALL_ASSERT): Likewise.
4796 (map_init): Change return type to bool, use CUDA_CALL* macros.
4797 (map_fini): Likewise.
4798 (init_streams_for_device): Change return type to bool, adjust
4800 (fini_streams_for_device): Change return type to bool, adjust
4802 (select_stream_for_async): Release stream_lock before calls to
4803 GOMP_PLUGIN_fatal, adjust call to map_init.
4804 (nvptx_init): Use CUDA_CALL* macros.
4805 (nvptx_attach_host_thread_to_device): Change return type to bool,
4806 use CUDA_CALL* macros.
4807 (nvptx_open_device): Use CUDA_CALL* macros.
4808 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4810 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4811 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4812 (nvptx_exec): Use CUDA_CALL* macros.
4813 (nvptx_alloc): Use CUDA_CALL* macros.
4814 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4815 (nvptx_host2dev): Likewise.
4816 (nvptx_dev2host): Likewise.
4817 (nvptx_wait): Use CUDA_CALL* macros.
4818 (nvptx_wait_async): Likewise.
4819 (nvptx_wait_all): Likewise.
4820 (nvptx_wait_all_async): Likewise.
4821 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4822 use CUDA_CALL* macros, adjust call to map_fini.
4823 (GOMP_OFFLOAD_init_device): Change return type to bool,
4824 adjust code accordingly.
4825 (GOMP_OFFLOAD_fini_device): Likewise.
4826 (GOMP_OFFLOAD_load_image): Adjust calls to
4827 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4828 use CUDA_CALL* macros.
4829 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4831 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4832 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4833 handle error return.
4834 (GOMP_OFFLOAD_dev2host): Likewise.
4835 (GOMP_OFFLOAD_host2dev): Likewise.
4836 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4837 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4839 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
4841 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
4842 (acc_free): Likewise.
4843 (acc_memcpy_to_device): Likewise.
4844 (acc_memcpy_from_device): Likewise.
4845 (acc_deviceptr): Likewise.
4846 (acc_hostptr): Likewise.
4847 (acc_is_present): Likewise.
4848 (acc_map_data): Likewise.
4849 (acc_unmap_data): Likewise.
4850 (present_create_copy): Likewise.
4851 (delete_copyout): Likewise.
4852 (update_dev_host): Likewise.
4853 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
4854 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
4855 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
4856 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4857 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
4858 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
4859 it only runs on nvptx targets.
4860 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4861 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4862 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4863 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4864 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4865 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4866 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4867 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4868 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4869 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4870 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4871 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4872 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4873 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4874 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4875 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4876 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4877 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4878 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4879 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4880 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4881 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4882 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4884 2016-05-23 Martin Jambor <mjambor@suse.cz>
4886 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
4888 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
4890 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
4891 to gomp_init_targets_once.
4892 (acc_set_device_type): Remove !cached_base_dev condition on call to
4893 gomp_init_targets_once, move call to before acc_device_lock acquire,
4895 (acc_get_device_num): Remove !cached_base_dev condition on call to
4896 gomp_init_targets_once.
4897 (acc_set_device_num): Likewise.
4899 2016-05-16 Martin Jambor <mjambor@suse.cz>
4901 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
4903 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4905 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
4906 expected partitioning.
4908 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4911 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
4912 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
4913 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
4915 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
4917 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
4920 2016-04-19 Jakub Jelinek <jakub@redhat.com>
4923 * testsuite/libgomp.c/pr70680-1.c: New test.
4924 * testsuite/libgomp.c/pr70680-2.c: New test.
4926 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4928 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
4929 pass parameter variables to subroutines.
4931 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4934 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
4936 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
4939 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
4940 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4942 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
4944 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
4945 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
4946 GOACC_declare prototype.
4948 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
4949 Merge this file, and...
4950 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
4951 ... this file, and...
4952 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
4953 ... this file, and...
4954 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
4955 ... this file, and...
4956 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
4957 ... this file, and...
4958 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
4959 ... this file, and...
4960 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
4961 ... this file, and...
4962 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
4963 ... this file, and...
4964 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
4965 ... this file, and...
4966 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
4967 ... this file, and...
4968 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
4969 ... this file, and...
4970 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
4971 ... this file, and...
4972 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
4973 ... this file into...
4974 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
4977 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4978 Make failure observable.
4980 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4982 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
4984 * target.c (gomp_target_fallback_firstprivate,
4985 gomp_target_unshare_firstprivate): Removed.
4986 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
4987 before waiting for dependencies.
4988 (gomp_target_task_fn): Don't copy firstprivate vars here.
4989 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
4990 firstprivate_copies here.
4991 (gomp_create_target_task): Don't initialize firstprivate_copies field.
4992 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
4993 explicit/implicit firstprivate.
4995 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4999 PR tree-optimization/70373
5003 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5005 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5007 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5009 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5011 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5013 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5015 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5017 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5019 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5021 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5022 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5023 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5024 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5026 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5028 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5030 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5032 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5034 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5035 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5036 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5037 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5038 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5039 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5041 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5042 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5043 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5044 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5045 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5046 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5047 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5048 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5049 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5050 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5051 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5052 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5053 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5054 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5055 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5057 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5058 James Norris <jnorris@codesourcery.com>
5059 Nathan Sidwell <nathan@codesourcery.com>
5060 Julian Brown <julian@codesourcery.com>
5061 Cesar Philippidis <cesar@codesourcery.com>
5062 Chung-Lin Tang <cltang@codesourcery.com>
5063 Tom de Vries <tom@codesourcery.com>
5065 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5066 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5067 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5068 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5069 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5070 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5071 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5072 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5073 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5075 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5077 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5079 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5080 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5081 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5082 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5084 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5086 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5087 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5088 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5089 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5090 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5091 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5092 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5093 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5094 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5095 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5097 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5098 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5099 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5101 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5103 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5105 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5107 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5109 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5110 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5111 ... this new file. Update.
5112 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5113 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5114 ... this new file. Update.
5115 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5116 file. Incorporate...
5117 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5119 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5121 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5123 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5125 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5127 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5128 set-torture-options.
5130 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5132 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5134 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5135 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5136 -fno-builtin-acc_on_device instead of -O0.
5137 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5139 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5140 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5142 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5143 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5144 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5145 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5146 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5147 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5148 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5149 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5150 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5151 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5152 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5153 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5154 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5155 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5156 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5157 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5158 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5159 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5161 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5163 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5166 2016-03-24 Martin Liska <mliska@suse.cz>
5168 * plugin/plugin-hsa.c (packet_store_release): New function
5169 that is taken from the HSA runtime manual.
5170 (GOMP_OFFLOAD_run): Use the function.
5172 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5175 * testsuite/libgomp.c++/pr70376.C: New test.
5177 2016-03-23 Tom de Vries <tom@codesourcery.com>
5179 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5180 initialization of lresult and lvresult.
5181 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5183 2016-03-23 James Norris <jnorris@codesourcery.com>
5184 Daichi Fukuoka <dc-fukuoka@sgi.com>
5187 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5188 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5189 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5190 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5192 2016-03-23 Martin Liska <mliska@suse.cz>
5195 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5196 argument just in case a dispatched kernel uses that argument.
5198 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5200 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5201 -ftree-parallelize-loops/-fopenacc changes.
5202 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5204 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5206 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5208 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5210 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5211 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5213 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5215 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5216 always_ld_library_path the path to libgcc_s.
5218 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5221 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5223 2016-03-09 Tom de Vries <tom@codesourcery.com>
5225 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5226 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5227 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5229 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5230 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5231 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5232 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5234 2016-03-07 Martin Jambor <mjambor@suse.cz>
5236 * testsuite/lib/libgomp.exp
5237 (check_effective_target_hsa_offloading_selected_nocache): New.
5238 (check_effective_target_hsa_offloading_selected): Likewise.
5239 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5240 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5241 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5242 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5243 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5244 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5245 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5246 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5247 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5248 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5249 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5250 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5251 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5252 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5253 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5254 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5255 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5257 2016-03-07 Martin Jambor <mjambor@suse.cz>
5259 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5260 non-shared memory accelerators.
5261 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5262 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5263 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5264 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5265 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5266 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5267 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5268 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5269 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5271 2016-03-07 Martin Jambor <mjambor@suse.cz>
5273 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5276 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5279 * testsuite/libgomp.c++/pr69555-1.C: New test.
5280 * testsuite/libgomp.c++/pr69555-2.C: New test.
5282 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5283 Martin Jambor <mjambor@suse.cz>
5285 * testsuite/lib/libgomp.exp
5286 (check_effective_target_offload_device_shared_as): New proc.
5287 * testsuite/libgomp.c++/declare_target-1.C: New test.
5289 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5292 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5294 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5296 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5297 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5299 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5300 -ftree-parallelize-loops/-fopenacc changes.
5301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5304 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5306 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5308 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5310 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5314 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5316 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5319 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5322 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5323 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5326 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5328 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5330 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5333 * testsuite/libgomp.c/pr69805.c: New test.
5335 2016-02-16 Tom de Vries <tom@codesourcery.com>
5338 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5340 2016-02-09 Tom de Vries <tom@codesourcery.com>
5342 PR tree-optimization/69599
5343 * testsuite/libgomp.c/omp-nested-3.c: New test.
5344 * testsuite/libgomp.c/pr46032-2.c: New test.
5345 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5346 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5348 2016-02-09 Tom de Vries <tom@codesourcery.com>
5351 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5353 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5355 * testsuite/libgomp.c/target-31.c: Fix testcase.
5357 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5359 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5361 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5362 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5363 reduction and map clauses.
5364 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5366 2016-02-02 James Norris <jnorris@codesourcery.com>
5368 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5370 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5372 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5373 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5375 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5378 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5380 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5381 (hsa_kmt_lib): Set variables.
5382 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5383 always_ld_library_path.
5384 * Makefile.in: Regenerate.
5385 * configure: Likewise.
5386 * testsuite/Makefile.in: Likewise.
5388 * plugin/configfrag.ac (offload_additional_options)
5389 (offload_additional_lib_paths): Don't amend for hsa offloading.
5390 * configure: Regenerate.
5392 * plugin/configfrag.ac: Don't configure for offloading target if
5393 we don't build the corresponding plugin.
5394 * configure: Regenerate.
5396 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5398 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5399 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5401 2016-01-26 Tom de Vries <tom@codesourcery.com>
5403 PR tree-optimization/69110
5404 * testsuite/libgomp.c/pr69110.c: New test.
5406 2016-01-25 Richard Biener <rguenther@suse.de>
5409 * testsuite/libgomp.c++/pr69393.C: New testcase.
5411 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5413 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5414 function wasn't mapped to the device with non-shared memory.
5416 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5418 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5420 2016-01-19 Martin Jambor <mjambor@suse.cz>
5421 Martin Liska <mliska@suse.cz>
5423 * plugin/Makefrag.am: Add HSA plugin requirements.
5424 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5425 (HSA_RUNTIME_LIB): Likewise.
5426 (HSA_RUNTIME_CPPFLAGS): Likewise.
5427 (HSA_RUNTIME_INCLUDE): New substitution.
5428 (HSA_RUNTIME_LIB): Likewise.
5429 (HSA_RUNTIME_LDFLAGS): Likewise.
5430 (hsa-runtime): New configure option.
5431 (hsa-runtime-include): Likewise.
5432 (hsa-runtime-lib): Likewise.
5433 (PLUGIN_HSA): New substitution variable.
5434 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5436 (PLUGIN_HSA_CPPFLAGS): Likewise.
5437 (PLUGIN_HSA_LDFLAGS): Likewise.
5438 (PLUGIN_HSA_LIBS): Likewise.
5439 Check that we have access to HSA run-time.
5440 * libgomp-plugin.h (offload_target_type): New element
5441 OFFLOAD_TARGET_TYPE_HSA.
5442 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5444 (bool gomp_create_target_task): Updated.
5445 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5446 new field can_run_func.
5447 * libgomp_g.h (GOMP_target_ext): Update prototype.
5448 * oacc-host.c (host_run): Added a new parameter args.
5449 * target.c (calculate_firstprivate_requirements): New function.
5450 (copy_firstprivate_data): Likewise.
5451 (gomp_target_fallback_firstprivate): Use them.
5452 (gomp_target_unshare_firstprivate): New function.
5453 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5455 (GOMP_target): Do host fallback for all shared memory devices. Do not
5456 pass any args to plugins.
5457 (GOMP_target_ext): Introduce device-specific argument parameter args.
5458 Allow host fallback if device shares memory. Do not remap data if
5459 device has shared memory.
5460 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5461 like host fallback for mappings.
5462 (GOMP_target_data): Treat shared memory devices like host fallback.
5463 (GOMP_target_data_ext): Likewise.
5464 (GOMP_target_update): Likewise.
5465 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5466 gomp_create_target_task.
5467 (GOMP_target_enter_exit_data): Likewise.
5468 (omp_target_alloc): Treat shared memory devices like host fallback.
5469 (omp_target_free): Likewise.
5470 (omp_target_is_present): Likewise.
5471 (omp_target_memcpy): Likewise.
5472 (omp_target_memcpy_rect): Likewise.
5473 (omp_target_associate_ptr): Likewise.
5474 (gomp_load_plugin_for_device): Also load can_run.
5475 * task.c (GOMP_PLUGIN_target_task_completion): Free
5476 firstprivate_copies.
5477 (gomp_create_target_task): Accept new argument args and store it to
5479 * plugin/plugin-hsa.c: New file.
5481 2016-01-18 Tom de Vries <tom@codesourcery.com>
5483 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5484 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5485 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5486 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5487 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5488 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5489 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5490 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5491 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5492 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5493 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5495 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5497 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5498 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5499 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5500 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5501 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5502 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5503 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5504 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5506 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5508 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5510 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5512 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5514 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5516 2016-01-12 James Norris <jnorris@codesourcery.com>
5518 * libgomp.texi: Updates for OpenACC.
5520 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5522 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5524 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5527 * testsuite/libgomp.fortran/pr66680.f90: New test.
5529 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5532 * testsuite/libgomp.c/pr68960.c: New test.
5534 2016-01-06 Nathan Sidwell <nathan@acm.org>
5536 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5537 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5539 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5541 Update copyright years.
5543 * libgomp.texi: Bump @copying's copyright year.
5545 2015-12-31 Nathan Sidwell <nathan@acm.org>
5547 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5548 dg-additional-options syntax.
5549 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5553 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5559 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5561 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5563 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5564 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5566 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5568 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5570 * libgomp.h (REFCOUNT_LINK): Define.
5571 (struct splay_tree_key_s): Add link_key.
5572 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5573 Replace target address of the pointer with target address of newly
5574 mapped object in the splay tree. Set link pointer on target to the
5575 device address of the mapped object.
5576 (gomp_unmap_vars): Restore target address of the pointer in the splay
5577 tree for REFCOUNT_LINK objects after unmapping.
5578 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5579 declare target link" objects.
5580 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5581 "omp declare target link" objects, which were mapped for the image.
5582 (gomp_exit_data): Restore target address of the pointer in the splay
5583 tree for REFCOUNT_LINK objects after unmapping.
5584 * testsuite/libgomp.c/target-link-1.c: New file.
5586 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5588 * libgomp.h (gomp_device_state): New enum.
5589 (struct gomp_device_descr): Replace is_initialized with state.
5590 (gomp_fini_device): Remove declaration.
5591 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5592 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5593 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5594 (acc_set_device_type): Use state instead of is_initialized.
5595 (acc_set_device_num): Likewise.
5596 * target.c (resolve_device): Use state instead of is_initialized.
5597 Do not initialize finalized device.
5598 (gomp_map_vars): Do nothing if device is finalized.
5599 (gomp_unmap_vars): Likewise.
5600 (gomp_update): Likewise.
5601 (GOMP_offload_register_ver): Use state instead of is_initialized.
5602 (GOMP_offload_unregister_ver): Likewise.
5603 (gomp_init_device): Likewise.
5604 (gomp_unload_device): Likewise.
5605 (gomp_fini_device): Remove.
5606 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5607 (GOMP_target): Go to host fallback if device is finalized.
5608 (GOMP_target_ext): Likewise.
5609 (gomp_exit_data): Do nothing if device is finalized.
5610 (gomp_target_task_fn): Go to host fallback if device is finalized.
5611 (gomp_target_fini): New static function.
5612 (gomp_target_init): Use state instead of is_initialized.
5613 Call gomp_target_fini at exit.
5615 2015-12-09 Tom de Vries <tom@codesourcery.com>
5617 PR tree-optimization/68716
5618 * testsuite/libgomp.c/omp-nested-2.c: New test.
5620 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5622 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5623 target openacc_nvidia_accel_selected.
5624 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5625 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5626 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5627 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5629 2015-12-01 Julian Brown <julian@codesourcery.com>
5630 James Norris <James_Norris@mentor.com>
5632 * oacc-parallel.c (GOACC_host_data): New function.
5633 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5634 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5635 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5636 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5637 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5638 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5639 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5641 2015-11-30 James Norris <jnorris@codesourcery.com>
5642 Cesar Philippidis <cesar@codesourcery.com>
5645 * libgomp.oacc-fortran/routine-5.f90: New test.
5646 * libgomp.oacc-fortran/routine-7.f90: New test.
5647 * libgomp.oacc-fortran/routine-9.f90: New test.
5649 2015-11-30 Tom de Vries <tom@codesourcery.com>
5651 PR tree-optimization/46032
5652 * testsuite/libgomp.c/pr46032.c: New test.
5654 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5657 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5658 (gomp_create_target_task): Call it before freeing
5659 GOMP_TARGET_TASK_DATA tasks.
5662 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5663 in between case label and OpenMP standalone directives.
5664 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5666 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5668 * configure: Regenerate.
5670 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5672 * testsuite/libgomp.c/target-35.c: New test.
5674 2015-11-22 James Norris <jnorris@codesourcery.com>
5675 Cesar Philippidis <cesar@codesourcery.com>
5677 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5678 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5679 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5680 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5681 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5683 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5686 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5687 * testsuite/libgomp.c/reduction-12.c: Likewise.
5688 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5689 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5691 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5693 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5694 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5695 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5696 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5697 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5699 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5700 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5702 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5704 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5705 worker & gang cases.
5706 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5708 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5710 * config/nvptx/priority_queue.c: New file.
5712 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5714 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5717 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5718 Aldy Hernandez <aldyh@redhat.com>
5719 Ilya Verbin <ilya.verbin@intel.com>
5721 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5722 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5723 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5724 iterators or IV by chunk size.
5725 * parallel.c (gomp_resolve_num_threads): Don't assume that
5726 if thr->ts.team is non-NULL, then pool must be non-NULL.
5727 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5728 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5729 GOMP_PLUGIN_target_task_completion.
5730 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5731 * Makefile.in: Regenerate.
5732 * libgomp.h: Shuffle prototypes and forward definitions around so
5733 priority queues can be defined.
5734 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5735 (enum gomp_target_task_state): New enum.
5736 (struct gomp_target_task): Add state, tgt, task and team fields.
5737 (gomp_create_target_task): Change return type to bool, add
5739 (gomp_target_task_fn): Change return type to bool.
5740 (struct gomp_device_descr): Add async_run_func.
5741 (struct gomp_task): Remove children, next_child, prev_child,
5742 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5744 (struct gomp_taskgroup): Remove children.
5745 Add taskgroup_queue.
5746 (struct gomp_team): Change task_queue type to a priority queue.
5747 (splay_compare): Define inline.
5748 (priority_queue_offset): New.
5749 (priority_node_to_task): New.
5750 (task_to_priority_node): New.
5751 * oacc-mem.c: Do not include splay-tree.h.
5752 * priority_queue.c: New file.
5753 * priority_queue.h: New file.
5754 * splay-tree.c: Do not include splay-tree.h.
5755 (splay_tree_foreach_internal): New.
5756 (splay_tree_foreach): New.
5757 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5758 (splay_tree_callback): Define typedef.
5759 * target.c (splay_compare): Move to libgomp.h.
5760 (GOMP_target): Don't adjust *thr in any way around running offloaded
5762 (GOMP_target_ext): Likewise. Handle target nowait.
5763 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5764 return value from gomp_create_target_task, if false, fallthrough
5765 as if no dependencies exist.
5766 (gomp_target_task_fn): Change return type to bool, return true
5767 if the task should have another part scheduled later. Handle
5769 (gomp_load_plugin_for_device): Initialize async_run.
5770 * task.c (gomp_init_task): Initialize children_queue.
5771 (gomp_clear_parent_in_list): New.
5772 (gomp_clear_parent_in_tree): New.
5773 (gomp_clear_parent): Handle priorities.
5774 (GOMP_task): Likewise.
5775 (priority_queue_move_task_first,
5776 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5778 (gomp_create_target_task): Use priority queues. Change return type
5779 to bool, add state argument, return false if for async
5780 {{enter,exit} data,update} constructs no dependencies need to be
5781 waited for, handle target nowait. Set task->fn to NULL instead of
5782 gomp_target_task_fn.
5783 (verify_children_queue): Remove.
5784 (priority_list_upgrade_task): New.
5785 (priority_queue_upgrade_task): New.
5786 (verify_task_queue): Remove.
5787 (priority_list_downgrade_task): New.
5788 (priority_queue_downgrade_task): New.
5789 (gomp_task_run_pre): Use priority queues.
5790 Abstract code out to priority_queue_downgrade_task.
5791 (gomp_task_run_post_handle_dependers): Use priority queues.
5792 (gomp_task_run_post_remove_parent): Likewise.
5793 (gomp_task_run_post_remove_taskgroup): Likewise.
5794 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5796 (GOMP_taskwait): Likewise.
5797 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5798 priority-queue_upgrade_task.
5799 (GOMP_taskgroup_start): Use priority queues.
5800 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5801 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5803 * taskloop.c (GOMP_taskloop): Handle priorities.
5804 * team.c (gomp_new_team): Call priority_queue_init.
5805 (free_team): Call priority_queue_free.
5806 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5807 team created for target nowait in implicit parallel region.
5808 (gomp_team_start): For nested check, test thr->ts.level instead of
5809 thr->ts.team != NULL.
5810 * testsuite/libgomp.c/doacross-3.c: New test.
5811 * testsuite/libgomp.c/ordered-5.c: New test.
5812 * testsuite/libgomp.c/priority.c: New test.
5813 * testsuite/libgomp.c/target-31.c: New test.
5814 * testsuite/libgomp.c/target-32.c: New test.
5815 * testsuite/libgomp.c/target-33.c: New test.
5816 * testsuite/libgomp.c/target-34.c: New test.
5818 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5820 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5822 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5825 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5827 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5828 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5830 2015-11-12 James Norris <jnorris@codesourcery.com>
5831 Joseph Myers <joseph@codesourcery.com>
5833 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5834 * oacc-parallel.c (GOACC_declare): New function.
5835 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5836 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5837 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5839 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
5841 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5843 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
5845 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
5847 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
5848 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
5850 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5852 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
5855 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5857 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
5858 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
5859 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
5860 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
5861 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
5863 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
5865 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
5866 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5868 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5869 Ilya Verbin <ilya.verbin@intel.com>
5871 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
5872 GOMP_loop_nonmonotonic_dynamic_start,
5873 GOMP_loop_nonmonotonic_guided_next,
5874 GOMP_loop_nonmonotonic_guided_start,
5875 GOMP_loop_ull_nonmonotonic_dynamic_next,
5876 GOMP_loop_ull_nonmonotonic_dynamic_start,
5877 GOMP_loop_ull_nonmonotonic_guided_next,
5878 GOMP_loop_ull_nonmonotonic_guided_start,
5879 GOMP_parallel_loop_nonmonotonic_dynamic,
5880 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
5881 (GOMP_target_41): Renamed to ...
5882 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5884 (GOMP_target_data_41): Renamed to ...
5885 (GOMP_target_data_ext): ... this.
5886 (GOMP_target_update_41): Renamed to ...
5887 (GOMP_target_update_ext): ... this.
5888 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
5889 GOMP_target_data_ext and GOMP_target_update_ext instead of
5890 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
5891 Export GOMP_loop_nonmonotonic_dynamic_next,
5892 GOMP_loop_nonmonotonic_dynamic_start,
5893 GOMP_loop_nonmonotonic_guided_next,
5894 GOMP_loop_nonmonotonic_guided_start,
5895 GOMP_loop_ull_nonmonotonic_dynamic_next,
5896 GOMP_loop_ull_nonmonotonic_dynamic_start,
5897 GOMP_loop_ull_nonmonotonic_guided_next,
5898 GOMP_loop_ull_nonmonotonic_guided_start,
5899 GOMP_parallel_loop_nonmonotonic_dynamic and
5900 GOMP_parallel_loop_nonmonotonic_guided.
5901 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
5902 GOMP_parallel_loop_nonmonotonic_guided,
5903 GOMP_loop_nonmonotonic_dynamic_start,
5904 GOMP_loop_nonmonotonic_guided_start,
5905 GOMP_loop_nonmonotonic_dynamic_next,
5906 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
5907 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
5908 GOMP_loop_ull_nonmonotonic_guided_start,
5909 GOMP_loop_ull_nonmonotonic_dynamic_next,
5910 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
5911 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
5913 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
5914 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
5915 Use gomp_map_val function.
5916 (gomp_target_fallback_firstprivate): New static function.
5917 (GOMP_target_41): Renamed to ...
5918 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5919 arguments. Move firstprivate fallback handling into a new
5921 (GOMP_target_data_41): Renamed to ...
5922 (GOMP_target_data_ext): ... this.
5923 (GOMP_target_update_41): Renamed to ...
5924 (GOMP_target_update_ext): ... this.
5925 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
5926 gomp_map_0len_lookup instead of gomp_map_lookup.
5927 (omp_target_is_present): Use gomp_map_0len_lookup instead of
5929 * testsuite/libgomp.c/target-28.c: Likewise.
5930 * testsuite/libgomp.c/monotonic-1.c: New test.
5931 * testsuite/libgomp.c/monotonic-2.c: New test.
5932 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
5933 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
5934 * testsuite/libgomp.c/pr66199-5.c: New test.
5935 * testsuite/libgomp.c/pr66199-6.c: New test.
5936 * testsuite/libgomp.c/pr66199-7.c: New test.
5937 * testsuite/libgomp.c/pr66199-8.c: New test.
5938 * testsuite/libgomp.c/pr66199-9.c: New test.
5939 * testsuite/libgomp.c/reduction-11.c: New test.
5940 * testsuite/libgomp.c/reduction-12.c: New test.
5941 * testsuite/libgomp.c/reduction-13.c: New test.
5942 * testsuite/libgomp.c/reduction-14.c: New test.
5943 * testsuite/libgomp.c/reduction-15.c: New test.
5944 * testsuite/libgomp.c/target-12.c (main): Adjust for
5945 omp_target_is_present change for one-past-last element.
5946 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
5947 the same var is both mapped and privatized.
5948 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
5949 handling of zero-length array sections.
5950 * testsuite/libgomp.c/target-28.c: New test.
5951 * testsuite/libgomp.c/target-29.c: New test.
5952 * testsuite/libgomp.c/target-30.c: New test.
5953 * testsuite/libgomp.c/target-teams-1.c: New test.
5954 * testsuite/libgomp.c++/member-6.C: New test.
5955 * testsuite/libgomp.c++/member-7.C: New test.
5956 * testsuite/libgomp.c++/monotonic-1.C: New test.
5957 * testsuite/libgomp.c++/monotonic-2.C: New test.
5958 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
5959 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
5960 * testsuite/libgomp.c++/pr66199-3.C: New test.
5961 * testsuite/libgomp.c++/pr66199-4.C: New test.
5962 * testsuite/libgomp.c++/pr66199-5.C: New test.
5963 * testsuite/libgomp.c++/pr66199-6.C: New test.
5964 * testsuite/libgomp.c++/pr66199-7.C: New test.
5965 * testsuite/libgomp.c++/pr66199-8.C: New test.
5966 * testsuite/libgomp.c++/pr66199-9.C: New test.
5967 * testsuite/libgomp.c++/reduction-11.C: New test.
5968 * testsuite/libgomp.c++/reduction-12.C: New test.
5969 * testsuite/libgomp.c++/target-13.C: New test.
5970 * testsuite/libgomp.c++/target-14.C: New test.
5971 * testsuite/libgomp.c++/target-15.C: New test.
5972 * testsuite/libgomp.c++/target-16.C: New test.
5973 * testsuite/libgomp.c++/target-17.C: New test.
5974 * testsuite/libgomp.c++/target-18.C: New test.
5975 * testsuite/libgomp.c++/target-19.C: New test.
5977 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5979 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
5981 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5982 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5983 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5984 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5985 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5986 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5987 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5988 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5989 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5990 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
5991 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5992 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5993 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5994 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
5996 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5998 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
5999 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6000 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6001 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6002 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6003 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6004 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6005 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6007 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6009 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6010 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6011 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6012 * oacc-host.c (host_openacc_exec): Likewise.
6013 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6015 2015-11-03 Julian Brown <julian@codesourcery.com>
6016 Thomas Schwinge <thomas@codesourcery.com>
6018 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6019 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6020 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6022 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6023 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6025 2015-11-03 James Norris <jnorris@codesourcery.com>
6027 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6029 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6031 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6032 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6033 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6034 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6035 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6037 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6039 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6041 (enum acc_async_t): Reformat.
6042 (acc_on_device): Declare compatible with builtin and provide C++
6044 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6046 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6047 Cesar Philippidis <cesar@codesourcery.com>
6049 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6050 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6051 ... this. Add a description of the test at the top of the file.
6052 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6053 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6054 ... this. Add a description of the test at the top of the file.
6056 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6058 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6059 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6060 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6061 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6062 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6063 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6065 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6067 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6070 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6073 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6075 2015-10-27 James Norris <jnorris@codesourcery.com>
6077 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6078 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6080 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6082 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6083 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6085 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6086 acc_device_nvidia usage.
6087 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6088 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6089 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6091 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6092 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6095 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6099 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6100 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6102 2015-10-23 Tom de Vries <tom@codesourcery.com>
6105 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6107 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6109 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6111 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6113 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6114 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6116 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6117 to 0 when mapnum is 0.
6119 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6121 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6122 Cast to int from int32_t.
6124 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6125 Aldy Hernandez <aldyh@redhat.com>
6126 Ilya Verbin <ilya.verbin@intel.com>
6128 * config/linux/affinity.c (omp_get_place_num_procs,
6129 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6130 * config/linux/doacross.h: New file.
6131 * config/posix/affinity.c (omp_get_place_num_procs,
6132 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6133 * config/posix/doacross.h: New file.
6134 * env.c: Include gomp-constants.h.
6135 (struct gomp_task_icv): Rename run_sched_modifier to
6136 run_sched_chunk_size.
6137 (gomp_max_task_priority_var): New variable.
6138 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6139 (handle_omp_display_env): Change _OPENMP value from 201307 to
6140 201511. Print OMP_MAX_TASK_PRIORITY.
6141 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6142 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6143 chunk_size and run_sched_modifier to run_sched_chunk_size.
6144 (omp_get_max_task_priority, omp_get_initial_device,
6145 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6146 omp_get_partition_place_nums): New functions.
6147 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6148 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6150 (omp_get_num_places_, omp_get_place_num_procs_,
6151 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6152 omp_get_place_proc_ids_8_, omp_get_place_num_,
6153 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6154 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6155 omp_get_max_task_priority_): New functions.
6156 * libgomp_g.h (GOMP_loop_doacross_static_start,
6157 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6158 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6159 GOMP_loop_ull_doacross_dynamic_start,
6160 GOMP_loop_ull_doacross_guided_start,
6161 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6162 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6163 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6164 GOMP_target_data_41, GOMP_target_update_41,
6165 GOMP_target_enter_exit_data): New prototypes.
6166 (GOMP_task): Add prototype argument.
6167 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6168 (struct gomp_doacross_work_share): New type.
6169 (struct gomp_work_share): Add doacross field.
6170 (struct gomp_task_icv): Rename run_sched_modifier to
6171 run_sched_chunk_size.
6172 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6173 GOMP_TASK_UNDEFERRED. Add comments.
6174 (struct gomp_task_depend_entry): Add comments.
6175 (struct gomp_task): Likewise.
6176 (struct gomp_taskgroup): Likewise.
6177 (struct gomp_target_task): New type.
6178 (struct gomp_team): Add comment.
6179 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6180 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6181 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6182 (struct target_var_desc): New type.
6183 (struct target_mem_desc): Adjust comment. Use struct
6184 target_var_desc instead of splay_tree_key for list.
6185 (REFCOUNT_INFINITY): Define.
6186 (struct splay_tree_key_s): Remove copy_from field.
6187 (struct gomp_device_descr): Add dev2dev_func field.
6188 (enum gomp_map_vars_kind): New enum.
6189 (gomp_map_vars): Add one argument.
6190 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6191 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6192 omp_get_place_num_procs, omp_get_place_num_procs_,
6193 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6194 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6195 omp_get_place_num_, omp_get_partition_num_places,
6196 omp_get_partition_num_places_, omp_get_partition_place_nums,
6197 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6198 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6199 omp_target_free, omp_target_is_present, omp_target_memcpy,
6200 omp_target_memcpy_rect, omp_target_associate_ptr and
6201 omp_target_disassociate_ptr.
6202 (GOMP_4.0.2): Renamed to ...
6203 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6204 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6205 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6206 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6207 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6208 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6209 GOMP_loop_ull_doacross_guided_start,
6210 GOMP_loop_ull_doacross_runtime_start,
6211 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6212 GOMP_doacross_ull_wait.
6213 * libgomp.texi: Document omp_get_max_task_priority.
6214 Rename modifier argument to chunk_size for omp_set_schedule and
6215 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6216 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6217 to run_sched_chunk_size renaming.
6218 (GOMP_loop_ordered_runtime_start): Likewise.
6219 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6220 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6221 GOMP_parallel_loop_runtime_start): New functions.
6222 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6223 to run_sched_chunk_size renaming.
6224 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6225 GOMP_loop_doacross_guided_start): New functions or aliases.
6226 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6227 run_sched_modifier to run_sched_chunk_size renaming.
6228 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6229 (gomp_loop_ull_doacross_static_start,
6230 gomp_loop_ull_doacross_dynamic_start,
6231 gomp_loop_ull_doacross_guided_start,
6232 GOMP_loop_ull_doacross_runtime_start): New functions.
6233 (GOMP_loop_ull_doacross_static_start,
6234 GOMP_loop_ull_doacross_dynamic_start,
6235 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6236 * oacc-mem.c (acc_map_data, present_create_copy,
6237 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6239 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6240 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6241 instead of false to gomp_map_vars.
6242 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6243 * omp.h.in (omp_lock_hint_t): New type.
6244 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6245 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6246 omp_get_place_num, omp_get_partition_num_places,
6247 omp_get_partition_place_nums, omp_get_initial_device,
6248 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6249 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6250 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6252 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6253 (omp_lock_hint_none, omp_lock_hint_uncontended,
6254 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6255 omp_lock_hint_speculative): New parameters.
6256 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6257 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6258 omp_get_place_num, omp_get_partition_num_places,
6259 omp_get_partition_place_nums, omp_get_initial_device,
6260 omp_get_max_task_priority): New interfaces.
6261 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6263 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6264 (omp_lock_hint_none, omp_lock_hint_uncontended,
6265 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6266 omp_lock_hint_speculative): New parameters.
6267 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6268 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6269 omp_get_place_num, omp_get_partition_num_places,
6270 omp_get_partition_place_nums, omp_get_initial_device,
6271 omp_get_max_task_priority): New functions and subroutines.
6272 * ordered.c: Include stdarg.h and string.h.
6273 (MAX_COLLAPSED_BITS): Define.
6274 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6275 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6276 GOMP_doacross_ull_wait): New functions.
6277 * target.c: Include errno.h.
6278 (resolve_device): If device is not initialized, call
6279 gomp_init_device on it.
6280 (gomp_map_lookup): New function.
6281 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6282 Don't bump refcount if REFCOUNT_INFINITY. Handle
6283 GOMP_MAP_ALWAYS_TO_P.
6284 (get_kind): Rename is_openacc argument to short_mapkind.
6285 (gomp_map_pointer): Use gomp_map_lookup.
6286 (gomp_map_fields_existing): New function.
6287 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6288 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6289 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6290 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6291 Adjust for tgt->list changed type and copy_from living in there.
6292 (gomp_copy_from_async): Adjust for tgt->list changed type and
6293 copy_from living in there.
6294 (gomp_unmap_vars): Likewise.
6295 (gomp_update): Likewise. Rename is_openacc argument to
6296 short_mapkind. Don't fail if object is not mapped.
6297 (gomp_load_image_to_device): Initialize refcount to
6299 (gomp_target_fallback): New function.
6300 (gomp_get_target_fn_addr): Likewise.
6301 (GOMP_target): Adjust gomp_map_vars caller, use
6302 gomp_get_target_fn_addr and gomp_target_fallback.
6303 (GOMP_target_41): New function.
6304 (gomp_target_data_fallback): New function.
6305 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6306 (GOMP_target_data_41): New function.
6307 (GOMP_target_update): Adjust gomp_update caller.
6308 (GOMP_target_update_41): New function.
6309 (gomp_exit_data, GOMP_target_enter_exit_data,
6310 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6311 omp_target_is_present, omp_target_memcpy,
6312 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6313 omp_target_associate_ptr, omp_target_disassociate_ptr,
6314 gomp_load_plugin_for_device): New functions.
6315 * task.c: Include gomp-constants.h. Include taskloop.c
6316 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6317 (gomp_task_handle_depend): New function.
6318 (GOMP_task): Use it. Add priority argument. Use
6319 gomp-constant.h constants instead of hardcoded numbers.
6320 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6321 (gomp_create_target_task): New function.
6322 (verify_children_queue, verify_taskgroup_queue,
6323 verify_task_queue): New functions.
6324 (gomp_task_run_pre): Call verify_*_queue functions.
6325 If an upcoming tied task is about to leave the sibling or
6326 taskgroup queues in an invalid state, adjust appropriately.
6327 Remove taskgroup argument. Add comments.
6328 (gomp_task_run_post_handle_dependers): Add comments.
6329 (gomp_task_run_post_remove_parent): Likewise.
6330 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6331 (GOMP_taskwait): Likewise. Add comments.
6332 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6333 problem such that the first non parent_depends_on task does not
6334 end up at the end of the children queue.
6335 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6336 GOMP_TASK_UNDEFERRED.
6337 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6338 * taskloop.c: New file.
6339 * testsuite/lib/libgomp.exp
6340 (check_effective_target_offload_device_nonshared_as): New proc.
6341 * testsuite/libgomp.c/affinity-2.c: New test.
6342 * testsuite/libgomp.c/doacross-1.c: New test.
6343 * testsuite/libgomp.c/doacross-2.c: New test.
6344 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6345 Add map clause to target.
6346 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6347 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6348 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6349 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6350 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6352 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6353 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6354 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6355 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6356 not defined. Use those where needed.
6357 * testsuite/libgomp.c/for-4.c: New test.
6358 * testsuite/libgomp.c/for-5.c: New test.
6359 * testsuite/libgomp.c/for-6.c: New test.
6360 * testsuite/libgomp.c/linear-1.c: New test.
6361 * testsuite/libgomp.c/ordered-4.c: New test.
6362 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6363 only allowed on the loop iterator.
6364 * testsuite/libgomp.c/pr66199-3.c: New test.
6365 * testsuite/libgomp.c/pr66199-4.c: New test.
6366 * testsuite/libgomp.c/reduction-7.c: New test.
6367 * testsuite/libgomp.c/reduction-8.c: New test.
6368 * testsuite/libgomp.c/reduction-9.c: New test.
6369 * testsuite/libgomp.c/reduction-10.c: New test.
6370 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6372 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6373 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6374 * testsuite/libgomp.c/target-11.c: New test.
6375 * testsuite/libgomp.c/target-12.c: New test.
6376 * testsuite/libgomp.c/target-13.c: New test.
6377 * testsuite/libgomp.c/target-14.c: New test.
6378 * testsuite/libgomp.c/target-15.c: New test.
6379 * testsuite/libgomp.c/target-16.c: New test.
6380 * testsuite/libgomp.c/target-17.c: New test.
6381 * testsuite/libgomp.c/target-18.c: New test.
6382 * testsuite/libgomp.c/target-19.c: New test.
6383 * testsuite/libgomp.c/target-20.c: New test.
6384 * testsuite/libgomp.c/target-21.c: New test.
6385 * testsuite/libgomp.c/target-22.c: New test.
6386 * testsuite/libgomp.c/target-23.c: New test.
6387 * testsuite/libgomp.c/target-24.c: New test.
6388 * testsuite/libgomp.c/target-25.c: New test.
6389 * testsuite/libgomp.c/target-26.c: New test.
6390 * testsuite/libgomp.c/target-27.c: New test.
6391 * testsuite/libgomp.c/taskloop-1.c: New test.
6392 * testsuite/libgomp.c/taskloop-2.c: New test.
6393 * testsuite/libgomp.c/taskloop-3.c: New test.
6394 * testsuite/libgomp.c/taskloop-4.c: New test.
6395 * testsuite/libgomp.c++/ctor-13.C: New test.
6396 * testsuite/libgomp.c++/doacross-1.C: New test.
6397 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6398 Replace offload_device with offload_device_nonshared_as.
6399 * testsuite/libgomp.c++/for-12.C: New test.
6400 * testsuite/libgomp.c++/for-13.C: New test.
6401 * testsuite/libgomp.c++/for-14.C: New test.
6402 * testsuite/libgomp.c++/linear-1.C: New test.
6403 * testsuite/libgomp.c++/member-1.C: New test.
6404 * testsuite/libgomp.c++/member-2.C: New test.
6405 * testsuite/libgomp.c++/member-3.C: New test.
6406 * testsuite/libgomp.c++/member-4.C: New test.
6407 * testsuite/libgomp.c++/member-5.C: New test.
6408 * testsuite/libgomp.c++/ordered-1.C: New test.
6409 * testsuite/libgomp.c++/reduction-5.C: New test.
6410 * testsuite/libgomp.c++/reduction-6.C: New test.
6411 * testsuite/libgomp.c++/reduction-7.C: New test.
6412 * testsuite/libgomp.c++/reduction-8.C: New test.
6413 * testsuite/libgomp.c++/reduction-9.C: New test.
6414 * testsuite/libgomp.c++/reduction-10.C: New test.
6415 * testsuite/libgomp.c++/reference-1.C: New test.
6416 * testsuite/libgomp.c++/simd14.C: New test.
6417 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6418 * testsuite/libgomp.c++/target-5.C: New test.
6419 * testsuite/libgomp.c++/target-6.C: New test.
6420 * testsuite/libgomp.c++/target-7.C: New test.
6421 * testsuite/libgomp.c++/target-8.C: New test.
6422 * testsuite/libgomp.c++/target-9.C: New test.
6423 * testsuite/libgomp.c++/target-10.C: New test.
6424 * testsuite/libgomp.c++/target-11.C: New test.
6425 * testsuite/libgomp.c++/target-12.C: New test.
6426 * testsuite/libgomp.c++/taskloop-1.C: New test.
6427 * testsuite/libgomp.c++/taskloop-2.C: New test.
6428 * testsuite/libgomp.c++/taskloop-3.C: New test.
6429 * testsuite/libgomp.c++/taskloop-4.C: New test.
6430 * testsuite/libgomp.c++/taskloop-5.C: New test.
6431 * testsuite/libgomp.c++/taskloop-6.C: New test.
6432 * testsuite/libgomp.c++/taskloop-7.C: New test.
6433 * testsuite/libgomp.c++/taskloop-8.C: New test.
6434 * testsuite/libgomp.c++/taskloop-9.C: New test.
6435 * testsuite/libgomp.fortran/affinity1.f90: New test.
6436 * testsuite/libgomp.fortran/affinity2.f90: New test.
6438 2015-10-13 Tom de Vries <tom@codesourcery.com>
6440 PR tree-optimization/67476
6441 * testsuite/libgomp.c/autopar-3.c: New test.
6442 * testsuite/libgomp.c/autopar-4.c: New test.
6443 * testsuite/libgomp.c/autopar-5.c: New test.
6444 * testsuite/libgomp.c/autopar-6.c: New test.
6445 * testsuite/libgomp.c/autopar-7.c: New test.
6446 * testsuite/libgomp.c/autopar-8.c: New test.
6448 2015-10-12 James Norris <jnorris@codesourcery.com>
6450 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6453 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6455 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6458 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6460 * oacc-ptx.h: Remove file, moving its content into...
6461 * config/nvptx/fortran.c: ... here...
6462 * config/nvptx/oacc-init.c: ..., here...
6463 * config/nvptx/oacc-parallel.c: ..., and here.
6464 * config/nvptx/openacc.f90: New file.
6465 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6466 (link_ptx): Don't link in predefined bits of PTX code.
6468 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6469 Bernd Schmidt <bernds@codesourcery.com>
6471 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6472 (struct targ_ptx_obj): New.
6473 (nvptx_tdata): Move earlier, change data format.
6474 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6476 (GOMP_OFFLOAD_load_image): Adjust.
6478 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6480 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6481 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6489 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6490 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6491 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6493 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6494 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6495 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6496 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6497 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6498 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6499 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6500 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6501 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6502 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6503 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6504 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6505 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6506 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6507 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6508 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6509 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6510 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6511 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6512 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6513 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6514 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6515 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6516 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6517 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6519 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6520 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6521 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6522 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6523 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6524 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6525 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6526 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6527 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6528 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6529 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6530 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6531 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6532 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6533 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6534 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6535 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6536 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6537 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6538 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6539 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6540 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6541 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6542 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6544 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6546 * oacc-init.c (acc_on_device): Force optimization level.
6548 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6550 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6551 (cuda_errlist): Delete.
6552 (cuda_error): Reimplement.
6554 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6556 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6558 * libgomp.map (GOACC_parallel_keyed): New.
6559 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6561 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6562 and take keyed varargs list. Adjust call to exec_func.
6563 (GOACC_parallel): Force host fallback.
6564 * libgomp_g.h (GOACC_parallel): Remove.
6565 (GOACC_parallel_keyed): Declare.
6566 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6567 (struct targ_gn_descriptor): Replace name field with launch field.
6568 (nvptx_exec): Lose separate geometry args, take array. Process
6569 dynamic dimensions and adjust.
6570 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6571 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6573 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6575 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6578 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6581 * oacc-int.h (goacc_host_init): Add declaration.
6582 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6583 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6585 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6586 Sebastian Pop <s.pop@samsung.com>
6588 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6590 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6591 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6592 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6593 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6594 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6596 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6598 * configure.tgt: Add missing ;; in between nvptx and rtems
6601 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6603 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6604 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6605 (gomp_thread_pool_reservoir): Add priority member.
6606 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6608 (parse_thread_pools): Likewise.
6609 * team.c (gomp_team_start): Call configuration provided
6610 gomp_adjust_thread_attr(). Destroy thread attributes if
6612 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6614 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6616 * config/posix/pool.h: New.
6617 * config/rtems/pool.h: Likewise.
6618 * config/rtems/proc.c: Likewise.
6619 * libgomp.h (gomp_thread_destructor): Declare.
6620 * team.c: Include configuration provided "pool.h".
6621 (gomp_get_thread_pool): Define in configuration.
6622 (gomp_team_end): Call configuration defined
6623 gomp_release_thread_pool().
6625 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6627 * config/rtems/bar.c: New.
6628 * config/rtems/bar.h: Likewise.
6629 * config/rtems/mutex.c: Likewise.
6630 * config/rtems/mutex.h: Likewise.
6631 * config/rtems/sem.c: Likewise.
6632 * config/rtems/sem.h: Likewise.
6633 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6634 <sys/lock.h> header file.
6635 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6636 supported by Newlib.
6637 * configure: Regenerate.
6639 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6641 * team.c (gomp_new_thread_pool): Delete and move content to ...
6642 (gomp_get_thread_pool): ... new function. Allocate and
6643 initialize thread pool on demand.
6644 (get_last_team): Use gomp_get_thread_pool().
6645 (gomp_team_start): Delete thread pool initialization.
6647 2015-09-03 Tom de Vries <tom@codesourcery.com>
6649 PR tree-optimization/65637
6650 * testsuite/libgomp.c/autopar-2.c: New test.
6652 2015-08-29 Tom de Vries <tom@codesourcery.com>
6654 PR tree-optimization/46193
6655 * testsuite/libgomp.c/pr46193.c: New test.
6657 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6660 * libgomp.map: Add 4.0.2 version.
6661 * target.c (offload_image_descr): Add version field.
6662 (gomp_load_image_to_device): Add version argument. Adjust plugin
6663 call. Improve load mismatch diagnostic.
6664 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6666 (GOMP_offload_regster): Make stub function, move bulk to ...
6667 (GOMP_offload_register_ver): ... here. Process version argument.
6668 (GOMP_offload_unregister): Make stub function, move bulk to ...
6669 (GOMP_offload_unregister_ver): ... here. Process version argument.
6670 (gomp_init_device): Process version field.
6671 (gomp_unload_device): Process version field.
6672 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6673 macros. Check plugin version.
6674 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6675 loader and unloader types.
6676 * oacc-host.c: Include gomp-constants.h.
6677 (host_version): New.
6678 (host_load_image, host_unload_image): Adjust.
6679 (host_dispatch): Add host_version.
6680 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6681 (GOMP_OFFLOAD_version): New.
6682 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6683 (GOMP_OFFLOAD_unload_image): Likewise.
6684 * plugin/plugin-host.c: Include gomp-constants.h.
6685 (GOMP_OFFLOAD_version): New.
6686 (GOMP_OFFLOAD_load_image): Add version arg.
6687 (GOMP_OFFLOAD_unload_image): Likewise.
6689 2015-08-24 Tom de Vries <tom@codesourcery.com>
6691 PR tree-optimization/65468
6692 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6694 2015-08-24 Tom de Vries <tom@codesourcery.com>
6696 PR tree-optimization/65468
6697 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6699 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6703 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6704 (gomp_iter_guided_next): Idem.
6705 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6706 (gomp_iter_ull_guided_next): Idem.
6707 * config/linux/wait.h (do_spin): Idem.
6709 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6711 * libgomp-plugin.h (enum offload_target_type): Remove
6712 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6713 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6714 * openacc.h (enum acc_device_t): Likewise.
6715 * openacc_lib.h: Likewise.
6716 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6717 (acc_on_device): Just use __builtin_acc_on_device.
6718 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6719 of acc_on_device builtin.
6720 * plugin/plugin-host.h: Remove file.
6721 * plugin/plugin-host.c: Likewise, but salvage some content into...
6722 * oacc-host.c: ... this file.
6723 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6724 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6725 * Makefile.in: Regenerate.
6726 * configure: Likewise.
6727 * testsuite/lib/libgomp.exp
6728 (check_effective_target_openacc_host_nonshm_selected): Remove.
6729 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6730 ACC_DEVICE_TYPE=host_nonshm.
6731 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6732 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6733 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6734 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6735 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6736 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6738 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6739 Jakub Jelinek <jakub@redhat.com>
6741 * config/nvptx/affinity.c: New file.
6742 * config/nvptx/alloc.c: Likewise.
6743 * config/nvptx/bar.c: Likewise.
6744 * config/nvptx/barrier.c: Likewise.
6745 * config/nvptx/critical.c: Likewise.
6746 * config/nvptx/env.c: Likewise.
6747 * config/nvptx/error.c: Likewise.
6748 * config/nvptx/fortran.c: Likewise.
6749 * config/nvptx/iter.c: Likewise.
6750 * config/nvptx/iter_ull.c: Likewise.
6751 * config/nvptx/libgomp-plugin.c: Likewise.
6752 * config/nvptx/lock.c: Likewise.
6753 * config/nvptx/loop.c: Likewise.
6754 * config/nvptx/loop_ull.c: Likewise.
6755 * config/nvptx/mutex.c: Likewise.
6756 * config/nvptx/oacc-async.c: Likewise.
6757 * config/nvptx/oacc-cuda.c: Likewise.
6758 * config/nvptx/oacc-host.c: Likewise.
6759 * config/nvptx/oacc-init.c: Likewise.
6760 * config/nvptx/oacc-mem.c: Likewise.
6761 * config/nvptx/oacc-parallel.c: Likewise.
6762 * config/nvptx/oacc-plugin.c: Likewise.
6763 * config/nvptx/omp-lock.h: Likewise.
6764 * config/nvptx/ordered.c: Likewise.
6765 * config/nvptx/parallel.c: Likewise.
6766 * config/nvptx/proc.c: Likewise.
6767 * config/nvptx/ptrlock.c: Likewise.
6768 * config/nvptx/sections.c: Likewise.
6769 * config/nvptx/sem.c: Likewise.
6770 * config/nvptx/single.c: Likewise.
6771 * config/nvptx/splay-tree.c: Likewise.
6772 * config/nvptx/target.c: Likewise.
6773 * config/nvptx/task.c: Likewise.
6774 * config/nvptx/team.c: Likewise.
6775 * config/nvptx/time.c: Likewise.
6776 * config/nvptx/work.c: Likewise.
6777 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6778 * configure: Regenerate.
6779 * configure.tgt (config_path): Set to "nvptx" for target
6782 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6784 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6786 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6788 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6789 (cuda_errlist): Constify.
6790 (errmsg): Move into ...
6791 (cuda_error): ... here. Make smaller.
6792 (_XSTR, _STR): Delete.
6793 (cuda_synames): Delete.
6794 (verify_device_library): Delete.
6795 (nvptx_init): Don't call it.
6797 2015-07-28 Tom de Vries <tom@codesourcery.com>
6799 * testsuite/libgomp.c/uns-outer-4.c: New test.
6801 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6803 * testsuite/libgomp.c/pr66714.c: New test.
6805 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6808 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6809 (fib_ref): New function.
6810 (fib): Correct corner cases in the recursion.
6811 (main): Replace the non-simd loop with fib_ref call.
6812 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6814 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6815 for the last array element value. Replace the non-simd loop with
6816 fib_ref call. Remove redundant b_ref array. Remove the comparison
6817 of the last array element with according Fibonacci sequence element.
6818 (fib): Correct corner cases in the recursion.
6820 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6822 * target.c (gomp_offload_image_to_device): Rename to ...
6823 (gomp_load_image_to_device): ... here.
6824 (GOMP_offload_register): Adjust call.
6825 (gomp_init_device): Likewise.
6826 (gomp_unload_image_from_device): New. Broken out of ...
6827 (GOMP_offload_unregister): ... here. Call it.
6828 (gomp_unload_device): New.
6829 * libgomp.h (gomp_unload_device): Declare.
6830 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6833 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6835 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6837 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6839 (goacc_waits): Move !num_waits handling to ...
6840 (GOACC_wait): ... here, the only caller that might have zero waits.
6842 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
6843 (struct ptx_image_data): Move earlier, add fns field.
6844 (struct ptx_device): Add images and image_lock fields.
6845 (ptx_images, ptx_image_lock): Delete.
6846 (nvptx_open_device): Initialize images and image_lock fields.
6847 (nvptx_close_device): Destroy image_lock.
6848 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
6849 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
6852 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6854 * target.c (GOMP_offload_register): Use int for device type arg.
6855 (GOMP_offload_unregister): Likewise.
6857 * target.c (struct_offload_image_descr): Constify host_table.
6858 (gomp_offload_image_to_device): Likewise.
6859 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
6861 * libgomp.h (gomp_device_descr): Constify target data arguments.
6862 * target.c (struct offload_image_descr): Constify target_data.
6863 (gomp_offload_image_to_device): Likewise.
6864 (GOMP_offload_register): Likewise.
6865 (GOMP_offload_unregister): Likewise.
6866 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
6867 GOMP_OFFLOAD_unload_image): Constify target data.
6868 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
6869 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
6871 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6873 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
6874 Workaround driver library const error.
6875 (struct nvptx_tdata, nvptx_tdata_t): New.
6876 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
6879 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
6881 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
6882 of EPS parameter from integer to real.
6883 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
6884 type of EPS parameter from integer to real.
6886 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6888 * team.c (get_last_team): New.
6889 (gomp_new_team): Recycle last non-nested team if possible.
6890 (gomp_team_end): Move team work share list free lock destruction
6892 (free_team): ... here.
6894 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
6896 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
6897 and ref from int to double. Replaced their comparison with
6898 an inequality of their difference and EPS.
6899 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
6900 comparison of pri and a reference number with an inequality of their
6902 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
6903 the comparison of sum and sum_ref with an inequality of their
6905 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
6906 the comparison of pri and a reference number with an inequality of
6907 their difference and EPS.
6909 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
6911 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
6912 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
6913 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
6914 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
6915 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
6916 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
6917 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
6918 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
6919 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
6920 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
6921 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
6922 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
6923 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
6925 (vec_mult): Likewise. Add #pragma omp taskwait.
6926 (main): Adjust caller.
6927 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
6928 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
6929 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
6930 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
6931 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
6932 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
6933 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
6934 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
6935 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
6936 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
6937 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
6938 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
6939 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
6940 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
6941 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
6942 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
6943 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
6944 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
6945 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
6946 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
6947 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
6948 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
6949 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
6950 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
6951 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
6952 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
6953 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
6954 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
6955 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
6956 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
6957 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
6958 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
6959 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
6960 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
6961 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
6962 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
6963 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
6964 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
6965 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
6966 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
6967 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
6968 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
6969 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
6970 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
6971 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
6972 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
6973 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
6974 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
6975 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
6976 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
6977 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
6978 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
6979 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
6980 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
6981 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
6982 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
6983 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
6984 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
6985 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
6986 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
6987 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
6988 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
6989 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
6990 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
6991 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
6992 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
6993 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
6994 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
6995 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
6996 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
6997 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
6998 (vec_mult): Add !$omp taskwait.
6999 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7000 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7001 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7002 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7003 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7004 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7005 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7006 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7007 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7008 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7009 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7010 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7011 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7012 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7013 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7014 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7015 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7016 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7017 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7018 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7019 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7020 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7021 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7022 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7023 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7024 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7025 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7026 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7027 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7028 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7029 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7030 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7031 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7032 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7033 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7034 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7035 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7036 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7037 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7038 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7039 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7040 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7041 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7042 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7043 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7044 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7045 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7046 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7047 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7048 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7049 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7050 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7051 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7052 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7053 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7054 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7055 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7056 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7057 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7058 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7059 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7060 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7061 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7062 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7063 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7064 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7065 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7067 2015-07-10 Tom de Vries <tom@codesourcery.com>
7069 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7070 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7072 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7075 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7076 in a 64-bit configuration.
7077 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7078 offloading testing if no such device is available.
7079 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7080 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7082 2015-07-08 Tom de Vries <tom@codesourcery.com>
7084 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7086 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7088 2015-07-07 Tom de Vries <tom@codesourcery.com>
7090 PR tree-optimization/66642
7091 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7092 iteration count case.
7093 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7094 function, factor out of ...
7095 (main): ... here. Test low iteration count case.
7097 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7099 * libgomp.h (gomp_thread_pool): Comment last_team field.
7101 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7103 * testsuite/libgomp.c++/pr66702-1.C: Require
7104 vect_simd_clones effective target.
7105 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7107 2015-06-30 Tom de Vries <tom@codesourcery.com>
7109 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7110 already set. Use DEFAULT_CFLAGS in dg-runtest.
7111 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7114 2015-06-30 Tom de Vries <tom@codesourcery.com>
7116 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7117 already set. Use DEFAULT_CFLAGS in dg-runtest.
7118 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7119 * testsuite/libgomp.c++/pr64824.C: Same.
7120 * testsuite/libgomp.c++/pr64868.C: Same.
7121 * testsuite/libgomp.c++/pr66199-1.C: Same.
7122 * testsuite/libgomp.c++/pr66199-2.C: Same.
7123 * testsuite/libgomp.c++/target-2.C: Same.
7124 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7125 -std=<standard> option.
7126 * testsuite/libgomp.c++/udr-11.C: Same.
7127 * testsuite/libgomp.c++/udr-12.C: Same.
7128 * testsuite/libgomp.c++/udr-13.C: Same.
7129 * testsuite/libgomp.c++/udr-14.C: Same.
7130 * testsuite/libgomp.c++/udr-15.C: Same.
7131 * testsuite/libgomp.c++/udr-16.C: Same.
7132 * testsuite/libgomp.c++/udr-17.C: Same.
7133 * testsuite/libgomp.c++/udr-18.C: Same.
7134 * testsuite/libgomp.c++/udr-19.C: Same.
7135 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7136 * testsuite/libgomp.c++/simd-1.C: Same.
7137 * testsuite/libgomp.c++/simd-2.C: Same.
7138 * testsuite/libgomp.c++/simd-3.C: Same.
7139 * testsuite/libgomp.c++/simd-4.C: Same.
7140 * testsuite/libgomp.c++/simd-5.C: Same.
7141 * testsuite/libgomp.c++/simd-6.C: Same.
7142 * testsuite/libgomp.c++/simd-7.C: Same.
7143 * testsuite/libgomp.c++/simd-8.C: Same.
7144 * testsuite/libgomp.c++/simd-9.C: Same.
7145 * testsuite/libgomp.c++/simd10.C: Same.
7146 * testsuite/libgomp.c++/simd11.C: Same.
7147 * testsuite/libgomp.c++/simd12.C: Same.
7148 * testsuite/libgomp.c++/simd13.C: Same.
7150 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7153 * testsuite/libgomp.c++/pr66702-1.C: New test.
7154 * testsuite/libgomp.c++/pr66702-2.C: New test.
7156 2015-06-30 Tom de Vries <tom@codesourcery.com>
7158 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7159 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7160 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7161 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7163 2015-06-30 Tom de Vries <tom@codesourcery.com>
7165 PR tree-optimization/66652
7166 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7167 using restrict pointers.
7168 (main): Add arguments to calls to f.
7169 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7171 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7173 * configure.ac: Fix check for header <sys/sysctl.h>.
7174 * configure: Regenerate.
7175 * config.h.in: Likewise.
7177 2015-06-23 Tom de Vries <tom@codesourcery.com>
7179 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7181 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7183 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7185 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7189 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7190 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7192 2015-06-15 Tom de Vries <tom@codesourcery.com>
7194 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7195 dg-additional-options for any remaining options.
7196 * testsuite/libgomp.c/atomic-2.c: Same.
7197 * testsuite/libgomp.c/atomic-4.c: Same.
7198 * testsuite/libgomp.c/atomic-5.c: Same.
7199 * testsuite/libgomp.c/atomic-6.c: Same.
7200 * testsuite/libgomp.c/autopar-1.c: Same.
7201 * testsuite/libgomp.c/copyin-1.c: Same.
7202 * testsuite/libgomp.c/copyin-2.c: Same.
7203 * testsuite/libgomp.c/copyin-3.c: Same.
7204 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7205 * testsuite/libgomp.c/nestedfn-5.c: Same.
7206 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7207 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7208 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7209 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7210 * testsuite/libgomp.c/pr32362-1.c: Same.
7211 * testsuite/libgomp.c/pr32362-2.c: Same.
7212 * testsuite/libgomp.c/pr32362-3.c: Same.
7213 * testsuite/libgomp.c/pr39591-1.c: Same.
7214 * testsuite/libgomp.c/pr39591-2.c: Same.
7215 * testsuite/libgomp.c/pr39591-3.c: Same.
7216 * testsuite/libgomp.c/pr58392.c: Same.
7217 * testsuite/libgomp.c/pr58756.c: Same.
7218 * testsuite/libgomp.c/simd-1.c: Same.
7219 * testsuite/libgomp.c/simd-10.c: Same.
7220 * testsuite/libgomp.c/simd-11.c: Same.
7221 * testsuite/libgomp.c/simd-12.c: Same.
7222 * testsuite/libgomp.c/simd-13.c: Same.
7223 * testsuite/libgomp.c/simd-14.c: Same.
7224 * testsuite/libgomp.c/simd-15.c: Same.
7225 * testsuite/libgomp.c/simd-2.c: Same.
7226 * testsuite/libgomp.c/simd-3.c: Same.
7227 * testsuite/libgomp.c/simd-4.c: Same.
7228 * testsuite/libgomp.c/simd-5.c: Same.
7229 * testsuite/libgomp.c/simd-6.c: Same.
7230 * testsuite/libgomp.c/simd-7.c: Same.
7231 * testsuite/libgomp.c/simd-8.c: Same.
7232 * testsuite/libgomp.c/simd-9.c: Same.
7234 2015-06-15 Tom de Vries <tom@codesourcery.com>
7236 * testsuite/libgomp.c/pr35625.c: Fix typo.
7238 2015-06-15 Tom de Vries <tom@codesourcery.com>
7240 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7242 * testsuite/libgomp.c/atomic-3.c: Same.
7243 * testsuite/libgomp.c/debug-1.c: Same.
7244 * testsuite/libgomp.c/nqueens-1.c: Same.
7245 * testsuite/libgomp.c/pr26171.c: Same.
7246 * testsuite/libgomp.c/pr48591.c: Same.
7247 * testsuite/libgomp.c/pr64824.c: Same.
7248 * testsuite/libgomp.c/pr64868.c: Same.
7249 * testsuite/libgomp.c/pr66133.c: Same.
7250 * testsuite/libgomp.c/pr66199-1.c: Same.
7251 * testsuite/libgomp.c/pr66199-2.c: Same.
7252 * testsuite/libgomp.c/target-8.c: Same.
7254 2015-06-15 Tom de Vries <tom@codesourcery.com>
7256 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7258 * testsuite/libgomp.c/for-1.c: Same.
7259 * testsuite/libgomp.c/for-2.c: Same.
7260 * testsuite/libgomp.c/for-3.c: Same.
7261 * testsuite/libgomp.c/pr35625.c: Same.
7262 * testsuite/libgomp.c/pr39154.c: Same.
7263 * testsuite/libgomp.c/simd-16.c: Same.
7264 * testsuite/libgomp.c/simd-17.c: Same.
7266 2015-06-13 Tom de Vries <tom@codesourcery.com>
7268 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7270 2015-06-13 Tom de Vries <tom@codesourcery.com>
7272 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7273 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7274 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7276 (main): Use N instead of hardcoded constants.
7278 2015-06-05 Tom de Vries <tom@codesourcery.com>
7280 merge from gomp4 branch:
7281 2015-05-28 Tom de Vries <tom@codesourcery.com>
7283 PR tree-optimization/65443
7284 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7285 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7286 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7288 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7290 * testsuite/libgomp.graphite/bounds.c: Adjust for
7291 cleanup-tree-dump removal.
7292 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7293 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7294 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7295 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7296 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7297 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7298 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7299 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7300 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7301 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7303 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7305 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7306 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7307 (futex_wake) [!__x86_64__]: Ditto.
7309 2015-05-28 Julian Brown <julian@codesourcery.com>
7311 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7312 function comment. Only call gomp_fatal if new argument is true.
7313 (acc_dev_num_out_of_range): New function.
7314 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7315 acc_dev_num_out_of_range as appropriate.
7316 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7317 (acc_get_device_num, acc_set_device_num): Update calls to
7319 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7322 2015-05-28 Julian Brown <julian@codesourcery.com>
7325 * oacc-init.c (plugin/plugin-host.h): Include.
7326 (acc_on_device): Check whether we're in an offloaded region for
7328 plugin. Don't use __builtin_acc_on_device.
7329 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7330 nonshm_exec flag in thread-local data.
7331 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7332 data for host_nonshm plugin.
7333 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7334 for host_nonshm plugin.
7335 * plugin/plugin-host.h: New.
7337 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7339 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7341 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7343 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7345 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7346 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7349 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7351 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7353 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7355 * target.c (gomp_map_pointer): New function abstracting out
7356 GOMP_MAP_POINTER handling.
7357 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7360 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7363 * testsuite/libgomp.c/pr66199-1.c: New test.
7364 * testsuite/libgomp.c/pr66199-2.c: New test.
7365 * testsuite/libgomp.c++/pr66199-1.C: New test.
7366 * testsuite/libgomp.c++/pr66199-2.C: New test.
7367 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7368 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7370 2015-05-19 Julian Brown <julian@codesourcery.com>
7372 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7375 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7378 * testsuite/libgomp.c/pr66133.c: New test.
7380 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7382 * Makefile.in: Regenerated with automake-1.11.6.
7383 * aclocal.m4: Likewise.
7384 * config.h.in: Likewise.
7385 * configure: Likewise.
7386 * testsuite/Makefile.in: Likewise.
7388 2015-05-08 Jason Merrill <jason@redhat.com>
7390 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7393 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7395 2015-05-06 Julian Brown <julian@codesourcery.com>
7397 * oacc-init.c (acc_device_lock): Add explanatory comment.
7398 (resolve_device): Add comment about locking requirement.
7399 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7400 gomp_init_device and gomp_fini_device calls.
7401 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7402 (acc_get_device_num, acc_set_device_num): Add locking around
7403 resolve_device and gomp_init_device calls.
7405 2015-05-06 Julian Brown <julian@codesourcery.com>
7407 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7408 goacc_thread_lock on error paths.
7409 * oacc-mem.c (lookup_host): Remove locking from function. Note
7410 locking requirement for caller in function comment.
7411 (lookup_dev): Likewise.
7412 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7413 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7414 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7417 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7421 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7422 don't expect "0x" prefix for "%p" format specifier, don't expect
7423 "(nil)" for NULL pointer.
7424 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7425 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7426 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7427 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7428 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7429 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7430 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7431 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7432 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7433 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7434 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7435 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7436 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7437 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7438 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7439 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7440 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7441 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7442 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7443 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7444 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7445 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7446 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7447 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7448 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7449 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7450 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7451 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7452 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7453 accurately specify what we're looking for.
7454 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7455 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7456 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7457 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7458 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7460 2015-04-30 James Norris <jnorris@codesourcery.com>
7463 * testsuite/lib/libgomp.exp
7464 (check_effective_target_openacc_host_selected)
7465 (check_effective_target_openacc_host_nonshm_selected): New
7467 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7469 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7470 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7471 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7472 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7473 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7474 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7475 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7476 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7477 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7478 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7479 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7480 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7481 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7482 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7483 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7484 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7485 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7486 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7487 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7488 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7489 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7490 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7491 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7492 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7493 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7494 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7495 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7496 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7497 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7498 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7499 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7500 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7501 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7502 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7503 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7504 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7505 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7506 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7507 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7508 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7509 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7510 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7511 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7513 2015-04-08 Julian Brown <julian@codesourcery.com>
7515 * libgomp.h (target_mem_desc: Remove mem_map field.
7516 (acc_dispatch_t): Remove open_device_func, close_device_func,
7517 get_device_num_func, set_device_num_func, target_data members.
7518 Change create_thread_data_func argument to device number instead of
7520 * oacc-async.c (assert.h): Include.
7521 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7522 (acc_wait_all, acc_wait_all_async): Use current host thread's
7523 active device, not base_dev.
7524 * oacc-cuda.c (acc_get_current_cuda_device)
7525 (acc_get_current_cuda_context, acc_get_cuda_stream)
7526 (acc_set_cuda_stream): Likewise.
7527 * oacc-host.c (host_dispatch): Don't set open_device_func,
7528 close_device_func, get_device_num_func or set_device_num_func.
7529 * oacc-init.c (base_dev, init_key): Remove.
7530 (cached_base_dev): New.
7531 (name_of_acc_device_t): New.
7532 (acc_init_1): Initialise default-numbered device, not zeroth.
7533 (acc_shutdown_1): Close all devices of a given type.
7534 (goacc_destroy_thread): Don't use base_dev.
7535 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7536 (goacc_attach_host_thread_to_device): New.
7537 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7538 (acc_get_num_devices): Don't use base_dev.
7539 (acc_set_device_type): Reimplement.
7540 (acc_get_device_type): Don't use base_dev.
7541 (acc_get_device_num): Tweak logic.
7542 (acc_set_device_num): Likewise.
7543 (acc_on_device): Use acc_get_device_type.
7544 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7545 (goacc_lazy_initialize): Reimplement with acc_init and
7546 goacc_attach_host_thread_to_device.
7547 * oacc-int.h (goacc_thread): Add base_dev field.
7548 (base_dev): Remove extern declaration.
7549 (goacc_attach_host_thread_to_device): Add prototype.
7550 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7552 (acc_free): Likewise.
7553 (acc_memcpy_to_device): Likewise.
7554 (acc_memcpy_from_device): Likewise.
7555 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7556 goacc_lazy_initialize (throughout).
7557 (GOACC_parallel): Use tgt_offset to locate target functions.
7558 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7559 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7560 (gomp_load_plugin_for_device): Remove open_device, close_device,
7561 get_device_num, set_device_num openacc hook initialisation. Don't set
7562 openacc.target_data.
7563 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7564 (GOMP_OFFLOAD_openacc_close_device)
7565 (GOMP_OFFLOAD_openacc_get_device_num)
7566 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7567 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7569 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7570 (instantiated_devices, ptx_dev_lock): New.
7571 (struct ptx_image_data): New.
7572 (ptx_devices, ptx_images, ptx_image_lock): New.
7573 (fini_streams_for_device): Reorder cuStreamDestroy call.
7574 (nvptx_get_num_devices): Remove forward declaration.
7575 (nvptx_init): Change return type to bool.
7576 (nvptx_fini): Remove.
7577 (nvptx_attach_host_thread_to_device): New.
7578 (nvptx_open_device): Return struct ptx_device* instead of void*.
7579 (nvptx_close_device): Change argument type to struct ptx_device*,
7580 return type to void.
7581 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7582 (kernel_target_data, kernel_host_table): Remove static globals.
7583 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7584 (GOMP_OFFLOAD_init_device): Reimplement.
7585 (GOMP_OFFLOAD_fini_device): Likewise.
7586 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7587 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7588 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7589 (GOMP_OFFLOAD_openacc_open_device)
7590 (GOMP_OFFLOAD_openacc_close_device)
7591 (GOMP_OFFLOAD_openacc_set_device_num)
7592 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7593 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7597 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7599 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7601 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7602 * libgomp.h (struct gomp_memory_mapping): Remove.
7603 (struct target_mem_desc): Change type of mem_map from
7604 gomp_memory_mapping * to splay_tree_s *.
7605 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7606 Add load_image_func, unload_image_func.
7607 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7608 Remove offload_regions_registered.
7609 (gomp_init_tables): Remove.
7610 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7612 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7613 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7614 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7615 offload_regions_registered.
7616 Initialize load_image_func, unload_image_func, mem_map.root.
7617 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7618 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7619 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7620 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7621 gomp_memory_mapping *. Use dev's lock and splay_tree.
7622 (lookup_dev): Use dev's lock.
7623 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7624 (acc_is_present): Likewise.
7625 (acc_map_data): Likewise.
7626 (acc_unmap_data): Likewise. Use dev's lock.
7627 (present_create_copy): Likewise.
7628 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7629 (update_dev_host): Likewise.
7630 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7631 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7632 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7633 (GOMP_OFFLOAD_get_table): Remove
7634 (GOMP_OFFLOAD_load_image): New function.
7635 (GOMP_OFFLOAD_unload_image): New function.
7636 * target.c (register_lock): New mutex for offload image registration.
7637 (num_devices): Do not guard with PLUGIN_SUPPORT.
7638 (gomp_realloc_unlock): New static function.
7639 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7641 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7642 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7643 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7645 (gomp_unmap_vars): Likewise.
7646 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7647 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7648 (gomp_offload_image_to_device): New static function.
7649 (GOMP_offload_register): Add mutex lock.
7650 Call gomp_offload_image_to_device for all initialized devices.
7651 Replace gomp_realloc with gomp_realloc_unlock.
7652 (GOMP_offload_unregister): New function.
7653 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7654 get_table_func from the plugin with calls to init_device_func and
7655 gomp_offload_image_to_device.
7656 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7658 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7659 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7660 (GOMP_target_data): Do not call gomp_init_tables.
7661 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7662 (gomp_load_plugin_for_device): Replace register_image and get_table
7663 with load_image and unload_image in DLSYM ().
7664 (gomp_register_images_for_device): Remove function.
7665 (gomp_target_init): Do not initialize current_device.mem_map.*,
7666 current_device.offload_regions_registered.
7667 Remove call to gomp_register_images_for_device.
7668 Do not free offload_images and num_offload_images.
7670 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7673 * testsuite/libgomp.fortran/pr65597.f90: New test.
7675 2015-03-27 Tom de Vries <tom@codesourcery.com>
7678 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7679 (init, check): New function.
7680 (foo): Change return type to void.
7681 (main): Call init and check.
7683 2015-03-27 Tom de Vries <tom@codesourcery.com>
7686 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7687 (foo): Use M for non-inner loops to scale down test-case.
7689 2015-03-25 Kai Tietz <ktietz@redhat.com>
7692 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7693 (GOACC_data_start): Likewise.
7694 * target.c (gomp_map_vars): Likewise.
7696 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7698 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7701 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7703 * testsuite/libgomp.c/target-10.c: New test.
7704 * testsuite/libgomp.c++/target-4.C: New test.
7706 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7708 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7709 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7711 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7713 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7714 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7715 (pthread.h): Check for this header file.
7716 * configure: Regenerate.
7718 2015-02-25 Tom de Vries <tom@codesourcery.com>
7720 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7721 (check_reduction_op, check_reduction_macro, max, min):
7723 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7725 (main): Use new functions.
7727 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7729 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7730 char * for variables holding dlerror return values.
7733 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7735 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7737 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7738 Cesar Philippidis <cesar@codesourcery.com>
7740 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7741 GOACC_ctaid, and GOACC_nctaid routines.
7743 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7746 * testsuite/libgomp.c/atomic-18.c: New test.
7747 * testsuite/libgomp.c++/atomic-16.C: New test.
7749 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7753 * testsuite/libgomp.c/pr64824.c: New test.
7754 * testsuite/libgomp.c/pr64868.c: New test.
7755 * testsuite/libgomp.c++/pr64824.C: New test.
7756 * testsuite/libgomp.c++/pr64868.C: New test.
7758 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7761 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7762 Link with -lpthread.
7763 * config/aix/plugin-suffix.h: Delete.
7765 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7768 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7769 (*-*-darwin*): Use config_path "bsd darwin posix".
7770 (*-*-hpux*): Use config_path "hpux posix".
7771 * target.c: Add include of plugin-suffix.h and use
7772 SONAME_SUFFIX macro.
7773 * config/aix/plugin-suffix.h: New file.
7774 * config/darwin/plugin-suffix.h: New file.
7775 * config/hpux/plugin-suffix.h: New file.
7776 * config/posix/plugin-suffix.h: New file.
7778 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7781 * libgomp.c/pr64734.c: New test.
7783 2015-01-23 Tom de Vries <tom@codesourcery.com>
7786 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7788 2015-01-23 Tom de Vries <tom@codesourcery.com>
7791 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7794 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7797 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7798 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7799 formal parameter. Update all users.
7800 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7801 Document unused formal parameter.
7803 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7805 * oacc-parallel.c: Don't include <alloca.h>.
7806 (GOACC_parallel): Use gomp_alloca instead of alloca.
7808 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7810 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7812 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7813 James Norris <jnorris@codesourcery.com>
7814 Tom de Vries <tom@codesourcery.com>
7815 Julian Brown <julian@codesourcery.com>
7816 Cesar Philippidis <cesar@codesourcery.com>
7817 Nathan Sidwell <nathan@codesourcery.com>
7818 Tobias Burnus <burnus@net-b.de>
7820 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7821 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7822 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7823 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7824 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7825 Include $(top_srcdir)/plugin/Makefrag.am.
7826 (nodist_libsubinclude_HEADERS): Add openacc.h.
7827 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7828 openacc.f90, openacc.mod, openacc_kinds.mod.
7829 (omp_lib.mod): Generalize into...
7830 (%.mod): ... this new rule.
7831 (openacc_kinds.mod, openacc.mod): New rules.
7832 * plugin/configfrag.ac: New file.
7833 * configure.ac: Move plugin/offloading support into it. Include
7834 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7835 * plugin/Makefrag.am: New file.
7836 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7837 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7839 (libgomp-test-support.exp): New rule.
7840 (all-local): Depend on it.
7841 * Makefile.in: Regenerate.
7842 * testsuite/Makefile.in: Regenerate.
7843 * config.h.in: Likewise.
7844 * configure: Likewise.
7845 * configure.tgt: Harden shell syntax.
7846 * env.c: Include "oacc-int.h".
7847 (parse_acc_device_type): New function.
7848 (gomp_debug_var, goacc_device_type, goacc_device_num): New
7850 (initialize_env): Initialize those. Call
7851 goacc_runtime_initialize.
7852 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
7853 (gomp_fatal): Call gomp_vfatal.
7854 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
7855 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
7856 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
7857 (splay_tree_node, splay_tree, splay_tree_key)
7858 (struct target_mem_desc, struct splay_tree_key_s)
7859 (struct gomp_memory_mapping, struct acc_dispatch_t)
7860 (struct gomp_device_descr, gomp_acc_insert_pointer)
7861 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
7862 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
7863 (gomp_free_memmap, gomp_fini_device): New declarations.
7864 (gomp_vdebug, gomp_debug): New macros.
7865 Include "splay-tree.h".
7866 * libgomp.map (OACC_2.0): New symbol version. Use for
7867 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
7868 acc_set_device_type_h_, acc_get_device_type,
7869 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
7870 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
7871 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
7872 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
7873 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
7874 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
7875 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
7876 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
7877 acc_copyin_array_h_, acc_present_or_copyin,
7878 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
7879 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
7880 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
7881 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
7882 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
7883 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
7884 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
7885 acc_update_device, acc_update_device_32_h_,
7886 acc_update_device_64_h_, acc_update_device_array_h_,
7887 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
7888 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
7889 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
7890 acc_is_present_64_h_, acc_is_present_array_h_,
7891 acc_memcpy_to_device, acc_memcpy_from_device,
7892 acc_get_current_cuda_device, acc_get_current_cuda_context,
7893 acc_get_cuda_stream, acc_set_cuda_stream.
7894 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
7895 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
7896 GOACC_update, GOACC_wait, GOACC_get_thread_num,
7897 GOACC_get_num_threads.
7898 (GOMP_PLUGIN_1.0): New symbol version. Use for
7899 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
7900 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
7901 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
7902 GOMP_PLUGIN_acc_thread.
7903 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
7904 environment variable.
7905 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
7906 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
7907 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
7908 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
7909 (splay_tree_remove): New declarations.
7910 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
7911 (splay_tree_remove, splay_tree_lookup): Move into...
7912 * splay-tree.c: ... this new file.
7913 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
7914 (splay_tree_node, splay_tree, splay_tree_key)
7915 (struct target_mem_desc, struct splay_tree_key_s)
7916 (struct gomp_device_descr): Don't declare.
7917 (num_devices_openmp): New variable.
7918 (gomp_get_num_devices ): Use it.
7919 (gomp_init_targets_once): New function.
7920 (gomp_get_num_devices ): Use it.
7921 (get_kind, gomp_copy_from_async, gomp_free_memmap)
7922 (gomp_fini_device, gomp_register_image_for_device): New functions.
7923 (gomp_map_vars): Add devaddrs parameter.
7924 (gomp_update): Add mm parameter.
7925 (gomp_init_device): Move most of it into...
7926 (gomp_init_tables): ... this new function.
7927 (gomp_register_images_for_device): Remove function.
7928 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
7929 Make them hidden instead of static.
7930 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
7931 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
7932 (GOMP_target_end_data, GOMP_target_update)
7933 (gomp_load_plugin_for_device, gomp_target_init): Update for
7935 * oacc-async.c: New file.
7936 * oacc-cuda.c: Likewise.
7937 * oacc-host.c: Likewise.
7938 * oacc-init.c: Likewise.
7939 * oacc-int.h: Likewise.
7940 * oacc-mem.c: Likewise.
7941 * oacc-parallel.c: Likewise.
7942 * oacc-plugin.c: Likewise.
7943 * oacc-plugin.h: Likewise.
7944 * oacc-ptx.h: Likewise.
7945 * openacc.f90: Likewise.
7946 * openacc.h: Likewise.
7947 * openacc_lib.h: Likewise.
7948 * plugin/plugin-host.c: Likewise.
7949 * plugin/plugin-nvptx.c: Likewise.
7950 * libgomp-plugin.c: Likewise.
7951 * libgomp-plugin.h: Likewise.
7952 * libgomp_target.h: Remove file after merging content into the
7953 former file. Update all users.
7954 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
7955 (offload_targets_s, offload_targets_s_openacc): New variables.
7956 (check_effective_target_openacc_nvidia_accel_present)
7957 (check_effective_target_openacc_nvidia_accel_selected): New
7959 (libgomp_init): Update for OpenACC changes.
7960 * testsuite/libgomp-test-support.exp.in: New file.
7961 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7962 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7963 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7964 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
7965 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
7966 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7967 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
7968 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7969 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
7971 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
7972 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7973 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7976 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7977 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7978 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7979 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7980 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7981 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
7982 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7983 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7984 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7990 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7991 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7992 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7994 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
7995 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7997 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8002 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8003 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8005 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8006 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8007 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8008 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8009 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8010 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8011 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8012 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8013 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8014 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8015 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8016 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8017 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8018 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8020 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8021 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8022 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8023 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8024 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8025 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8026 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8027 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8028 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8029 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8030 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8031 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8035 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8036 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8037 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8038 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8039 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8040 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8041 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8042 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8043 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8044 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8045 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8046 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8047 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8048 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8049 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8050 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8051 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8052 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8053 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8054 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8055 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8056 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8057 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8058 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8059 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8060 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8061 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8062 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8063 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8064 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8065 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8066 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8067 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8068 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8069 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8070 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8071 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8072 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8073 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8074 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8075 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8076 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8077 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8078 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8079 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8080 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8081 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8082 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8083 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8084 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8085 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8086 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8087 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8088 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8089 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8090 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8091 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8092 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8093 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8094 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8095 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8096 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8097 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8098 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8099 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8100 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8102 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8103 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8104 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8105 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8106 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8107 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8108 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8109 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8110 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8111 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8112 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8113 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8114 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8115 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8116 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8117 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8118 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8119 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8120 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8121 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8122 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8123 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8124 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8125 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8126 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8127 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8128 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8129 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8130 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8131 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8132 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8133 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8134 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8135 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8136 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8137 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8138 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8139 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8140 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8141 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8142 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8143 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8144 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8145 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8146 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8147 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8148 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8149 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8150 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8151 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8152 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8153 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8154 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8155 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8156 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8157 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8158 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8159 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8160 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8161 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8163 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8164 Julian Brown <julian@codesourcery.com>
8165 David Malcolm <dmalcolm@redhat.com>
8167 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8168 to "GNU Offloading and Multi Processing Runtime Library". Change
8170 * configure: Regenerate.
8171 * libgomp.texi: Update.
8173 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8175 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8177 * configure: Regenerate.
8179 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8180 "intelmic" in $offload_targets.
8182 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8184 Update copyright years.
8186 * libgomp.texi: Bump @copying's copyright year.
8188 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8190 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8191 Move load of target-supports.exp earlier.
8193 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8195 * testsuite/libgomp.c/target-9.c: New test.
8197 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8199 * config.h.in: Regenerate.
8200 * configure: Regenerate.
8201 * configure.ac: Add GCC_CHECK_EMUTLS.
8202 * libgomp.h: Add check for USE_EMUTLS: this case
8203 is equal to HAVE_TLS.
8206 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8208 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8210 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8211 Ilya Verbin <ilya.verbin@intel.com>
8213 * testsuite/libgomp.c/target-critical-1.c: New test.
8215 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8217 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8218 to dg-options unless expensive testing is on.
8219 (TESTITERS): Define to N if not defined.
8220 (main): Use TESTITERS instead of N.
8221 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8222 dg-additional-options depending on whether expensive testing is on.
8223 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8224 Decrease N to 100000 and CHUNKSZ to 10000.
8226 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8229 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8230 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8232 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8234 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8236 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8239 * configure: Regenerated.
8241 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8243 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8244 vect_simd_clones effective target.
8245 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8247 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8249 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8250 of 32 as block_size.
8251 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8252 instead of 32 as block_size.
8254 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8255 Ilya Verbin <ilya.verbin@intel.com>
8257 * Makefile.in: Regenerate.
8258 * configure: Regenerate.
8259 * configure.ac: Set up offload_additional_options,
8260 offload_additional_lib_paths and offload_targets.
8261 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8262 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8263 * testsuite/Makefile.in: Regenerate.
8264 * testsuite/lib/libgomp.exp (libgomp_init): Append
8265 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8266 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8267 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8269 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8270 Ilya Verbin <ilya.verbin@intel.com>
8271 Kirill Yukhin <kirill.yukhin@intel.com>
8272 Ilya Tocar <ilya.tocar@intel.com>
8274 * testsuite/lib/libgomp.exp
8275 (check_effective_target_offload_device): New.
8276 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8277 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8278 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8279 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8280 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8281 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8282 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8283 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8284 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8285 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8286 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8287 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8288 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8289 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8290 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8291 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8292 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8293 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8294 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8295 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8296 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8297 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8298 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8299 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8300 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8301 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8302 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8303 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8304 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8305 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8306 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8307 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8308 * testsuite/libgomp.c/target-7.c: Fix test.
8309 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8310 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8311 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8312 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8313 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8314 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8315 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8316 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8317 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8318 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8319 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8320 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8321 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8322 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8323 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8324 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8325 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8326 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8327 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8328 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8329 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8330 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8331 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8332 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8333 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8334 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8335 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8336 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8337 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8338 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8339 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8341 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8342 Ilya Verbin <ilya.verbin@intel.com>
8343 Thomas Schwinge <thomas@codesourcery.com>
8344 Andrey Turetskiy <andrey.turetskiy@intel.com>
8346 * libgomp.map (GOMP_4.0.1): New symbol version.
8347 Add GOMP_offload_register.
8348 * libgomp_target.h: New file.
8349 * splay-tree.h: New file.
8350 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8351 (gomp_target_init): New forward declaration.
8352 (gomp_is_initialized): New static variable.
8353 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8354 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8356 (offload_images, num_offload_images, devices, num_devices): New static
8358 (splay_compare): New static function.
8359 (struct gomp_device_descr): New structure.
8360 (gomp_get_num_devices): Call gomp_target_init.
8361 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8362 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8363 (GOMP_offload_register): New function.
8364 (GOMP_target): Arrange for host callback to be performed in a separate
8365 initial thread and contention group, inheriting ICVs from
8366 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8367 Add device initialization and lookup for target function in splay tree.
8368 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8369 (GOMP_target_end_data): Call gomp_unmap_vars.
8370 (GOMP_target_update): Add device initialization and call gomp_update.
8371 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8372 (gomp_target_init): New static functions.
8374 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8375 Thomas Schwinge <thomas@codesourcery.com>
8376 Ilya Verbin <ilya.verbin@intel.com>
8377 Andrey Turetskiy <andrey.turetskiy@intel.com>
8379 * config.h.in: Regenerate.
8380 * configure: Regenerate.
8381 * configure.ac: Check for libdl, required for plugin support.
8382 (PLUGIN_SUPPORT): Define if plugins are supported.
8383 (enable_offload_targets): Support Intel MIC targets.
8384 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8386 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8389 * configure: Regenerate.
8391 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8393 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8395 2014-10-06 Marek Polacek <polacek@redhat.com>
8397 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8398 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8399 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8400 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8402 2014-10-06 Marek Polacek <polacek@redhat.com>
8404 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8405 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8406 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8407 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8408 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8409 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8410 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8411 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8412 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8413 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8414 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8415 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8416 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8417 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8418 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8419 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8420 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8421 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8424 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8427 * testsuite/libgomp.c/pr61200.c: New test.
8429 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8432 * testsuite/libgomp.c++/pr63248.C: New test.
8434 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8436 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8437 is not zero, but taskgroup->children is NULL and there are
8438 any task->children, schedule those instead of waiting.
8439 * testsuite/libgomp.c/depend-6.c: New test.
8440 * testsuite/libgomp.c/depend-7.c: New test.
8441 * testsuite/libgomp.c/depend-8.c: New test.
8442 * testsuite/libgomp.c/depend-9.c: New test.
8443 * testsuite/libgomp.c/depend-10.c: New test.
8445 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8447 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8448 (struct gomp_taskwait): New type.
8449 (struct gomp_task): Add taskwait and parent_depends_on, remove
8450 in_taskwait and taskwait_sem fields.
8451 (gomp_finish_task): Don't destroy taskwait_sem.
8452 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8453 taskwait and parent_depends_on.
8454 (GOMP_task): For if (0) tasks with depend clause that depend on
8455 earlier tasks don't defer them, instead call
8456 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8457 Initialize redundant_out field, for redundant out entries just
8458 move them at the end of linked list instead of removing them
8459 completely, and set redundant_out flag instead of redundant.
8460 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8462 (gomp_task_run_post_handle_dependers): If parent is in
8463 gomp_task_maybe_wait_for_dependencies and newly runnable task
8464 is not parent_depends_on, queue it in parent->children linked
8465 list after all runnable tasks with parent_depends_on set.
8466 Adjust for addition of taskwait indirection.
8467 (gomp_task_run_post_remove_parent): If parent is in
8468 gomp_task_maybe_wait_for_dependencies and task to be removed
8469 is parent_depends_on, decrement n_depend and if needed awake
8470 parent. Adjust for addition of taskwait indirection.
8471 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8472 (gomp_task_maybe_wait_for_dependencies): New function.
8473 * testsuite/libgomp.c/depend-5.c: New test.
8475 2014-07-13 Tobias Burnus <burnus@net-b.de>
8477 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8478 with TS 18508/Fortran 2015.
8480 2014-07-06 Marek Polacek <polacek@redhat.com>
8483 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8485 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8487 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8488 matches regex $lang_source_re, add $lang_include_flags to options.
8489 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8490 * testsuite/libgomp.c++/c++.exp: Likewise.
8491 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8492 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8494 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8496 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8498 * testsuite/libgomp.fortran/fortran.exp: Explain
8499 gfortran-dg-runtest usage.
8501 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8503 * testsuite/libgomp.fortran/simd5.f90: New test.
8504 * testsuite/libgomp.fortran/simd6.f90: New test.
8505 * testsuite/libgomp.fortran/simd7.f90: New test.
8507 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8509 * testsuite/libgomp.c/for-2.c: Define SC to static for
8510 #pragma omp for simd testing.
8511 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8512 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8514 * testsuite/libgomp.c/simd-14.c: New test.
8515 * testsuite/libgomp.c/simd-15.c: New test.
8516 * testsuite/libgomp.c/simd-16.c: New test.
8517 * testsuite/libgomp.c/simd-17.c: New test.
8518 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8519 #pragma omp for simd testing.
8520 * testsuite/libgomp.c++/simd10.C: New test.
8521 * testsuite/libgomp.c++/simd11.C: New test.
8522 * testsuite/libgomp.c++/simd12.C: New test.
8523 * testsuite/libgomp.c++/simd13.C: New test.
8525 * testsuite/libgomp.fortran/aligned1.f03: New test.
8526 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8527 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8528 tasks with !$omp parallel !$omp single.
8529 * testsuite/libgomp.fortran/target8.f90: New test.
8530 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8531 not to use trim in the combiner, instead call elemental function.
8532 (fn): New elemental function.
8533 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8535 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8537 * testsuite/libgomp.fortran/udr12.f90: New test.
8538 * testsuite/libgomp.fortran/udr13.f90: New test.
8539 * testsuite/libgomp.fortran/udr14.f90: New test.
8540 * testsuite/libgomp.fortran/udr15.f90: New test.
8542 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8544 * omp_lib.f90.in (openmp_version): Set to 201307.
8545 * omp_lib.h.in (openmp_version): Likewise.
8546 * testsuite/libgomp.c/target-8.c: New test.
8547 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8548 and inbranch clauses.
8549 * testsuite/libgomp.fortran/depend-3.f90: New test.
8550 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8552 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8553 * testsuite/libgomp.fortran/target1.f90: New test.
8554 * testsuite/libgomp.fortran/target2.f90: New test.
8555 * testsuite/libgomp.fortran/target3.f90: New test.
8556 * testsuite/libgomp.fortran/target4.f90: New test.
8557 * testsuite/libgomp.fortran/target5.f90: New test.
8558 * testsuite/libgomp.fortran/target6.f90: New test.
8559 * testsuite/libgomp.fortran/target7.f90: New test.
8561 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8564 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8565 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8566 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8567 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8568 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8569 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8570 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8571 * testsuite/libgomp.fortran/associate1.f90: New test.
8572 * testsuite/libgomp.fortran/associate2.f90: New test.
8573 * testsuite/libgomp.fortran/procptr1.f90: New test.
8575 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8577 * testsuite/libgomp.fortran/simd1.f90: New test.
8578 * testsuite/libgomp.fortran/udr1.f90: New test.
8579 * testsuite/libgomp.fortran/udr2.f90: New test.
8580 * testsuite/libgomp.fortran/udr3.f90: New test.
8581 * testsuite/libgomp.fortran/udr4.f90: New test.
8582 * testsuite/libgomp.fortran/udr5.f90: New test.
8583 * testsuite/libgomp.fortran/udr6.f90: New test.
8584 * testsuite/libgomp.fortran/udr7.f90: New test.
8585 * testsuite/libgomp.fortran/udr8.f90: New test.
8586 * testsuite/libgomp.fortran/udr9.f90: New test.
8587 * testsuite/libgomp.fortran/udr10.f90: New test.
8588 * testsuite/libgomp.fortran/udr11.f90: New test.
8590 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8592 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8593 vect_simd_clones effective target.
8594 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8596 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8599 * testsuite/libgomp.c++/simd-9.C: New test.
8601 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8603 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8604 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8605 texts according to their @menu entry positions.
8607 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8609 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8610 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8611 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8612 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8613 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8614 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8615 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8616 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8617 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8618 * testsuite/libgomp.fortran/depend-1.f90: New test.
8619 * testsuite/libgomp.fortran/depend-2.f90: New test.
8620 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8621 * testsuite/libgomp.fortran/simd1.f90: New test.
8622 * testsuite/libgomp.fortran/simd2.f90: New test.
8623 * testsuite/libgomp.fortran/simd3.f90: New test.
8624 * testsuite/libgomp.fortran/simd4.f90: New test.
8625 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8627 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8629 * testsuite/libgomp.c/simd-10.c: New test.
8630 * testsuite/libgomp.c/simd-11.c: New test.
8631 * testsuite/libgomp.c/simd-12.c: New test.
8632 * testsuite/libgomp.c/simd-13.c: New test.
8634 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8636 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8637 atomic type clauses in any order and optional comma in between.
8638 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8639 * testsuite/libgomp.c/atomic-17.c: Likewise.
8641 * testsuite/libgomp.c/simd-7.c: New test.
8642 * testsuite/libgomp.c/simd-8.c: New test.
8643 * testsuite/libgomp.c/simd-9.c: New test.
8644 * testsuite/libgomp.c/loop-16.c: New test.
8646 2014-04-02 Richard Henderson <rth@redhat.com>
8648 * config/linux/futex.h (futex_wait): Get error value from errno.
8649 (futex_wake): Likewise.
8651 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8654 * testsuite/libgomp.c++/udr-11.C: New test.
8655 * testsuite/libgomp.c++/udr-12.C: New test.
8656 * testsuite/libgomp.c++/udr-13.C: New test.
8657 * testsuite/libgomp.c++/udr-14.C: New test.
8658 * testsuite/libgomp.c++/udr-15.C: New test.
8659 * testsuite/libgomp.c++/udr-16.C: New test.
8660 * testsuite/libgomp.c++/udr-17.C: New test.
8661 * testsuite/libgomp.c++/udr-18.C: New test.
8662 * testsuite/libgomp.c++/udr-19.C: New test.
8664 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8666 Update copyright years
8668 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8670 * hashtab.h: Use the standard form for the copyright notice.
8672 2014-01-02 Tobias Burnus <burnus@net-b.de>
8674 * libgomp.texi: Bump @copying's copyright year.
8676 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8678 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8679 alloca () with __builtin_alloca ().
8680 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8681 * testsuite/libgomp.c/lock-3.c: Likewise.
8682 * testsuite/libgomp.c/pr48591.c: Likewise.
8684 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8687 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8690 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8693 * testsuite/libgomp.c/pr58756.c: New test.
8695 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8698 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8701 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8703 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8705 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8706 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8707 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8708 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8711 * libgomp_g.h: Include <stddef.h> for size_t.
8713 * libgomp.spec.in: Update comment about libgomp's dependencies.
8714 * configure.ac: Likewise.
8715 * configure: Regenerate.
8717 2013-10-16 Tobias Burnus <burnus@net-b.de>
8719 * libgomp.texi: (Runtime Library Routines): Update references for
8720 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8721 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8722 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8723 (Environment Variables): Update references for OpenMP 4.0. Add
8724 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8725 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8728 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8730 * env.c (parse_bind_var): Initialize value to avoid
8731 (false positive) warning.
8733 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8736 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8738 (gomp_init_num_threads): Move i variable declaration into
8739 #ifdef CPU_ALLOC_SIZE block.
8740 * config/linux/affinity.c (gomp_affinity_init_level): Test
8741 gomp_places_list_len == 0 rather than gomp_places_list == 0
8742 when checking for topology reading error.
8743 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8744 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8745 gomp_places_list, only parse env var and always return false.
8746 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8747 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8748 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8749 and either of these variables were parsed correctly into a places
8752 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8753 Jakub Jelinek <jakub@redhat.com>
8755 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8756 of 5 loopfn matches.
8757 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8758 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8759 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8760 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8761 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8762 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8763 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8764 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8766 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8768 * Makefile.am (omp_lib.mod): Streamline rule.
8769 * Makefile.in: Regenerate.
8771 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8774 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8775 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8776 * testsuite/libgomp.fortran/lib2.f: Likewise.
8777 * testsuite/libgomp.fortran/lib3.f: Likewise.
8779 * configure.ac: Typo fix.
8780 * configure: Regenerate.
8782 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8783 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8785 * omp.h.in: Don't touch the user's namespace.
8787 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8788 Tobias Burnus <burnus@net-b.de>
8789 Richard Henderson <rth@redhat.com>
8791 * target.c: New file.
8792 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8793 * Makefile.in: Regenerated.
8794 * libgomp_g.h (GOMP_task): Add depend argument.
8795 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8796 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8797 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8798 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8799 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8800 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8801 GOMP_taskgroup_start, GOMP_taskgroup_end,
8802 GOMP_parallel_sections): New prototypes.
8803 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8804 (omp_is_initial_device_): New function.
8805 (ULP, STR1, STR2, ialias_redirect): Removed.
8806 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8807 omp_set_default_device_8_, omp_get_default_device_,
8808 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8810 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8811 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8812 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8814 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8815 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8816 omp_set_default_device, omp_set_default_device_,
8817 omp_set_default_device_8_, omp_get_default_device,
8818 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8819 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8820 omp_get_team_num_): Export @@OMP_4.0.
8821 * team.c (struct gomp_thread_start_data): Add place field.
8822 (gomp_thread_start): Clear thr->thread_pool and
8823 thr->task before returning. Use gomp_team_barrier_wait_final
8824 instead of gomp_team_barrier_wait. Initialize thr->place.
8825 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8826 team_cancelled and task_queued_count fields.
8827 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8828 before calling pthread_exit.
8829 (gomp_free_thread): No longer static. Use
8830 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8831 (gomp_team_start): Add flags argument. Set
8832 thr->thread_pool->threads_busy to nthreads immediately after creating
8833 new pool. Use gomp_managed_threads_lock instead of
8834 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8835 (gomp_team_end): Use gomp_managed_threads_lock instead of
8836 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8837 of gomp_team_barrier_wait. If team->team_cancelled, call
8838 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
8839 rather than thr->ts.work_share.
8840 (initialize_team): Don't call gomp_sem_init here.
8841 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
8843 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
8844 * env.c (gomp_global_icv): Add default_device_var, target_data and
8845 bind_var initializers.
8846 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8847 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8848 gomp_places_list_len): New variables.
8849 (parse_bind_var, parse_one_place, parse_places_var): New functions.
8850 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
8852 (gomp_cancel_var): New global variable.
8853 (parse_int): New function.
8854 (handle_omp_display_env): New function.
8855 (initialize_env): Use it. Initialize default_device_var.
8856 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
8857 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
8858 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
8859 been successfully parsed (and call gomp_init_affinity in that case).
8860 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8861 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8862 omp_get_team_num, omp_is_initial_device): New functions.
8863 * libgomp.h: Include stdlib.h.
8864 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
8866 (struct target_mem_desc): Forward declare.
8867 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
8868 and thread_limit_var fields.
8869 (gomp_get_num_devices): New prototype.
8870 (gomp_cancel_var): New extern decl.
8871 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
8872 team_cancelled and task_queued_count fields. Add comments about
8873 task_{,queued_,running_}count.
8874 (gomp_cancel_kind): New enum.
8875 (gomp_work_share_end_cancel): New prototype.
8876 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
8877 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
8879 (struct gomp_taskgroup): New type.
8880 (struct gomp_task_depend_entry,
8881 struct gomp_dependers_vec): New types.
8882 (gomp_finish_task): Free depend_hash if non-NULL.
8883 (struct gomp_team_state): Add place_partition_off
8884 and place_partition_len fields.
8885 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8886 gomp_places_list_len): New extern decls.
8887 (struct gomp_thread): Add place field.
8888 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8889 (gomp_init_thread_affinity): Add place argument.
8890 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8891 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8892 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8893 gomp_affinity_init_level, gomp_affinity_print_place): New
8895 (gomp_team_start): Add flags argument.
8896 (gomp_thread_limit_var, gomp_remaining_threads_count,
8897 gomp_remaining_threads_lock): Remove.
8898 (gomp_managed_threads_lock): New variable.
8899 (struct gomp_thread_pool): Add threads_busy field.
8900 (gomp_free_thread): New prototype.
8901 * task.c: Include hashtab.h.
8902 (hash_entry_type): New typedef.
8903 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
8904 (gomp_init_task): Clear dependers, depend_hash, depend_count,
8905 copy_ctors_done and taskgroup fields.
8906 (GOMP_task): Add depend argument, handle depend clauses. If
8907 gomp_team_barrier_cancelled or if it's taskgroup has been
8908 cancelled, don't queue or start new tasks. Set copy_ctors_done
8909 field if needed. Initialize taskgroup field. If copy_ctors_done
8910 and already cancelled, don't discard the task. If taskgroup is
8911 non-NULL, enqueue the task into taskgroup queue. Increment
8912 num_children field in taskgroup. Increment task_queued_count.
8913 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
8914 gomp_task_run_post_remove_taskgroup): New inline functions.
8915 (gomp_task_run_post_handle_depend_hash,
8916 gomp_task_run_post_handle_dependers,
8917 gomp_task_run_post_handle_depend): New functions.
8918 (GOMP_taskwait): Use them. If more than one new tasks
8919 have been queued, wake other threads if needed.
8920 (gomp_barrier_handle_tasks): Likewise. If
8921 gomp_team_barrier_cancelled, don't start any new tasks, just free
8923 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
8925 (omp_proc_bind_kind, omp_proc_bind_false,
8926 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8927 omp_proc_bind_spread): New params.
8928 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8929 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8930 omp_get_team_num, omp_is_initial_device): New interfaces.
8931 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
8932 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
8933 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
8934 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
8935 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
8936 useless use omp_lib_kinds.
8937 * omp.h.in (omp_proc_bind_t): New typedef.
8938 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8939 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8940 omp_get_team_num, omp_is_initial_device): New prototypes.
8941 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
8942 through to gomp_team_start.
8943 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
8944 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
8945 Adjust gomp_parallel_loop_start callers.
8946 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8947 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8948 GOMP_loop_end_cancel): New functions.
8949 (GOMP_parallel_end): Add ialias_redirect.
8950 * hashtab.h: New file.
8951 * libgomp.texi (Environment Variables): Minor cleanup,
8952 update section refs to OpenMP 4.0rc2.
8953 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
8954 environment variables.
8955 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
8956 team->work_shares_to_free to thr->ts.work_share before calling
8958 (gomp_work_share_end_cancel): New function.
8959 * config/linux/proc.c: Include errno.h.
8960 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
8961 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
8962 sizeof (cpu_set_t) to determine number of iterations. Fix up check
8963 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
8964 gomp_cpuset_size is sizeof (cpu_set_t).
8965 (gomp_init_num_threads): Initialize gomp_cpuset_size,
8966 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
8967 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
8968 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
8969 contain any logical CPUs.
8970 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
8971 is NULL. Use gomp_cpusetp instead of &cpuset and pass
8972 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
8973 pthread_getaffinity_np. Check gomp_places_list instead of
8974 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
8975 * config/linux/bar.c (gomp_barrier_wait_end,
8976 gomp_barrier_wait_last): Use BAR_* defines.
8977 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
8978 from state where needed. Set work_share_cancelled to 0 on last
8980 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
8981 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
8983 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
8984 Add cpusetsize argument.
8985 (gomp_cpuset_size, gomp_cpusetp): Declare.
8986 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
8987 (affinity_counter): Remove.
8988 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
8989 if CPU_ALLOC_SIZE isn't defined.
8990 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
8991 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
8992 bind current thread to the first place.
8993 (gomp_init_thread_affinity): Rewritten. Add place argument, just
8994 pthread_setaffinity_np to gomp_places_list[place].
8995 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8996 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8997 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8998 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
8999 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9000 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9001 (gomp_barrier_t): Add awaited_final field.
9002 (gomp_barrier_init): Initialize awaited_final field.
9003 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9004 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9006 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9008 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9009 gomp_team_barrier_cancelled): New inline functions.
9010 (gomp_barrier_last_thread,
9011 gomp_team_barrier_set_task_pending,
9012 gomp_team_barrier_clear_task_pending,
9013 gomp_team_barrier_set_waiting_for_tasks,
9014 gomp_team_barrier_waiting_for_tasks,
9015 gomp_team_barrier_done): Use BAR_* defines.
9016 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9017 (gomp_barrier_wait_end): Use BAR_* defines.
9018 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9019 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9021 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9022 gomp_team_barrier_cancel): New functions.
9023 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9025 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9026 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9027 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9028 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9029 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9030 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9031 (gomp_barrier_t): Add cancellable field.
9032 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9033 gomp_team_barrier_cancel): New prototypes.
9034 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9035 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9036 gomp_team_barrier_cancelled): New inline functions.
9037 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9038 gomp_team_barrier_set_task_pending,
9039 gomp_team_barrier_clear_task_pending,
9040 gomp_team_barrier_set_waiting_for_tasks,
9041 gomp_team_barrier_waiting_for_tasks,
9042 gomp_team_barrier_done): Use BAR_* defines.
9043 * barrier.c (GOMP_barrier_cancel): New function.
9044 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9045 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9046 omp_proc_bind_spread): New params.
9047 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9048 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9049 omp_get_team_num, omp_is_initial_device): New externals.
9050 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9052 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9053 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9054 infinity. If not nested, just return minimum of max_num_threads
9055 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9056 to the returned value. Otherwise, don't update atomically
9057 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9058 (GOMP_parallel_end): Adjust for thread_limit now being in
9059 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9060 infinity. Adjust threads_busy in the pool rather than
9061 gomp_remaining_threads_count. Remember team->nthreads and call
9062 gomp_team_end before adjusting threads_busy, if not nested
9063 afterwards, just set it to 1 non-atomically. Add ialias.
9064 (GOMP_parallel_start): Adjust gomp_team_start caller.
9065 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9066 * testsuite/libgomp.c/affinity-1.c: New test.
9067 * testsuite/libgomp.c/atomic-15.c: New test.
9068 * testsuite/libgomp.c/atomic-16.c: New test.
9069 * testsuite/libgomp.c/atomic-17.c: New test.
9070 * testsuite/libgomp.c/cancel-for-1.c: New test.
9071 * testsuite/libgomp.c/cancel-for-2.c: New test.
9072 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9073 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9074 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9075 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9076 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9077 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9078 * testsuite/libgomp.c/depend-1.c: New test.
9079 * testsuite/libgomp.c/depend-2.c: New test.
9080 * testsuite/libgomp.c/depend-3.c: New test.
9081 * testsuite/libgomp.c/depend-4.c: New test.
9082 * testsuite/libgomp.c/for-1.c: New test.
9083 * testsuite/libgomp.c/for-1.h: New file.
9084 * testsuite/libgomp.c/for-2.c: New test.
9085 * testsuite/libgomp.c/for-2.h: New file.
9086 * testsuite/libgomp.c/for-3.c: New test.
9087 * testsuite/libgomp.c/pr58392.c: New test.
9088 * testsuite/libgomp.c/simd-1.c: New test.
9089 * testsuite/libgomp.c/simd-2.c: New test.
9090 * testsuite/libgomp.c/simd-3.c: New test.
9091 * testsuite/libgomp.c/simd-4.c: New test.
9092 * testsuite/libgomp.c/simd-5.c: New test.
9093 * testsuite/libgomp.c/simd-6.c: New test.
9094 * testsuite/libgomp.c/target-1.c: New test.
9095 * testsuite/libgomp.c/target-2.c: New test.
9096 * testsuite/libgomp.c/target-3.c: New test.
9097 * testsuite/libgomp.c/target-4.c: New test.
9098 * testsuite/libgomp.c/target-5.c: New test.
9099 * testsuite/libgomp.c/target-6.c: New test.
9100 * testsuite/libgomp.c/target-7.c: New test.
9101 * testsuite/libgomp.c/taskgroup-1.c: New test.
9102 * testsuite/libgomp.c/thread-limit-1.c: New test.
9103 * testsuite/libgomp.c/thread-limit-2.c: New test.
9104 * testsuite/libgomp.c/thread-limit-3.c: New test.
9105 * testsuite/libgomp.c/udr-1.c: New test.
9106 * testsuite/libgomp.c/udr-2.c: New test.
9107 * testsuite/libgomp.c/udr-3.c: New test.
9108 * testsuite/libgomp.c++/affinity-1.C: New test.
9109 * testsuite/libgomp.c++/atomic-10.C: New test.
9110 * testsuite/libgomp.c++/atomic-11.C: New test.
9111 * testsuite/libgomp.c++/atomic-12.C: New test.
9112 * testsuite/libgomp.c++/atomic-13.C: New test.
9113 * testsuite/libgomp.c++/atomic-14.C: New test.
9114 * testsuite/libgomp.c++/atomic-15.C: New test.
9115 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9116 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9117 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9118 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9119 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9120 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9121 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9122 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9123 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9124 * testsuite/libgomp.c++/cancel-test.h: New file.
9125 * testsuite/libgomp.c++/for-9.C: New test.
9126 * testsuite/libgomp.c++/for-10.C: New test.
9127 * testsuite/libgomp.c++/for-11.C: New test.
9128 * testsuite/libgomp.c++/simd-1.C: New test.
9129 * testsuite/libgomp.c++/simd-2.C: New test.
9130 * testsuite/libgomp.c++/simd-3.C: New test.
9131 * testsuite/libgomp.c++/simd-4.C: New test.
9132 * testsuite/libgomp.c++/simd-5.C: New test.
9133 * testsuite/libgomp.c++/simd-6.C: New test.
9134 * testsuite/libgomp.c++/simd-7.C: New test.
9135 * testsuite/libgomp.c++/simd-8.C: New test.
9136 * testsuite/libgomp.c++/target-1.C: New test.
9137 * testsuite/libgomp.c++/target-2.C: New test.
9138 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9139 * testsuite/libgomp.c++/target-3.C: New test.
9140 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9141 * testsuite/libgomp.c++/udr-1.C: New test.
9142 * testsuite/libgomp.c++/udr-2.C: New test.
9143 * testsuite/libgomp.c++/udr-3.C: New test.
9144 * testsuite/libgomp.c++/udr-4.C: New test.
9145 * testsuite/libgomp.c++/udr-5.C: New test.
9146 * testsuite/libgomp.c++/udr-6.C: New test.
9147 * testsuite/libgomp.c++/udr-7.C: New test.
9148 * testsuite/libgomp.c++/udr-8.C: New test.
9149 * testsuite/libgomp.c++/udr-9.C: New test.
9151 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9154 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9157 2013-09-20 Alan Modra <amodra@gmail.com>
9159 * configure: Regenerate.
9161 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9163 * testsuite/libgomp.c/sections-2.c: New test.
9165 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9167 * testsuite/libgomp.fortran/strassen.f90:
9168 Add dg-skip-if aarch64_tiny.
9170 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9171 Cesar Philippidis <cesar@codesourcery.com>
9173 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9174 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9175 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9176 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9177 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9178 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9179 Use dg-runtest rather than gfortran-dg-runtest.
9181 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9183 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9184 Linux-based x86 systems to cover all GNU systems.
9185 * testsuite/libgomp.c/lock-3.c: Likewise.
9186 * testsuite/libgomp.c/pr48591.c: Likewise.
9188 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9190 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9191 GNU/Hurd, as done for Linux-based systems.
9193 * config/posix/ptrlock.h: Fix comment.
9195 2013-05-27 Tobias Burnus <burnus@net-b.de>
9198 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9199 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9200 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9201 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9202 omp_destroy_nest_lock): Correct arguments to match the one in
9204 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9205 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9206 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9207 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9209 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9211 * testsuite/libgomp.c/loop-13.c: New test.
9212 * testsuite/libgomp.c/loop-14.c: New test.
9213 * testsuite/libgomp.c/loop-15.c: New test.
9214 * testsuite/libgomp.c++/loop-13.C: New test.
9215 * testsuite/libgomp.c++/loop-14.C: New test.
9216 * testsuite/libgomp.c++/loop-15.C: New test.
9218 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9221 * testsuite/libgomp.c++/pr56217.C: New test.
9223 2013-02-01 Alan Modra <amodra@gmail.com>
9225 * task.c (GOMP_task, GOMP_taskwait): Comment.
9227 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9228 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9231 * config/linux/wait.h (do_spin): Use atomic load for addr.
9232 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9233 for intptr and ptrlock.
9234 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9237 2013-01-22 Alan Modra <amodra@gmail.com>
9241 * task.c (GOMP_task): Revert 2011-12-09 change.
9242 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9243 barrier to read task->children..
9244 (gomp_barrier_handle_tasks): ..and matching atomic store with
9245 release barrier here when setting parent->children to NULL.
9247 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9248 Tobias Burnus <burnus@net-b.de>
9251 * testsuite/libgomp.fortran/fortran.exp: Use
9252 -fintrinsic-modules-path= instead of
9253 -fintrinsic-modules-path.
9255 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9257 Update copyright years.
9259 2012-12-19 Tobias Burnus <burnus@net-b.de>
9261 * testsuite/libgomp.fortran/fortran.exp: Set
9262 -fintrinsic-modules-path.
9264 2012-12-19 Tobias Burnus <burnus@net-b.de>
9266 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9267 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9269 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9272 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9273 if pool had any threads_used.
9275 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9277 * testsuite/libgomp.c++/pr24455.C: Use
9278 -Wl,-undefined,dynamic_lookup on darwin.
9280 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9282 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9284 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9286 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9288 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9289 Jim MacArthur <jim.macarthur@arm.com>
9290 Marcus Shawcroft <marcus.shawcroft@arm.com>
9291 Nigel Stephens <nigel.stephens@arm.com>
9292 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9293 Richard Earnshaw <rearnsha@arm.com>
9294 Sofiane Naci <sofiane.naci@arm.com>
9295 Stephen Thomas <stephen.thomas@arm.com>
9296 Tejas Belagod <tejas.belagod@arm.com>
9297 Yufeng Zhang <yufeng.zhang@arm.com>
9299 * configure.tgt: Add AArch64.
9301 2012-10-04 Jason Merrill <jason@redhat.com>
9303 * testsuite/libgomp.c++/tls-init1.C: New.
9305 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9307 * configure: Regenerated.
9309 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9311 * config/linux/mips/futex.h (sys_futex0): Change to static
9312 function with noinline, nomips16 attributes under MIPS16. Adjust
9313 asm statement to place 'li v0,SYS_futex' immediately before
9316 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9318 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9319 conflict with index.html on case-insensitive file systems.
9321 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9323 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9324 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9326 2012-07-02 Richard Guenther <rguenther@suse.de>
9327 Michael Matz <matz@suse.de>
9328 Tobias Grosser <tobias@grosser.es>
9329 Sebastian Pop <sebpop@gmail.com>
9331 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9332 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9333 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9334 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9336 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9338 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9340 2012-06-22 Richard Guenther <rguenther@suse.de>
9342 Merge from graphite branch
9343 2012-01-13 Tobias Grosser <tobias@grosser.es>
9345 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9346 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9348 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9351 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9352 use GOMP_barrier () call instead.
9353 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9354 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9355 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9356 call GOMP_barrier instead.
9357 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9359 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9362 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9363 argument to memset call.
9365 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9367 * configure: Regenerated.
9369 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9371 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9373 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9376 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9378 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9381 * testsuite/libgomp.c/pr52547.c: New test.
9383 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9385 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9387 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9389 * configure.tgt (mips-sgi-irix6*): Remove.
9391 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9393 * configure.tgt (alpha*-dec-osf*): Remove.
9395 * config/osf/sem.h: Remove.
9396 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9398 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9400 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9402 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9405 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9406 Remove ENABLE_SYMVERS_SOL2.
9407 * configure: Regenerate.
9408 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9409 (PREPROCESS): New variable.
9410 (libgomp.ver): New target.
9411 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9412 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9413 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9415 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9416 * Makefile.in: Regenerate.
9418 2012-02-14 Walter Lee <walt@tilera.com>
9420 * configure.tgt: Handle tilegx and tilepro.
9421 * config/linux/tile/futex.h: New file.
9423 2012-02-08 Richard Guenther <rguenther@suse.de>
9425 PR tree-optimization/46886
9426 * testsuite/libgomp.c/pr46886.c: New testcase.
9428 2012-01-25 Matthias Klose <doko@ubuntu.com>
9430 * config/linux/arm: Remove empty directory.
9431 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9433 2011-12-09 Alan Modra <amodra@gmail.com>
9436 * task.c (GOMP_taskwait): Don't access task->children outside of
9437 task_lock mutex region.
9438 (GOMP_task): Likewise.
9440 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9443 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9445 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9446 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9447 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9448 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9449 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9451 2011-12-02 Alan Modra <amodra@gmail.com>
9453 * config/linux/affinity.c: Use atomic rather than sync builtin.
9454 * config/linux/lock.c: Likewise.
9455 * config/linux/ptrlock.h: Likewise.
9456 * config/linux/ptrlock.c: Likewise.
9457 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9458 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9459 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9460 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9461 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9462 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9463 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9464 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9465 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9466 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9468 2011-11-30 Alan Modra <amodra@gmail.com>
9471 * config/linux/bar.h: Use atomic rather than sync builtins.
9472 * config/linux/bar.c: Likewise. Add missing acquire
9473 synchronisation on generation field.
9474 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9477 2011-11-30 Alan Modra <amodra@gmail.com>
9479 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9480 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9481 * config/linux/mutex.h: Use atomic rather than sync builtins.
9482 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9483 * config/linux/omp-lock.h: Comment fix.
9484 * config/linux/arm/mutex.h: Delete.
9485 * config/linux/powerpc/mutex.h: Delete.
9486 * config/linux/ia64/mutex.h: Delete.
9487 * config/linux/mips/mutex.h: Delete.
9489 2011-11-30 Alan Modra <amodra@gmail.com>
9492 * config/linux/sem.h: Rewrite.
9493 * config/linux/sem.c: Rewrite.
9495 2011-11-28 Richard Henderson <rth@redhat.com>
9497 * libgomp.h (enum memmodel): New.
9499 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9501 * configure: Regenerate.
9503 2011-10-10 Matthias Klose <doko@ubuntu.com>
9505 * config/posix95: Remove empty directory.
9507 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9509 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9511 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9514 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9515 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9517 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9519 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9521 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9524 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9526 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9528 * config/linux/proc.h: New.
9529 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9530 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9531 (gomp_init_num_threads): Update call to cpuset_popcount.
9532 (get_num_procs): Ditto.
9533 * config/linux/affinity.c (gomp_init_affinity): Call
9534 gomp_cpuset_popcount.
9536 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9540 * omp.h.in (omp_in_final): New prototype.
9541 * omp_lib.f90.in (omp_in_final): New interface.
9542 (omp_integer_kind, omp_logical_kind): Remove
9543 and replace all its uses in the module with 4.
9544 (openmp_version): Change to 201107.
9545 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9546 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9547 kind for the parameters.
9548 (omp_in_final): New external.
9549 (openmp_version): Change to 201107.
9550 * task.c (omp_in_final): New function.
9551 (gomp_init_task): Initialize final_task.
9552 (GOMP_task): Remove unused attribute from flags. Handle final
9554 (GOMP_taskyield): New function.
9555 (omp_in_final): Return true if if (false) or final (true) task
9556 or descendant of final (true).
9557 * fortran.c (omp_in_final_): New function.
9558 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9559 (GOMP_3.0): Export GOMP_taskyield.
9560 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9562 (parse_unsigned_long_list): New function.
9563 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9564 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9565 even if parse_affinity returned false.
9566 * config/linux/affinity.c (gomp_init_affinity): Handle
9567 gomp_cpu_affinity_len == 0.
9568 * libgomp_g.h (GOMP_taskyield): New prototype.
9569 * libgomp.h (struct gomp_task): Add final_task field.
9570 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9571 * team.c (gomp_team_start): Override new task's nthreads_var icv
9572 if list form OMP_NUM_THREADS has been used and it has value for
9573 the new nesting level.
9575 * testsuite/libgomp.c/atomic-11.c: New test.
9576 * testsuite/libgomp.c/atomic-12.c: New test.
9577 * testsuite/libgomp.c/atomic-13.c: New test.
9578 * testsuite/libgomp.c/atomic-14.c: New test.
9579 * testsuite/libgomp.c/reduction-6.c: New test.
9580 * testsuite/libgomp.c/task-5.c: New test.
9581 * testsuite/libgomp.c++/atomic-2.C: New test.
9582 * testsuite/libgomp.c++/atomic-3.C: New test.
9583 * testsuite/libgomp.c++/atomic-4.C: New test.
9584 * testsuite/libgomp.c++/atomic-5.C: New test.
9585 * testsuite/libgomp.c++/atomic-6.C: New test.
9586 * testsuite/libgomp.c++/atomic-7.C: New test.
9587 * testsuite/libgomp.c++/atomic-8.C: New test.
9588 * testsuite/libgomp.c++/atomic-9.C: New test.
9589 * testsuite/libgomp.c++/task-8.C: New test.
9590 * testsuite/libgomp.c++/reduction-4.C: New test.
9591 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9592 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9593 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9594 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9595 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9596 * testsuite/libgomp.fortran/pointer1.f90: New test.
9597 * testsuite/libgomp.fortran/pointer2.f90: New test.
9598 * testsuite/libgomp.fortran/task4.f90: New test.
9600 2011-08-02 Tobias Burnus <burnus@net-b.de>
9602 * libgomp.texi: Update OpenMP spec references to 3.1.
9603 (omp_in_final,OMP_PROC_BIND): New sections.
9604 (OMP_NUM_THREADS): Document that the value can be now a list.
9605 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9607 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9609 * config/linux/x86/futex.h: Check __x86_64__ instead of
9612 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9616 * testsuite/libgomp.c/pr49897-1.c: New test.
9617 * testsuite/libgomp.c/pr49897-2.c: New test.
9618 * testsuite/libgomp.c/pr49898-1.c: New test.
9619 * testsuite/libgomp.c/pr49898-2.c: New test.
9621 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9623 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9624 for ia32 instead of ilp32.
9626 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9627 * testsuite/libgomp.c/atomic-6.c: Likewise.
9629 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9631 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9632 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9634 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9637 * config/osf/sem.h: New file.
9638 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9640 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9643 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9646 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9648 * config/linux/wait.h (do_spin): New inline, largely copied
9649 from do_wait, just don't do futex_wait here, instead return true if
9651 (do_wait): Implement using do_spin.
9652 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9654 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9655 __sync_bool_compare_and_swap, pass the oldval to
9656 gomp_mutex_lock_slow.
9657 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9658 If all mutex contenders are just spinning and not sleeping, don't
9659 change state to 2 unnecessarily. Optimize the loop when state has
9660 already become 2 to use just one atomic operation per loop instead
9662 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9664 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9665 __sync_bool_compare_and_swap, pass the oldval to
9666 gomp_mutex_lock_slow.
9668 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9671 * iter.c (gomp_iter_static_next): For chunk size 0
9672 only use n ceil/ nthreads size for the first
9673 n % nthreads threads in the team instead of
9674 all threads except for the last few ones which
9675 get less work or none at all.
9676 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9677 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9678 chunk argument, set run_sched_modifier to 0 for static
9679 resp. 1 for other kinds. If chunk argument is 0
9680 and not static, set value to 1.
9682 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9685 * testsuite/libgomp.c++/pr49043.C: New test.
9688 * testsuite/libgomp.c++/pr48869.C: New test.
9690 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9693 * fortran.c: Include limits.h.
9695 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9697 (omp_set_num_threads_8_, omp_set_schedule_8_,
9698 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9699 omp_get_team_size_8_): Use TO_INT macro.
9700 * testsuite/libgomp.fortran/pr48894.f90: New test.
9702 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9705 * testsuite/libgomp.c/pr48591.c: New test.
9707 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9710 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9711 * configure: Regenerate.
9713 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9716 * testsuite/libgomp.fortran/task3.f90: New test.
9718 2011-02-24 Tobias Burnus <burnus@net-b.de>
9720 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9722 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9725 * libgomp.texi (omp_get_wtime): Don't say time in the past
9728 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9731 * testsuite/libgomp.fortran/fortran.exp: Check for both
9732 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9733 but $blddir != "", still append ${blddir}/${lang_library_path}
9736 2011-02-16 Tobias Burnus <burnus@net-b.de>
9739 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9740 of libquadmath.a before adding its libpath to ldflags.
9742 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9745 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9746 to FUTEX_WAIT futex syscall.
9747 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9749 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9751 * configure: Regenerate.
9753 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9756 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9758 2011-01-16 Gerald Pfeifer
9760 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9762 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9765 * libgomp.fortran/allocatable6.f90: New test.
9767 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9769 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9770 * configure: Regenerate.
9772 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9776 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9777 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9778 * aclocal.m4: Regenerate.
9779 * configure: Regenerate.
9780 * Makefile.in: Regenerate.
9781 * testsuite/Makefile.in: Regenerate.
9783 2010-12-02 Jakub Jelinek <jakub@redhat.com>
9786 * libgomp.fortran/pr46753.f90: New test.
9789 * env.c (initialize_env): Default to spin count 300000
9790 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9794 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9795 at the end if sync builtins aren't supported.
9797 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9799 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9801 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9803 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9805 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9807 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9809 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9810 Tobias Burnus <burnus@net-b.de>
9814 * configure: Regenerate.
9816 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9818 * config/linux/futex.h: New.
9819 * config/linux/arm/mutex.h: New.
9820 * configure.tgt (arm*-*-linux*): Add config path.
9822 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9824 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9826 2010-09-23 Tobias Burnus <burnus@net-b.de>
9828 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9829 Change Fortran datatype to LOGICAL.
9830 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9831 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9833 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9835 * configure: Regenerate.
9837 2010-07-26 Jakub Jelinek <jakub@redhat.com>
9839 * libgomp.texi: Add function keyword to a couple of Fortran
9840 interfaces, use integer instead of int for Fortran.
9842 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
9844 * libgomp.texi: Fix spelling and pasto problems throughout.
9845 Adjust prototypes to match code.
9847 2010-07-24 Tobias Burnus <burnus@net-b.de>
9849 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
9850 silence -fwhole-file warning.
9852 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9854 * configure.tgt (*-*-solaris2.[56]*): Removed.
9856 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9858 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
9859 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
9860 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
9861 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
9862 targetting solaris2*.
9863 * configure: Regenerate.
9864 * config.h.in: Regenerate.
9866 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
9867 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
9868 Add libgomp_version_dep.
9869 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
9871 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
9872 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
9873 * Makefile.in: Regenerate.
9875 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
9876 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9877 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
9878 to common block, protected by
9879 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9881 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9883 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
9885 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
9888 * configure: Regenerate.
9890 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9893 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
9894 * configure: Regenerate.
9895 * Makefile.in: Regenerate.
9896 * testsuite/Makefile.in: Regenerate.
9898 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9901 * testsuite/libgomp.c/pr43893.c: New test.
9902 * testsuite/libgomp.c++/pr43893.C: New test.
9904 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9907 * testsuite/libgomp.fortran/vla8.f90: New test.
9909 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9912 * config/linux/affinity.c (gomp_init_affinity): Decrease
9913 gomp_available_cpus if affinity mask confines the process to fewer
9915 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
9916 non-NULL, just return gomp_available_cpus.
9919 * sections.c (gomp_sections_init): Initialize ws->mode.
9921 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9923 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
9924 not unused bar variable.
9925 * configure: Regenerate.
9927 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9929 * Makefile.in: Regenerate.
9930 * aclocal.m4: Regenerate.
9931 * testsuite/Makefile.in: Regenerate.
9933 2010-03-22 Jakub Jelinek <jakub@redhat.com>
9936 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
9937 (initialize_env): Adjust callers.
9938 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
9939 when the argument is 0.
9941 * testsuite/libgomp.c/pr42942.c: New test.
9943 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9947 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9948 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
9950 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9952 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
9953 * testsuite/libgomp.c++/task-6.C: Likewise.
9955 2010-01-28 Steve Ellcey <sje@cup.hp.com>
9957 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
9959 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
9961 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
9962 * configure: Regenerate.
9964 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9967 * testsuite/libgomp.fortran/allocatable5.f90: New test.
9969 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
9971 * configure.ac: Test for executability of GFORTRAN.
9972 * configure: Regenerate.
9974 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9976 * configure: Regenerate.
9978 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9981 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9983 2010-01-03 Richard Guenther <rguenther@suse.de>
9985 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
9987 2009-12-23 Sebastian Pop <sebpop@gmail.com>
9989 * testsuite/libgomp.graphite/pr4118.c: New.
9991 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9993 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
9994 for darwin, protect the test with require-effective-target tls_runtime.
9995 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9997 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10000 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10001 link spec %s substitutions for static libraries.
10003 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10006 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10008 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10010 * Makefile.in: Regenerate.
10011 * configure: Regenerate.
10012 * testsuite/Makefile.in: Regenerate.
10014 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10016 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10017 settings for LC_ALL and LANG.
10019 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10022 * testsuite/libgomp.fortran/pr42162.f90: New test.
10024 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10026 PR middle-end/42029
10027 * testsuite/libgomp.c/pr42029.c: New test.
10029 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10031 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10032 *s. Accept ld version without text in ()s.
10033 * configure: Regenerated.
10035 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10037 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10039 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10042 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10043 or a hyphen (happens with fortran language disabled).
10044 * configure: Regenerate.
10046 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10048 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10049 use sed script portable to Solaris /bin/sed for extracting ld
10051 * configure: Regenerate.
10053 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10055 * testsuite/libgomp.graphite/bounds.c: New test.
10057 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10059 * Makefile.am (libgomp_la_LINK): New.
10060 * Makefile.in: Regenerate.
10062 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10064 * configure.ac (AC_PREREQ): Bump to 2.64.
10066 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10068 * Makefile.am (install-html, install-pdf): Remove.
10069 * Makefile.in: Regenerate.
10071 * Makefile.in: Regenerate.
10072 * aclocal.m4: Regenerate.
10073 * config.h.in: Regenerate.
10074 * configure: Regenerate.
10075 * testsuite/Makefile.in: Regenerate.
10077 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10079 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10080 * Makefile.in: Regenerate.
10082 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10084 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10085 * Makefile.in: Regenerate.
10087 2009-08-19 Tobias Burnus <burnus@net-b.de>
10090 omp_lib.h.in: Fix -std=f95 errors.
10092 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10094 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10095 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10096 * testsuite/libgomp.graphite/graphite.exp: New.
10098 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10100 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10103 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10105 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10106 needed memory barrier semantics.
10107 * config/linux/mips/mutex.h: New file.
10109 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10111 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10113 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10115 * configure: Regenerate.
10117 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10122 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10123 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10124 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10126 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10128 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10129 options when choosing a multilib.
10131 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10133 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10134 ld_library_path. Use add_path. Add just find_libgcc_s to
10135 ld_library_path, not every libgcc multilib directory.
10136 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10137 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10138 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10140 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10142 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10144 * Makefile.am (LTLDFLAGS): Define.
10146 * Makefile.in: Regenerate.
10148 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10151 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10152 libgfortranbegin, check existence of libgfortran.a instead of
10153 libgfortranbegin.a.
10155 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10158 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10159 (gomp_free_pool_helper): Likewise.
10161 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10162 Jakub Jelinek <jakub@redhat.com>
10165 * testsuite/libgomp.fortran/workshare2.f90: New test.
10167 2009-04-09 Nick Clifton <nickc@redhat.com>
10169 * iter.c: Change copyright header to refer to version 3 of the
10170 GNU General Public License with version 3.1 of the GCC Runtime
10171 Library Exception and to point readers at the COPYING3 and
10172 COPYING3.RUNTIME files and the FSF's license web page.
10173 * alloc.c: Likewise.
10174 * barrier.c: Likewise.
10175 * config/bsd/proc.c: Likewise.
10176 * config/linux/affinity.c: Likewise.
10177 * config/linux/alpha/futex.h: Likewise.
10178 * config/linux/bar.c: Likewise.
10179 * config/linux/bar.h: Likewise.
10180 * config/linux/ia64/futex.h: Likewise.
10181 * config/linux/ia64/mutex.h: Likewise.
10182 * config/linux/lock.c: Likewise.
10183 * config/linux/mips/futex.h: Likewise.
10184 * config/linux/mutex.c: Likewise.
10185 * config/linux/mutex.h: Likewise.
10186 * config/linux/powerpc/futex.h: Likewise.
10187 * config/linux/proc.c: Likewise.
10188 * config/linux/ptrlock.c: Likewise.
10189 * config/linux/ptrlock.h: Likewise.
10190 * config/linux/s390/futex.h: Likewise.
10191 * config/linux/sem.c: Likewise.
10192 * config/linux/sem.h: Likewise.
10193 * config/linux/sparc/futex.h: Likewise.
10194 * config/linux/wait.h: Likewise.
10195 * config/linux/x86/futex.h: Likewise.
10196 * config/mingw32/proc.c: Likewise.
10197 * config/mingw32/time.c: Likewise.
10198 * config/posix/affinity.c: Likewise.
10199 * config/posix/bar.c: Likewise.
10200 * config/posix/bar.h: Likewise.
10201 * config/posix/lock.c: Likewise.
10202 * config/posix/mutex.h: Likewise.
10203 * config/posix/proc.c: Likewise.
10204 * config/posix/ptrlock.h: Likewise.
10205 * config/posix/sem.c: Likewise.
10206 * config/posix/sem.h: Likewise.
10207 * config/posix/time.c: Likewise.
10208 * config/posix95/lock.c: Likewise.
10209 * critical.c: Likewise.
10211 * error.c: Likewise.
10212 * fortran.c: Likewise.
10213 * iter_ull.c: Likewise.
10214 * libgomp.h: Likewise.
10215 * libgomp_f.h.in: Likewise.
10216 * libgomp_g.h: Likewise.
10217 * loop.c: Likewise.
10218 * loop_ull.c: Likewise.
10219 * omp.h.in: Likewise.
10220 * omp_lib.f90.in: Likewise.
10221 * omp_lib.h.in: Likewise.
10222 * ordered.c: Likewise.
10223 * parallel.c: Likewise.
10224 * sections.c: Likewise.
10225 * single.c: Likewise.
10226 * task.c: Likewise.
10227 * team.c: Likewise.
10228 * work.c: Likewise.
10230 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10232 * testsuite/config/default.exp: Change copyright header to refer to
10233 version 3 of the GNU General Public License and to point readers
10234 at the COPYING3 file and the FSF's license web page.
10236 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10238 PR middle-end/39573
10239 * libgomp.c++/pr39573.C: New test.
10241 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10244 * testsuite/libgomp.c/pr39591-1.c: New test.
10245 * testsuite/libgomp.c/pr39591-2.c: New test.
10246 * testsuite/libgomp.c/pr39591-3.c: New test.
10248 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10250 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10251 * testsuite/libgomp.c/atomic-6.c: Ditto.
10253 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10256 * testsuite/libgomp.c/loop-12.c: New test.
10257 * testsuite/libgomp.c/loop-11.c: New test.
10258 * testsuite/libgomp.c++/loop-11.C: New test.
10259 * testsuite/libgomp.c++/loop-12.C: New test.
10260 * testsuite/libgomp.c++/for-8.C: New test.
10262 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10264 * configure: Regenerate.
10266 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10268 PR middle-end/39154
10269 * testsuite/libgomp.c/pr39154.c: New test.
10271 2009-01-30 Ian Lance Taylor <iant@google.com>
10273 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10274 libgomp_ld_is_gold. Get gold version number.
10275 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10276 * configure: Rebuild.
10278 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10280 * testsuite/lib/libgomp.exp: Add -B option for targets that
10281 use libgfortran.a%s in their specs.
10283 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10286 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10287 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10288 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10289 * configure: Regenerated.
10290 * config.h.in: Likewise.
10292 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10295 * testsuite/libgomp.c/pr38650.c: New test.
10296 * testsuite/libgomp.c++/pr38650.C: New test.
10298 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10300 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10302 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10304 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10306 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10308 * configure: Regenerate.
10310 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10312 PR middle-end/36802
10313 * testsuite/libgomp.c/pr36802-1.c: New test.
10314 * testsuite/libgomp.c/pr36802-2.c: New test.
10315 * testsuite/libgomp.c/pr36802-3.c: New test.
10317 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10320 * config/linux/powerpc/mutex.h: New.
10322 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10325 * testsuite/libgomp.c++/for-7.C: New test.
10328 * testsuite/libgomp.c++/for-6.C: New test.
10330 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10333 * testsuite/lib/libgomp.exp: Include new timeout library files.
10334 (libgomp_target_compile): Set timeout value from new proc.
10336 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10339 * config/linux/ia64/mutex.h: New.
10341 2008-11-04 Tobias Burnus <burnus@net-b.de>
10344 * libgomp.texi (Runtime library routines, environment variables):
10345 Update for OpenMP version 3.0.
10347 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10348 Steve Ellcey <sje@cup.hp.com>
10350 * configure: Regenerate for new libtool.
10351 * Makefile.in: Ditto.
10352 * testsuite/Makefile.in: Ditto.
10354 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10355 Andreas Tobler <a.tobler@schweiz.org>
10357 * config/bsd/proc.c: New file.
10358 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10359 * configure.ac: Check for header <sys/sysctl.h>
10360 * configure: Regenerate.
10361 * config.h.in: Likewise.
10363 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10365 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10367 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10369 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10370 * Makefile.in: Regenerated.
10371 * testsuite/Makefile.in: Regenerated.
10373 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10375 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10376 depend on blddir if blddir exists.
10377 (libgomp_target_compile): Likewise.
10378 * testsuite/libgomp.c++/c++.exp: Likewise.
10379 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10381 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10383 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10384 Do not list GPL as Invariant Section.
10386 2008-07-28 Ilie Garbacea <ilie@mips.com>
10387 Chao-ying Fu <fu@mips.com>
10389 * configure.tgt: Enable futex for MIPS.
10390 * config/linux/mips/futex.h: New file.
10392 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10394 * team.c (gomp_team_end): Free team immediately if it has
10397 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10399 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10400 * testsuite/libgomp.fortran/fortran.exp: Same.
10401 * testsuite/libgomp.c/c.exp: Same.
10402 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10403 directory to library path first.
10405 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10407 * env.c (parse_stacksize): Add cast to avoid warning.
10408 (parse_spincount): Likewise.
10410 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10412 * testsuite/libgomp.c/loop-10.c: New test.
10413 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10414 * libgomp.c++/loop-6.C (main): Likewise.
10417 * testsuite/libgomp.c/debug-1.c: New test.
10419 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10421 * testsuite/libgomp.c/nqueens-1.c: New test.
10424 * testsuite/libgomp.c++/task-7.C: New function.
10426 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10428 * configure: Regenerate.
10430 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10432 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10433 mutex when HAVE_SYNC_BUILTINS isn't defined.
10435 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10437 * libgomp.texi (omp_test_lock): Fix typo.
10439 2008-06-12 Tobias Burnus <burnus@net-b.de>
10441 * omp_lib.f90.in: Add "implicit none".
10443 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10445 PR middle-end/36506
10446 * testsuite/libgomp.c/reduction-5.c: New test.
10448 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10450 * libgomp.h (struct gomp_task): Add in_tied_task field.
10451 * task.c (gomp_init_task): Initialize it.
10452 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10453 unconditionally. Don't call gomp_team_barrier_wake if
10454 current task is implicit or if(0) from implicit and number of
10455 running tasks is equal to nthreads - 1.
10458 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10459 omp_get_team_size_8): Fix pastos.
10462 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10463 * configure: Regenerated.
10464 * config.h.in: Regenerated.
10465 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10468 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10471 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10472 (GOMP_loop_ull_dynamic_start): Likewise.
10473 (GOMP_loop_ull_guided_start): Likewise.
10474 (GOMP_loop_ull_ordered_static_start): Likewise.
10475 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10476 (GOMP_loop_ull_ordered_guided_start): Likewise.
10478 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10479 Richard Henderson <rth@redhat.com>
10480 Ulrich Drepper <drepper@redhat.com>
10481 Jakob Blomer <jakob.blomer@ira.uka.de>
10483 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10484 Substitute also OMP_*LOCK_25*.
10485 * configure: Regenerated.
10486 * config.h.in: Regenerated.
10487 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10488 ptrlock.c and task.c.
10489 * Makefile.in: Regenerated.
10490 * testsuite/Makefile.in: Regenerated.
10491 * task.c: New file.
10492 * loop_ull.c: New file.
10493 * iter_ull.c: New file.
10494 * libgomp.h: Include ptrlock.h.
10495 (enum gomp_task_kind): New type.
10496 (struct gomp_team): Add task_lock, task_queue, task_count,
10497 task_running_count, single_count fields. Add
10498 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10499 Remove work_share_lock, generation_mask,
10500 oldest_live_gen, num_live_gen and init_work_shares fields, add
10501 work work_share_list_alloc, work_share_list_free and work_share_chunk
10502 fields. Change work_shares from pointer to pointers into an array.
10503 Change ordered_release field into gomp_sem_t ** from flexible array
10504 member. Add implicit_task and initial_work_shares fields.
10505 Move close to the end of the struct.
10506 (struct gomp_team_state): Add single_count, last_work_share,
10507 active_level and level fields, remove work_share_generation.
10508 (gomp_barrier_handle_tasks): New prototype.
10509 (gomp_finish_task): New inline function.
10510 (struct gomp_work_share): Move chunk_size, end, incr into
10511 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10512 next_ll fields. Reshuffle fields. Add next_alloc,
10513 next_ws, next_free and inline_ordered_team_ids fields, change
10514 ordered_team_ids into pointer from flexible array member.
10515 Add mode field. Put lock and next into a different cache line
10516 from most of the write-once fields.
10517 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10518 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10519 gomp_iter_ull_guided_next): New prototypes.
10520 (gomp_new_icv): New prototype.
10521 (struct gomp_thread): Add thread_pool and task fields.
10522 (struct gomp_thread_pool): New type.
10523 (gomp_new_team): New prototype.
10524 (gomp_team_start): Change type of last argument.
10525 (gomp_new_work_share): Removed.
10526 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10527 (gomp_work_share_init_done): New static inline.
10528 (gomp_throttled_spin_count_var, gomp_available_cpus,
10529 gomp_managed_threads): New extern decls.
10530 (gomp_init_task): New prototype.
10531 (gomp_spin_count_var): New extern var decl.
10532 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10533 or no alias support, or if not PIC.
10534 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10535 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10536 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10537 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10538 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10539 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10540 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10541 gomp_test_nest_lock_25): New prototypes.
10542 (omp_lock_symver, strong_alias): Define.
10543 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10545 (gomp_end_task): New.
10546 (struct gomp_task_icv, gomp_global_icv): New.
10547 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10548 (struct gomp_task): New.
10549 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10550 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10552 (gomp_schedule_type): Reorder enum to match
10554 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10556 (gomp_thread_start): Add gomp_team_barrier_wait call.
10557 For non-nested case remove clearing of docked thread thr fields.
10558 Use pool fields instead of global gomp_* variables. Use
10559 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10560 Create tasks for each member thread.
10561 (free_team): Only destroy team barrier, task_lock here and free it.
10562 (gomp_free_thread): Free last_team if non-NULL.
10563 (gomp_team_end): Call gomp_team_barrier_wait instead of
10564 gomp_barrier_wait. For nested case call one extra
10565 gomp_barrier_wait. Move here some destruction from free_team.
10566 Call free_team on pool->last_team if any, rather than freeing
10567 current team. Destroy work_share_list_free_lock ifndef
10568 HAVE_SYNC_BUILTINS.
10569 (gomp_new_icv): New function.
10570 (gomp_threads, gomp_threads_size, gomp_threads_used,
10571 gomp_threads_dock): Removed.
10572 (gomp_thread_destructor): New variable.
10573 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10575 (gomp_team_start): Create new pool if current thread doesn't have
10576 one. Use pool fields instead of global gomp_* variables.
10577 Initialize thread_pool field for new threads. Clear single_count.
10578 Change last argument from ws to team, don't create
10579 new team, set ts.work_share to &team->work_shares[0] and clear
10580 ts.last_work_share. Don't clear ts.work_share_generation.
10581 If number of threads changed, adjust atomically gomp_managed_threads.
10582 Use gomp_init_task instead of gomp_new_task,
10583 set thr->task to the corresponding implicit_task array entry.
10584 Create tasks for each member thread. Initialize ts.level.
10585 (initialize_team): Call pthread_key_create on
10586 gomp_thread_destructor.
10587 (team_destructor): New function.
10588 (new_team): Removed.
10589 (gomp_new_team): New function.
10590 (free_team): Free gomp_work_share blocks chained through next_alloc,
10591 instead of freeing work_shares and destroying work_share_lock.
10592 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10593 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10594 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10595 of gomp_barrier_wait.
10596 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10597 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10598 if gomp_work_share_start returned true. Don't unlock ws->lock.
10599 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10600 of gomp_barrier_wait.
10601 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10602 gomp_work_share_init_done if gomp_work_share_start returned true.
10603 Don't unlock ws->lock.
10604 * work.c: Include stddef.h.
10605 (free_work_share): Use work_share_list_free_lock instead
10606 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10607 Call gomp_fini_work_share and then either free ws if orphaned, or
10608 put it into work_share_list_free list of the current team.
10609 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10611 (gomp_work_share_start, gomp_work_share_end,
10612 gomp_work_share_end_nowait): Rewritten.
10613 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10614 (openmp_version): Set to 200805.
10615 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10616 omp_sched_guided, omp_sched_auto): New parameters.
10617 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10618 omp_set_max_active_levels, omp_get_max_active_levels,
10619 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10620 omp_get_active_level): New interfaces.
10621 * omp_lib.h.in (openmp_version): Set to 200805.
10622 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10623 omp_sched_guided, omp_sched_auto): New parameters.
10624 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10625 omp_set_max_active_levels, omp_get_max_active_levels,
10626 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10627 omp_get_active_level): New externals.
10628 * loop.c: Include limits.h.
10629 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10631 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10632 Likewise. Use gomp_icv.
10633 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10634 ts.static_trip here.
10635 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10636 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10637 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10638 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10639 don't unlock ws->lock, otherwise lock it.
10640 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10641 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10642 (gomp_parallel_loop_start): Call gomp_new_team instead of
10643 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10644 Adjust gomp_team_start caller. Pass 0 as second argument to
10645 gomp_resolve_num_threads.
10646 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10647 If adding ws->chunk_size nthreads + 1 times after end won't
10648 overflow, set ws->mode to 1.
10649 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10650 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10651 GOMP_loop_ull_ordered_static_start,
10652 GOMP_loop_ull_ordered_dynamic_start,
10653 GOMP_loop_ull_ordered_guided_start,
10654 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10655 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10656 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10657 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10658 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10660 * libgomp.map: Export lock routines also @@OMP_2.0.
10661 (GOMP_loop_ordered_dynamic_first,
10662 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10663 GOMP_loop_ordered_static_first): Remove.
10664 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10665 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10666 GOMP_loop_ull_ordered_dynamic_next,
10667 GOMP_loop_ull_ordered_dynamic_start,
10668 GOMP_loop_ull_ordered_guided_next,
10669 GOMP_loop_ull_ordered_guided_start,
10670 GOMP_loop_ull_ordered_runtime_next,
10671 GOMP_loop_ull_ordered_runtime_start,
10672 GOMP_loop_ull_ordered_static_next,
10673 GOMP_loop_ull_ordered_static_start,
10674 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10675 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10676 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10677 (omp_set_schedule, omp_get_schedule,
10678 omp_get_thread_limit, omp_set_max_active_levels,
10679 omp_get_max_active_levels, omp_get_level,
10680 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10681 omp_set_schedule_, omp_set_schedule_8_,
10682 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10683 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10684 omp_get_max_active_levels_, omp_get_level_,
10685 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10686 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10687 New exports @@OMP_3.0.
10688 * omp.h.in (omp_sched_t): New type.
10689 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10690 omp_set_max_active_levels, omp_get_max_active_levels,
10691 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10692 omp_get_active_level): New prototypes.
10693 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10694 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10695 gomp_thread_limit_var, gomp_remaining_threads_count,
10696 gomp_remaining_threads_lock): New variables.
10697 (parse_spincount): New function.
10698 (initialize_env): Call gomp_init_num_threads unconditionally.
10699 Initialize gomp_available_cpus. Call parse_spincount,
10700 initialize gomp_{,throttled_}spin_count_var
10701 depending on presence and value of OMP_WAIT_POLICY and
10702 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10703 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10704 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10705 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10706 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10707 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10708 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10709 (gomp_global_icv): New.
10710 (parse_schedule): Use it. Parse "auto".
10711 (omp_set_num_threads): Use gomp_icv.
10712 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10714 (omp_get_max_threads): Move from parallel.c.
10715 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10716 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10718 (parse_stacksize, parse_wait_policy): New functions.
10719 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10720 both wrappers for compatibility and new locks.
10721 (omp_set_schedule, omp_get_schedule,
10722 omp_get_thread_limit, omp_set_max_active_levels,
10723 omp_get_max_active_levels, omp_get_level,
10724 omp_get_ancestor_thread_num, omp_get_team_size,
10725 omp_get_active_level): New ialias_redirect.
10726 (omp_set_schedule_, omp_set_schedule_8_,
10727 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10728 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10729 omp_get_max_active_levels_, omp_get_level_,
10730 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10731 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10733 * parallel.c: Include limits.h.
10734 (gomp_resolve_num_threads): Add count argument. Rewritten.
10735 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10736 argument to gomp_team_start. Pass 0 as second argument to
10737 gomp_resolve_num_threads.
10738 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10739 if gomp_thread_limit_var != ULONG_MAX.
10740 (omp_in_parallel): Implement using ts.active_level.
10741 (omp_get_max_threads): Move to env.c.
10742 (omp_get_level, omp_get_ancestor_thread_num,
10743 omp_get_team_size, omp_get_active_level): New functions,
10745 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10746 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10747 gomp_iter_dynamic_next instead of the _locked variant and don't take
10748 lock around it, otherwise acquire it before calling
10749 gomp_iter_dynamic_next_locked.
10750 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10751 gomp_iter_dynamic_next instead of the _locked variant and don't take
10753 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10754 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10755 Adjust gomp_team_start caller. Pass count as second argument to
10756 gomp_resolve_num_threads, don't adjust num_threads after the call.
10758 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10759 ws->chunk_size by incr.
10760 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10762 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10764 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10765 (omp_check_defines): Check even the compat defines.
10766 * config/linux/ptrlock.c: New file.
10767 * config/linux/ptrlock.h: New file.
10768 * config/linux/wait.h: New file.
10769 * config/posix/ptrlock.c: New file.
10770 * config/posix/ptrlock.h: New file.
10771 * config/linux/bar.h (gomp_team_barrier_wait,
10772 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10773 (gomp_team_barrier_set_task_pending,
10774 gomp_team_barrier_clear_task_pending,
10775 gomp_team_barrier_set_waiting_for_tasks,
10776 gomp_team_barrier_waiting_for_tasks,
10777 gomp_team_barrier_done): New inlines.
10778 (gomp_barrier_t): Rewritten.
10779 (gomp_barrier_state_t): New typedef.
10780 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10781 gomp_barrier_wait_start): Rewritten.
10782 (gomp_barrier_wait_end): Change second argument to
10783 gomp_barrier_state_t.
10784 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10786 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10788 (gomp_barrier_wait_end): Rewritten.
10789 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10790 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10791 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10792 (gomp_barrier_state_t): New typedef.
10793 (gomp_team_barrier_wait,
10794 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10795 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10796 into the return value. Return gomp_barrier_state_t.
10797 (gomp_team_barrier_set_task_pending,
10798 gomp_team_barrier_clear_task_pending,
10799 gomp_team_barrier_set_waiting_for_tasks,
10800 gomp_team_barrier_waiting_for_tasks,
10801 gomp_team_barrier_done): New inlines.
10802 (gomp_barrier_wait_end): Change second argument to
10803 gomp_barrier_state_t.
10804 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10806 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10807 (gomp_barrier_wait_end): Change second argument to
10808 gomp_barrier_state_t.
10809 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10810 gomp_team_barrier_wake): New functions.
10811 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10813 (gomp_futex_wake, gomp_futex_wait): New variables.
10814 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10815 * config/linux/lock.c: Rewrite to make locks task owned,
10816 for backwards compatibility provide the old entrypoints
10817 if symbol versioning. Include wait.h instead of libgomp.h and
10819 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10820 * config/posix95/lock.c: Rewrite to make locks task owned,
10821 for backwards compatibility provide the old entrypoints
10822 if symbol versioning.
10823 * config/posix/lock.c: Rewrite to make locks task owned,
10824 for backwards compatibility provide the old entrypoints
10825 if symbol versioning.
10826 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10827 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10828 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10829 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10830 (sys_futex0): Return error code.
10831 (futex_wake, futex_wait): If ENOSYS was returned, clear
10832 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10833 (cpu_relax, atomic_write_barrier): New static inlines.
10834 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10835 (futex_wake, futex_wait): If ENOSYS was returned, clear
10836 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10837 (cpu_relax, atomic_write_barrier): New static inlines.
10838 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10839 (sys_futex0): Return error code.
10840 (futex_wake, futex_wait): If ENOSYS was returned, clear
10841 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10842 (cpu_relax, atomic_write_barrier): New static inlines.
10843 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10844 (sys_futex0): Return error code.
10845 (futex_wake, futex_wait): If ENOSYS was returned, clear
10846 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10847 (cpu_relax, atomic_write_barrier): New static inlines.
10848 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10849 (sys_futex0): Return error code.
10850 (futex_wake, futex_wait): If ENOSYS was returned, clear
10851 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10852 (cpu_relax, atomic_write_barrier): New static inlines.
10853 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10854 (sys_futex0): Return error code.
10855 (futex_wake, futex_wait): If ENOSYS was returned, clear
10856 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10857 (cpu_relax, atomic_write_barrier): New static inlines.
10858 * config/linux/sem.c: Include wait.h instead of libgomp.h and
10860 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
10861 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
10862 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
10864 (omp_nest_lock_t): Change owner into void *, add lock field.
10865 * config/posix95/omp-lock.h: Include semaphore.h.
10866 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10867 (omp_lock_t): Use sem_t instead of mutex if semaphores
10869 (omp_nest_lock_t): Likewise. Change owner to void *.
10870 * config/posix/omp-lock.h: Include semaphore.h.
10871 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10872 (omp_lock_t): Use sem_t instead of mutex if semaphores
10874 (omp_nest_lock_t): Likewise. Add owner field.
10876 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10878 * testsuite/libgomp.c/collapse-1.c: New test.
10879 * testsuite/libgomp.c/collapse-2.c: New test.
10880 * testsuite/libgomp.c/collapse-3.c: New test.
10881 * testsuite/libgomp.c/icv-1.c: New test.
10882 * testsuite/libgomp.c/icv-2.c: New test.
10883 * testsuite/libgomp.c/lib-2.c: New test.
10884 * testsuite/libgomp.c/lock-1.c: New test.
10885 * testsuite/libgomp.c/lock-2.c: New test.
10886 * testsuite/libgomp.c/lock-3.c: New test.
10887 * testsuite/libgomp.c/loop-4.c: New test.
10888 * testsuite/libgomp.c/loop-5.c: New test.
10889 * testsuite/libgomp.c/loop-6.c: New test.
10890 * testsuite/libgomp.c/loop-7.c: New test.
10891 * testsuite/libgomp.c/loop-8.c: New test.
10892 * testsuite/libgomp.c/loop-9.c: New test.
10893 * testsuite/libgomp.c/nested-3.c: New test.
10894 * testsuite/libgomp.c/nestedfn-6.c: New test.
10895 * testsuite/libgomp.c/sort-1.c: New test.
10896 * testsuite/libgomp.c/task-1.c: New test.
10897 * testsuite/libgomp.c/task-2.c: New test.
10898 * testsuite/libgomp.c/task-3.c: New test.
10899 * testsuite/libgomp.c/task-4.c: New test.
10900 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
10901 to C++ testsuite default compiler options.
10902 * testsuite/libgomp.c++/collapse-1.C: New test.
10903 * testsuite/libgomp.c++/collapse-2.C: New test.
10904 * testsuite/libgomp.c++/ctor-10.C: New test.
10905 * testsuite/libgomp.c++/for-1.C: New test.
10906 * testsuite/libgomp.c++/for-2.C: New test.
10907 * testsuite/libgomp.c++/for-3.C: New test.
10908 * testsuite/libgomp.c++/for-4.C: New test.
10909 * testsuite/libgomp.c++/for-5.C: New test.
10910 * testsuite/libgomp.c++/loop-8.C: New test.
10911 * testsuite/libgomp.c++/loop-9.C: New test.
10912 * testsuite/libgomp.c++/loop-10.C: New test.
10913 * testsuite/libgomp.c++/task-1.C: New test.
10914 * testsuite/libgomp.c++/task-2.C: New test.
10915 * testsuite/libgomp.c++/task-3.C: New test.
10916 * testsuite/libgomp.c++/task-4.C: New test.
10917 * testsuite/libgomp.c++/task-5.C: New test.
10918 * testsuite/libgomp.c++/task-6.C: New test.
10919 * testsuite/libgomp.fortran/allocatable1.f90: New test.
10920 * testsuite/libgomp.fortran/allocatable2.f90: New test.
10921 * testsuite/libgomp.fortran/allocatable3.f90: New test.
10922 * testsuite/libgomp.fortran/allocatable4.f90: New test.
10923 * testsuite/libgomp.fortran/collapse1.f90: New test.
10924 * testsuite/libgomp.fortran/collapse2.f90: New test.
10925 * testsuite/libgomp.fortran/collapse3.f90: New test.
10926 * testsuite/libgomp.fortran/collapse4.f90: New test.
10927 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
10928 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
10929 * testsuite/libgomp.fortran/lib4.f90: New test.
10930 * testsuite/libgomp.fortran/lock-1.f90: New test.
10931 * testsuite/libgomp.fortran/lock-2.f90: New test.
10932 * testsuite/libgomp.fortran/nested1.f90: New test.
10933 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
10934 * testsuite/libgomp.fortran/strassen.f90: New test.
10935 * testsuite/libgomp.fortran/tabs1.f90: New test.
10936 * testsuite/libgomp.fortran/tabs2.f: New test.
10937 * testsuite/libgomp.fortran/task1.f90: New test.
10938 * testsuite/libgomp.fortran/task2.f90: New test.
10939 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
10940 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10941 * testsuite/libgomp.c/pr26943-2.c: Likewise.
10942 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10943 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10945 2008-05-23 Jakub Jelinek <jakub@redhat.com>
10948 * testsuite/libgomp.c++/ctor-11.C: New test.
10949 * testsuite/libgomp.c++/ctor-12.C: New test.
10951 2008-05-15 Janis Johnson <janis187@us.ibm.com>
10953 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
10955 2008-05-07 Jakub Jelinek <jakub@redhat.com>
10957 PR middle-end/36106
10958 * testsuite/libgomp.c/atomic-5.c: New test.
10959 * testsuite/libgomp.c/atomic-6.c: New test.
10960 * testsuite/libgomp.c/autopar-1.c: New test.
10962 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10964 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
10965 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
10966 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
10967 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
10968 * configure: Regenerate.
10969 * Makefile.in, testsuite/Makefile.in: Likewise.
10971 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10974 * aclocal.m4: Regenerate.
10975 * configure: Regenerate.
10977 2008-03-18 Jakub Jelinek <jakub@redhat.com>
10979 PR middle-end/35611
10980 * testsuite/libgomp.c/atomic-4.c: New test.
10983 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
10984 (gomp_iter_guided_next): Likewise.
10985 * testsuite/libgomp.c/pr35625.c: New test.
10987 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10989 * aclocal.m4: Regenerate.
10990 * configure: Likewise.
10991 * Makefile.in: Likewise.
10992 * testsuite/Makefile.in: Likewise.
10994 2008-03-13 Jakub Jelinek <jakub@redhat.com>
10996 PR middle-end/35185
10997 * testsuite/libgomp.c++/pr35185.C: New test.
10999 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11001 PR middle-end/35549
11002 * testsuite/libgomp.c/pr35549.c: New test.
11004 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11006 * testsuite/libgomp.c/atomic-3.c: New test.
11008 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11011 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11012 .F08 file suffixes.
11014 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11017 * configure.ac: Add ACX_HEADER_STRING.
11018 * env.c: Include strings.h.
11019 * aclocal.m4: Regenerate.
11020 * config.h.in: Regenerate.
11021 * configure: Regenerate.
11022 * Makefile.in: Regenerate.
11023 * testsuite/Makefile.in: Regenerate.
11025 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11027 PR middle-end/35196
11028 * testsuite/libgomp.c/pr35196.c: New test.
11030 PR middle-end/35130
11031 * testsuite/libgomp.fortran/pr35130.f90: New test.
11032 * testsuite/libgomp.c/pr35130.c: New test.
11034 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11036 PR middle-end/33880
11037 * testsuite/libgomp.c/pr33880.c: New test.
11038 * testsuite/libgomp.fortran/pr33880.f90: New test.
11040 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11042 * configure: Regenerate.
11044 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11046 * configure.ac: Move futex checking into ../config/futex.m4.
11047 * configure: Rebuilt.
11048 * aclocal.m4: Rebuilt.
11049 * Makefile.in: Rebuilt.
11051 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11052 2007-10-15 ../config/tls.m4 change.
11054 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11057 * testsuite/libgomp.c/pr34513.c: New test.
11058 * testsuite/libgomp.c++/pr34513.C: New test.
11060 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11063 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11065 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11067 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11069 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11071 * testsuite/libgomp.c/private-1.c: New test.
11073 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11074 Paolo Bonzini <bonzini@gnu.org>
11076 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11077 instead of 'VPATH ='.
11078 * Makefile.in: Regenerate.
11080 2007-11-23 Matthias Klose <doko@ubuntu.com>
11082 * configure.ac: Adjust makeinfo version check.
11083 * configure: Regenerate.
11085 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11088 * testsuite/libgomp.fortran/pr34020.f90: New test.
11090 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11093 * testsuite/libgomp.c++/atomic-1.C: New test.
11095 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11098 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11099 Make x and y integers rather than (implicit) reals. Add private (j)
11100 clause to the last omp parallel.
11102 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11104 * configure: Regenerate following changes to ../config/tls.m4.
11106 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11108 * testsuite/libgomp.fortran/stack.f90: New test.
11110 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11112 * config/mingw32/proc.c: New file.
11114 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11116 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11117 (main): Use __get_cpuid to get i386 target fetaures.
11118 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11119 (main): Use __get_cpuid to get x86_64 target fetaures.
11121 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11124 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11125 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11127 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11130 * testsuite/libgomp.fortran/pr32550.f90: New test.
11131 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11133 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11135 * aclocal.m4: Regenerated.
11137 2007-07-05 Tobias Burnus <burnus@net-b.de>
11140 * testsuite/libgomp.fortran/pr32359.f90: New.
11142 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11145 * sections.c (GOMP_parallel_sections_start): Only decrease
11146 number of threads to COUNT if dyn_var is true.
11147 * testsuite/libgomp.c/pr32468.c: New test.
11149 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11152 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11154 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11156 PR middle-end/32362
11157 * testsuite/libgomp.c/pr32362-1.c: New test.
11158 * testsuite/libgomp.c/pr32362-2.c: New test.
11159 * testsuite/libgomp.c/pr32362-3.c: New test.
11161 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11163 * team.c (gomp_team_start): Fix setting up thread_attr
11166 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11168 * configure: Regenerate.
11170 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11172 * Makefile.in: Regenerate.
11173 * configure: Regenerate.
11174 * aclocal.m4: Regenerate.
11175 * testsuite/Makefile.in: Regenerate.
11177 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11179 * config/linux/proc.c: New file.
11182 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11184 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11186 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11188 2007-04-16 Matthias Klose <doko@debian.org>
11190 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11191 flags if not building with -m64.
11192 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11193 flag for i?86-*-* targets, if current target matches -m64.
11195 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11197 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11198 * Makefile.in: Regenerate.
11200 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11203 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11205 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11207 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11209 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11211 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11212 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11213 (parse_affinity): New function.
11214 (initialize_env): Call it and gomp_init_affinity.
11215 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11216 create new pthread_attr_t and call gomp_init_thread_affinity
11217 on it for each thread before passing the attribute to pthread_create.
11218 * config/linux/affinity.c: New file.
11219 * config/posix/affinity.c: New file.
11220 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11221 * configure: Rebuilt.
11222 * config.h.in: Rebuilt.
11223 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11224 * Makefile.in: Rebuilt.
11226 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11228 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11230 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11231 and use it if found.
11233 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11235 * testsuite/config/default.exp: New file.
11236 * testsuite/lib/libgomp.exp: New file.
11237 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11238 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11239 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11240 (libgomp_load): Remove.
11241 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11242 always_ld_library_path, not ld_library_path. Set additional_flags
11243 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11244 (target_compile): Do not call libgomp_init. Append lang_library_path
11245 and lang_link_flags to options.
11246 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11247 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11249 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11250 always_ld_library_path. Set LD_LIBRARY_PATH here.
11251 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11252 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11253 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11255 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11256 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11257 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11258 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11259 * testsuite/libgomp.c/atomic-10.c: Ditto.
11261 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11263 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11264 dg-final cleanup-modules line.
11265 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11266 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11267 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11268 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11269 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11270 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11271 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11273 2007-03-18 Andreas Schwab <schwab@suse.de>
11275 * acinclude.m4: Adjust regular expression for ld version
11277 * configure: Regenerate.
11279 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11281 * Makefile.am: Add install-pdf target as copied from
11282 automake v1.10 rules.
11283 * Makefile.in: Regenerate
11285 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11288 * configure: Regenerate.
11291 * testsuite/libgomp.c++/pr30703.C: New test.
11293 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11296 2006-07-05 Eric Christopher <echristo@apple.com>
11297 * configure.ac: Depend addition of -pthread on host OS.
11298 * configure: Regenerate.
11300 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11302 * libgomp.texi: Fix spacing after abbreviations.
11304 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11307 * configure.ac: Add check for makeinfo
11308 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11309 if an appropriate version of makeinfo is found.
11310 * aclocal.m4: Regenerated.
11311 * configure: Regenerated.
11312 * Makefile.in: Regenerated.
11313 * testsuite/Makefile.in: Regenerated.
11315 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11318 * libgomp.texi: More about implementation-dependent settings.
11320 2007-01-26 Tobias Burnus <burnus@net-b.de>
11322 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11324 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11326 PR middle-end/30494
11327 * testsuite/libgomp.c/pr30494.c: New test.
11329 2007-01-15 Tom Tromey <tromey@redhat.com>
11331 * configure: Rebuilt.
11332 * configure.ac: Fixed comment.
11334 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11336 * libgomp.texi: Document implementation specific default values of
11337 environment variables.
11339 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11342 * libgomp.texi: New file.
11343 * configure.ac: Add --enable-generated-files-in-srcdir option.
11344 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11346 * Makefile.in: Regenerated.
11347 * config.h.in: Regenerated.
11348 * testsuite/Makefile.in: Regenerated.
11351 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11354 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11356 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11358 * configure: Regenerate.
11360 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11363 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11364 start if there shouldn't be any loop iterations.
11365 (gomp_loop_ordered_static_start): Remove start == end test.
11366 * testsuite/libgomp.c/pr29947-1.c: New test.
11367 * testsuite/libgomp.c/pr29947-2.c: New test.
11369 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11371 * configure.tgt: Force initial-exec TLS model on Linux only.
11373 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11375 * configure: Regenerated.
11377 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11379 * env.c (parse_schedule): Reject out of range values.
11380 (parse_unsigned_long): Reject out of range, negative or zero values.
11382 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11385 * testsuite/libgomp.fortran/pr29629.f90: New test.
11387 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11390 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11391 * config/posix95: New directory.
11392 * config/posix95/omp-lock.h: New file.
11393 * config/posix95/lock.c: Likewise.
11395 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11397 * aclocal.m4: Regenerate.
11398 * configure: Regenerate.
11400 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11402 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11405 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11407 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11409 * configure: Regenerate.
11410 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11412 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11414 PR middle-end/25261
11415 PR middle-end/28790
11416 * testsuite/libgomp.c/nestedfn-4.c: New test.
11417 * testsuite/libgomp.c/nestedfn-5.c: New test.
11418 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11421 * testsuite/libgomp.fortran/condinc1.f: New test.
11422 * testsuite/libgomp.fortran/condinc2.f: New test.
11423 * testsuite/libgomp.fortran/condinc3.f90: New test.
11424 * testsuite/libgomp.fortran/condinc4.f90: New test.
11425 * testsuite/libgomp.fortran/condinc1.inc: New file.
11427 2006-09-18 Tom Tromey <tromey@redhat.com>
11429 * configure: Rebuilt.
11431 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11434 PR preprocessor/14634
11435 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11437 * configure: Regenerate.
11439 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11441 * testsuite/libgomp.fortran/reduction3.f90: Change
11442 -2147483648 to -huge(i)-1 to avoid overflow.
11443 * testsuite/libgomp.fortran/reduction4.f90: Change
11444 Z'ffffffff' to not(0) to avoid overflow.
11446 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11449 * Makefile.am (libsubincludedir): New.
11450 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11451 * Makefile.in: Regenerate.
11453 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11456 * env.c: Include ctype.h.
11457 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11458 leading and/or trailing whitespace and compare strings case
11461 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11464 * testsuite/libgomp.fortran/pr28390.f: New test.
11466 2006-07-05 Eric Christopher <echristo@apple.com>
11468 * configure.ac: Depend addition of -pthread on host OS.
11469 * configure: Regenerate.
11471 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11473 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11474 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11477 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11481 * configure.ac: If neither --enable-linux-futex nor
11482 --disable-linux-futex is passed, determine the default by checking
11483 for compiling and/or running against NPTL. With --enable-linux-futex,
11484 check if SYS_gettid and SYS_futex are defined.
11485 * configure: Rebuilt.
11487 2006-06-14 Richard Henderson <rth@redhat.com>
11490 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11491 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11493 2006-06-09 Richard Henderson <rth@redhat.com>
11495 * env.c (gomp_nthreads_var): Change to unsigned long.
11496 (gomp_run_sched_chunk): Likewise.
11497 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11498 (initialize_env): Initialize gomp_thread_attr.
11499 * libgomp.h (gomp_nthreads_var): Update decl.
11500 (gomp_run_sched_chunk): Likewise.
11501 (gomp_thread_attr): Declare.
11502 * team.c (gomp_thread_attr): Export.
11503 (initialize_team): Don't initialize it.
11505 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11508 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11509 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11511 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11513 * config/mingw32/time.c: New file.
11514 * configure.tgt: Use it.
11516 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11518 * Makefile.am: Add install-html target. Add install-html to .PHONY
11519 * Makefile.in: Regenerate.
11521 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11524 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11525 * testsuite/libgomp.c/critical-1.c: Likewise.
11526 * testsuite/libgomp.c/loop-1.c: Likewise.
11527 * testsuite/libgomp.c/loop-2.c: Likewise.
11528 * testsuite/libgomp.c/single-1.c: Likewise.
11529 * testsuite/libgomp.c/ordered-1.c: Likewise.
11530 * testsuite/libgomp.c/ordered-2.c: Likewise.
11532 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11534 PR middle-end/27416
11535 * libgomp.fortran/pr27416-1.f90: New test.
11537 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11540 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11541 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11543 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11546 * testsuite/libgomp.c/pr26943-1.c: New test.
11547 * testsuite/libgomp.c/pr26943-2.c: New test.
11548 * testsuite/libgomp.c/pr26943-3.c: New test.
11549 * testsuite/libgomp.c/pr26943-4.c: New test.
11550 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11551 * testsuite/libgomp.c++/pr26943.C: New test.
11553 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11555 PR middle-end/27337
11556 * testsuite/libgomp.c++/pr27337.C: New test.
11558 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11561 * testsuite/libgomp.c/pr26171.c: New test.
11563 2006-04-25 Richard Henderson <rth@redhat.com>
11566 * configure.ac: Use GCC_CHECK_TLS.
11567 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11568 * Makefile.in, aclocal.m4, configure: Regenerate.
11570 2006-04-10 Matthias Klose <doko@debian.org>
11572 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11573 directory names containing underscores.
11575 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11578 * testsuite/libgomp.c++/pr26691.C: New test.
11580 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11582 * testsuite/libgomp.fortran/retval2.f90: New test.
11584 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11586 * testsuite/libgomp.c++: New directory.
11588 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11590 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11591 * config/posix/sem.c: Implement the above.
11593 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11595 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11596 define HAVE_BROKEN_POSIX_SEMAPHORES.
11597 * configure: Rebuilt.
11598 * config.h.in: Rebuilt.
11600 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11603 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11604 for the other pthread check.
11605 * configure: Regenerate.
11606 * config.h.in: Regenerate.
11608 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11612 * Makefile.am (fincludedir): New variable.
11613 (nodist_include_HEADERS): Remove Fortran files.
11614 (nodist_finclude_HEADERS): New variable.
11615 * Makefile.in: Regenerated.
11617 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11619 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11620 Remove tests for returning assumed character length arrays.
11622 2006-02-12 Roger Sayle <roger@eyesopen.com>
11623 John David Anglin <dave@hiauly1.hia.nrc.ca>
11626 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11628 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11630 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11632 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11634 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11635 part of LD_LIBRARY_PATH manually.
11637 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11640 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11643 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11646 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11647 * configure.ac (PERL): Don't set.
11648 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11649 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11650 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11651 * omp.h.in: Wrap the new configure substitutions with @ characters.
11652 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11653 * aclocal.m4, configure, Makefile.in: Regenerate.
11654 * mkomp_h.pl: Delete.
11656 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11659 * configure.ac: Use GCC_HEADER_STDINT.
11660 * libgomp.h: Include gstdint.h.
11661 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11662 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11664 2006-01-24 Richard Henderson <rth@redhat.com>
11667 * configure.ac: Add AM_MAINTAINER_MODE.
11668 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11670 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11672 * Makefile.in: Regenerate.
11673 * testsuite/Makefile.in: Regenerate.
11674 * aclocal.m4: Regenerate.
11676 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11678 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11680 * configure.ac: Add check for loadavg.h.
11681 (link_gomp): Adjust comment.
11682 * configure: Regenerate.
11683 * config.h.in: Regenerate.
11685 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11688 * configure.ac: Remove check for alloca.h.
11689 * configure: Regenerate.
11690 * config.h.in: Regenerate.
11691 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11692 * team.c: Remove use of alloca.h.
11693 Call gomp_alloca instead of alloca.
11695 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11698 * team.c: Add include of alloca.h.
11699 * configure.ac: Add check for alloca.h.
11700 * configure: Regenerate.
11701 * config.h.in: Regenerate.
11703 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11706 * testsuite/libgomp.fortran/pr25219.f90: New test.
11708 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11710 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11711 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11712 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11713 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11714 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11715 testsuite/libgomp.fortran/threadprivate1.f90,
11716 testsuite/libgomp.fortran/threadprivate2.f90,
11717 testsuite/libgomp.fortran/threadprivate3.f90,
11718 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11719 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11720 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11721 effective-target to TLS runtime.
11723 * testsuite/libgomp.fortran/pr25162.f: Require
11724 effective-target TLS runtime.
11726 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11728 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11729 * testsuite/libgomp.c/nestedfn-3.c: New test.
11731 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11734 * testsuite/libgomp.fortran/pr25162.f: New test.
11736 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11738 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11739 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11741 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11743 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11744 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11745 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11746 single.c, team.c, work.c, config/linux/alpha/futex.h,
11747 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11748 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11749 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11750 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11751 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11752 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11753 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11756 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11758 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11759 to nodist_noinst_HEADERS.
11760 * Makefile.in: Rebuilt.
11762 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11763 add integer count field.
11764 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11765 omp_nest_lock_t type change.
11766 (omp_init_nest_lock): Likewise. Initialize count to 0.
11767 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11769 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11771 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11772 Increment count if successful and return the new nesting level.
11773 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11774 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11775 * testsuite/libgomp.c/lib-1.c: New test.
11776 * testsuite/libgomp.fortran/lib1.f90: New test.
11777 * testsuite/libgomp.fortran/lib2.f: New test.
11778 * testsuite/libgomp.fortran/lib3.f: New test.
11780 2005-11-17 Richard Henderson <rth@redhat.com>
11783 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11784 * configure.ac (link_gomp): New. Substitute it.
11785 (AC_CONFIG_FILES): Add libgomp.spec.
11786 * libgomp.spec.in: New file.
11787 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11788 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11790 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11792 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11793 reduction(-:var) behaving the same as reduction(+:var).
11794 * testsuite/libgomp.c/reduction-4.c: New test.
11796 2005-11-15 Uros Bizjak <uros@kss-loka.si>
11798 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11799 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11800 testsuite/libgomp.c/copyin-3.c,
11801 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11802 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11803 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11804 testsuite/libgomp.c++/pr24455.C,
11805 testsuite/libgomp.fortran/threadprivate1.f90,
11806 testsuite/libgomp.fortran/threadprivate2.f90,
11807 testsuite/libgomp.fortran/threadprivate3.f90,
11808 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11809 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11810 testsuite/libgomp.fortran/omp_parse3.f90: Require
11811 effective-target TLS.
11813 2005-11-14 Diego Novillo <dnovillo@redhat.com>
11817 2005-11-13 Jakub Jelinek <jakub@redhat.com>
11820 * team.c (initialize_team): Pass NULL rather than free as
11821 pthread_key_create destructor. Initialize thread specific data
11822 pointer in initial thread to a static local variable rather than
11825 2005-11-11 Uros Bizjak <uros@kss-loka.si>
11827 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11828 its location to ld_library_path.
11830 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11832 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11834 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11836 * testsuite/libgomp.c: Rename from libgomp.dg.
11838 2005-11-09 Diego Novillo <dnovillo@redhat.com>
11840 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
11841 threadprivate variable 'i'.
11843 2005-11-09 Jakub Jelinek <jakub@redhat.com>
11845 * config/linux/s390/futex.h: New file.
11846 * configure.tgt: Use it.
11848 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
11849 before the parallel.
11851 2005-11-08 Jakub Jelinek <jakub@redhat.com>
11854 * testsuite/libgomp.c++/master-1.C: New test.
11856 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11858 * testsuite/libgomp.dg/copyin-3.c: New test.
11860 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11862 * testsuite/libgomp.fortran/retval1.f90: New test.
11863 * testsuite/libgomp.fortran/vla7.f90: New test.
11865 2005-11-06 Jakub Jelinek <jakub@redhat.com>
11867 * testsuite/libgomp.fortran/vla2.f90: New test.
11868 * testsuite/libgomp.fortran/vla3.f90: New test.
11869 * testsuite/libgomp.fortran/vla4.f90: New test.
11870 * testsuite/libgomp.fortran/vla5.f90: New test.
11871 * testsuite/libgomp.fortran/vla6.f90: New test.
11873 2005-11-01 Jakub Jelinek <jakub@redhat.com>
11875 * config/linux/sparc/futex.h: New file.
11876 * configure.tgt: Use it.
11877 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
11879 * critical.c: Include stdlib.h.
11880 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
11881 ignoring return value.
11882 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
11883 LIBGOMP_CHECK_SYNC_BUILTINS check.
11884 * configure: Rebuilt.
11886 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11888 * testsuite/libgomp.fortran/vla1.f90: New test.
11890 2005-10-31 Richard Henderson <rth@redhat.com>
11892 * testsuite/libgomp.fortran/character2.f90: Fix race condition
11893 setting 's' in different threads.
11895 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11897 * libgomp.h (attribute_hidden, ialias): Define.
11898 * config/posix/proc.c (omp_get_num_procs): Add ialias.
11899 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
11900 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
11901 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11902 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11903 omp_test_lock, omp_test_nest_lock): Likewise.
11904 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
11905 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11906 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11907 omp_test_lock, omp_test_nest_lock): Likewise.
11908 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
11909 omp_get_dynamic, omp_get_nested): Likewise.
11910 * parallel.c (omp_get_num_threads, omp_get_max_threads,
11911 omp_get_thread_num, omp_in_parallel): Likewise.
11912 * fortran.c (ialias_redirect): Define.
11913 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
11914 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
11915 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
11916 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
11917 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
11918 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
11919 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
11920 omp_get_wtime): Add ialias_redirect.
11922 2005-10-30 Jakub Jelinek <jakub@redhat.com>
11924 * fortran.c: Include stdlib.h.
11926 2005-10-29 Jakub Jelinek <jakub@redhat.com>
11928 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
11929 * Makefile.in: Regenerated.
11931 2005-10-28 Jakub Jelinek <jakub@redhat.com>
11933 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
11934 * libgomp_f.h.in (omp_check_defines): New function.
11935 * env.c: Include libgomp_f.h.
11936 (initialize_env): Call omp_check_defines.
11938 * testsuite/libgomp.dg/copyin-2.c: New test.
11939 * testsuite/libgomp.c++/copyin-2.C: New test.
11940 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
11942 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
11943 * testsuite/libgomp.fortran/sharing2.f90: New test.
11945 * testsuite/libgomp.dg/copyin-1.c: New test.
11946 * testsuite/libgomp.c++/copyin-1.C: New test.
11948 2005-10-26 Jakub Jelinek <jakub@redhat.com>
11950 * testsuite/libgomp.fortran/crayptr1.f90: New test.
11952 * testsuite/libgomp.fortran/workshare1.f90: New test.
11954 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
11956 * libgomp.fortran/sharing1.f90: New test.
11958 2005-10-24 Jakub Jelinek <jakub@redhat.com>
11961 * testsuite/libgomp.c++/loop-7.C: New test.
11963 * testsuite/libgomp.dg/nestedfn-2.c: New test.
11965 * testsuite/libgomp.dg/nestedfn-1.c: New test.
11966 * testsuite/libgomp.fortran/reduction6.f90: New test.
11967 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
11969 2005-10-23 Richard Henderson <rth@redhat.com>
11971 * testsuite/libgomp.c++/ctor-1.C: New.
11972 * testsuite/libgomp.c++/ctor-2.C: New.
11973 * testsuite/libgomp.c++/ctor-3.C: New.
11974 * testsuite/libgomp.c++/ctor-4.C: New.
11975 * testsuite/libgomp.c++/ctor-5.C: New.
11976 * testsuite/libgomp.c++/ctor-6.C: New.
11977 * testsuite/libgomp.c++/ctor-7.C: New.
11978 * testsuite/libgomp.c++/ctor-8.C: New.
11979 * testsuite/libgomp.c++/ctor-9.C: New.
11981 2005-10-21 Diego Novillo <dnovillo@redhat.com>
11984 * testsuite/libgomp.c++/pr24455-1.C: New test.
11985 * testsuite/libgomp.c++/pr24455.C: New test.
11986 * testsuite/libgomp.dg/pr24455-1.c: New test.
11987 * testsuite/libgomp.dg/pr24455.c: New test.
11989 2005-10-20 Richard Henderson <rth@redhat.com>
11991 * testsuite/libgomp.c++/loop-6.C: New.
11992 * testsuite/libgomp.dg/loop-3.c: New.
11994 2005-10-20 Jakub Jelinek <jakub@redhat.com>
11996 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
11997 explicitly private.
11998 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12001 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12003 * testsuite/libgomp.fortran/jacobi.f: New test.
12005 2005-10-19 Richard Henderson <rth@redhat.com>
12007 * configure.tgt (i?86-linux): Default to with_arch instead of
12008 CFLAGS. Add -mtune to match target_cpu.
12009 (x86_64-linux): Tune to i686.
12011 * fortran.c (omp_test_nest_lock_): Fix typo.
12013 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12015 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12016 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12017 * testsuite/libgomp.dg/ordered-3.c: New test.
12019 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12020 Remove volatile keyword.
12022 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12023 in COMMON block to avoid warnings on 64-bit targets.
12025 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12027 * testsuite/libgomp.dg/shared-3.c: New test.
12029 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12031 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12032 * testsuite/libgomp.fortran/reduction5.f90: New test.
12034 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12036 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12038 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12039 flush loop now that __sync_synchronize has proper memory barrier.
12040 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12041 Add -ffixed-form to dg-options.
12043 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12045 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12046 from subdirectories.
12047 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12048 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12049 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12050 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12051 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12052 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12053 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12054 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12055 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12056 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12057 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12058 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12059 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12060 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12061 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12062 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12063 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12064 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12065 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12066 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12067 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12068 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12069 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12070 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12071 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12073 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12075 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12076 lang_library_path exists. Use find instead of glob to gather tests.
12077 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12079 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12081 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12082 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12083 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12084 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12085 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12086 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12087 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12088 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12089 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12090 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12091 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12092 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12093 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12095 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12097 * testsuite/libgomp.dg/vla-1.c: New test.
12099 * testsuite/libgomp.fortran/reference2.f90: New test.
12101 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12102 declaration of omp_get_thread_num.
12103 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12106 * testsuite/libgomp.fortran/reduction1.f90: New test.
12107 * testsuite/libgomp.fortran/reduction2.f90: New test.
12108 * testsuite/libgomp.fortran/reduction3.f90: New test.
12109 * testsuite/libgomp.fortran/reduction4.f90: New test.
12111 2005-10-13 Richard Henderson <rth@redhat.com>
12113 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12114 * Makefile.in: Regenerate.
12115 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12116 * libgomp.h: Include bar.h.
12117 (struct gomp_barrier): Remove.
12118 (struct gomp_team): Add barrier. Replace master_barrier with
12119 master_release. Replace threads with ordered_release.
12120 (struct gomp_thread): Replace barrier with release.
12121 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12122 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12123 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12124 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12125 (GOMP_single_copy_end): Likewise.
12126 * team.c (gomp_threads_dock): New.
12127 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12128 (gomp_thread_start): Use gomp_barrier_wait.
12129 (new_team, free_team): Update for gomp_team changes.
12130 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12131 (gomp_team_end): Use gomp_barrier_wait.
12132 (initialize_team): Update for gomp_thread changes.
12133 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12134 (gomp_work_share_end_nowait): Use atomic ops when available.
12135 * config/linux/bar.c, config/linux/bar.h: New files.
12136 * config/posix/bar.c, config/posix/bar.h: New files.
12138 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12140 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12141 * testsuite/libgomp.dg/single-2.c: New test.
12143 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12144 lang_link_flags): Unset, so that they aren't inherited from previously
12147 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12149 2005-10-12 Richard Henderson <rth@redhat.com>
12151 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12152 (libgomp_init): Use lang_test_file, lang_library_path, and
12153 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12155 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12156 (lang_test_file, lang_link_flags): New.
12157 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12159 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12160 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12161 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12162 testsuite/libgomp.c++/parallel-1.C,
12163 testsuite/libgomp.c++/reduction-1.C,
12164 testsuite/libgomp.c++/reduction-2.C,
12165 testsuite/libgomp.c++/reduction-3.C,
12166 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12167 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12168 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12169 New files, largely cribbed from the C testsuite.
12171 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12173 * testsuite/libgomp.fortran/character1.f90: New test.
12174 * testsuite/libgomp.fortran/character2.f90: New test.
12176 * testsuite/libgomp.dg/nested-1.c: New test.
12177 * testsuite/libgomp.dg/nested-2.c: New test.
12178 * testsuite/libgomp.fortran/do1.f90: New test.
12179 * testsuite/libgomp.fortran/do2.f90: New test.
12181 * testsuite/libgomp.fortran/reference1.f90: New test.
12183 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12185 * testsuite/libgomp.dg/reduction-1.c: New test.
12186 * testsuite/libgomp.dg/reduction-2.c: New test.
12187 * testsuite/libgomp.dg/reduction-3.c: New test.
12189 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12191 * testsuite/libgomp.dg/atomic-1.c: New test.
12192 * testsuite/libgomp.dg/atomic-2.c: New test.
12194 2005-10-09 Richard Henderson <rth@redhat.com>
12196 * critical.c (atomic_lock): New.
12197 (initialize_critical): Initialize it.
12198 (GOMP_atomic_start, GOMP_atomic_end): New.
12199 * libgomp.map: Export them.
12200 * libgomp_g.h: Declare them.
12202 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12204 2005-10-02 Richard Henderson <rth@redhat.com>
12206 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12207 to XCFLAGS instead of CFLAGS.
12209 2005-09-30 Richard Henderson <rth@redhat.com>
12211 * configure.ac: Determine whether -pthread or -lpthread is needed.
12212 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12213 * Makefile.in, configure: Rebuild.
12215 2005-09-28 Richard Henderson <rth@redhat.com>
12217 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12218 * testsuite/libgomp.dg/omp-single-3.c: New test.
12220 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12222 * testsuite/libgomp.dg/omp-single-2.c: New test.
12223 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12225 2005-09-27 Richard Henderson <rth@redhat.com>
12227 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12228 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12230 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12232 * testsuite/libgomp.dg/omp-loop03.c: New test.
12234 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12236 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12238 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12240 * testsuite/libgomp.dg/omp-single-1.c: New test.
12241 * testsuite/libgomp.dg/shared-1.c: Return 0.
12242 Add prototype for abort.
12243 * testsuite/libgomp.dg/shared-2.c: Likewise.
12245 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12247 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12250 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12252 * testsuite/libgomp.dg/shared-1.c: New test.
12253 * testsuite/libgomp.dg/shared-2.c: New test.
12255 2005-09-24 Richard Henderson <rth@redhat.com>
12257 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12259 2005-09-24 Richard Henderson <rth@redhat.com>
12261 * iter.c (gomp_iter_static_next): Round up when computing number
12262 of iterations. Don't bother distributing a remainder equally.
12264 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12265 Don't call srand. Zero b before testing.
12268 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12270 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12271 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12273 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12275 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12276 without !$omp end do, followed immediately by subroutine end.
12278 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12280 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12282 2005-09-22 Richard Henderson <rth@redhat.com>
12284 * critical.c (GOMP_critical_name_start): Change argument to void**.
12285 Reuse the pointer space if the mutex fits.
12286 (GOMP_critical_name_end): Likewise.
12287 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12288 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12289 (GOMP_critical_name_end): Likewise.
12290 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12291 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12293 2005-09-20 Richard Henderson <rth@redhat.com>
12295 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12296 (create_lock_lock): New.
12297 (initialize_critical): Initialize it.
12298 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12299 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12301 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12303 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12305 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12307 * testsuite/libgomp.dg/omp-loop01.c: New test.
12308 * testsuite/libgomp.dg/omp-loop02.c: New test.
12310 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12312 * configure.ac (AC_PROG_FC): Add.
12313 (USE_FORTRAN): New automake conditional.
12314 * configure: Rebuilt.
12315 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12316 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12317 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12318 Add rules to build them.
12319 * Makefile.in: Rebuilt.
12320 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12321 OMP_NEST_LOCK_KIND.
12322 * libgomp.map: Add Fortran wrappers.
12323 * libgomp_f.h.in: New file.
12324 * omp_lib.h.in: New file.
12325 * omp_lib.f90.in: New file.
12326 * fortran.c: New file.
12327 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12328 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12329 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12330 libgfortran has been built.
12331 * testsuite/libgomp.fortran/fortran.exp: New file.
12332 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12333 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12334 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12335 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12336 * testsuite/libgomp.fortran/omp_hello.f: New test.
12337 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12338 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12339 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12340 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12341 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12342 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12343 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12344 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12346 2005-08-30 Richard Henderson <rth@redhat.com>
12348 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12349 function for when aliases are not usable.
12350 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12351 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12352 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12353 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12354 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12355 GOMP_loop_ordered_guided_next): Likewise.
12356 * ordered.c (GOMP_ordered_start): Likewise.
12358 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12360 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12361 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12362 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12363 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12364 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12365 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12366 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12367 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12368 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12370 2005-07-07 Eric Christopher <echristo@redhat.com>
12371 Diego Novillo <dnovillo@redhat.com>
12373 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12374 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12376 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12377 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12378 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12379 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12380 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12381 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12382 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12384 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12386 * TOPLEVEL.patch: Remove.
12388 2005-05-16 Richard Henderson <rth@redhat.com>
12390 * configure.ac: Test for clock_gettime.
12391 * config.h.in, configure: Rebuild.
12392 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12393 (omp_get_wtime): Use clock_gettime if available.
12394 (omp_get_wtick): Use clock_getres if available.
12396 2005-05-11 Richard Henderson <rth@redhat.com>
12398 * config/linux/ia64/futex.h: New file.
12399 * configure.tgt: Use it.
12401 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12403 2005-05-07 Richard Henderson <rth@redhat.com>
12405 * config/linux/powerpc/futex.h: New file.
12406 * configure.tgt: Use it.
12408 * config/linux/i486/futex.h: Merge ...
12409 * config/linux/x86_64/futex.h: ... into ...
12410 * config/linux/x86/futex.h: ... here.
12411 * configure.tgt: Update to match.
12413 2005-05-06 Richard Henderson <rth@redhat.com>
12415 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12416 * config/linux/i486/futex.h: Likewise.
12417 * config/linux/x86_64/futex.h: Likewise.
12419 * config/linux/lock.c: New file.
12420 * config/linux/omp-lock.h: New file.
12422 * critical.c, env.h: Don't include omp.h
12423 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12424 * config/posix/time.c: Likewise.
12425 * config/posix/omp-lock.h: New file.
12426 * libgomp.h: Include omp-lock.h and omp.h.
12427 * Makefile.am (nodist_include_HEADERS): New.
12429 * configure.ac (PERL): New.
12430 * mkomp_h.pl: New file.
12431 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12433 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12435 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12436 build directory. Re-add -march=i486 hack.
12438 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12439 (libgomp_link_flags): Remove.
12440 (libgomp_initialized): Remove.
12441 (libgomp_init): Don't protect from reinitialization. Copy code
12442 from libstdc++ for getting the multilib set correctly.
12444 2005-05-05 Richard Henderson <rth@redhat.com>
12446 * config/linux/alpha/futex.h: New file.
12447 * configure.tgt (alpha*-*-linux*): Use it.
12449 * config/posix/mutex.c: New file.
12450 * config/posix/sem.c: Use libgomp.h.
12452 * configure.tgt (x86_64-linux): Also test CC for -m32.
12453 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12455 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12458 * Makefile.am (SUBDIRS): New.
12459 (libgomp_la_LDFLAGS): Add -lpthread.
12460 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12461 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12463 * libgomp_g.h: New file.
12464 * libgomp.h: Split out all public declarations to libgomp_g.h.
12465 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12466 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12467 * config/linux/sem.h: Likewise.
12468 * config/posix/sem.h: Likewise.
12470 * Makefile.am (AM_LDFLAGS): New.
12471 (libgomp_version_script): Split out from ...
12472 (libgomp_la_LDFLAGS): ... here.
12473 (libgomp_version_info): New.
12474 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12475 (LIBGOMP_ENABLE): New.
12476 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12477 (LIBGOMP_ENABLE_SYMVERS): New.
12478 * configure.ac (AC_INIT): Version 1.0.
12479 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12480 (enable-linux-futex): Likewise. Rename from enable-futex.
12481 (libtool_VERSION): New.
12482 (LIBGOMP_ENABLE_SYMVERS): Use it.
12483 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12484 * Makefile.in, aclocal.m4, configure: Rebuild.
12486 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12487 (gomp_mutex_unlock_slow): Fix typo.
12488 * config/linux/sem.c: Similarly.
12489 (gomp_sem_post_slow): Fix typo.
12490 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12491 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12492 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12494 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12495 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12496 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12497 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12498 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12499 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12500 LDFLAGS. Pull enable_futex check to top-level.
12501 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12502 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12504 First attempt at real configury.
12505 * Makefile, config.h: Remove file.
12506 * Makefile.am, Makefile.in: New file.
12507 * acinclude.m4 aclocal.m4: New file.
12508 * configure.ac, configure.tgt, configure: New file.
12510 * config/posix/lock.c: Rename from sys-lock.c.
12511 * config/posix/mutex.h: Rename from sys-mutex.h.
12512 * config/posix/sem.c: Rename from sys-sem.c.
12513 * config/posix/sem.h: Rename from sys-sem.h.
12514 * config/posix/proc.c: Rename from sys-proc.c.
12515 * config/posix/time.c: Rename from sys-proc.c.
12517 * config/linux/mutex.c: New file.
12518 * config/linux/mutex.h: New file.
12519 * config/linux/sem.c: New file.
12520 * config/linux/sem.h: New file.
12521 * config/linux/i486/futex.h: New file.
12522 * config/linux/x86_64/futex.h: New file.
12524 2005-05-04 Richard Henderson <rth@redhat.com>
12526 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12527 * libgomp.h: Declare them.
12528 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12529 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12531 2005-05-04 Richard Henderson <rth@redhat.com>
12533 * libgomp-1 code drop
12535 2005-05-04 Richard Henderson <rth@redhat.com>
12537 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12538 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12539 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12540 (gomp_iter_static_next): Update.
12541 (gomp_ordered_static_next): Update.
12542 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12543 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12544 totally empty range.
12545 (gomp_loop_ordered_static_next): Refine test for calling
12546 gomp_ordered_static_next.
12547 * testsuite/ordered-1.c: Add case for more threads than iterations.
12549 * iter.c (gomp_iter_runtime_next_locked): Remove.
12550 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12551 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12552 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12553 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12554 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12555 gomp_loop_ordered_guided_next): Downcase name, make static, add
12556 an external alias with the old name.
12557 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12558 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12559 switch and call one of the above static functions.
12560 * libgomp.h: Update.
12562 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12563 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12564 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12565 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12566 GOMP_loop_ordered_guided_start): Update to match.
12567 * sections.c (GOMP_sections_start): Likewise.
12568 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12570 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12571 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12572 Use bounds check instead of modulus.
12573 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12574 (gomp_ordered_last): Don't sync with ordered_owner here.
12575 (gomp_ordered_next): Likewise.
12576 (gomp_ordered_static_loop_next): Likewise.
12577 * loop.c, libgomp.h: Update to match.
12579 * libgomp.h (GOMP_barrier): Declare.
12581 * testsuite/barrier-1.c: New file.
12582 * testsuite/critical-1.c: New file.
12583 * testsuite/ordered-2.c: New file.
12584 * testsuite/ordered-1.c: New file.
12585 * testsuite/sections-1.c: New file.
12586 * testsuite/single-1.c: New file.
12587 * testsuite/Makefile (TESTS): Add them.
12589 2005-05-04 Richard Henderson <rth@redhat.com>
12591 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12592 * loop.c (GOMP_loop_static_start): If not the startup thread,
12593 acquire the mutex to wait for initialization complete.
12594 (GOMP_loop_ordered_static_start): Likewise.
12595 (GOMP_loop_ordered_runtime_start): Likewise.
12596 (GOMP_loop_ordered_static_first): Remove.
12597 (GOMP_loop_ordered_dynamic_first): Remove.
12598 (GOMP_loop_ordered_guided_first): Remove.
12599 (GOMP_loop_ordered_runtime_first): Remove.
12600 * ordered.c (gomp_ordered_loop_first): Post to own release when
12601 we're the first thread.
12602 (gomp_ordered_loop_last): Wait on release if not owner.
12603 (gomp_ordered_loop_next): Likewise.
12604 (gomp_ordered_static_loop_init): New.
12605 (gomp_ordered_static_loop_next): Use ordered_owner.
12606 (GOMP_ordered_start): Likewise.
12607 * work.c (gomp_new_work_share): Initialize ordered_owner.
12609 2005-05-03 Richard Henderson <rth@redhat.com>
12611 * Makefile (OPT): New.
12614 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12615 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12616 * libgomp.h, libgomp.map, NOTES: Update to match.
12618 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12619 Add initialized and thr members.
12620 (gomp_thread_start): Pause when initially spawned to wait for
12621 the whole team to be created.
12622 (gomp_team_start): Release team members at the end.
12624 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12625 (f_foo_1): Use GOMP_loop_end.
12626 (f_foo_2): Use GOMP_loop_end_nowait.
12628 * testsuite/loop-2.c: New file.
12629 * testsuite/Makefile (TESTS): Add it.
12631 2005-05-03 Richard Henderson <rth@redhat.com>
12633 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12634 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12635 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12636 initial work_share.
12638 * testsuite/Makefile: New file.
12639 * testsuite/loop-1.c: New file.
12641 2005-05-03 Richard Henderson <rth@redhat.com>
12643 Initial implementation and checkin.
12645 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12647 Copying and distribution of this file, with or without modification,
12648 are permitted in any medium without royalty provided the copyright
12649 notice and this notice are preserved.