1 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
2 Frederik Harwath <frederik@codesourcery.com>
3 Thomas Schwinge <tschwinge@codesourcery.com>
5 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6 * libgomp-plugin.h (gomp_device_property_value): New union.
7 (gomp_device_property_value): New prototype.
8 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
10 (acc_device_property_t): New enum.
11 (acc_get_property, acc_get_property_string): New prototypes.
12 * oacc-init.c (acc_get_device_type): Also assert that result
13 is not `acc_device_current'.
14 (get_property_any, acc_get_property, acc_get_property_string):
16 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
17 `acc_property_memory', `acc_property_free_memory',
18 `acc_property_name', `acc_property_vendor' and
19 `acc_property_driver' constants. Add `acc_device_property' data
21 (openacc_internal): Add `acc_get_property' and
22 `acc_get_property_string' interfaces. Add `acc_get_property_h',
23 `acc_get_property_string_h', `acc_get_property_l' and
24 `acc_get_property_string_l'.
25 * oacc-host.c (host_get_property): New function.
26 (host_dispatch): Wire it.
27 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
28 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
29 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
30 * libgomp.texi (OpenACC Runtime Library Routines): Add
32 (acc_get_property): New node.
33 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
35 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
36 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
37 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
39 (GOMP_OFFLOAD_get_property): New function.
40 (struct ptx_device): Add new field "name".
41 (cuda_driver_version_s): Add new static variable ...
42 (nvptx_init): ... and init from here.
44 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
45 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
46 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
47 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
48 with test helper functions.
50 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
52 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
54 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
57 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
59 * target.c (gomp_map_vars_internal): Restore 'omp declare target
62 2019-12-19 Julian Brown <julian@codesourcery.com>
64 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
65 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
66 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
68 2019-12-19 Julian Brown <julian@codesourcery.com>
69 Cesar Philippidis <cesar@codesourcery.com>
71 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
72 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
73 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
74 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
75 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
76 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
77 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
78 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
79 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
80 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
81 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
82 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
83 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
85 2019-12-19 Julian Brown <julian@codesourcery.com>
87 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
88 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
89 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
90 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
91 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
92 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
93 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
94 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
95 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
96 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
97 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
98 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
100 2019-12-19 Julian Brown <julian@codesourcery.com>
102 * libgomp.h (struct target_var_desc): Add do_detach flag.
103 * oacc-init.c (acc_shutdown_1): Free aux block if present.
104 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
105 struct components. Tidy up and add some new checks.
106 (goacc_enter_data_internal): Update call to find_group_last.
107 (goacc_exit_data_internal): Support detach operations and
109 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
110 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
111 attach/detach in enter/exit data detection code.
112 * target.c (gomp_map_vars_existing): Initialise do_detach field of
114 (gomp_map_vars_internal): Support attach.
115 (gomp_unmap_vars_internal): Support detach.
117 2019-12-19 Julian Brown <julian@codesourcery.com>
118 Thomas Schwinge <thomas@codesourcery.com>
120 * libgomp.h (struct splay_tree_aux): Add attach_count field.
121 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
122 * libgomp.map (OACC_2.6): New section. Add acc_attach,
123 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
124 acc_detach_finalize_async.
125 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
126 acc_detach, acc_detach_async, acc_detach_finalize,
127 acc_detach_finalize_async): New functions.
128 * openacc.h (acc_attach, acc_attach_async, acc_detach,
129 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
131 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
132 (gomp_remove_var_internal): Free attachment counts if present.
133 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
134 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
136 2019-12-19 Julian Brown <julian@codesourcery.com>
137 Cesar Philippidis <cesar@codesourcery.com>
139 * libgomp.h (gomp_map_val): Add prototype.
140 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
141 open-coding device-address calculation.
142 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
145 2019-12-19 Julian Brown <julian@codesourcery.com>
147 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
148 field for virtual_refcount.
149 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
150 (gomp_free_memmap): Remove prototype.
151 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
152 instead of calling gomp_free_memmap.
153 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
155 (acc_unmap_data): Open code instead of forcing target_mem_desc's
156 to_free field to NULL then calling gomp_unmap_vars. Handle
157 REFCOUNT_INFINITY on target blocks.
158 (goacc_enter_data): Rename to...
159 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
160 handling for mapping groups. Use virtual_refcount instead of
161 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
162 map_map_vars_async call. Re-do lookup for target pointer return value.
163 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
164 renamed goacc_enter_datum function.
165 (goacc_exit_data): Rename to...
166 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
167 (acc_delete, acc_delete_async, acc_delete_finalize,
168 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
169 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
170 goacc_exit_datum function.
171 (gomp_acc_remove_pointer, find_pointer): Remove functions.
172 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
174 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
175 goacc_exit_data_internal helper functions.
176 * target.c (gomp_map_vars_internal): Handle
177 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
179 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
180 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
181 virtual_refcount field instead of dynamic_refcount.
182 (gomp_free_memmap): Remove function.
183 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
184 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
185 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
187 2019-12-19 Julian Brown <julian@codesourcery.com>
188 Thomas Schwinge <thomas@codesourcery.com>
190 * libgomp.h (struct splay_tree_aux): New.
191 (struct splay_tree_key_s): Replace link_key field with aux pointer.
192 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
194 (gomp_remove_var_internal): Free aux block if present.
195 (gomp_load_image_to_device): Zero-initialise aux field instead of
197 (omp_target_associate_pointer): Zero-initialise aux field.
199 2019-12-18 Jakub Jelinek <jakub@redhat.com>
202 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
204 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
207 2019-12-19 Julian Brown <julian@codesourcery.com>
208 Maciej W. Rozycki <macro@codesourcery.com>
209 Tobias Burnus <tobias@codesourcery.com>
210 Thomas Schwinge <thomas@codesourcery.com>
212 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
213 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
214 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
215 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
216 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
217 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
218 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
219 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
220 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
222 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
224 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
226 (goacc_insert_pointer): ... from here, "present" case.
227 (goacc_insert_pointer): Inline function into...
228 (GOACC_enter_exit_data): ... here, and simplify.
230 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
232 (goacc_insert_pointer): ... from here, "not present" case.
234 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
237 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
238 'goacc_enter_data', 'goacc_exit_data'.
240 * oacc-mem.c (delete_copyout): Refactor into...
241 (goacc_exit_data): ... this. Adjust all users.
243 * oacc-mem.c (present_create_copy): Refactor into...
244 (goacc_enter_data): ... this. Adjust all users.
246 * target.c (gomp_unmap_vars_internal): Add a safeguard to
249 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
250 like 'GOMP_MAP_FROM'.
255 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
257 (GOACC_enter_exit_data): Simplify accordingly.
258 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
260 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
261 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
263 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
265 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
266 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
268 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
270 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
272 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
276 * oacc-mem.c (acc_map_data, present_create_copy)
277 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
278 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
279 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
280 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
281 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
282 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
283 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
284 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
287 * target.c (gomp_unmap_tgt): Make it 'static'.
288 * libgomp.h (gomp_unmap_tgt): Remove.
290 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
293 * testsuite/libgomp.c/pr86416-1.c: New.
294 * testsuite/libgomp.c/pr86416-2.c: New.
296 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
298 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
299 all symbols as public except for the 'use …, only' imported symbol,
301 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
302 all symbols from module openacc_kinds as PUBLIC
303 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
305 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
307 2019-12-13 Julian Brown <julian@codesourcery.com>
311 * libgomp.h (gomp_remove_var_async): Add prototype.
312 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
314 * target.c (gomp_unref_tgt): Change return type to bool, indicating
315 whether target_mem_desc was unmapped.
316 (gomp_unref_tgt_void): New.
317 (gomp_remove_var): Reimplement in terms of...
318 (gomp_remove_var_internal): ...this new helper function.
319 (gomp_remove_var_async): New, implemented using above helper function.
320 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
323 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
325 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
326 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
327 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
328 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
329 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
331 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
332 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
334 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
336 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
337 as public except for the 'use …, only' imported symbol, which is
339 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
340 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
341 attributes for acc_copyout_finalize and acc_delete_finalize.
343 2019-12-11 Jakub Jelinek <jakub@redhat.com>
346 * testsuite/libgomp.fortran/atomic1.f90: New test.
348 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
351 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
352 reference counting for structured 'REFCOUNT_INFINITY'. Add some
354 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
355 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
356 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
357 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
358 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
360 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
361 * oacc-mem.c: ... here.
362 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
363 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
364 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
366 * libgomp_g.h: Update.
368 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
369 * oacc-async.c: ... here.
370 * oacc-int.h (goacc_wait): Declare.
371 * libgomp_g.h: Update
374 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
376 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
378 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
380 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
382 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
384 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
387 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
388 Julian Brown <julian@codesourcery.com>
390 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
391 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
393 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
395 * omp_lib.h.in: Fix spelling of function declaration
396 omp_get_cancell(l)ation.
397 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
399 * env.c: Fix comment typos.
400 * oacc-host.c: Likewise.
401 * ordered.c: Likewise.
404 * config/gcn/task.c: Likewise.
405 * config/gcn/team.c: Likewise.
406 * config/nvptx/task.c: Likewise.
407 * config/nvptx/team.c: Likewise.
408 * plugin/plugin-gcn.c: Likewise.
409 * testsuite/libgomp.fortran/jacobi.f: Likewise.
410 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
411 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
413 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
415 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
416 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
417 unnecessary 'dg-additional-options "-w"'.
419 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
420 Julian Brown <julian@codesourcery.com>
425 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
426 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
428 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
430 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
432 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
434 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
437 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
438 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
440 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
442 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
444 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
446 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
448 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
450 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
451 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
452 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
453 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
454 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
455 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
456 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
457 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
458 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
459 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
462 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
463 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
464 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
466 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
468 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
470 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
471 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
474 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
476 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
478 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
480 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
482 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
483 ... with their content moved into, and extended in this new file.
484 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
486 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
488 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
490 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
493 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
496 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
498 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
500 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
502 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
504 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
506 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
507 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
508 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
509 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
511 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
512 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
514 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
516 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
518 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
519 Kwok Cheung Yeung <kcy@codesourcery.com>
521 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
522 if input it a NULL pointer.
523 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
524 diagnostic of NULL pointer.
525 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
526 * testsuite/libgomp.fortran/optional-map.f90: New.
527 * testsuite/libgomp.fortran/use_device_addr-1.f90
528 (test_dummy_opt_callee_1_absent): New.
529 (test_dummy_opt_call_1): Call it.
530 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
531 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
532 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
533 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
534 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
535 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
536 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
537 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
538 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
539 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
540 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
541 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
542 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
543 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
544 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
545 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
547 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
549 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
550 expect dg-output of 'Error termination.' for GCN.
551 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
552 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
554 2019-12-04 Jakub Jelinek <jakub@redhat.com>
557 * testsuite/libgomp.fortran/teams1.f90: New test.
558 * testsuite/libgomp.fortran/teams2.f90: New test.
560 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
562 * oacc-init.c (acc_known_device_type): Add function.
563 (unknown_device_type_error): Add function.
564 (name_of_acc_device_t): Change to call unknown_device_type_error
566 (resolve_device): Use acc_known_device_type.
567 (acc_init): Fail if acc_device_t argument is not valid.
568 (acc_shutdown): Likewise.
569 (acc_get_num_devices): Likewise.
570 (acc_set_device_type): Likewise.
571 (acc_get_device_num): Likewise.
572 (acc_set_device_num): Likewise.
573 (acc_on_device): Add comment that argument validity is not checked.
575 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
577 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
579 (check_effective_target_openacc_amdgcn_accel_present): New proc.
580 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
581 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
582 * testsuite/libgomp.oacc-c/c.exp: Likewise.
583 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
585 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
588 * configure.tgt: Avoid IE tls on *-*-musl*.
590 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
592 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
593 adding a common-block test case.
595 2019-11-29 Jakub Jelinek <jakub@redhat.com>
598 * testsuite/libgomp.c++/udr-20.C: New test.
599 * testsuite/libgomp.c++/udr-21.C: New test.
601 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
603 * testsuite/lib/libgomp.exp
604 (check_effective_target_offload_target_nvptx): New proc.
605 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
607 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
608 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
609 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
611 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
613 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
614 * testsuite/libgomp.c/pr39591-2.c: Likewise.
615 * testsuite/libgomp.c/pr39591-3.c: Likewise.
616 * testsuite/libgomp.c/private-1.c: Likewise.
617 * testsuite/libgomp.c/task-1.c: Likewise.
618 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
620 2019-11-20 Julian Brown <julian@codesourcery.com>
622 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
624 (queue_push_launch): Lock aq->mutex before calling
625 wait_for_queue_nonfull.
626 (queue_push_callback): Likewise.
627 (queue_push_asyncwait): Likewise.
628 (queue_push_placeholder): Likewise.
630 2019-11-20 Julian Brown <julian@codesourcery.com>
632 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
633 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
634 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
637 2019-11-20 Julian Brown <julian@codesourcery.com>
641 * oacc-mem.c (present_create_copy): Fix device pointer return value in
642 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
643 in non-present/create case.
644 (delete_copyout): Change error condition to fail only on copies outside
645 of mapped block. Adjust error message accordingly.
646 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
647 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
648 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
650 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
651 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
652 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
654 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
656 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
657 libatomic in build-tree testing.
659 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
661 * testsuite/Makefile.in: Regenerate.
663 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
665 * testsuite/libgomp.c/target-print-1.c: New file.
666 * testsuite/libgomp.fortran/target-print-1.f90: New file.
667 * testsuite/libgomp.oacc-c/print-1.c: New file.
668 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
670 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
671 Kwok Cheung Yeung <kcy@codesourcery.com>
672 Julian Brown <julian@codesourcery.com>
673 Tom de Vries <tom@codesourcery.com>
675 * plugin/Makefrag.am: Add amdgcn plugin support.
676 * plugin/configfrag.ac: Likewise.
677 * plugin/plugin-gcn.c: New file.
678 * configure: Regenerate.
679 * Makefile.in: Regenerate.
680 * testsuite/Makefile.in: Regenerate.
682 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
684 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
685 and use team_malloc variants.
686 (gomp_gcn_exit_kernel): Use team_free.
687 * libgomp.h (TEAM_ARENA_SIZE): Define.
688 (TEAM_ARENA_START): Define.
689 (TEAM_ARENA_FREE): Define.
690 (TEAM_ARENA_END): Define.
691 (team_malloc): New function.
692 (team_malloc_cleared): New function.
693 (team_free): New function.
694 * team.c (gomp_new_team): Initialize and use team_malloc.
695 (free_team): Use team_free.
696 (gomp_free_thread): Use team_free.
697 (gomp_pause_host): Use team_free.
698 * work.c (gomp_init_work_share): Use team_malloc.
699 (gomp_fini_work_share): Use team_free.
701 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
702 Kwok Cheung Yeung <kcy@codesourcery.com>
703 Julian Brown <julian@codesourcery.com>
704 Tom de Vries <tom@codesourcery.com>
706 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
707 * Makefile.in: Regenerate.
708 * config.h.in (PLUGIN_GCN): Add new undef.
709 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
710 * config/gcn/affinity-fmt.c: New file.
711 * config/gcn/bar.c: New file.
712 * config/gcn/bar.h: New file.
713 * config/gcn/doacross.h: New file.
714 * config/gcn/icv-device.c: New file.
715 * config/gcn/oacc-target.c: New file.
716 * config/gcn/simple-bar.h: New file.
717 * config/gcn/target.c: New file.
718 * config/gcn/task.c: New file.
719 * config/gcn/team.c: New file.
720 * config/gcn/time.c: New file.
721 * configure.ac: Add amdgcn*-*-*.
722 * configure: Regenerate.
723 * configure.tgt: Add amdgcn*-*-*.
724 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
725 * libgomp.h (gcn_thrs): Add amdgcn variant.
726 (set_gcn_thrs): Likewise.
727 (gomp_thread): Likewise.
728 * oacc-int.h (goacc_thread): Likewise.
729 * oacc-target.c: New file.
730 * openacc.f90 (acc_device_gcn): New parameter.
731 * openacc.h (acc_device_t): Add acc_device_gcn.
732 * team.c (gomp_free_pool_helper): Add amdgcn support.
734 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
735 Julian Brown <julian@codesourcery.com>
737 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
739 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
741 * oacc-host.c (host_openacc_async_construct): Add device parameter.
742 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
745 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
747 * configure.tgt (nvptx*-*-*): Add "accel" directory.
748 * config/nvptx/libgomp-plugin.c: Move ...
749 * config/accel/libgomp-plugin.c: ... to here.
750 * config/nvptx/lock.c: Move ...
751 * config/accel/lock.c: ... to here.
752 * config/nvptx/mutex.c: Move ...
753 * config/accel/mutex.c: ... to here.
754 * config/nvptx/mutex.h: Move ...
755 * config/accel/mutex.h: ... to here.
756 * config/nvptx/oacc-async.c: Move ...
757 * config/accel/oacc-async.c: ... to here.
758 * config/nvptx/oacc-cuda.c: Move ...
759 * config/accel/oacc-cuda.c: ... to here.
760 * config/nvptx/oacc-host.c: Move ...
761 * config/accel/oacc-host.c: ... to here.
762 * config/nvptx/oacc-init.c: Move ...
763 * config/accel/oacc-init.c: ... to here.
764 * config/nvptx/oacc-mem.c: Move ...
765 * config/accel/oacc-mem.c: ... to here.
766 * config/nvptx/oacc-plugin.c: Move ...
767 * config/accel/oacc-plugin.c: ... to here.
768 * config/nvptx/omp-lock.h: Move ...
769 * config/accel/omp-lock.h: ... to here.
770 * config/nvptx/openacc.f90: Move ...
771 * config/accel/openacc.f90: ... to here.
772 * config/nvptx/pool.h: Move ...
773 * config/accel/pool.h: ... to here.
774 * config/nvptx/proc.c: Move ...
775 * config/accel/proc.c: ... to here.
776 * config/nvptx/ptrlock.c: Move ...
777 * config/accel/ptrlock.c: ... to here.
778 * config/nvptx/ptrlock.h: Move ...
779 * config/accel/ptrlock.h: ... to here.
780 * config/nvptx/sem.c: Move ...
781 * config/accel/sem.c: ... to here.
782 * config/nvptx/sem.h: Move ...
783 * config/accel/sem.h: ... to here.
784 * config/nvptx/thread-stacksize.h: Move ...
785 * config/accel/thread-stacksize.h: ... to here.
787 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
788 Tobias Burnus <tobias@codesourcery.com>
789 Frederik Harwath <frederik@codesourcery.com>
790 Thomas Schwinge <thomas@codesourcery.com>
793 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
794 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
795 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
797 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
798 Kwok Cheung Yeung <kcy@codesourcery.com>
800 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
801 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
803 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
805 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
807 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
809 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
810 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
812 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
814 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
815 Add expected warnings about missing reduction clauses.
816 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
818 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
820 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
823 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
825 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
826 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
827 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
828 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
829 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
830 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
832 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
835 * testsuite/libgomp.fortran/allocatable2.f90: Use
836 unique numbers with 'stop'.
837 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
838 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
839 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
840 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
841 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
843 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
845 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
846 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
847 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
848 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
849 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
850 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
852 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
854 * testsuite/libgomp.fortran/target9.f90: New.
856 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
858 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
859 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
860 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
861 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
862 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
863 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
864 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
865 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
866 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
867 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
868 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
869 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
870 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
871 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
872 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
873 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
874 * testsuite/libgomp.fortran/associate1.f90: Ditto.
875 * testsuite/libgomp.fortran/associate2.f90: Ditto.
876 * testsuite/libgomp.fortran/associate3.f90: Ditto.
877 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
878 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
879 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
880 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
881 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
882 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
883 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
884 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
885 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
886 * testsuite/libgomp.fortran/character1.f90: Ditto.
887 * testsuite/libgomp.fortran/character2.f90: Ditto.
888 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
889 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
890 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
891 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
892 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
893 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
894 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
895 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
896 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
897 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
898 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
899 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
900 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
901 * testsuite/libgomp.fortran/do1.f90: Ditto.
902 * testsuite/libgomp.fortran/do2.f90: Ditto.
903 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
904 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
905 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
906 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
907 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
908 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
909 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
910 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
911 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
912 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
913 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
914 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
915 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
916 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
917 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
918 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
919 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
920 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
921 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
922 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
923 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
924 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
925 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
926 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
927 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
928 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
929 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
930 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
931 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
932 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
933 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
934 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
935 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
936 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
937 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
938 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
939 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
940 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
941 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
942 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
943 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
944 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
945 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
946 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
947 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
948 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
949 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
950 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
951 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
952 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
953 * testsuite/libgomp.fortran/lib1.f90: Ditto.
954 * testsuite/libgomp.fortran/lib4.f90: Ditto.
955 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
956 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
957 * testsuite/libgomp.fortran/nested1.f90: Ditto.
958 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
959 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
960 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
961 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
962 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
963 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
964 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
965 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
966 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
967 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
968 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
969 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
970 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
971 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
972 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
973 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
974 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
975 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
976 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
977 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
978 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
979 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
980 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
981 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
982 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
983 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
984 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
985 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
986 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
987 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
988 * testsuite/libgomp.fortran/pr28390.f: Ditto.
989 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
990 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
991 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
992 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
993 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
994 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
995 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
996 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
997 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
998 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
999 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1000 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1001 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1002 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1003 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1004 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1005 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1006 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1007 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1008 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1009 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1010 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1011 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1012 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1013 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1014 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1015 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1016 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1017 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1018 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1019 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1020 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1021 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1022 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1023 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1024 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1025 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1026 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1027 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1028 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1029 * testsuite/libgomp.fortran/stack.f90: Ditto.
1030 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1031 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1032 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1033 * testsuite/libgomp.fortran/target1.f90: Ditto.
1034 * testsuite/libgomp.fortran/target2.f90: Ditto.
1035 * testsuite/libgomp.fortran/target3.f90: Ditto.
1036 * testsuite/libgomp.fortran/target4.f90: Ditto.
1037 * testsuite/libgomp.fortran/target5.f90: Ditto.
1038 * testsuite/libgomp.fortran/target6.f90: Ditto.
1039 * testsuite/libgomp.fortran/target7.f90: Ditto.
1040 * testsuite/libgomp.fortran/target8.f90: Ditto.
1041 * testsuite/libgomp.fortran/task1.f90: Ditto.
1042 * testsuite/libgomp.fortran/task2.f90: Ditto.
1043 * testsuite/libgomp.fortran/task3.f90: Ditto.
1044 * testsuite/libgomp.fortran/task4.f90: Ditto.
1045 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1046 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1047 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1048 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1049 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1050 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1051 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1052 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1053 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1054 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1055 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1056 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1057 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1058 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1059 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1060 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1061 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1062 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1063 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1064 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1065 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1066 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1067 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1068 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1069 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1070 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1071 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1072 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1073 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1074 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1075 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1076 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1077 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1078 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1080 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1082 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1083 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1084 Ditto; add 'dg-do run' for torture testing.
1085 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1086 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1087 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1088 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1089 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1090 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1091 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1092 * testsuite/libgomp.fortran/task2.f90: Ditto.
1093 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1094 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1095 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1096 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1097 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1098 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1100 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1102 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1103 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1104 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1105 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1106 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1107 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1108 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1109 Use 'stop' not abort().
1110 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1111 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1112 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1113 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1114 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1115 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1116 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1117 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1118 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1119 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1120 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1121 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1122 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1123 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1124 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1125 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1126 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1128 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1130 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1132 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1134 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1136 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1138 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1140 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1142 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1144 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1146 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1148 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1150 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1152 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1154 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1155 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1156 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1157 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1158 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1159 Likewise and also add 'dg-do run'.
1160 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1163 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1164 Tobias Burnus <tobias@codesourcery.com>
1166 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1167 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1168 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1170 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1173 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1176 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1178 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1179 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1181 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1184 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1187 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1190 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1192 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1194 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1197 * target.c (gomp_map_vars_internal): Readd the previous
1198 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1199 though do that just in the !not_found_cnt case.
1201 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1203 * gfortran.dg/gomp/target-simd.f90: New.
1205 2019-10-02 Julian Brown <julian@codesourcery.com>
1206 Cesar Philippidis <cesar@codesourcery.com>
1208 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1209 * target.c (FIELD_TGT_EMPTY): Define.
1210 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1211 as switch instead of list of ifs.
1212 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1214 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1216 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1217 include. Replace alloca () with __builtin_alloca ().
1218 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1220 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1222 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1223 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1224 * oacc-parallel.c: Don't include "libgomp_g.h".
1225 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1226 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1227 * aclocal.m4: Regenerated.
1228 * config.h.in: Regenerated.
1229 * configure: Regenerated.
1230 * Makefile.in: Regenerated.
1232 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1234 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1236 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1238 * configure: Regenerate.
1240 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1242 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1243 string is initialized.
1245 2019-09-06 Florian Weimer <fweimer@redhat.com>
1247 * configure: Regenerate.
1249 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1252 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1253 scanning to conform to the GNU Coding Standards.
1254 * configure: Regenerate.
1256 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1259 * testsuite/libgomp.c/scan-21.c: New test.
1260 * testsuite/libgomp.c/scan-22.c: New test.
1262 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1265 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1267 * testsuite/libgomp.c/scan-12.c: Likewise.
1268 * testsuite/libgomp.c/scan-13.c: Likewise.
1269 * testsuite/libgomp.c/scan-14.c: Likewise.
1270 * testsuite/libgomp.c/scan-15.c: Likewise.
1271 * testsuite/libgomp.c/scan-16.c: Likewise.
1272 * testsuite/libgomp.c/scan-17.c: Likewise.
1273 * testsuite/libgomp.c/scan-18.c: Likewise.
1274 * testsuite/libgomp.c/scan-19.c: Likewise.
1275 * testsuite/libgomp.c/scan-20.c: Likewise.
1276 * testsuite/libgomp.c++/scan-9.C: Likewise.
1277 * testsuite/libgomp.c++/scan-10.C: Likewise.
1278 * testsuite/libgomp.c++/scan-11.C: Likewise.
1279 * testsuite/libgomp.c++/scan-12.C: Likewise.
1280 * testsuite/libgomp.c++/scan-14.C: Likewise.
1281 * testsuite/libgomp.c++/scan-15.C: Likewise.
1282 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1283 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1284 * testsuite/libgomp.c++/scan-16.C: Likewise.
1286 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1289 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1290 -std=legacy so invalid code in the test case is accepted.
1292 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1295 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1298 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1300 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1301 perform the lookup in the first loop only if !not_found_cnt, otherwise
1302 perform lookups for it in the second loop guarded with
1303 if (not_found_cnt || has_firstprivate).
1304 * testsuite/libgomp.c/target-37.c: New test.
1305 * testsuite/libgomp.c++/target-22.C: New test.
1307 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1309 * testsuite/libgomp.c/target-18.c (struct S): New type.
1310 (foo): Use use_device_addr clause instead of use_device_ptr clause
1311 where required by OpenMP 5.0, add further tests for both use_device_ptr
1312 and use_device_addr clauses.
1313 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1314 (foo): Use use_device_addr clause instead of use_device_ptr clause
1315 where required by OpenMP 5.0, add further tests for both use_device_ptr
1316 and use_device_addr clauses. Add t and u arguments.
1317 (main): Adjust caller.
1319 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1321 * testsuite/libgomp.c++/loop-13.C: New test.
1322 * testsuite/libgomp.c++/loop-14.C: New test.
1323 * testsuite/libgomp.c++/loop-15.C: New test.
1325 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1328 * testsuite/libgomp.c++/for-27.C: New test.
1330 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1332 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1333 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1335 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1337 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1339 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1341 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1342 * testsuite/libgomp.c++/scan-16.C: Likewise.
1344 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1346 * testsuite/libgomp.c/scan-19.c: New test.
1347 * testsuite/libgomp.c/scan-20.c: New test.
1349 * testsuite/libgomp.c/scan-11.c: New test.
1350 * testsuite/libgomp.c/scan-12.c: New test.
1351 * testsuite/libgomp.c/scan-13.c: New test.
1352 * testsuite/libgomp.c/scan-14.c: New test.
1353 * testsuite/libgomp.c/scan-15.c: New test.
1354 * testsuite/libgomp.c/scan-16.c: New test.
1355 * testsuite/libgomp.c/scan-17.c: New test.
1356 * testsuite/libgomp.c/scan-18.c: New test.
1357 * testsuite/libgomp.c++/scan-9.C: New test.
1358 * testsuite/libgomp.c++/scan-10.C: New test.
1359 * testsuite/libgomp.c++/scan-11.C: New test.
1360 * testsuite/libgomp.c++/scan-12.C: New test.
1361 * testsuite/libgomp.c++/scan-13.C: New test.
1362 * testsuite/libgomp.c++/scan-14.C: New test.
1363 * testsuite/libgomp.c++/scan-15.C: New test.
1364 * testsuite/libgomp.c++/scan-16.C: New test.
1366 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1368 * testsuite/libgomp.c/scan-9.c: New test.
1369 * testsuite/libgomp.c/scan-10.c: New test.
1371 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1373 * testsuite/libgomp.c++/scan-1.C: New test.
1374 * testsuite/libgomp.c++/scan-2.C: New test.
1375 * testsuite/libgomp.c++/scan-3.C: New test.
1376 * testsuite/libgomp.c++/scan-4.C: New test.
1377 * testsuite/libgomp.c++/scan-5.C: New test.
1378 * testsuite/libgomp.c++/scan-6.C: New test.
1379 * testsuite/libgomp.c++/scan-7.C: New test.
1380 * testsuite/libgomp.c++/scan-8.C: New test.
1381 * testsuite/libgomp.c/scan-1.c: New test.
1382 * testsuite/libgomp.c/scan-2.c: New test.
1383 * testsuite/libgomp.c/scan-3.c: New test.
1384 * testsuite/libgomp.c/scan-4.c: New test.
1385 * testsuite/libgomp.c/scan-5.c: New test.
1386 * testsuite/libgomp.c/scan-6.c: New test.
1387 * testsuite/libgomp.c/scan-7.c: New test.
1388 * testsuite/libgomp.c/scan-8.c: New test.
1390 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1392 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1393 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1396 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1399 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1401 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1404 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1407 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1409 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1410 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1411 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1412 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1415 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1418 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1420 2019-06-16 Tom de Vries <tdevries@suse.de>
1422 PR tree-optimization/89376
1423 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1425 2019-06-15 Tom de Vries <tdevries@suse.de>
1427 PR tree-optimization/89713
1428 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1429 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1431 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1434 * testsuite/libgomp.c/pr90779.c: New test.
1435 * testsuite/libgomp.fortran/pr90779.f90: New test.
1437 2019-06-15 Tom de Vries <tdevries@suse.de>
1439 PR tree-optimization/90009
1440 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1442 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1444 PR tree-optimization/89713
1445 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1447 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1450 * testsuite/libgomp.c/pr90811.c: New test.
1452 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1454 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1455 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1457 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1459 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1460 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1461 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1462 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1464 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1466 * configure.ac: Call AX_COUNT_CPUS.
1467 Substitute CPU_COUNT.
1468 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1470 * aclocal.m4: Regenerate.
1471 * configure: Regenerate.
1472 * Makefile.in, testsuite/Makefile.in: Regenerate.
1474 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1476 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1478 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1479 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1480 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1482 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1484 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1486 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1489 * work.c (gomp_init_work_share): Instead of aligning final ordered
1490 value to multiples of long long alignment, align to that the
1491 first part (ordered team ids) and if inline_ordered_team_ids
1492 is not on a long long alignment boundary within the structure,
1493 use __alignof__ (long long) - 1 pad size always.
1494 * loop.c (GOMP_loop_start): Fix *mem computation if
1495 inline_ordered_team_ids is not aligned on long long alignment boundary
1496 within the structure.
1497 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1498 * sections.c (GOMP_sections2_start): Likewise.
1500 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1502 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1503 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1506 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1507 HAVE_INTTYPES_H is defined.
1508 (print_uint64_t): New typedef.
1509 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1510 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1511 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1512 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1513 before casting to void *.
1514 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1515 * oacc-mem.c: Don't include config.h nor stdint.h.
1516 * target.c: Don't include config.h.
1517 * oacc-cuda.c: Likewise.
1518 * oacc-host.c: Don't include stdint.h.
1520 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1523 * alloc.c (_GNU_SOURCE): Define.
1525 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1527 * acc_prof.h: New file.
1528 * oacc-profiling.c: Likewise.
1529 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1530 Add these, respectively.
1531 * Makefile.in: Regenerate.
1532 * env.c (initialize_env): Call goacc_profiling_initialize.
1533 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1534 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1535 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1536 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1537 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1538 acc_prof_register, acc_prof_unregister, and acc_register_library.
1539 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1540 GOMP_PLUGIN_goacc_thread.
1541 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1542 prof_callbacks_enabled members.
1543 (goacc_prof_enabled, goacc_profiling_initialize)
1544 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1545 (goacc_profiling_dispatch): Declare.
1546 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1547 (GOACC_PROFILING_SETUP_P): Define.
1548 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1549 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1550 OpenACC Profiling Interface.
1551 * oacc-cuda.c (acc_get_current_cuda_device)
1552 (acc_get_current_cuda_context, acc_get_cuda_stream)
1553 (acc_set_cuda_stream): Likewise.
1554 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1555 (acc_init, acc_set_device_type, acc_get_device_type)
1556 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1557 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1558 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1559 (acc_unmap_data, present_create_copy, delete_copyout)
1560 (update_dev_host): Likewise.
1561 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1562 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1564 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1565 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1567 * libgomp.texi: Update.
1568 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1570 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1571 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1573 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1575 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1577 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1580 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1582 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1583 (struct goacc_asyncqueue_list): Likewise.
1584 (goacc_aq): Likewise.
1585 (goacc_aq_list): Likewise.
1586 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1587 (GOMP_OFFLOAD_openacc_async_test): Remove.
1588 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1589 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1590 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1591 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1592 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1593 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1594 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1595 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1596 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1597 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1598 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1599 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1600 (GOMP_OFFLOAD_openacc_async_test): Declare.
1601 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1602 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1603 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1604 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1605 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1607 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1608 (gomp_acc_insert_pointer): Adjust declaration.
1609 (gomp_copy_host2dev): New declaration.
1610 (gomp_copy_dev2host): Likewise.
1611 (gomp_map_vars_async): Likewise.
1612 (gomp_unmap_tgt): Likewise.
1613 (gomp_unmap_vars_async): Likewise.
1614 (gomp_fini_device): Likewise.
1616 * oacc-async.c (get_goacc_thread): New function.
1617 (get_goacc_thread_device): New function.
1618 (lookup_goacc_asyncqueue): New function.
1619 (get_goacc_asyncqueue): New function.
1620 (acc_async_test): Adjust code to use new async design.
1621 (acc_async_test_all): Likewise.
1622 (acc_wait): Likewise.
1623 (acc_wait_async): Likewise.
1624 (acc_wait_all): Likewise.
1625 (acc_wait_all_async): Likewise.
1626 (goacc_async_free): New function.
1627 (goacc_init_asyncqueues): Likewise.
1628 (goacc_fini_asyncqueues): Likewise.
1629 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1631 (acc_set_cuda_stream): Likewise.
1632 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1633 (host_openacc_register_async_cleanup): Remove.
1634 (host_openacc_async_exec): New function.
1635 (host_openacc_async_test): Adjust parameters.
1636 (host_openacc_async_test_all): Remove.
1637 (host_openacc_async_wait): Remove.
1638 (host_openacc_async_wait_async): Remove.
1639 (host_openacc_async_wait_all): Remove.
1640 (host_openacc_async_wait_all_async): Remove.
1641 (host_openacc_async_set_async): Remove.
1642 (host_openacc_async_synchronize): New function.
1643 (host_openacc_async_serialize): New function.
1644 (host_openacc_async_host2dev): New function.
1645 (host_openacc_async_dev2host): New function.
1646 (host_openacc_async_queue_callback): New function.
1647 (host_openacc_async_construct): New function.
1648 (host_openacc_async_destruct): New function.
1649 (struct gomp_device_descr host_dispatch): Remove initialization of old
1650 interface, add initialization of new async sub-struct.
1651 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1652 (goacc_attach_host_thread_to_device): Remove old async code usage.
1653 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1654 (goacc_fini_asyncqueues): Likewise.
1655 (goacc_async_copyout_unmap_vars): Likewise.
1656 (goacc_async_free): Likewise.
1657 (get_goacc_asyncqueue): Likewise.
1658 (lookup_goacc_asyncqueue): Likewise.
1659 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1661 (present_create_copy): Adjust code to use new async design.
1662 (delete_copyout): Likewise.
1663 (update_dev_host): Likewise.
1664 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1666 (gomp_acc_remove_pointer): Adjust code to use new async design.
1667 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1669 (GOACC_enter_exit_data): Likewise.
1670 (goacc_wait): Likewise.
1671 (GOACC_update): Likewise.
1672 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1673 when called, warn as obsolete in comment.
1674 * target.c (goacc_device_copy_async): New function.
1675 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1676 add goacc_device_copy_async case.
1677 (gomp_copy_dev2host): Likewise.
1678 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1679 (gomp_map_pointer): Likewise.
1680 (gomp_map_fields_existing): Likewise.
1681 (gomp_map_vars_internal): New always_inline function, renamed from
1683 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1684 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1685 passing goacc_asyncqueue argument.
1686 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1687 (gomp_unref_tgt): New function.
1688 (gomp_unmap_vars_internal): New always_inline function, renamed from
1690 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1691 (gomp_unmap_vars_async): Implement by calling
1692 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1693 (gomp_fini_device): New function.
1694 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1695 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1696 new async interface.
1697 (gomp_target_fini): Adjust code to call gomp_fini_device.
1699 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1700 (struct ptx_stream): Remove.
1701 (struct nvptx_thread): Remove current_stream field.
1702 (cuda_map_create): Remove.
1703 (cuda_map_destroy): Remove.
1708 (struct goacc_asyncqueue): Define.
1709 (struct nvptx_callback): Define.
1710 (struct ptx_free_block): Define.
1711 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1712 stream_lock, and next fields.
1713 (enum ptx_event_type): Remove.
1714 (struct ptx_event): Remove.
1715 (ptx_event_lock): Remove.
1716 (ptx_events): Remove.
1717 (init_streams_for_device): Remove.
1718 (fini_streams_for_device): Remove.
1719 (select_stream_for_async): Remove.
1720 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1721 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1723 (nvptx_open_device): Add free_blocks initialization, remove
1724 init_streams_for_device call.
1725 (nvptx_close_device): Remove fini_streams_for_device call, add
1726 free_blocks destruct code.
1728 (event_add): Remove.
1729 (nvptx_exec): Adjust parameters and code.
1730 (nvptx_free): Likewise.
1731 (nvptx_host2dev): Remove.
1732 (nvptx_dev2host): Remove.
1733 (nvptx_set_async): Remove.
1734 (nvptx_async_test): Remove.
1735 (nvptx_async_test_all): Remove.
1736 (nvptx_wait): Remove.
1737 (nvptx_wait_async): Remove.
1738 (nvptx_wait_all): Remove.
1739 (nvptx_wait_all_async): Remove.
1740 (nvptx_get_cuda_stream): Remove.
1741 (nvptx_set_cuda_stream): Remove.
1742 (GOMP_OFFLOAD_alloc): Adjust code.
1743 (GOMP_OFFLOAD_free): Likewise.
1744 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1745 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1746 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1747 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1748 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1749 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1750 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1751 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1752 (cuda_free_argmem): New function.
1753 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1754 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1755 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1756 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1757 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1758 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1759 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1760 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1761 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1762 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1763 (cuda_callback_wrapper): New function.
1764 (cuda_memcpy_sanity_check): New function.
1765 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1766 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1767 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1768 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1770 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1773 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1775 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1777 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1779 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1781 * team.c (gomp_team_start): Initialize pool->threads[0].
1783 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1785 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1786 "-foffload=$offload_target".
1787 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1788 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1789 * testsuite/lib/libgomp.exp
1790 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1791 as (conceptually) merged into
1792 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1795 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1796 * testsuite/libgomp-test-support.exp.in: Adjust.
1797 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1798 openacc_device_types_s.
1799 (offload_target_to_openacc_device_type): New proc.
1800 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1801 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1802 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1803 * Makefile.in: Regenerate.
1804 * configure: Likewise.
1805 * testsuite/Makefile.in: Likewise.
1807 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1808 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1809 instead of OFFLOAD_TARGETS.
1810 * target.c (gomp_target_init): Adjust.
1811 * testsuite/libgomp-test-support.exp.in: Likewise.
1812 * testsuite/lib/libgomp.exp: Likewise. Populate
1813 openacc_device_types_s instead of offload_targets_s_openacc.
1814 (check_effective_target_openacc_nvidia_accel_selected)
1815 (check_effective_target_openacc_host_selected): Adjust.
1816 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1817 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1818 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1819 * Makefile.in: Regenerate.
1820 * config.h.in: Likewise.
1821 * configure: Likewise.
1822 * testsuite/Makefile.in: Likewise.
1824 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1825 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1826 "offloading: supported, but hardware not accessible".
1827 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1828 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1830 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1833 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1835 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1836 and related adjustment.
1838 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1841 * testsuite/libgomp.c++/pr88988.C: New test.
1843 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1846 * testsuite/libgomp.c/pr89002.c: New test.
1848 2019-01-28 Richard Biener <rguenther@suse.de>
1851 PR tree-optimization/86865
1852 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1854 2019-01-24 Tom de Vries <tdevries@suse.de>
1856 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1857 once instantiated_devices drops to 0.
1859 2019-01-23 Tom de Vries <tdevries@suse.de>
1862 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1864 (nvptx_exec): Don't call map_push if mapnum == 0.
1865 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1867 2019-01-23 Tom de Vries <tdevries@suse.de>
1871 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1872 (map_fini): Remove "assert (!s->map->active)".
1873 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1875 2019-01-23 Tom de Vries <tdevries@suse.de>
1878 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1879 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1881 2019-01-15 Tom de Vries <tdevries@suse.de>
1884 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1887 2019-01-12 Tom de Vries <tdevries@suse.de>
1889 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1890 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1891 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1892 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1894 2019-01-12 Tom de Vries <tdevries@suse.de>
1896 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1898 2019-01-12 Tom de Vries <tdevries@suse.de>
1900 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1901 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1902 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1904 2019-01-12 Tom de Vries <tdevries@suse.de>
1907 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1908 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1910 2019-01-12 Tom de Vries <tdevries@suse.de>
1913 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1914 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1916 2019-01-12 Tom de Vries <tdevries@suse.de>
1918 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1919 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1920 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1922 2019-01-12 Tom de Vries <tdevries@suse.de>
1924 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1925 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1926 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1928 2019-01-12 Tom de Vries <tdevries@suse.de>
1930 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1931 resources diagnostic.
1933 2019-01-12 Tom de Vries <tdevries@suse.de>
1935 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1936 vector length to be 128.
1937 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1938 length 2097152 to be reduced to 1024 instead of 32.
1940 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1941 James Norris <jnorris@codesourcery.com>
1943 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1944 Library Routines", and "Environment Variables".
1946 2019-01-11 Tom de Vries <tdevries@suse.de>
1948 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1951 2019-01-11 Tom de Vries <tdevries@suse.de>
1953 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1955 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1956 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1957 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1958 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1960 2019-01-11 Tom de Vries <tdevries@suse.de>
1962 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1965 2019-01-10 Nathan Sidwell <nathan@acm.org>
1966 Julian Brown <julian@codesourcery.com>
1969 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1970 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1972 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1974 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1977 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1979 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1980 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1983 2019-01-09 Tom de Vries <tdevries@suse.de>
1986 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1987 #define instead of "const int".
1988 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1989 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1990 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1991 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1993 2019-01-09 Tom de Vries <tdevries@suse.de>
1995 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1998 2019-01-07 Tom de Vries <tdevries@suse.de>
2000 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2001 GOMP_OPENACC_DIM argument.
2003 2019-01-03 Tom de Vries <tdevries@suse.de>
2005 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2006 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2008 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2010 Update copyright years.
2012 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2014 * libgomp.texi: Bump @copying's copyright year.
2016 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2018 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2019 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2020 (GOACC_declare): Redefine the "device" argument to "flags".
2022 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2023 Cesar Philippidis <cesar@codesourcery.com>
2025 * target.c (struct gomp_coalesce_chunk): New structure.
2026 (struct gomp_coalesce_buf): Update the chunks member to use that
2027 type. Adjust all users.
2029 2018-12-19 Tom de Vries <tdevries@suse.de>
2031 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2032 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2033 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2035 2018-12-19 Tom de Vries <tdevries@suse.de>
2037 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2038 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2039 gcc/testsuite/gcc.dg/goacc.
2040 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2042 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2043 Chung-Lin Tang <cltang@codesourcery.com>
2045 * oacc-mem.c (acc_present_or_create): Remove definition and change
2046 to alias of acc_create.
2047 (acc_present_or_copyin): Remove definition and change to alias of
2049 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2050 of acc_present_or_create.
2051 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2052 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2053 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2054 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2055 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2056 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2057 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2058 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2059 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2060 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2061 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2062 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2063 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2064 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2065 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2066 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2068 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2071 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2072 "identical parameters".
2073 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2074 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2077 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2078 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2081 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2082 (nvptx_wait_async): Unseen async-argument is a no-op.
2083 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2084 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2085 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2086 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2087 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2088 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2089 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2090 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2091 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2093 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2094 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2096 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2098 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2099 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2100 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2102 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2105 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2106 (acc_set_cuda_stream): Clarify.
2107 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2109 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2111 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2112 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2113 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2114 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2116 2018-12-14 Tom de Vries <tdevries@suse.de>
2118 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2119 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2120 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2121 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2122 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2124 2018-12-13 Tom de Vries <tdevries@suse.de>
2126 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2127 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2128 * fortran.c (omp_display_affinity_): ... here.
2129 * libgomp.h (gomp_print_string): Declare.
2130 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2131 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2134 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2137 * testsuite/libgomp.c++/for-24.C (results): Include it in
2138 omp declare target region.
2139 (main): Use map (always, tofrom: results) instead of
2140 map (tofrom: results).
2142 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2145 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2146 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2148 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2150 2018-12-12 Andreas Schwab <schwab@suse.de>
2152 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2155 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2158 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2160 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2161 Jakub Jelinek <jakub@redhat.com>
2163 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2164 devicep->host2dev_func.
2166 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2169 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2170 tls_runtime effective target.
2171 (t): New threadprivate variable.
2172 (main): Set t in threads which execute iterations of the worksharing
2173 loop. Propagate that to the task after the loop and don't abort
2174 if the current taskgroup hasn't been cancelled.
2176 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2178 * testsuite/libgomp.c/task-reduction-3.c: New test.
2180 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2182 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2185 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2186 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2188 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2190 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2192 2018-10-19 Richard Biener <rguenther@suse.de>
2194 PR tree-optimization/88182
2195 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2197 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2199 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2200 (RUNTEST): Don't define.
2201 (RUNTESTDEFAULTFLAGS): Add.
2202 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2203 (distclean-am): Depend on distclean-DEJAGNU.
2204 (check-am): If -j% option is present in MFLAGS and if
2205 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2206 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2207 * testsuite/Makefile.in: Regenerated.
2209 2018-11-26 Richard Biener <rguenther@suse.de>
2211 PR tree-optimization/88182
2212 * testsuite/libgomp.c++/pr88182.C: New testcase.
2214 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2217 * config/mingw32/affinity-fmt.c: New file.
2219 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2221 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2222 (gomp_display_affinity): Use __builtin_choose_expr to handle
2223 properly handle argument having integral, or pointer or some other
2224 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2225 with uint64_t type instead of %llx and unsigned long long.
2227 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2228 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2230 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2232 * affinity.c: Include <string.h>, <stdio.h>.
2233 (gomp_display_affinity_place): Remove cpusetp.
2234 * teams.c: Include <limits.h>.
2236 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2238 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2239 in_reduction clause for s[0].
2241 * affinity.c (gomp_display_affinity_place): New function.
2242 * affinity-fmt.c: New file.
2243 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2244 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2245 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2246 Move these functions to ...
2247 * config/nvptx/teams.c: ... here. New file.
2248 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2250 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2252 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2253 and _aligned_malloc.
2254 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2255 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2256 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2257 gomp_affinity_format_len): New variables.
2258 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2259 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2260 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2261 modifiers. Display (non-default) chunk sizes. Print
2262 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2263 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2264 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2265 * fortran.c: Include stdio.h and string.h.
2266 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2267 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2268 (omp_set_affinity_format_, omp_get_affinity_format_,
2269 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2270 omp_pause_resource_all_): New functions.
2271 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2273 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2275 * teams.c: ... here. New file.
2276 * libgomp_g.h: Include gstdint.h.
2277 (GOMP_loop_nonmonotonic_runtime_start,
2278 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2279 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2280 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2281 GOMP_parallel_loop_nonmonotonic_runtime,
2282 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2283 GOMP_loop_ull_nonmonotonic_runtime_start,
2284 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2285 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2286 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2287 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2288 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2289 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2290 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2291 GOMP_teams_reg): Declare.
2292 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2293 gomp_aligned_alloc uses fallback implementation.
2294 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2295 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2296 (struct gomp_doacross_work_share): Add extra field.
2297 (struct gomp_work_share): Add task_reductions field.
2298 (struct gomp_taskgroup): Add workshare and reductions fields.
2299 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2300 (gomp_thread_handle): New typedef.
2301 (gomp_display_affinity_place, gomp_set_affinity_format,
2302 gomp_display_string, gomp_display_affinity,
2303 gomp_display_affinity_thread): Declare.
2304 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2305 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2306 gomp_workshare_task_reduction_register): Declare.
2307 (gomp_team_start): Add taskgroup argument.
2308 (gomp_pause_host): Declare.
2309 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2311 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2312 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2313 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2314 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2315 GOMP_loop_ull_doacross_start,
2316 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2317 GOMP_loop_maybe_nonmonotonic_runtime_next,
2318 GOMP_loop_maybe_nonmonotonic_runtime_start,
2319 GOMP_loop_nonmonotonic_runtime_next,
2320 GOMP_loop_nonmonotonic_runtime_start,
2321 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2322 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2323 GOMP_loop_ull_nonmonotonic_runtime_next,
2324 GOMP_loop_ull_nonmonotonic_runtime_start,
2325 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2326 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2327 GOMP_taskgroup_reduction_register,
2328 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2329 GOMP_teams_reg and GOMP_taskwait_depend.
2330 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2331 omp_{capture,display}_affinity{,_}, and
2332 omp_[gs]et_affinity_format{,_}.
2333 * loop.c: Include string.h.
2334 (GOMP_loop_runtime_next): Add ialias.
2335 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2336 (gomp_loop_static_start, gomp_loop_dynamic_start,
2337 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2338 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2339 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2340 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2341 or gomp_doacross_init callers.
2342 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2343 GOMP_loop_doacross_start): New functions.
2344 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2345 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2346 Mask off GFS_MONOTONIC bit.
2347 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2348 GOMP_loop_maybe_nonmonotonic_runtime_start,
2349 GOMP_loop_nonmonotonic_runtime_next,
2350 GOMP_loop_nonmonotonic_runtime_start,
2351 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2352 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2354 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2356 * loop_ull.c: Include string.h.
2357 (GOMP_loop_ull_runtime_next): Add ialias.
2358 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2359 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2360 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2361 gomp_loop_ull_ordered_dynamic_start,
2362 gomp_loop_ull_ordered_guided_start,
2363 gomp_loop_ull_doacross_static_start,
2364 gomp_loop_ull_doacross_dynamic_start,
2365 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2366 and gomp_doacross_ull_init callers.
2367 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2368 GOMP_loop_ull_doacross_start): New functions.
2369 (GOMP_loop_ull_runtime_start,
2370 GOMP_loop_ull_ordered_runtime_start,
2371 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2372 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2373 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2374 GOMP_loop_ull_nonmonotonic_runtime_next,
2375 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2376 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2377 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2378 (omp_pause_resource_t, omp_depend_t): New typedefs.
2379 (enum omp_lock_hint_t): Renamed to ...
2380 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2381 enumerators using numbers and omp_lock_hint_* as their aliases.
2382 (omp_lock_hint_t): New typedef. Rename to ...
2383 (omp_sync_hint_t): ... this.
2384 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2385 omp_sync_hint_t instead of omp_lock_hint_t.
2386 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2387 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2389 (omp_target_is_present, omp_target_disassociate_ptr):
2390 Change first argument from void * to const void *.
2391 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2392 from void * to const void *.
2393 (omp_target_associate_ptr): Change first and second arguments from
2394 void * to const void *.
2395 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2396 omp_pause_hard): New parameters.
2397 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2398 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2400 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2401 omp_pause_hard): New parameters.
2402 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2403 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2405 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2406 EXTRA argument. If not needed to prepare array, if extra is 0,
2407 clear ws->doacross, otherwise allocate just doacross structure and
2408 extra payload. If array is needed, allocate also extra payload.
2409 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2410 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2412 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2414 (GOMP_parallel): Likewise. Formatting fix.
2415 (GOMP_parallel_reductions): New function.
2416 (GOMP_cancellation_point): If taskgroup has workshare
2417 flag set, check cancelled of prev taskgroup if any.
2418 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2419 on prev taskgroup if any.
2420 * sections.c: Include string.h.
2421 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2422 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2423 (GOMP_sections2_start): New function.
2424 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2425 Pass NULL as taskgroup to gomp_team_start.
2426 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2427 gomp_work_share_start callers.
2428 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2429 If taskgroup has workshare flag set, check cancelled on prev
2430 taskgroup if any. Guard all cancellation tests with
2431 gomp_cancel_var test.
2432 (omp_target_is_present, omp_target_disassociate_ptr):
2433 Change ptr argument from void * to const void *.
2434 (omp_target_memcpy): Change src argument from void * to const void *.
2435 (omp_target_memcpy_rect): Likewise.
2436 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2437 instead of char * where needed.
2438 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2439 from void * to const void *.
2440 (omp_pause_resource, omp_pause_resource_all): New functions.
2441 * task.c (gomp_task_handle_depend): Handle new depend array format
2442 in addition to the old. Handle mutexinoutset kinds the same as
2443 inout for now, handle unspecified kinds.
2444 (gomp_create_target_task): If taskgroup has workshare flag set, check
2445 cancelled on prev taskgroup if any. Guard all cancellation tests with
2446 gomp_cancel_var test. Handle new depend array format count in
2447 addition to the old.
2448 (GOMP_task): Likewise. Adjust function comment.
2449 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2450 cancelled on prev taskgroup if any. Guard all cancellation tests with
2451 gomp_cancel_var test.
2452 (GOMP_taskwait_depend): New function.
2453 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2454 format in addition to the old. Handle mutexinoutset kinds the same as
2455 inout for now, handle unspecified kinds. Fix a function comment typo.
2456 (gomp_taskgroup_init): New function.
2457 (GOMP_taskgroup_start): Use it.
2458 (gomp_reduction_register, gomp_create_artificial_team,
2459 GOMP_taskgroup_reduction_register,
2460 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2461 gomp_parallel_reduction_register,
2462 gomp_workshare_task_reduction_register,
2463 gomp_workshare_taskgroup_start,
2464 GOMP_workshare_task_reduction_unregister): New functions.
2465 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2466 check cancelled on prev taskgroup if any. Guard all cancellation
2467 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2468 by calling GOMP_taskgroup_reduction_register.
2469 * team.c (gomp_thread_attr): Remove comment.
2470 (struct gomp_thread_start_data): Add handle field.
2471 (gomp_thread_start): Call pthread_detach.
2472 (gomp_new_team): Adjust gomp_init_work_share caller.
2473 (gomp_free_pool_helper): Call pthread_detach.
2474 (gomp_team_start): Add taskgroup argument, initialize implicit
2475 tasks' taskgroup field to that. Don't call
2476 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2477 (gomp_team_end): Determine nesting by thr->ts.level != 0
2478 rather than thr->ts.team != NULL.
2479 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2480 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2481 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2482 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2483 if more than 1 allocate also extra payload at the end of array. Never
2484 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2485 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2486 return true instead of ws.
2487 * Makefile.in: Regenerated.
2488 * configure: Regenerated.
2489 * config.h.in: Regenerated.
2490 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2492 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2493 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2494 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2495 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2496 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2497 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2498 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2499 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2500 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2501 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2502 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2503 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2504 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2505 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2506 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2507 define a different N(test), don't define N(f0) to N(f14), but instead
2508 define N(f20) to N(f34) using != comparisons.
2509 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2510 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2511 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2512 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2513 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2514 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2515 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2516 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2517 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2518 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2519 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2520 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2521 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2522 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2523 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2524 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2525 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2526 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2527 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2528 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2529 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2530 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2531 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2532 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2533 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2534 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2535 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2536 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2537 * testsuite/libgomp.c++/depend-1.C: New test.
2538 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2539 * testsuite/libgomp.c++/depobj-1.C: New test.
2540 * testsuite/libgomp.c++/for-16.C: New test.
2541 * testsuite/libgomp.c++/for-21.C: New test.
2542 * testsuite/libgomp.c++/for-22.C: New test.
2543 * testsuite/libgomp.c++/for-23.C: New test.
2544 * testsuite/libgomp.c++/for-24.C: New test.
2545 * testsuite/libgomp.c++/for-25.C: New test.
2546 * testsuite/libgomp.c++/for-26.C: New test.
2547 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2548 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2549 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2550 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2551 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2552 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2553 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2554 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2555 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2556 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2557 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2558 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2559 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2560 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2561 * testsuite/libgomp.c/task-reduction-1.c: New test.
2562 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2563 * testsuite/libgomp.c/task-reduction-2.c: New test.
2564 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2565 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2566 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2567 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2568 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2569 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2570 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2571 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2572 * testsuite/libgomp.c/teams-1.c: New test.
2573 * testsuite/libgomp.c/teams-2.c: New test.
2574 * testsuite/libgomp.c/thread-limit-4.c: New test.
2575 * testsuite/libgomp.c/thread-limit-5.c: New test.
2576 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2578 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2580 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2581 acc_memcpy_to/from_device functions, now with async parameter.
2582 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2583 (acc_memcpy_from_device): Likewise.
2584 (acc_memcpy_to_device_async): New API function.
2585 (acc_memcpy_from_device_async): Likewise.
2586 (present_create_copy): Add async parameter and async setting/unsetting.
2587 (acc_create): Adjust present_create_copy call.
2588 (acc_copyin): Likewise.
2589 (acc_present_or_create): Likewise.
2590 (acc_present_or_copyin): Likewise.
2591 (acc_create_async): New API function.
2592 (acc_copyin_async): New API function.
2593 (delete_copyout): Add async parameter and async setting/unsetting.
2594 (acc_delete): Adjust delete_copyout call.
2595 (acc_copyout): Likewise.
2596 (acc_delete_async): New API function.
2597 (acc_copyout_async): Likewise.
2598 (update_dev_host): Add async parameter and async setting/unsetting.
2599 (acc_update_device): Adjust update_dev_host call.
2600 (acc_update_self): Likewise.
2601 (acc_update_device_async): New API function.
2602 (acc_update_self_async): Likewise.
2603 * openacc.h (acc_copyin_async): Declare new API function.
2604 (acc_create_async): Likewise.
2605 (acc_copyout_async): Likewise.
2606 (acc_delete_async): Likewise.
2607 (acc_update_device_async): Likewise.
2608 (acc_update_self_async): Likewise.
2609 (acc_memcpy_to_device_async): Likewise.
2610 (acc_memcpy_from_device_async): Likewise.
2611 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2612 (acc_copyin_async_64_h): New subroutine.
2613 (acc_copyin_async_array_h): New subroutine.
2614 (acc_create_async_32_h): New subroutine.
2615 (acc_create_async_64_h): New subroutine.
2616 (acc_create_async_array_h): New subroutine.
2617 (acc_copyout_async_32_h): New subroutine.
2618 (acc_copyout_async_64_h): New subroutine.
2619 (acc_copyout_async_array_h): New subroutine.
2620 (acc_delete_async_32_h): New subroutine.
2621 (acc_delete_async_64_h): New subroutine.
2622 (acc_delete_async_array_h): New subroutine.
2623 (acc_update_device_async_32_h): New subroutine.
2624 (acc_update_device_async_64_h): New subroutine.
2625 (acc_update_device_async_array_h): New subroutine.
2626 (acc_update_self_async_32_h): New subroutine.
2627 (acc_update_self_async_64_h): New subroutine.
2628 (acc_update_self_async_array_h): New subroutine.
2629 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2630 (acc_copyin_async_64_h): New subroutine.
2631 (acc_copyin_async_array_h): New subroutine.
2632 (acc_create_async_32_h): New subroutine.
2633 (acc_create_async_64_h): New subroutine.
2634 (acc_create_async_array_h): New subroutine.
2635 (acc_copyout_async_32_h): New subroutine.
2636 (acc_copyout_async_64_h): New subroutine.
2637 (acc_copyout_async_array_h): New subroutine.
2638 (acc_delete_async_32_h): New subroutine.
2639 (acc_delete_async_64_h): New subroutine.
2640 (acc_delete_async_array_h): New subroutine.
2641 (acc_update_device_async_32_h): New subroutine.
2642 (acc_update_device_async_64_h): New subroutine.
2643 (acc_update_device_async_array_h): New subroutine.
2644 (acc_update_self_async_32_h): New subroutine.
2645 (acc_update_self_async_64_h): New subroutine.
2646 (acc_update_self_async_array_h): New subroutine.
2647 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2648 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2649 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2650 acc_memcpy_to_device_async*, acc_update_device_async*, and
2651 acc_update_self_async* entries.
2652 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2653 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2654 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2656 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2659 * Makefile.am: Include multilib.am
2660 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2661 (CLEANFILES): Remove libgomp.info.
2662 * configure.ac: Remove AC_PREREQ.
2663 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2664 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2667 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2668 Julian Brown <julian@codesourcery.com>
2670 * testsuite/libgomp.oacc-c++/this.C: New.
2672 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2674 * plugin/plugin-nvptx.c (struct cuda_map): New.
2675 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2676 h_tail with (cuda_map *) map.
2677 (cuda_map_create): New function.
2678 (cuda_map_destroy): New function.
2679 (map_init): Update to use a linked list of cuda_map objects.
2680 (map_fini): Likewise.
2681 (map_pop): Likewise.
2682 (map_push): Likewise. Return CUdeviceptr instead of void.
2683 (init_streams_for_device): Remove stales references to ptx_stream
2685 (select_stream_for_async): Likewise.
2686 (nvptx_exec): Update call to map_init.
2688 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2689 Julian Brown <julian@codesourcery.com>
2692 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2694 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2695 Thomas Koenig <tkoenig@gcc.gnu.org>
2698 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2699 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2700 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2701 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2702 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2703 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2704 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2706 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2707 Tom de Vries <tdevries@suse.de>
2710 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2711 (cuOccupancyMaxPotentialBlockSize): Declare.
2712 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2713 CUDA_ONE_CALL_MAYBE_NULL.
2714 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2715 CUoccupancyB2DSize and declare
2716 cuOccupancyMaxPotentialBlockSize.
2717 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2718 default num_gangs and num_workers when the driver supports it.
2720 2018-08-08 Tom de Vries <tdevries@suse.de>
2722 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2723 CUDA_ONE_CALL_MAYBE_NULL.
2724 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2725 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2726 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2729 2018-08-08 Tom de Vries <tdevries@suse.de>
2731 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2732 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2735 2018-08-08 Tom de Vries <tdevries@suse.de>
2737 * plugin/plugin-nvptx.c
2738 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2739 (nvptx_open_device): Use
2740 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2742 2018-08-08 Tom de Vries <tdevries@suse.de>
2744 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2745 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2747 2018-08-07 Tom de Vries <tdevries@suse.de>
2749 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2750 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2751 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2752 corresponding call in CUDA_ONE_CALL. Add def/undef of
2753 CUDA_ONE_CALL_MAYBE_NULL.
2754 (CUDA_CALL_EXISTS): Define.
2756 2018-08-07 Tom de Vries <tdevries@suse.de>
2758 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2759 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2760 corresponding undefs right after.
2762 2018-08-04 Tom de Vries <tdevries@suse.de>
2764 * plugin/configfrag.ac: For --without-cuda-driver, set
2765 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2766 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2767 * configure: Regenerate.
2769 2018-08-02 Tom de Vries <tdevries@suse.de>
2772 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2773 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2774 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2776 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2777 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2778 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2780 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2781 Thomas Schwinge <thomas@codesourcery.com>
2783 * config/nvptx/oacc-parallel.c: Truncate.
2785 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2786 James Norris <jnorris@codesourcery.com>
2788 * plugin/plugin-nvptx.c (struct map): Removed.
2789 (map_init, map_pop): Remove use of struct map.
2790 (map_push): Likewise and change argument list.
2791 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2793 2018-08-01 Tom de Vries <tdevries@suse.de>
2795 * plugin/cuda-lib.def: New file. Factor out of ...
2796 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2797 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2800 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2802 Revert 'AsyncI/O patch committed'.
2803 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2804 Thomas Koenig <tkoenig@gcc.gnu.org>
2807 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2808 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2809 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2810 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2811 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2812 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2813 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2815 2018-07-30 Tom de Vries <tdevries@suse.de>
2817 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2818 (nvptx_exec): Ensure worker and vector default dims don't exceed
2819 targ_fn->max_threads_per_block.
2821 2018-07-30 Tom de Vries <tdevries@suse.de>
2823 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2824 (nvptx_open_device): Init default_dims for device.
2825 (nvptx_exec): Use default_dims from device.
2827 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2830 * testsuite/libgomp.c++/for-15.C (results): Include it in
2831 omp declare target region.
2832 (main): Use map (always, tofrom: results) instead of
2833 map (tofrom: results).
2836 * testsuite/libgomp.c/pr86660.c: New test.
2838 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2839 Tom de Vries <tdevries@suse.de>
2841 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2842 sufficient resources to launch a kernel, and give a hint on how to fix
2845 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2846 Tom de Vries <tdevries@suse.de>
2848 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2849 max_threads_per_block and max_threads_per_multiprocessor fields.
2850 (nvptx_open_device): Initialize new fields.
2851 (nvptx_exec): Use num_sms, and new fields.
2853 2018-07-26 Tom de Vries <tdevries@suse.de>
2855 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2856 to correct locations. Remove xfail.
2858 2018-07-26 Tom de Vries <tdevries@suse.de>
2860 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2861 acc_wait. Move acc_async_test calls to correct locations. Remove
2864 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2865 Thomas Koenig <tkoenig@gcc.gnu.org>
2868 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2869 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2870 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2871 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2872 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2873 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2874 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2876 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2879 * testsuite/libgomp.c++/pr86542.C: New test.
2882 * testsuite/libgomp.c++/pr86539.C: New test.
2884 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2887 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2888 (results): Make sure the variable is not inside declare target region.
2889 (qux): Remove unused function.
2891 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2894 * testsuite/libgomp.c++/for-15.C: New test.
2896 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2899 * testsuite/libgomp.c++/pr86291.C: New test.
2901 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2903 * libgomp.texi (Top): Move www.openmp.org to https.
2904 (Enabling OpenMP): Ditto.
2905 (omp_get_active_level): Ditto.
2906 (omp_get_ancestor_thread_num): Ditto.
2907 (omp_get_cancellation): Ditto.
2908 (omp_get_default_device): Ditto.
2909 (omp_get_dynamic): Ditto.
2910 (omp_get_level): Ditto.
2911 (omp_get_max_active_levels): Ditto.
2912 (omp_get_max_task_priority): Ditto.
2913 (omp_get_max_threads): Ditto.
2914 (omp_get_nested): Ditto.
2915 (omp_get_num_devices): Ditto.
2916 (omp_get_num_procs): Ditto.
2917 (omp_get_num_teams): Ditto.
2918 (omp_get_num_threads): Ditto.
2919 (omp_get_proc_bind): Ditto.
2920 (omp_get_schedule): Ditto.
2921 (omp_get_team_num): Ditto.
2922 (omp_get_team_size): Ditto.
2923 (omp_get_thread_limit): Ditto.
2924 (omp_get_thread_num): Ditto.
2925 (omp_in_parallel): Ditto.
2926 (omp_in_final): Ditto.
2927 (omp_is_initial_device): Ditto.
2928 (omp_set_default_device): Ditto.
2929 (omp_set_dynamic): Ditto.
2930 (omp_set_max_active_levels): Ditto.
2931 (omp_set_nested): Ditto.
2932 (omp_set_num_threads): Ditto.
2933 (omp_set_schedule): Ditto.
2934 (omp_init_lock): Ditto.
2935 (omp_set_lock): Ditto.
2936 (omp_test_lock): Ditto.
2937 (omp_unset_lock): Ditto.
2938 (omp_destroy_lock): Ditto.
2939 (omp_init_nest_lock): Ditto.
2940 (omp_set_nest_lock): Ditto.
2941 (omp_test_nest_lock): Ditto.
2942 (omp_unset_nest_lock): Ditto.
2943 (omp_destroy_nest_lock): Ditto.
2944 (omp_get_wtick): Ditto.
2945 (omp_get_wtime): Ditto.
2946 (OMP_CANCELLATION): Ditto.
2947 (OMP_DISPLAY_ENV): Ditto.
2948 (OMP_DEFAULT_DEVICE): Ditto.
2949 (OMP_DYNAMIC): Ditto.
2950 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2951 (OMP_MAX_TASK_PRIORITY): Ditto.
2952 (OMP_NESTED): Ditto.
2953 (OMP_NUM_THREADS): Ditto.
2954 (OMP_PROC_BIND): Ditto.
2955 (OMP_PLACES): Ditto.
2956 (OMP_STACKSIZE): Ditto.
2957 (OMP_SCHEDULE): Ditto.
2958 (OMP_THREAD_LIMIT): Ditto.
2959 (OMP_WAIT_POLICY): Ditto.
2961 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2962 James Norris <jnorris@codesourcery.com>
2963 Julian Brown <julian@codesourcery.com>
2964 Thomas Schwinge <thomas@codesourcery.com>
2965 Tom de Vries <tom@codesourcery.com>
2967 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2968 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2969 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2970 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2971 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2972 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2973 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2974 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2975 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2976 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2978 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2980 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2982 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2984 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2986 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2988 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2990 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2992 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2994 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2996 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2998 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3000 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3002 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3004 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3006 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3008 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3010 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3012 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3014 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3016 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3018 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3020 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3022 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3024 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3026 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3028 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3030 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3031 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3032 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3033 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3034 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3035 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3036 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3037 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3038 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3040 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3042 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3043 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3044 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3046 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3047 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3048 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3050 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3052 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3054 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3056 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3058 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3060 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3062 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3064 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3066 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3068 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3070 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3072 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3074 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3076 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3078 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3079 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3080 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3081 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3082 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3083 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3084 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3086 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3087 Thomas Schwinge <thomas@codesourcery.com>
3088 Cesar Philippidis <cesar@codesourcery.com>
3090 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3091 (gomp_acc_remove_pointer): Update declaration.
3092 (gomp_acc_declare_allocate): Declare.
3093 (gomp_remove_var): Declare.
3094 * libgomp.map (OACC_2.5): Define.
3095 * oacc-mem.c (acc_map_data): Update refcount.
3096 (acc_unmap_data): Likewise.
3097 (present_create_copy): Likewise.
3098 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3099 (acc_copyin): Likewise.
3100 (FLAG_FINALIZE): Define.
3101 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3102 (acc_delete_finalize): New function.
3103 (acc_delete_finalize_async): New function.
3104 (acc_copyout_finalize): New function.
3105 (acc_copyout_finalize_async): New function.
3106 (gomp_acc_insert_pointer): Update refcounts.
3107 (gomp_acc_remove_pointer): Return if data is not present on the
3109 * oacc-parallel.c (find_pset): Rename to find_pointer.
3110 (find_pointer): Add support for GOMP_MAP_POINTER.
3111 (handle_ftn_pointers): New function.
3112 (GOACC_parallel_keyed): Update refcounts of variables.
3113 (GOACC_enter_exit_data): Add support for finalized data mappings.
3114 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3116 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3117 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3118 for GOMP_MAP_FORCE_FROM.
3119 * openacc.f90 (module openacc_internal): Add
3120 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3121 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3122 acc_copyout_finalize and acc_delete_finalize.
3123 (acc_copyout_finalize_32_h): New subroutine.
3124 (acc_copyout_finalize_64_h): New subroutine.
3125 (acc_copyout_finalize_array_h): New subroutine.
3126 (acc_delete_finalize_32_h): New subroutine.
3127 (acc_delete_finalize_64_h): New subroutine.
3128 (acc_delete_finalize_array_h): New subroutine.
3129 * openacc.h (acc_copyout_finalize): Declare.
3130 (acc_copyout_finalize_async): Declare.
3131 (acc_delete_finalize): Declare.
3132 (acc_delete_finalize_async): Declare.
3133 * openacc_lib.h (acc_copyout_finalize): New interface.
3134 (acc_delete_finalize): New interface.
3135 * target.c (gomp_map_vars): Update dynamic_refcount.
3136 (gomp_remove_var): New function.
3137 (gomp_unmap_vars): Use it.
3138 (gomp_unload_image_from_device): Likewise.
3139 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3140 case to utilize OpenACC 2.5 data clause semantics.
3141 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3143 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3146 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3147 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3148 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3149 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3150 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3151 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3152 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3153 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3154 utilize OpenACC 2.5 data clause semantics.
3155 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3156 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3157 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3158 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3159 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3160 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3161 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3162 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3163 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3165 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3169 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3170 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3171 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3172 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3173 * testsuite/libgomp.fortran/task2.f90: Ditto.
3174 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3175 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3176 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3177 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3178 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3179 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3180 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3181 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3182 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3184 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3187 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3189 2018-05-09 Tom de Vries <tom@codesourcery.com>
3192 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3193 to GOACC_enter_exit_data.
3195 2018-05-09 Tom de Vries <tom@codesourcery.com>
3198 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3199 (async_synchronous_p): New function.
3200 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3202 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3203 async_valid_stream_id_p.
3204 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3205 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3207 2018-05-07 Tom de Vries <tom@codesourcery.com>
3210 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3211 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3213 2018-05-03 Tom de Vries <tom@codesourcery.com>
3216 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3217 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3218 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3219 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3221 2018-05-02 Tom de Vries <tom@codesourcery.com>
3224 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3225 GOMP_OPENACC_DIM ...
3226 * env.c (parse_gomp_openacc_dim): ... here. New function.
3227 (initialize_env): Call parse_gomp_openacc_dim.
3228 (goacc_default_dims): Define.
3229 * libgomp.h (goacc_default_dims): Declare.
3230 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3231 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3232 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3233 GOMP_PLUGIN_acc_default_dim.
3234 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3235 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3237 2018-05-02 Tom de Vries <tom@codesourcery.com>
3240 * testsuite/libgomp.c++/udr-9.C: Update.
3241 * testsuite/libgomp.c++/atomic-16.C: Remove.
3242 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3243 * testsuite/libgomp.c++/loop-13.C: Remove.
3244 * testsuite/libgomp.c++/loop-14.C: Remove.
3245 * testsuite/libgomp.c++/loop-15.C: Remove.
3246 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3247 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3248 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3249 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3250 * testsuite/libgomp.c++/ordered-1.C: Remove.
3251 * testsuite/libgomp.c++/pr45784.C: Remove.
3252 * testsuite/libgomp.c++/pr64824.C: Remove.
3253 * testsuite/libgomp.c++/pr64868.C: Remove.
3254 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3255 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3256 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3257 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3258 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3259 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3260 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3261 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3262 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3263 * testsuite/libgomp.c++/pr69389.C: Remove.
3264 * testsuite/libgomp.c++/simd10.C: Remove.
3265 * testsuite/libgomp.c++/simd11.C: Remove.
3266 * testsuite/libgomp.c++/simd12.C: Remove.
3267 * testsuite/libgomp.c++/simd13.C: Remove.
3268 * testsuite/libgomp.c++/target-1.C: Remove.
3269 * testsuite/libgomp.c++/target-3.C: Remove.
3270 * testsuite/libgomp.c++/target-4.C: Remove.
3271 * testsuite/libgomp.c++/target-5.C: Remove.
3272 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3273 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3274 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3275 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3276 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3277 * testsuite/libgomp.c++/udr-9.C: Remove.
3278 * testsuite/libgomp.c++/for-10.C: Remove.
3279 * testsuite/libgomp.c++/for-11.C: Remove.
3280 * testsuite/libgomp.c++/for-12.C: Remove.
3281 * testsuite/libgomp.c++/for-13.C: Remove.
3282 * testsuite/libgomp.c++/for-14.C: Remove.
3283 * testsuite/libgomp.c++/for-9.C: Remove.
3284 * testsuite/libgomp.c/atomic-18.c: Move ...
3285 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3286 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3287 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3288 * testsuite/libgomp.c/loop-13.c: Move ...
3289 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3290 * testsuite/libgomp.c/loop-14.c: Move ...
3291 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3292 * testsuite/libgomp.c/loop-15.c: Remove.
3293 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3294 * testsuite/libgomp.c/monotonic-1.c: Move ...
3295 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3296 * testsuite/libgomp.c/monotonic-2.c: Move ...
3297 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3298 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3299 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3300 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3301 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3302 * testsuite/libgomp.c/ordered-4.c: Move ...
3303 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3304 * testsuite/libgomp.c/pr45784.c: Move ...
3305 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3306 * testsuite/libgomp.c/pr64824.c: Move ...
3307 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3308 * testsuite/libgomp.c/pr64868.c: Move ...
3309 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3310 * testsuite/libgomp.c/pr66199-1.c: Move ...
3311 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3312 * testsuite/libgomp.c/pr66199-2.c: Move ...
3313 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3314 * testsuite/libgomp.c/pr66199-3.c: Move ...
3315 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3316 * testsuite/libgomp.c/pr66199-4.c: Move ...
3317 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3318 * testsuite/libgomp.c/pr66199-5.c: Move ...
3319 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3320 * testsuite/libgomp.c/pr66199-6.c: Move ...
3321 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3322 * testsuite/libgomp.c/pr66199-7.c: Move ...
3323 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3324 * testsuite/libgomp.c/pr66199-8.c: Move ...
3325 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3326 * testsuite/libgomp.c/pr66199-9.c: Move ...
3327 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3328 * testsuite/libgomp.c/pr69389.c: Move ...
3329 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3330 * testsuite/libgomp.c/simd-14.c: Move ...
3331 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3332 * testsuite/libgomp.c/simd-15.c: Move ...
3333 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3334 * testsuite/libgomp.c/simd-16.c: Move ...
3335 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3336 * testsuite/libgomp.c/simd-17.c: Move ...
3337 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3338 * testsuite/libgomp.c/target-1.c: Move ...
3339 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3340 * testsuite/libgomp.c/target-10.c: Move ...
3341 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3342 * testsuite/libgomp.c/target-13.c: Move ...
3343 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3344 * testsuite/libgomp.c/target-2.c: Move ...
3345 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3346 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3347 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3348 * testsuite/libgomp.c/taskloop-1.c: Move ...
3349 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3350 * testsuite/libgomp.c/taskloop-2.c: Move ...
3351 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3352 * testsuite/libgomp.c/taskloop-3.c: Move ...
3353 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3354 * testsuite/libgomp.c/taskloop-4.c: Move ...
3355 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3356 * testsuite/libgomp.c/udr-1.c: Move ...
3357 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3358 * testsuite/libgomp.c/for-1.c: Move ...
3359 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3360 * testsuite/libgomp.c/for-1.h: Move ...
3361 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3362 * testsuite/libgomp.c/for-2.c: Move ...
3363 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3364 * testsuite/libgomp.c/for-2.h: Move ...
3365 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3366 * testsuite/libgomp.c/for-3.c: Move ...
3367 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3368 * testsuite/libgomp.c/for-4.c: Move ...
3369 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3370 * testsuite/libgomp.c/for-5.c: Move ...
3371 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3372 * testsuite/libgomp.c/for-6.c: Move ...
3373 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3375 2018-05-02 Tom de Vries <tom@codesourcery.com>
3378 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3379 __builtin_goacc_parlevel_{id,size}.
3380 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3381 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3382 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3383 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3384 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3385 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3386 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3387 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3388 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3389 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3390 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3391 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3392 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3393 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3394 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3395 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3396 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3397 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3398 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3399 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3400 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3401 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3402 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3404 2018-05-02 Tom de Vries <tom@codesourcery.com>
3407 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3409 2018-05-02 Tom de Vries <tom@codesourcery.com>
3412 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3414 2018-04-29 Julian Brown <julian@codesourcery.com>
3415 Tom de Vries <tom@codesourcery.com>
3418 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3419 arbitrary order for iterations of atomic subtract check.
3421 2018-04-28 Tom de Vries <tom@codesourcery.com>
3424 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3425 atomic capture results obtained in parallel loop to an array, instead of
3428 2018-04-26 Tom de Vries <tom@codesourcery.com>
3431 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3432 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3433 (process_GOMP_NVPTX_JIT): New function.
3434 (link_ptx): Use process_GOMP_NVPTX_JIT.
3436 2018-04-26 Richard Biener <rguenther@suse.de>
3437 Tom de Vries <tom@codesourcery.com>
3440 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3442 2018-04-26 Tom de Vries <tom@codesourcery.com>
3445 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3446 recursion depth from 25 to 23.
3447 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3449 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3451 * configure: Regenerated.
3453 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3454 Tom de Vries <tom@codesourcery.com>
3457 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3459 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3462 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3463 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3464 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3465 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3466 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3467 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3470 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3472 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3474 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3476 * configure: Regenerated.
3478 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3481 * configure: Regenerate.
3483 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3484 Tom de Vries <tom@codesourcery.com>
3487 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3488 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3490 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3494 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3495 test from gfortran.dg to here.
3497 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3499 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3500 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3502 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3505 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3506 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3508 2018-04-05 Tom de Vries <tom@codesourcery.com>
3511 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3513 2018-03-26 Tom de Vries <tom@codesourcery.com>
3515 PR tree-optimization/85063
3516 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3517 * testsuite/libgomp.c/switch-conversion.c: New test.
3518 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3519 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3521 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3524 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3525 call abort by STOP n.
3526 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3527 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3528 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3529 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3530 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3531 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3532 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3533 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3534 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3535 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3536 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3537 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3538 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3539 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3540 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3541 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3542 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3543 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3544 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3545 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3546 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3547 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3548 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3549 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3550 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3551 * testsuite/libgomp.fortran/character1.f90: Likewise.
3552 * testsuite/libgomp.fortran/character2.f90: Likewise.
3553 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3554 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3555 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3556 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3557 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3558 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3559 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3560 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3561 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3562 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3563 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3564 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3565 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3566 * testsuite/libgomp.fortran/do1.f90: Likewise.
3567 * testsuite/libgomp.fortran/do2.f90: Likewise.
3568 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3569 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3570 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3571 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3572 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3573 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3574 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3575 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3576 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3577 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3578 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3579 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3580 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3581 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3582 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3583 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3584 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3585 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3586 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3587 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3588 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3589 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3590 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3591 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3592 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3593 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3594 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3595 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3596 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3597 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3598 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3599 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3600 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3601 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3602 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3603 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3604 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3605 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3606 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3607 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3608 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3609 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3610 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3611 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3612 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3613 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3614 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3615 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3616 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3617 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3618 * testsuite/libgomp.fortran/lib2.f: Likewise.
3619 * testsuite/libgomp.fortran/lib3.f: Likewise.
3620 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3621 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3622 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3623 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3624 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3625 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3626 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3627 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3628 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3629 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3630 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3631 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3632 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3633 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3634 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3635 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3636 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3637 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3638 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3639 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3640 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3641 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3642 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3643 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3644 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3645 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3646 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3647 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3648 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3649 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3650 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3651 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3652 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3653 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3654 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3655 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3656 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3657 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3658 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3659 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3660 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3661 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3662 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3663 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3664 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3665 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3666 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3667 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3668 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3669 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3670 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3671 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3672 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3673 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3674 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3675 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3676 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3677 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3678 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3679 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3680 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3681 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3682 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3683 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3684 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3685 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3686 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3687 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3688 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3689 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3690 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3691 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3692 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3693 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3694 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3695 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3696 * testsuite/libgomp.fortran/stack.f90: Likewise.
3697 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3698 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3699 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3700 * testsuite/libgomp.fortran/target1.f90: Likewise.
3701 * testsuite/libgomp.fortran/target2.f90: Likewise.
3702 * testsuite/libgomp.fortran/target3.f90: Likewise.
3703 * testsuite/libgomp.fortran/target4.f90: Likewise.
3704 * testsuite/libgomp.fortran/target5.f90: Likewise.
3705 * testsuite/libgomp.fortran/target6.f90: Likewise.
3706 * testsuite/libgomp.fortran/target7.f90: Likewise.
3707 * testsuite/libgomp.fortran/target8.f90: Likewise.
3708 * testsuite/libgomp.fortran/task1.f90: Likewise.
3709 * testsuite/libgomp.fortran/task2.f90: Likewise.
3710 * testsuite/libgomp.fortran/task3.f90: Likewise.
3711 * testsuite/libgomp.fortran/task4.f90: Likewise.
3712 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3713 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3714 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3715 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3716 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3717 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3718 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3719 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3720 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3721 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3722 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3723 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3724 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3725 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3726 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3727 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3728 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3729 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3730 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3731 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3732 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3733 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3734 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3735 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3736 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3737 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3738 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3739 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3740 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3741 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3742 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3743 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3744 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3745 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3746 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3747 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3748 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3749 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3750 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3751 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3752 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3753 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3754 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3755 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3756 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3757 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3758 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3759 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3760 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3761 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3762 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3763 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3764 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3765 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3766 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3767 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3768 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3769 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3770 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3771 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3772 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3773 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3774 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3775 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3776 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3777 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3778 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3779 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3780 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3781 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3782 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3783 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3784 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3785 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3786 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3787 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3788 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3789 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3790 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3791 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3792 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3793 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3794 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3795 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3796 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3797 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3798 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3799 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3800 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3801 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3802 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3803 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3804 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3805 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3806 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3807 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3808 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3809 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3810 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3811 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3812 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3813 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3814 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3815 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3816 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3817 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3818 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3819 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3820 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3821 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3822 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3823 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3824 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3825 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3826 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3827 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3828 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3829 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3830 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3831 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3832 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3833 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3834 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3836 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3837 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3839 2018-03-20 Richard Biener <rguenther@suse.de>
3841 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3842 parallelizable loop.
3844 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3847 * configure: Regenerate.
3849 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3852 * libgomp.fortran/pr84418-1.f90: New test.
3853 * libgomp.fortran/pr84418-2.f90: New test.
3855 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3858 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3859 -std=f2003 -fall-intrinsics into dg-additional-options.
3861 2018-02-08 Martin Jambor <mjambor@suse.cz>
3863 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3866 2018-02-08 Martin Jambor <mjambor@suse.cz>
3868 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3870 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3872 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3873 [__cplusplus]: Declare extern "C".
3875 2018-02-07 Tom de Vries <tom@codesourcery.com>
3878 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3880 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3881 Jakub Jelinek <jakub@redhat.com>
3884 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3885 instead of omp_lock_t.
3887 2018-01-25 Tom de Vries <tom@codesourcery.com>
3890 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3892 2018-01-24 Tom de Vries <tom@codesourcery.com>
3895 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3897 2018-01-24 Tom de Vries <tom@codesourcery.com>
3900 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3902 2018-01-19 Tom de Vries <tom@codesourcery.com>
3903 Cesar Philippidis <cesar@codesourcery.com>
3906 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3907 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3909 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3911 Update copyright years.
3913 * libgomp.texi: Bump @copying's copyright year.
3915 2017-12-30 Tom de Vries <tom@codesourcery.com>
3918 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3919 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3921 2017-12-27 Tom de Vries <tom@codesourcery.com>
3924 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3925 (test_nonstatic): Fix return type to workaround PR83046.
3927 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3930 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3931 j suffix instead of i.
3932 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3935 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3937 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3938 call to acc_wait (1).
3940 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3943 * testsuite/libgomp.fortran/pr81304.f90: New test.
3945 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3948 * libgomp.fortran/pr81841.f90: New test.
3950 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3953 * target.c (gomp_target_init): Compute lengths just once and
3954 use them in both malloc size and subsequent copying.
3956 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3958 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3959 * acinclude.m4: Add cet.m4.
3960 * configure: Regenerate.
3961 * Makefile.in: Likewise.
3962 * testsuite/Makefile.in: Likewise.
3964 2017-11-15 Tom de Vries <tom@codesourcery.com>
3966 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3967 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3968 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3969 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3970 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3971 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3973 2017-11-14 Tom de Vries <tom@codesourcery.com>
3975 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3978 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3981 * testsuite/libgomp.c++/pr82835.C: New test.
3983 2017-11-06 Martin Liska <mliska@suse.cz>
3985 * testsuite/libgomp.c++/loop-2.C: Return a value
3986 for functions with non-void return type, or change type to void,
3987 or add -Wno-return-type for test.
3988 * testsuite/libgomp.c++/loop-4.C: Likewise.
3989 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3990 * testsuite/libgomp.c++/shared-1.C: Likewise.
3991 * testsuite/libgomp.c++/single-1.C: Likewise.
3992 * testsuite/libgomp.c++/single-2.C: Likewise.
3994 2017-10-31 Tom de Vries <tom@codesourcery.com>
3996 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3997 "do {} while (false)".
3998 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3999 after HSA_DEBUG call.
4001 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4003 * target.c (struct gomp_coalesce_buf): New type.
4004 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4005 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4006 (gomp_copy_host2dev): Add CBUF argument, if copying into
4007 the cached ranges, memcpy into buffer instead of copying
4009 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4010 Add CBUF argument, pass it through to other calls.
4011 (gomp_map_vars): Aggregate copies from host to device if small enough
4012 and with small enough gaps in between into memcpy into a buffer and
4013 fewer host to device copies from the buffer.
4014 (gomp_update): Adjust gomp_copy_host2dev caller.
4016 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4018 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4020 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4021 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4022 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4023 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4025 2017-10-16 Tom de Vries <tom@codesourcery.com>
4027 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4028 openacc_nvidia_accel_selected.
4029 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4030 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4031 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4032 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4033 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4034 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4035 openacc_nvidia_accel_selected. Skip for shared memory device.
4036 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4037 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4039 2017-10-09 Martin Jambor <mjambor@suse.cz>
4042 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4044 2017-10-07 Tom de Vries <tom@codesourcery.com>
4046 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4047 Remove acc_device_nvidia references.
4048 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4051 2017-10-05 Tom de Vries <tom@codesourcery.com>
4053 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4054 vector_length(32) clause from acc parallel directive.
4055 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4057 2017-10-04 Tom de Vries <tom@codesourcery.com>
4059 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4060 (main): Reduce sum of arr elements. Assert that hres is exactly
4061 representable in 32-bit floating point.
4062 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4063 (main): Reduce sum of arr elements. Assert that hres and hmres are
4064 exactly representable in 32-bit floating point.
4065 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4067 2017-09-28 Tom de Vries <tom@codesourcery.com>
4069 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4071 * testsuite/libgomp.c++/pr69393.C: Same.
4072 * testsuite/libgomp.c++/taskloop-1.C: Same.
4073 * testsuite/libgomp.c++/taskloop-3.C: Same.
4074 * testsuite/libgomp.c++/taskloop-4.C: Same.
4075 * testsuite/libgomp.c/for-4.c: Same.
4076 * testsuite/libgomp.c/pr66199-3.c: Same.
4077 * testsuite/libgomp.c/pr66199-4.c: Same.
4078 * testsuite/libgomp.c/pr66199-6.c: Same.
4079 * testsuite/libgomp.c/taskloop-1.c: Same.
4080 * testsuite/libgomp.c/taskloop-3.c: Same.
4081 * testsuite/libgomp.c/taskloop-4.c: Same.
4082 * testsuite/libgomp.fortran/aligned1.f03: Same.
4083 * testsuite/libgomp.fortran/condinc1.f: Same.
4084 * testsuite/libgomp.fortran/condinc3.f90: Same.
4085 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4086 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4087 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4088 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4089 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4090 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4091 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4092 * testsuite/libgomp.fortran/recursion1.f90: Same.
4093 * testsuite/libgomp.fortran/target2.f90: Same.
4094 * testsuite/libgomp.fortran/target5.f90: Same.
4095 * testsuite/libgomp.fortran/task3.f90: Same.
4097 2017-09-28 Tom de Vries <tom@codesourcery.com>
4099 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4100 vector_length(32) clause from acc parallel directive.
4101 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4103 2017-09-27 Tom de Vries <tom@codesourcery.com>
4105 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4106 Remove acc_device_nvidia references.
4108 2017-09-16 Tom de Vries <tom@codesourcery.com>
4111 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4113 2017-09-14 Tom de Vries <tom@codesourcery.com>
4115 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4116 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4117 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4118 * testsuite/libgomp.c/c.exp: Include test-cases from
4119 libgomp.c-c++-common.
4120 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4123 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4126 * testsuite/libgomp.c++/pr81314.C: New test.
4128 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4130 * libgomp.texi (Top): www.openacc.org now uses https.
4131 (Enabling OpenACC): Ditto.
4132 (acc_get_num_devices): Ditto.
4133 (acc_set_device_type): Ditto.
4134 (acc_get_device_type): Ditto.
4135 (acc_set_device_num): Ditto.
4136 (acc_get_device_num): Ditto.
4137 (acc_async_test): Ditto.
4138 (acc_async_test_all): Ditto.
4140 (acc_wait_all): Ditto.
4141 (acc_wait_all_async): Ditto.
4142 (acc_wait_async): Ditto.
4144 (acc_shutdown): Ditto.
4145 (acc_on_device): Ditto.
4146 (acc_malloc): Ditto.
4148 (acc_copyin): Ditto.
4149 (acc_present_or_copyin): Ditto.
4150 (acc_create): Ditto.
4151 (acc_present_or_create): Ditto.
4152 (acc_copyout): Ditto.
4153 (acc_delete): Ditto.
4154 (acc_update_device): Ditto.
4155 (acc_update_self): Ditto.
4156 (acc_map_data): Ditto.
4157 (acc_unmap_data): Ditto.
4158 (acc_deviceptr): Ditto.
4159 (acc_hostptr): Ditto.
4160 (acc_is_present): Ditto.
4161 (acc_memcpy_to_device): Ditto.
4162 (acc_memcpy_from_device): Ditto.
4163 (acc_get_current_cuda_device): Ditto.
4164 (acc_get_current_cuda_context): Ditto.
4165 (acc_get_cuda_stream): Ditto.
4166 (acc_set_cuda_stream): Ditto.
4167 (ACC_DEVICE_TYPE): Ditto.
4168 (ACC_DEVICE_NUM): Ditto.
4169 (OpenACC Library Interoperability): Ditto.
4171 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4174 * testsuite/libgomp.c/pr81687-1.c: New test.
4175 * testsuite/libgomp.c/pr81687-2.c: New test.
4177 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4180 * testsuite/libgomp.c/pr69389.c: New test.
4181 * testsuite/libgomp.c++/pr69389.C: New test.
4183 2017-08-07 Tom de Vries <tom@codesourcery.com>
4186 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4187 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4189 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4192 * testsuite/libgomp.c/pr45784.c: New test.
4193 * testsuite/libgomp.c++/pr45784.C: New test.
4195 2017-07-19 Tom de Vries <tom@codesourcery.com>
4197 * testsuite/libgomp.oacc-c/vec.c: New test.
4199 2017-07-03 Tom de Vries <tom@codesourcery.com>
4201 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4203 2017-06-27 Tom de Vries <tom@codesourcery.com>
4205 * plugin/plugin-nvptx.c (notify_var): New function.
4206 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4208 2017-06-27 Tom de Vries <tom@codesourcery.com>
4210 * env.c (parse_unsigned_long_1): Factor out of ...
4211 (parse_unsigned_long): ... here.
4212 (parse_int_1): Factor out of ...
4213 (parse_int): ... here.
4214 (parse_int_secure): New function.
4215 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4216 * secure_getenv.h: Factor out of ...
4217 * plugin/plugin-hsa.c: ... here.
4218 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4220 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4223 * testsuite/libgomp.c++/pr81130.C: New test.
4225 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4227 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4229 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4230 dg-xfail-run-if default args.
4232 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4234 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4235 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4237 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4240 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4241 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4242 sibling lists, depending on level just pick up what CPUs to put
4243 together into a place vs. whether add multiple ordered places.
4245 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4247 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4248 * libgomp.map (OACC_2.0.1): Add these.
4249 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4250 for "acc_wait", and "acc_wait_all", respectively.
4251 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4252 for "acc_wait", and "acc_wait_all", respectively.
4253 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4254 * libgomp.texi (acc_wait, acc_wait_all): Update.
4255 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4256 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4257 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4259 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4260 acc_present_or_copyin and acc_present_or_create procedures,
4262 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4263 generally different variants of OpenACC Runtime Library functions.
4264 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4266 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4267 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4269 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4270 of preprocessor definitions.
4271 * libgomp.h (strong_alias): Guard by "#ifdef
4272 HAVE_ATTRIBUTE_ALIAS".
4273 * oacc-mem.c: Provide "acc_pcreate" as alias for
4274 "acc_present_or_create", and "acc_pcopyin" as alias for
4275 "acc_present_or_copyin".
4276 * libgomp.map: New version "OACC_2.0.1".
4277 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4278 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4280 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4283 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4284 when disabling nvptx offloading.
4286 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4289 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4290 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4292 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4293 * testsuite/lib/libgomp.exp
4294 (check_effective_target_openacc_nvidia_accel_configured): New
4296 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4297 (check_effective_target_c++): New procs.
4298 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4299 (check_effective_target_c++): Likewise.
4301 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4304 * testsuite/libgomp.c/pr80809-2.c: New test.
4305 * testsuite/libgomp.c/pr80809-3.c: New test.
4308 * testsuite/libgomp.c/pr80809-1.c: New test.
4311 * testsuite/libgomp.c/pr80853.c: New test.
4313 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4315 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4316 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4317 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4318 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4319 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4321 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4322 Debug output for failure.
4324 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4326 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4328 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4331 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4332 bootstrap compare failures.
4334 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4336 * testsuite/libgomp.c/target-36.c: New testcase.
4338 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4340 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4343 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4346 * testsuite/libgomp.c/pr80394.c: New test.
4348 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4351 * config/posix/thread-stacksize.h: New file.
4352 * config/darwin/thread-stacksize.h: New file.
4353 * config/nvptx/thread-stacksize.h: New file.
4354 * env.c: Include thread-stacksize.h.
4355 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4356 instead of 0. Call pthread_attr_setstacksize even if
4357 GOMP_DEFAULT_STACKSIZE is non-zero.
4359 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4361 * env.c (initialize_env): Initialize stacksize to 0.
4363 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4366 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4368 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4371 * testsuite/libgomp.c/pr79940.c: New test.
4373 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4375 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4377 Add __float128 options.
4379 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4381 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4382 hppa*-*-* dg-skip-if directive.
4384 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4386 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4387 dg-skip-if directive into a comment.
4389 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4390 Chung-Lin Tang <cltang@codesourcery.com>
4392 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4393 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4394 add additional case.
4395 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4396 "openacc_nvidia_accel_selected".
4397 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4398 Add num_workers(8) clause.
4400 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4402 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4404 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4405 include complex.h on hppa*-*-hpux*.
4406 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4408 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4410 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4412 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4413 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4414 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4415 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4416 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4417 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4418 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4419 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4420 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4421 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4423 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4425 * libgomp-plugin.h: #include <stdbool.h>.
4426 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4427 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4428 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4429 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4430 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4431 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4432 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4433 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4434 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4435 (GOMP_OFFLOAD_openacc_async_test)
4436 (GOMP_OFFLOAD_openacc_async_test_all)
4437 (GOMP_OFFLOAD_openacc_async_wait)
4438 (GOMP_OFFLOAD_openacc_async_wait_async)
4439 (GOMP_OFFLOAD_openacc_async_wait_all)
4440 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4441 (GOMP_OFFLOAD_openacc_async_set_async)
4442 (GOMP_OFFLOAD_openacc_create_thread_data)
4443 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4444 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4445 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4446 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4447 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4448 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4450 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4451 (GOMP_OFFLOAD_unload_image): Fix argument types.
4453 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4455 * testsuite/lib/libgomp.exp
4456 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4457 check_compile invocation. Fix up removal of executable. Drop
4458 bogus "2>&1" argument.
4460 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4463 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4464 Martin Jambor <mjambor@suse.cz>
4466 * plugin/hsa.h: Moved to top level include.
4467 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4469 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4472 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4473 of cat to get version from BASE-VER file.
4474 * testsuite/Makefile.in: Regenerated.
4476 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4478 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4481 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4483 * plugin/hsa.h: Add GCC runtime library exception.
4484 * plugin/hsa_ext_finalize.h: Likewise.
4486 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4487 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4488 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4489 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4490 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4491 library to link ptx plugin against.
4492 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4493 (CUDA_CALLS): Define.
4494 (cuda_lib, cuda_lib_inited): New variables.
4495 (init_cuda_lib): New function.
4496 (CUDA_CALL_PREFIX): Define.
4497 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4498 (CUDA_CALL): Use FN instead of (FN).
4499 (CUDA_CALL_NOCHECK): Define.
4500 (cuda_error, fini_streams_for_device, select_stream_for_async,
4501 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4502 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4503 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4504 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4506 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4508 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4509 Use CUDA_CALL_NOCHECK.
4510 * plugin/cuda/cuda.h: New file.
4511 * config.h.in: Regenerated.
4512 * configure: Regenerated.
4515 * configure.ac: Add GCC_BASE_VER.
4516 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4517 get version from BASE-VER file.
4518 * testsuite/Makefile.in: Regenerated.
4519 * configure: Regenerated.
4520 * Makefile.in: Regenerated.
4522 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4525 * Makefile.am: Make fincludedir multilib-aware.
4526 * Makefile.in: Regenerate.
4528 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4530 Update copyright years.
4532 * libgomp.texi: Bump @copying's copyright year.
4534 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4536 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4537 pthread_spinlock_t instead of gomp_mutex_t lock.
4538 (gomp_get_thread_pool): Likewise.
4539 (gomp_release_thread_pool): Likewise.
4540 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4543 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4545 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4546 thread pool in case nthreads == 1.
4548 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4550 * config/nvptx/env.c: Delete.
4551 * icv.c: Move definitions of ICV variables back ...
4552 * env.c: ...here. Do not compile environment-related functionality if
4553 LIBGOMP_OFFLOADED_ONLY is set.
4555 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4557 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4558 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4559 * configure: Regenerate.
4560 * config.h.in: Likewise.
4562 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4564 * Makefile.in: Regenerate with automake-1.11.6.
4565 * aclocal.m4: Likewise.
4566 * configure: Likewise.
4567 * testsuite/Makefile.in: Likewise.
4569 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4571 * config/nvptx/critical.c: Delete to use generic implementation.
4573 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4575 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4576 ../../affinity.c as fallback.
4577 * config/nvptx/affinity.c: Delete to use fallback implementation.
4579 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4580 Jakub Jelinek <jakub@redhat.com>
4581 Dmitry Melnik <dm@ispras.ru>
4583 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4584 * Makefile.in. Regenerate.
4585 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4586 (LIBGOMP_USE_PTHREADS): ...here; new define.
4587 * configure: Regenerate.
4588 * config.h.in: Likewise.
4589 * config/posix/affinity.c: Move to...
4590 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4591 interface by LIBGOMP_USE_PTHREADS.
4592 * critical.c: Split out GOMP_atomic_{start,end} into...
4593 * atomic.c: ...here (new file).
4594 * env.c: Split out ICV definitions into...
4595 * icv.c: ...here (new file) and...
4596 * icv-device.c: ...here. New file.
4597 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4598 (gomp_destroy_lock_30): Ditto.
4599 (gomp_set_lock_30): Ditto.
4600 (gomp_unset_lock_30): Ditto.
4601 (gomp_test_lock_30): Ditto.
4602 (gomp_init_nest_lock_30): Ditto.
4603 (gomp_destroy_nest_lock_30): Ditto.
4604 (gomp_set_nest_lock_30): Ditto.
4605 (gomp_unset_nest_lock_30): Ditto.
4606 (gomp_test_nest_lock_30): Ditto.
4608 * config/nvptx/lock.c: New.
4609 * config/nvptx/bar.c: New.
4610 * config/nvptx/bar.h: New.
4611 * config/nvptx/doacross.h: New.
4612 * config/nvptx/error.c: New.
4613 * config/nvptx/icv-device.c: New.
4614 * config/nvptx/mutex.h: New.
4615 * config/nvptx/pool.h: New.
4616 * config/nvptx/proc.c: New.
4617 * config/nvptx/ptrlock.h: New.
4618 * config/nvptx/sem.h: New.
4619 * config/nvptx/simple-bar.h: New.
4620 * config/nvptx/target.c: New.
4621 * config/nvptx/task.c: New.
4622 * config/nvptx/team.c: New.
4623 * config/nvptx/time.c: New.
4624 * config/posix/simple-bar.h: New.
4625 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4626 (gomp_num_teams_var): Declare.
4627 (struct gomp_thread_pool): Change threads_dock member to
4628 gomp_simple_barrier_t.
4629 [__nvptx__] (gomp_thread): New implementation.
4630 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4631 (gomp_thread_destructor): Ditto.
4632 (gomp_init_thread_affinity): Ditto.
4633 * team.c: Guard uses of Pthreads-specific interfaces by
4634 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4635 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4636 * config/nvptx/alloc.c: Delete.
4637 * config/nvptx/barrier.c: Ditto.
4638 * config/nvptx/fortran.c: Ditto.
4639 * config/nvptx/iter.c: Ditto.
4640 * config/nvptx/iter_ull.c: Ditto.
4641 * config/nvptx/loop.c: Ditto.
4642 * config/nvptx/loop_ull.c: Ditto.
4643 * config/nvptx/ordered.c: Ditto.
4644 * config/nvptx/parallel.c: Ditto.
4645 * config/nvptx/priority_queue.c: Ditto.
4646 * config/nvptx/sections.c: Ditto.
4647 * config/nvptx/single.c: Ditto.
4648 * config/nvptx/splay-tree.c: Ditto.
4649 * config/nvptx/work.c: Ditto.
4650 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4651 -foffload=-lgfortran in addition to -lgfortran.
4652 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4653 * plugin/plugin-nvptx.c: Include <limits.h>.
4654 (struct targ_fn_descriptor): Add new fields.
4655 (struct ptx_device): Ditto. Set them...
4656 (nvptx_open_device): ...here.
4657 (nvptx_adjust_launch_bounds): New.
4658 (nvptx_host2dev): Allow NULL 'nvthd'.
4659 (nvptx_dev2host): Ditto.
4660 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4661 (link_ptx): Adjust log sizes.
4662 (nvptx_host2dev): Allow NULL 'nvthd'.
4663 (nvptx_dev2host): Ditto.
4664 (nvptx_set_clocktick): New. Use it...
4665 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4667 (GOMP_OFFLOAD_dev2dev): New.
4668 (nvptx_adjust_launch_bounds): New.
4669 (nvptx_stacks_size): New.
4670 (nvptx_stacks_alloc): New.
4671 (nvptx_stacks_free): New.
4672 (GOMP_OFFLOAD_run): New.
4673 (GOMP_OFFLOAD_async_run): New (stub).
4675 2016-11-23 Martin Jambor <mjambor@suse.cz>
4677 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4678 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4679 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4681 2016-11-23 Martin Liska <mliska@suse.cz>
4682 Martin Jambor <mjambor@suse.cz>
4684 * plugin/hsa.h: New file.
4685 * plugin/hsa_ext_finalize.h: New file.
4686 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4687 header file unistd.h, and functions secure_getenv, __secure_getenv,
4688 getuid, geteuid, getgid and getegid.
4689 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4691 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4692 Handle various cases of secure_getenv presence, add an implementation
4693 when we can test effective UID and GID.
4694 (struct hsa_runtime_fn_info): New structure.
4695 (hsa_runtime_fn_info hsa_fns): New variable.
4696 (hsa_runtime_lib): Likewise.
4697 (support_cpu_devices): Likewise.
4698 (init_enviroment_variables): Load newly introduced ENV
4700 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4701 (hsa_fatal): Likewise.
4702 (DLSYM_FN): New macro.
4703 (init_hsa_runtime_functions): New function.
4704 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4705 structure. Depending on environment, also allow CPU devices.
4706 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4707 (get_kernarg_memory_region): Likewise.
4708 (GOMP_OFFLOAD_init_device): Likewise.
4709 (destroy_hsa_program): Likewise.
4710 (init_basic_kernel_info): New function.
4711 (GOMP_OFFLOAD_load_image): Use it.
4712 (create_and_finalize_hsa_program): Call hsa run-time functions via
4714 (create_single_kernel_dispatch): Likewise.
4715 (release_kernel_dispatch): Likewise.
4716 (init_single_kernel): Likewise.
4717 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4718 (get_group_size): New function.
4719 (run_kernel): Likewise.
4720 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4721 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4723 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4724 * testsuite/libgomp-test-support.exp.in: Likewise.
4725 * Makefile.in: Regenerated.
4726 * aclocal.m4: Likewise.
4727 * config.h.in: Likewise.
4728 * configure: Likewise.
4729 * testsuite/Makefile.in: Likewise.
4731 2016-11-15 Martin Jambor <mjambor@suse.cz>
4732 Alexander Monakov <amonakov@ispras.ru>
4734 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4735 mapping clauses to target constructs.
4736 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4738 2016-11-15 Matthias Klose <doko@ubuntu.com>
4740 * configure: Regenerate.
4742 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4744 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4745 * omp_lib.h.in (openmp_version): Likewise.
4746 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4748 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4750 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4751 (fib_wrapper): Add map(from: x) clause.
4752 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4754 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4755 (accum): Add map(tmp) clause.
4756 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4757 (accum): Add map(tofrom: tmp) clause.
4758 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4759 (gramSchmidt): Likewise.
4760 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4761 map(tofrom: sum) clause.
4762 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4763 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4764 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4765 only allowed on the loop iterator.
4766 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4767 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4768 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4769 * testsuite/libgomp.fortran/doacross1.f90: New test.
4770 * testsuite/libgomp.fortran/doacross3.f90: New test.
4771 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4772 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4773 * testsuite/libgomp.fortran/doacross2.f90: New test.
4774 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4775 #pragma omp atomic read.
4776 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4777 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4779 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4780 Nathan Sidwell <nathan@acm.org>
4782 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4783 to determine default geometry.
4784 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4787 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4789 * hashtab.h: Use standard GPLv3 with runtime exception
4792 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4794 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4795 size when allocating new thread.
4797 2016-09-14 Marek Polacek <polacek@redhat.com>
4799 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4801 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4804 * testsuite/libgomp.fortran/pr71014.f90: New test.
4806 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4809 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4810 firstprivate clauses.
4811 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4813 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4814 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4815 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4816 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4817 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4818 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4819 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4820 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4821 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4822 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4823 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4824 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4826 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4829 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4831 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4834 * testsuite/libgomp.c++/pr58706.C: New test.
4836 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4838 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4839 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4840 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4842 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4843 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4845 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4847 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4848 test, and don't hardcode -O0.
4850 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4852 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4854 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4856 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4859 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4862 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4863 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4865 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4868 * testsuite/libgomp.fortran/associate3.f90: New test.
4870 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4872 * testsuite/libgomp.c++/target-21.C: New test.
4874 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4876 * testsuite/libgomp.c++/target-20.C: New test.
4878 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4879 Cesar Philippidis <cesar@codesourcery.com>
4882 * libgomp.oacc-c/nested-function-1.c: New file.
4883 * libgomp.oacc-c/nested-function-2.c: Likewise.
4884 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4885 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4886 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4888 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4891 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4892 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4893 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4895 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4897 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4898 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4900 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4903 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4905 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4907 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4908 instead of invalid schedule(static, 0).
4909 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4911 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4913 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4914 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4915 parameter, use to set async stream around call to gomp_unmap_vars,
4916 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4917 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4918 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4919 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4920 (event_add): Add int parameter, initialize 'val' field when
4921 adding new ptx_event struct.
4922 (nvptx_evec): Adjust event_add() call arguments.
4923 (nvptx_host2dev): Likewise.
4924 (nvptx_dev2host): Likewise.
4925 (nvptx_wait_async): Likewise.
4926 (nvptx_wait_all_async): Likewise.
4927 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4928 pass to event_add() call.
4929 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4931 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4932 call openacc.register_async_cleanup_func() hook.
4933 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4934 * target.c (gomp_copy_from_async): Delete function.
4935 (gomp_map_vars): Remove async_refcount.
4936 (gomp_unmap_vars): Likewise.
4937 (gomp_load_image_to_device): Likewise.
4938 (omp_target_associate_ptr): Likewise.
4939 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4940 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4941 (gomp_copy_from_async): Remove.
4943 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4945 * target.c (gomp_device_copy): New function.
4946 (gomp_copy_host2dev): Likewise.
4947 (gomp_copy_dev2host): Likewise.
4948 (gomp_free_device_memory): Likewise.
4949 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4950 (gomp_map_pointer): Likewise.
4951 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4952 NULL value from alloc_func plugin hook.
4953 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4954 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4955 (gomp_unmap_vars): Likewise.
4956 (gomp_update): Adjust to call gomp_copy_dev2host and
4957 gomp_copy_host2dev functions.
4958 (gomp_unload_image_from_device): Handle false value from
4959 unload_image_func plugin hook.
4960 (gomp_init_device): Handle false value from init_device_func
4962 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4963 (omp_target_free): Adjust to call gomp_free_device_memory.
4964 (omp_target_memcpy): Handle return values from host2dev_func,
4965 dev2host_func, and dev2dev_func plugin hooks.
4966 (omp_target_memcpy_rect_worker): Likewise.
4967 (gomp_target_fini): Handle false value from fini_device_func
4969 * libgomp.h (struct gomp_device_descr): Adjust return type of
4970 init_device_func, fini_device_func, unload_image_func, free_func,
4971 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4972 * oacc-init.c (acc_shutdown_1): Handle false value from
4973 fini_device_func plugin hook.
4974 * oacc-host.c (host_init_device): Change return type to bool.
4975 (host_fini_device): Likewise.
4976 (host_unload_image): Likewise.
4977 (host_free): Likewise.
4978 (host_dev2host): Likewise.
4979 (host_host2dev): Likewise.
4980 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4981 (acc_memcpy_to_device): Likewise.
4982 (acc_memcpy_from_device): Likewise.
4983 (delete_copyout): Add libfnname parameter, handle free_func
4984 hook fatal error case.
4985 (acc_delete): Adjust delete_copyout call.
4986 (acc_copyout): Likewise.
4987 (update_dev_host): Move gomp_mutex_unlock to after
4988 host2dev/dev2host hook calls.
4990 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4991 to 'hsa_error_msg', for clarity.
4992 (hsa_fatal): Likewise.
4993 (hsa_error): New function.
4994 (init_hsa_context): Change return type to bool, adjust to return
4996 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4998 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4999 return false on error.
5000 (get_agent_info): Adjust to return NULL on error.
5001 (destroy_hsa_program): Change return type to bool, adjust to
5002 return false on error.
5003 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5004 (destroy_module): Change return type to bool, adjust to
5005 return false on error.
5006 (GOMP_OFFLOAD_unload_image): Likewise.
5007 (GOMP_OFFLOAD_fini_device): Likewise.
5008 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5009 (GOMP_OFFLOAD_free): Change to return false when called.
5010 (GOMP_OFFLOAD_dev2host): Likewise.
5011 (GOMP_OFFLOAD_host2dev): Likewise.
5012 (GOMP_OFFLOAD_dev2dev): Likewise.
5014 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5015 (CUDA_CALL): Likewise.
5016 (CUDA_CALL_ASSERT): Likewise.
5017 (map_init): Change return type to bool, use CUDA_CALL* macros.
5018 (map_fini): Likewise.
5019 (init_streams_for_device): Change return type to bool, adjust
5021 (fini_streams_for_device): Change return type to bool, adjust
5023 (select_stream_for_async): Release stream_lock before calls to
5024 GOMP_PLUGIN_fatal, adjust call to map_init.
5025 (nvptx_init): Use CUDA_CALL* macros.
5026 (nvptx_attach_host_thread_to_device): Change return type to bool,
5027 use CUDA_CALL* macros.
5028 (nvptx_open_device): Use CUDA_CALL* macros.
5029 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5031 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5032 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5033 (nvptx_exec): Use CUDA_CALL* macros.
5034 (nvptx_alloc): Use CUDA_CALL* macros.
5035 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5036 (nvptx_host2dev): Likewise.
5037 (nvptx_dev2host): Likewise.
5038 (nvptx_wait): Use CUDA_CALL* macros.
5039 (nvptx_wait_async): Likewise.
5040 (nvptx_wait_all): Likewise.
5041 (nvptx_wait_all_async): Likewise.
5042 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5043 use CUDA_CALL* macros, adjust call to map_fini.
5044 (GOMP_OFFLOAD_init_device): Change return type to bool,
5045 adjust code accordingly.
5046 (GOMP_OFFLOAD_fini_device): Likewise.
5047 (GOMP_OFFLOAD_load_image): Adjust calls to
5048 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5049 use CUDA_CALL* macros.
5050 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5052 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5053 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5054 handle error return.
5055 (GOMP_OFFLOAD_dev2host): Likewise.
5056 (GOMP_OFFLOAD_host2dev): Likewise.
5057 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5058 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5060 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5062 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5063 (acc_free): Likewise.
5064 (acc_memcpy_to_device): Likewise.
5065 (acc_memcpy_from_device): Likewise.
5066 (acc_deviceptr): Likewise.
5067 (acc_hostptr): Likewise.
5068 (acc_is_present): Likewise.
5069 (acc_map_data): Likewise.
5070 (acc_unmap_data): Likewise.
5071 (present_create_copy): Likewise.
5072 (delete_copyout): Likewise.
5073 (update_dev_host): Likewise.
5074 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5075 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5076 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5077 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5078 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5079 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5080 it only runs on nvptx targets.
5081 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5082 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5083 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5084 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5085 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5086 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5087 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5088 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5089 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5090 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5091 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5092 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5093 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5094 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5095 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5096 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5097 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5098 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5099 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5100 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5101 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5102 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5103 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5105 2016-05-23 Martin Jambor <mjambor@suse.cz>
5107 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5109 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5111 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5112 to gomp_init_targets_once.
5113 (acc_set_device_type): Remove !cached_base_dev condition on call to
5114 gomp_init_targets_once, move call to before acc_device_lock acquire,
5116 (acc_get_device_num): Remove !cached_base_dev condition on call to
5117 gomp_init_targets_once.
5118 (acc_set_device_num): Likewise.
5120 2016-05-16 Martin Jambor <mjambor@suse.cz>
5122 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5124 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5126 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5127 expected partitioning.
5129 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5132 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5133 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5134 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5136 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5138 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5141 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5144 * testsuite/libgomp.c/pr70680-1.c: New test.
5145 * testsuite/libgomp.c/pr70680-2.c: New test.
5147 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5149 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5150 pass parameter variables to subroutines.
5152 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5155 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5157 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5160 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5161 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5163 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5165 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5166 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5167 GOACC_declare prototype.
5169 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5170 Merge this file, and...
5171 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5172 ... this file, and...
5173 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5174 ... this file, and...
5175 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5176 ... this file, and...
5177 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5178 ... this file, and...
5179 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5180 ... this file, and...
5181 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5182 ... this file, and...
5183 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5184 ... this file, and...
5185 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5186 ... this file, and...
5187 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5188 ... this file, and...
5189 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5190 ... this file, and...
5191 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5192 ... this file, and...
5193 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5194 ... this file into...
5195 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5198 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5199 Make failure observable.
5201 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5203 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5205 * target.c (gomp_target_fallback_firstprivate,
5206 gomp_target_unshare_firstprivate): Removed.
5207 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5208 before waiting for dependencies.
5209 (gomp_target_task_fn): Don't copy firstprivate vars here.
5210 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5211 firstprivate_copies here.
5212 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5213 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5214 explicit/implicit firstprivate.
5216 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5220 PR tree-optimization/70373
5224 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5226 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5228 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5230 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5232 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5234 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5236 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5238 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5240 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5242 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5243 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5244 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5245 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5247 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5249 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5251 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5253 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5255 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5256 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5257 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5258 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5259 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5260 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5262 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5263 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5264 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5265 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5266 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5267 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5268 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5269 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5270 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5271 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5272 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5273 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5274 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5275 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5276 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5278 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5279 James Norris <jnorris@codesourcery.com>
5280 Nathan Sidwell <nathan@codesourcery.com>
5281 Julian Brown <julian@codesourcery.com>
5282 Cesar Philippidis <cesar@codesourcery.com>
5283 Chung-Lin Tang <cltang@codesourcery.com>
5284 Tom de Vries <tom@codesourcery.com>
5286 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5287 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5290 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5291 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5292 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5293 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5298 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5300 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5301 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5305 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5307 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5311 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5312 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5313 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5314 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5315 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5316 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5318 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5319 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5320 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5322 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5324 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5326 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5328 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5330 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5331 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5332 ... this new file. Update.
5333 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5334 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5335 ... this new file. Update.
5336 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5337 file. Incorporate...
5338 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5340 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5342 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5344 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5346 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5348 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5349 set-torture-options.
5351 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5353 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5355 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5356 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5357 -fno-builtin-acc_on_device instead of -O0.
5358 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5360 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5361 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5363 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5364 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5365 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5366 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5367 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5368 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5369 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5370 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5371 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5372 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5373 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5374 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5375 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5376 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5377 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5378 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5379 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5380 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5382 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5384 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5387 2016-03-24 Martin Liska <mliska@suse.cz>
5389 * plugin/plugin-hsa.c (packet_store_release): New function
5390 that is taken from the HSA runtime manual.
5391 (GOMP_OFFLOAD_run): Use the function.
5393 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5396 * testsuite/libgomp.c++/pr70376.C: New test.
5398 2016-03-23 Tom de Vries <tom@codesourcery.com>
5400 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5401 initialization of lresult and lvresult.
5402 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5404 2016-03-23 James Norris <jnorris@codesourcery.com>
5405 Daichi Fukuoka <dc-fukuoka@sgi.com>
5408 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5409 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5410 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5411 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5413 2016-03-23 Martin Liska <mliska@suse.cz>
5416 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5417 argument just in case a dispatched kernel uses that argument.
5419 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5421 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5422 -ftree-parallelize-loops/-fopenacc changes.
5423 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5425 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5427 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5429 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5431 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5432 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5434 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5436 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5437 always_ld_library_path the path to libgcc_s.
5439 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5442 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5444 2016-03-09 Tom de Vries <tom@codesourcery.com>
5446 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5447 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5448 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5450 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5451 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5452 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5453 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5455 2016-03-07 Martin Jambor <mjambor@suse.cz>
5457 * testsuite/lib/libgomp.exp
5458 (check_effective_target_hsa_offloading_selected_nocache): New.
5459 (check_effective_target_hsa_offloading_selected): Likewise.
5460 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5461 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5462 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5463 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5464 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5465 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5466 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5467 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5468 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5469 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5470 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5471 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5472 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5473 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5474 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5475 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5476 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5478 2016-03-07 Martin Jambor <mjambor@suse.cz>
5480 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5481 non-shared memory accelerators.
5482 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5483 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5484 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5485 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5486 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5487 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5488 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5489 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5490 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5492 2016-03-07 Martin Jambor <mjambor@suse.cz>
5494 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5497 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5500 * testsuite/libgomp.c++/pr69555-1.C: New test.
5501 * testsuite/libgomp.c++/pr69555-2.C: New test.
5503 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5504 Martin Jambor <mjambor@suse.cz>
5506 * testsuite/lib/libgomp.exp
5507 (check_effective_target_offload_device_shared_as): New proc.
5508 * testsuite/libgomp.c++/declare_target-1.C: New test.
5510 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5513 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5515 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5517 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5518 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5520 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5521 -ftree-parallelize-loops/-fopenacc changes.
5522 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5523 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5525 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5527 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5529 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5531 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5533 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5535 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5537 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5540 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5543 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5544 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5547 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5549 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5551 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5554 * testsuite/libgomp.c/pr69805.c: New test.
5556 2016-02-16 Tom de Vries <tom@codesourcery.com>
5559 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5561 2016-02-09 Tom de Vries <tom@codesourcery.com>
5563 PR tree-optimization/69599
5564 * testsuite/libgomp.c/omp-nested-3.c: New test.
5565 * testsuite/libgomp.c/pr46032-2.c: New test.
5566 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5567 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5569 2016-02-09 Tom de Vries <tom@codesourcery.com>
5572 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5574 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5576 * testsuite/libgomp.c/target-31.c: Fix testcase.
5578 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5580 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5582 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5583 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5584 reduction and map clauses.
5585 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5587 2016-02-02 James Norris <jnorris@codesourcery.com>
5589 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5591 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5593 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5594 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5596 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5599 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5601 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5602 (hsa_kmt_lib): Set variables.
5603 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5604 always_ld_library_path.
5605 * Makefile.in: Regenerate.
5606 * configure: Likewise.
5607 * testsuite/Makefile.in: Likewise.
5609 * plugin/configfrag.ac (offload_additional_options)
5610 (offload_additional_lib_paths): Don't amend for hsa offloading.
5611 * configure: Regenerate.
5613 * plugin/configfrag.ac: Don't configure for offloading target if
5614 we don't build the corresponding plugin.
5615 * configure: Regenerate.
5617 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5619 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5620 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5622 2016-01-26 Tom de Vries <tom@codesourcery.com>
5624 PR tree-optimization/69110
5625 * testsuite/libgomp.c/pr69110.c: New test.
5627 2016-01-25 Richard Biener <rguenther@suse.de>
5630 * testsuite/libgomp.c++/pr69393.C: New testcase.
5632 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5634 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5635 function wasn't mapped to the device with non-shared memory.
5637 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5639 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5641 2016-01-19 Martin Jambor <mjambor@suse.cz>
5642 Martin Liska <mliska@suse.cz>
5644 * plugin/Makefrag.am: Add HSA plugin requirements.
5645 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5646 (HSA_RUNTIME_LIB): Likewise.
5647 (HSA_RUNTIME_CPPFLAGS): Likewise.
5648 (HSA_RUNTIME_INCLUDE): New substitution.
5649 (HSA_RUNTIME_LIB): Likewise.
5650 (HSA_RUNTIME_LDFLAGS): Likewise.
5651 (hsa-runtime): New configure option.
5652 (hsa-runtime-include): Likewise.
5653 (hsa-runtime-lib): Likewise.
5654 (PLUGIN_HSA): New substitution variable.
5655 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5657 (PLUGIN_HSA_CPPFLAGS): Likewise.
5658 (PLUGIN_HSA_LDFLAGS): Likewise.
5659 (PLUGIN_HSA_LIBS): Likewise.
5660 Check that we have access to HSA run-time.
5661 * libgomp-plugin.h (offload_target_type): New element
5662 OFFLOAD_TARGET_TYPE_HSA.
5663 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5665 (bool gomp_create_target_task): Updated.
5666 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5667 new field can_run_func.
5668 * libgomp_g.h (GOMP_target_ext): Update prototype.
5669 * oacc-host.c (host_run): Added a new parameter args.
5670 * target.c (calculate_firstprivate_requirements): New function.
5671 (copy_firstprivate_data): Likewise.
5672 (gomp_target_fallback_firstprivate): Use them.
5673 (gomp_target_unshare_firstprivate): New function.
5674 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5676 (GOMP_target): Do host fallback for all shared memory devices. Do not
5677 pass any args to plugins.
5678 (GOMP_target_ext): Introduce device-specific argument parameter args.
5679 Allow host fallback if device shares memory. Do not remap data if
5680 device has shared memory.
5681 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5682 like host fallback for mappings.
5683 (GOMP_target_data): Treat shared memory devices like host fallback.
5684 (GOMP_target_data_ext): Likewise.
5685 (GOMP_target_update): Likewise.
5686 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5687 gomp_create_target_task.
5688 (GOMP_target_enter_exit_data): Likewise.
5689 (omp_target_alloc): Treat shared memory devices like host fallback.
5690 (omp_target_free): Likewise.
5691 (omp_target_is_present): Likewise.
5692 (omp_target_memcpy): Likewise.
5693 (omp_target_memcpy_rect): Likewise.
5694 (omp_target_associate_ptr): Likewise.
5695 (gomp_load_plugin_for_device): Also load can_run.
5696 * task.c (GOMP_PLUGIN_target_task_completion): Free
5697 firstprivate_copies.
5698 (gomp_create_target_task): Accept new argument args and store it to
5700 * plugin/plugin-hsa.c: New file.
5702 2016-01-18 Tom de Vries <tom@codesourcery.com>
5704 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5705 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5706 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5707 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5708 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5709 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5710 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5711 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5712 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5713 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5714 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5716 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5718 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5719 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5720 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5721 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5722 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5723 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5724 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5725 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5727 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5729 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5731 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5733 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5735 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5737 2016-01-12 James Norris <jnorris@codesourcery.com>
5739 * libgomp.texi: Updates for OpenACC.
5741 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5743 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5745 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5748 * testsuite/libgomp.fortran/pr66680.f90: New test.
5750 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5753 * testsuite/libgomp.c/pr68960.c: New test.
5755 2016-01-06 Nathan Sidwell <nathan@acm.org>
5757 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5758 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5760 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5762 Update copyright years.
5764 * libgomp.texi: Bump @copying's copyright year.
5766 2015-12-31 Nathan Sidwell <nathan@acm.org>
5768 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5769 dg-additional-options syntax.
5770 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5771 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5772 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5773 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5777 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5778 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5779 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5781 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5782 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5783 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5784 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5785 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5786 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5787 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5789 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5791 * libgomp.h (REFCOUNT_LINK): Define.
5792 (struct splay_tree_key_s): Add link_key.
5793 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5794 Replace target address of the pointer with target address of newly
5795 mapped object in the splay tree. Set link pointer on target to the
5796 device address of the mapped object.
5797 (gomp_unmap_vars): Restore target address of the pointer in the splay
5798 tree for REFCOUNT_LINK objects after unmapping.
5799 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5800 declare target link" objects.
5801 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5802 "omp declare target link" objects, which were mapped for the image.
5803 (gomp_exit_data): Restore target address of the pointer in the splay
5804 tree for REFCOUNT_LINK objects after unmapping.
5805 * testsuite/libgomp.c/target-link-1.c: New file.
5807 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5809 * libgomp.h (gomp_device_state): New enum.
5810 (struct gomp_device_descr): Replace is_initialized with state.
5811 (gomp_fini_device): Remove declaration.
5812 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5813 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5814 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5815 (acc_set_device_type): Use state instead of is_initialized.
5816 (acc_set_device_num): Likewise.
5817 * target.c (resolve_device): Use state instead of is_initialized.
5818 Do not initialize finalized device.
5819 (gomp_map_vars): Do nothing if device is finalized.
5820 (gomp_unmap_vars): Likewise.
5821 (gomp_update): Likewise.
5822 (GOMP_offload_register_ver): Use state instead of is_initialized.
5823 (GOMP_offload_unregister_ver): Likewise.
5824 (gomp_init_device): Likewise.
5825 (gomp_unload_device): Likewise.
5826 (gomp_fini_device): Remove.
5827 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5828 (GOMP_target): Go to host fallback if device is finalized.
5829 (GOMP_target_ext): Likewise.
5830 (gomp_exit_data): Do nothing if device is finalized.
5831 (gomp_target_task_fn): Go to host fallback if device is finalized.
5832 (gomp_target_fini): New static function.
5833 (gomp_target_init): Use state instead of is_initialized.
5834 Call gomp_target_fini at exit.
5836 2015-12-09 Tom de Vries <tom@codesourcery.com>
5838 PR tree-optimization/68716
5839 * testsuite/libgomp.c/omp-nested-2.c: New test.
5841 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5843 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5844 target openacc_nvidia_accel_selected.
5845 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5846 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5847 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5848 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5850 2015-12-01 Julian Brown <julian@codesourcery.com>
5851 James Norris <James_Norris@mentor.com>
5853 * oacc-parallel.c (GOACC_host_data): New function.
5854 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5855 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5856 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5857 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5858 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5859 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5860 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5862 2015-11-30 James Norris <jnorris@codesourcery.com>
5863 Cesar Philippidis <cesar@codesourcery.com>
5866 * libgomp.oacc-fortran/routine-5.f90: New test.
5867 * libgomp.oacc-fortran/routine-7.f90: New test.
5868 * libgomp.oacc-fortran/routine-9.f90: New test.
5870 2015-11-30 Tom de Vries <tom@codesourcery.com>
5872 PR tree-optimization/46032
5873 * testsuite/libgomp.c/pr46032.c: New test.
5875 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5878 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5879 (gomp_create_target_task): Call it before freeing
5880 GOMP_TARGET_TASK_DATA tasks.
5883 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5884 in between case label and OpenMP standalone directives.
5885 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5887 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5889 * configure: Regenerate.
5891 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5893 * testsuite/libgomp.c/target-35.c: New test.
5895 2015-11-22 James Norris <jnorris@codesourcery.com>
5896 Cesar Philippidis <cesar@codesourcery.com>
5898 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5899 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5900 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5901 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5902 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5904 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5907 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5908 * testsuite/libgomp.c/reduction-12.c: Likewise.
5909 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5910 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5912 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5914 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5915 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5916 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5917 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5918 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5920 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5921 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5923 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5925 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5926 worker & gang cases.
5927 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5929 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5931 * config/nvptx/priority_queue.c: New file.
5933 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5935 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5938 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5939 Aldy Hernandez <aldyh@redhat.com>
5940 Ilya Verbin <ilya.verbin@intel.com>
5942 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5943 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5944 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5945 iterators or IV by chunk size.
5946 * parallel.c (gomp_resolve_num_threads): Don't assume that
5947 if thr->ts.team is non-NULL, then pool must be non-NULL.
5948 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5949 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5950 GOMP_PLUGIN_target_task_completion.
5951 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5952 * Makefile.in: Regenerate.
5953 * libgomp.h: Shuffle prototypes and forward definitions around so
5954 priority queues can be defined.
5955 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5956 (enum gomp_target_task_state): New enum.
5957 (struct gomp_target_task): Add state, tgt, task and team fields.
5958 (gomp_create_target_task): Change return type to bool, add
5960 (gomp_target_task_fn): Change return type to bool.
5961 (struct gomp_device_descr): Add async_run_func.
5962 (struct gomp_task): Remove children, next_child, prev_child,
5963 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5965 (struct gomp_taskgroup): Remove children.
5966 Add taskgroup_queue.
5967 (struct gomp_team): Change task_queue type to a priority queue.
5968 (splay_compare): Define inline.
5969 (priority_queue_offset): New.
5970 (priority_node_to_task): New.
5971 (task_to_priority_node): New.
5972 * oacc-mem.c: Do not include splay-tree.h.
5973 * priority_queue.c: New file.
5974 * priority_queue.h: New file.
5975 * splay-tree.c: Do not include splay-tree.h.
5976 (splay_tree_foreach_internal): New.
5977 (splay_tree_foreach): New.
5978 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5979 (splay_tree_callback): Define typedef.
5980 * target.c (splay_compare): Move to libgomp.h.
5981 (GOMP_target): Don't adjust *thr in any way around running offloaded
5983 (GOMP_target_ext): Likewise. Handle target nowait.
5984 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5985 return value from gomp_create_target_task, if false, fallthrough
5986 as if no dependencies exist.
5987 (gomp_target_task_fn): Change return type to bool, return true
5988 if the task should have another part scheduled later. Handle
5990 (gomp_load_plugin_for_device): Initialize async_run.
5991 * task.c (gomp_init_task): Initialize children_queue.
5992 (gomp_clear_parent_in_list): New.
5993 (gomp_clear_parent_in_tree): New.
5994 (gomp_clear_parent): Handle priorities.
5995 (GOMP_task): Likewise.
5996 (priority_queue_move_task_first,
5997 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5999 (gomp_create_target_task): Use priority queues. Change return type
6000 to bool, add state argument, return false if for async
6001 {{enter,exit} data,update} constructs no dependencies need to be
6002 waited for, handle target nowait. Set task->fn to NULL instead of
6003 gomp_target_task_fn.
6004 (verify_children_queue): Remove.
6005 (priority_list_upgrade_task): New.
6006 (priority_queue_upgrade_task): New.
6007 (verify_task_queue): Remove.
6008 (priority_list_downgrade_task): New.
6009 (priority_queue_downgrade_task): New.
6010 (gomp_task_run_pre): Use priority queues.
6011 Abstract code out to priority_queue_downgrade_task.
6012 (gomp_task_run_post_handle_dependers): Use priority queues.
6013 (gomp_task_run_post_remove_parent): Likewise.
6014 (gomp_task_run_post_remove_taskgroup): Likewise.
6015 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6017 (GOMP_taskwait): Likewise.
6018 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6019 priority-queue_upgrade_task.
6020 (GOMP_taskgroup_start): Use priority queues.
6021 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6022 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6024 * taskloop.c (GOMP_taskloop): Handle priorities.
6025 * team.c (gomp_new_team): Call priority_queue_init.
6026 (free_team): Call priority_queue_free.
6027 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6028 team created for target nowait in implicit parallel region.
6029 (gomp_team_start): For nested check, test thr->ts.level instead of
6030 thr->ts.team != NULL.
6031 * testsuite/libgomp.c/doacross-3.c: New test.
6032 * testsuite/libgomp.c/ordered-5.c: New test.
6033 * testsuite/libgomp.c/priority.c: New test.
6034 * testsuite/libgomp.c/target-31.c: New test.
6035 * testsuite/libgomp.c/target-32.c: New test.
6036 * testsuite/libgomp.c/target-33.c: New test.
6037 * testsuite/libgomp.c/target-34.c: New test.
6039 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6041 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6043 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6046 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6048 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6049 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6051 2015-11-12 James Norris <jnorris@codesourcery.com>
6052 Joseph Myers <joseph@codesourcery.com>
6054 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6055 * oacc-parallel.c (GOACC_declare): New function.
6056 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6057 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6060 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6062 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6064 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6066 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6068 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6069 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6071 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6073 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6076 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6078 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6079 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6080 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6081 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6082 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6084 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6086 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6087 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6089 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6090 Ilya Verbin <ilya.verbin@intel.com>
6092 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6093 GOMP_loop_nonmonotonic_dynamic_start,
6094 GOMP_loop_nonmonotonic_guided_next,
6095 GOMP_loop_nonmonotonic_guided_start,
6096 GOMP_loop_ull_nonmonotonic_dynamic_next,
6097 GOMP_loop_ull_nonmonotonic_dynamic_start,
6098 GOMP_loop_ull_nonmonotonic_guided_next,
6099 GOMP_loop_ull_nonmonotonic_guided_start,
6100 GOMP_parallel_loop_nonmonotonic_dynamic,
6101 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6102 (GOMP_target_41): Renamed to ...
6103 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6105 (GOMP_target_data_41): Renamed to ...
6106 (GOMP_target_data_ext): ... this.
6107 (GOMP_target_update_41): Renamed to ...
6108 (GOMP_target_update_ext): ... this.
6109 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6110 GOMP_target_data_ext and GOMP_target_update_ext instead of
6111 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6112 Export GOMP_loop_nonmonotonic_dynamic_next,
6113 GOMP_loop_nonmonotonic_dynamic_start,
6114 GOMP_loop_nonmonotonic_guided_next,
6115 GOMP_loop_nonmonotonic_guided_start,
6116 GOMP_loop_ull_nonmonotonic_dynamic_next,
6117 GOMP_loop_ull_nonmonotonic_dynamic_start,
6118 GOMP_loop_ull_nonmonotonic_guided_next,
6119 GOMP_loop_ull_nonmonotonic_guided_start,
6120 GOMP_parallel_loop_nonmonotonic_dynamic and
6121 GOMP_parallel_loop_nonmonotonic_guided.
6122 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6123 GOMP_parallel_loop_nonmonotonic_guided,
6124 GOMP_loop_nonmonotonic_dynamic_start,
6125 GOMP_loop_nonmonotonic_guided_start,
6126 GOMP_loop_nonmonotonic_dynamic_next,
6127 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6128 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6129 GOMP_loop_ull_nonmonotonic_guided_start,
6130 GOMP_loop_ull_nonmonotonic_dynamic_next,
6131 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6132 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6134 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6135 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6136 Use gomp_map_val function.
6137 (gomp_target_fallback_firstprivate): New static function.
6138 (GOMP_target_41): Renamed to ...
6139 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6140 arguments. Move firstprivate fallback handling into a new
6142 (GOMP_target_data_41): Renamed to ...
6143 (GOMP_target_data_ext): ... this.
6144 (GOMP_target_update_41): Renamed to ...
6145 (GOMP_target_update_ext): ... this.
6146 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6147 gomp_map_0len_lookup instead of gomp_map_lookup.
6148 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6150 * testsuite/libgomp.c/target-28.c: Likewise.
6151 * testsuite/libgomp.c/monotonic-1.c: New test.
6152 * testsuite/libgomp.c/monotonic-2.c: New test.
6153 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6154 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6155 * testsuite/libgomp.c/pr66199-5.c: New test.
6156 * testsuite/libgomp.c/pr66199-6.c: New test.
6157 * testsuite/libgomp.c/pr66199-7.c: New test.
6158 * testsuite/libgomp.c/pr66199-8.c: New test.
6159 * testsuite/libgomp.c/pr66199-9.c: New test.
6160 * testsuite/libgomp.c/reduction-11.c: New test.
6161 * testsuite/libgomp.c/reduction-12.c: New test.
6162 * testsuite/libgomp.c/reduction-13.c: New test.
6163 * testsuite/libgomp.c/reduction-14.c: New test.
6164 * testsuite/libgomp.c/reduction-15.c: New test.
6165 * testsuite/libgomp.c/target-12.c (main): Adjust for
6166 omp_target_is_present change for one-past-last element.
6167 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6168 the same var is both mapped and privatized.
6169 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6170 handling of zero-length array sections.
6171 * testsuite/libgomp.c/target-28.c: New test.
6172 * testsuite/libgomp.c/target-29.c: New test.
6173 * testsuite/libgomp.c/target-30.c: New test.
6174 * testsuite/libgomp.c/target-teams-1.c: New test.
6175 * testsuite/libgomp.c++/member-6.C: New test.
6176 * testsuite/libgomp.c++/member-7.C: New test.
6177 * testsuite/libgomp.c++/monotonic-1.C: New test.
6178 * testsuite/libgomp.c++/monotonic-2.C: New test.
6179 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6180 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6181 * testsuite/libgomp.c++/pr66199-3.C: New test.
6182 * testsuite/libgomp.c++/pr66199-4.C: New test.
6183 * testsuite/libgomp.c++/pr66199-5.C: New test.
6184 * testsuite/libgomp.c++/pr66199-6.C: New test.
6185 * testsuite/libgomp.c++/pr66199-7.C: New test.
6186 * testsuite/libgomp.c++/pr66199-8.C: New test.
6187 * testsuite/libgomp.c++/pr66199-9.C: New test.
6188 * testsuite/libgomp.c++/reduction-11.C: New test.
6189 * testsuite/libgomp.c++/reduction-12.C: New test.
6190 * testsuite/libgomp.c++/target-13.C: New test.
6191 * testsuite/libgomp.c++/target-14.C: New test.
6192 * testsuite/libgomp.c++/target-15.C: New test.
6193 * testsuite/libgomp.c++/target-16.C: New test.
6194 * testsuite/libgomp.c++/target-17.C: New test.
6195 * testsuite/libgomp.c++/target-18.C: New test.
6196 * testsuite/libgomp.c++/target-19.C: New test.
6198 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6200 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6202 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6203 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6204 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6205 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6206 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6207 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6208 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6209 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6210 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6211 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6212 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6213 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6214 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6215 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6217 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6219 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6220 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6221 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6222 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6223 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6224 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6225 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6226 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6228 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6230 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6231 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6232 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6233 * oacc-host.c (host_openacc_exec): Likewise.
6234 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6236 2015-11-03 Julian Brown <julian@codesourcery.com>
6237 Thomas Schwinge <thomas@codesourcery.com>
6239 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6240 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6241 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6243 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6246 2015-11-03 James Norris <jnorris@codesourcery.com>
6248 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6250 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6252 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6254 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6255 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6256 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6258 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6260 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6262 (enum acc_async_t): Reformat.
6263 (acc_on_device): Declare compatible with builtin and provide C++
6265 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6267 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6268 Cesar Philippidis <cesar@codesourcery.com>
6270 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6271 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6272 ... this. Add a description of the test at the top of the file.
6273 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6274 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6275 ... this. Add a description of the test at the top of the file.
6277 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6279 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6280 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6281 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6282 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6283 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6284 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6286 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6288 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6291 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6294 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6296 2015-10-27 James Norris <jnorris@codesourcery.com>
6298 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6299 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6301 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6303 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6304 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6307 acc_device_nvidia usage.
6308 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6312 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6313 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6316 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6320 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6321 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6323 2015-10-23 Tom de Vries <tom@codesourcery.com>
6326 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6328 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6330 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6332 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6334 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6335 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6337 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6338 to 0 when mapnum is 0.
6340 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6342 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6343 Cast to int from int32_t.
6345 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6346 Aldy Hernandez <aldyh@redhat.com>
6347 Ilya Verbin <ilya.verbin@intel.com>
6349 * config/linux/affinity.c (omp_get_place_num_procs,
6350 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6351 * config/linux/doacross.h: New file.
6352 * config/posix/affinity.c (omp_get_place_num_procs,
6353 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6354 * config/posix/doacross.h: New file.
6355 * env.c: Include gomp-constants.h.
6356 (struct gomp_task_icv): Rename run_sched_modifier to
6357 run_sched_chunk_size.
6358 (gomp_max_task_priority_var): New variable.
6359 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6360 (handle_omp_display_env): Change _OPENMP value from 201307 to
6361 201511. Print OMP_MAX_TASK_PRIORITY.
6362 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6363 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6364 chunk_size and run_sched_modifier to run_sched_chunk_size.
6365 (omp_get_max_task_priority, omp_get_initial_device,
6366 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6367 omp_get_partition_place_nums): New functions.
6368 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6369 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6371 (omp_get_num_places_, omp_get_place_num_procs_,
6372 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6373 omp_get_place_proc_ids_8_, omp_get_place_num_,
6374 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6375 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6376 omp_get_max_task_priority_): New functions.
6377 * libgomp_g.h (GOMP_loop_doacross_static_start,
6378 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6379 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6380 GOMP_loop_ull_doacross_dynamic_start,
6381 GOMP_loop_ull_doacross_guided_start,
6382 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6383 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6384 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6385 GOMP_target_data_41, GOMP_target_update_41,
6386 GOMP_target_enter_exit_data): New prototypes.
6387 (GOMP_task): Add prototype argument.
6388 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6389 (struct gomp_doacross_work_share): New type.
6390 (struct gomp_work_share): Add doacross field.
6391 (struct gomp_task_icv): Rename run_sched_modifier to
6392 run_sched_chunk_size.
6393 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6394 GOMP_TASK_UNDEFERRED. Add comments.
6395 (struct gomp_task_depend_entry): Add comments.
6396 (struct gomp_task): Likewise.
6397 (struct gomp_taskgroup): Likewise.
6398 (struct gomp_target_task): New type.
6399 (struct gomp_team): Add comment.
6400 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6401 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6402 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6403 (struct target_var_desc): New type.
6404 (struct target_mem_desc): Adjust comment. Use struct
6405 target_var_desc instead of splay_tree_key for list.
6406 (REFCOUNT_INFINITY): Define.
6407 (struct splay_tree_key_s): Remove copy_from field.
6408 (struct gomp_device_descr): Add dev2dev_func field.
6409 (enum gomp_map_vars_kind): New enum.
6410 (gomp_map_vars): Add one argument.
6411 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6412 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6413 omp_get_place_num_procs, omp_get_place_num_procs_,
6414 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6415 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6416 omp_get_place_num_, omp_get_partition_num_places,
6417 omp_get_partition_num_places_, omp_get_partition_place_nums,
6418 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6419 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6420 omp_target_free, omp_target_is_present, omp_target_memcpy,
6421 omp_target_memcpy_rect, omp_target_associate_ptr and
6422 omp_target_disassociate_ptr.
6423 (GOMP_4.0.2): Renamed to ...
6424 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6425 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6426 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6427 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6428 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6429 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6430 GOMP_loop_ull_doacross_guided_start,
6431 GOMP_loop_ull_doacross_runtime_start,
6432 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6433 GOMP_doacross_ull_wait.
6434 * libgomp.texi: Document omp_get_max_task_priority.
6435 Rename modifier argument to chunk_size for omp_set_schedule and
6436 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6437 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6438 to run_sched_chunk_size renaming.
6439 (GOMP_loop_ordered_runtime_start): Likewise.
6440 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6441 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6442 GOMP_parallel_loop_runtime_start): New functions.
6443 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6444 to run_sched_chunk_size renaming.
6445 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6446 GOMP_loop_doacross_guided_start): New functions or aliases.
6447 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6448 run_sched_modifier to run_sched_chunk_size renaming.
6449 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6450 (gomp_loop_ull_doacross_static_start,
6451 gomp_loop_ull_doacross_dynamic_start,
6452 gomp_loop_ull_doacross_guided_start,
6453 GOMP_loop_ull_doacross_runtime_start): New functions.
6454 (GOMP_loop_ull_doacross_static_start,
6455 GOMP_loop_ull_doacross_dynamic_start,
6456 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6457 * oacc-mem.c (acc_map_data, present_create_copy,
6458 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6460 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6461 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6462 instead of false to gomp_map_vars.
6463 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6464 * omp.h.in (omp_lock_hint_t): New type.
6465 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6466 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6467 omp_get_place_num, omp_get_partition_num_places,
6468 omp_get_partition_place_nums, omp_get_initial_device,
6469 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6470 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6471 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6473 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6474 (omp_lock_hint_none, omp_lock_hint_uncontended,
6475 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6476 omp_lock_hint_speculative): New parameters.
6477 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6478 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6479 omp_get_place_num, omp_get_partition_num_places,
6480 omp_get_partition_place_nums, omp_get_initial_device,
6481 omp_get_max_task_priority): New interfaces.
6482 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6484 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6485 (omp_lock_hint_none, omp_lock_hint_uncontended,
6486 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6487 omp_lock_hint_speculative): New parameters.
6488 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6489 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6490 omp_get_place_num, omp_get_partition_num_places,
6491 omp_get_partition_place_nums, omp_get_initial_device,
6492 omp_get_max_task_priority): New functions and subroutines.
6493 * ordered.c: Include stdarg.h and string.h.
6494 (MAX_COLLAPSED_BITS): Define.
6495 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6496 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6497 GOMP_doacross_ull_wait): New functions.
6498 * target.c: Include errno.h.
6499 (resolve_device): If device is not initialized, call
6500 gomp_init_device on it.
6501 (gomp_map_lookup): New function.
6502 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6503 Don't bump refcount if REFCOUNT_INFINITY. Handle
6504 GOMP_MAP_ALWAYS_TO_P.
6505 (get_kind): Rename is_openacc argument to short_mapkind.
6506 (gomp_map_pointer): Use gomp_map_lookup.
6507 (gomp_map_fields_existing): New function.
6508 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6509 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6510 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6511 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6512 Adjust for tgt->list changed type and copy_from living in there.
6513 (gomp_copy_from_async): Adjust for tgt->list changed type and
6514 copy_from living in there.
6515 (gomp_unmap_vars): Likewise.
6516 (gomp_update): Likewise. Rename is_openacc argument to
6517 short_mapkind. Don't fail if object is not mapped.
6518 (gomp_load_image_to_device): Initialize refcount to
6520 (gomp_target_fallback): New function.
6521 (gomp_get_target_fn_addr): Likewise.
6522 (GOMP_target): Adjust gomp_map_vars caller, use
6523 gomp_get_target_fn_addr and gomp_target_fallback.
6524 (GOMP_target_41): New function.
6525 (gomp_target_data_fallback): New function.
6526 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6527 (GOMP_target_data_41): New function.
6528 (GOMP_target_update): Adjust gomp_update caller.
6529 (GOMP_target_update_41): New function.
6530 (gomp_exit_data, GOMP_target_enter_exit_data,
6531 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6532 omp_target_is_present, omp_target_memcpy,
6533 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6534 omp_target_associate_ptr, omp_target_disassociate_ptr,
6535 gomp_load_plugin_for_device): New functions.
6536 * task.c: Include gomp-constants.h. Include taskloop.c
6537 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6538 (gomp_task_handle_depend): New function.
6539 (GOMP_task): Use it. Add priority argument. Use
6540 gomp-constant.h constants instead of hardcoded numbers.
6541 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6542 (gomp_create_target_task): New function.
6543 (verify_children_queue, verify_taskgroup_queue,
6544 verify_task_queue): New functions.
6545 (gomp_task_run_pre): Call verify_*_queue functions.
6546 If an upcoming tied task is about to leave the sibling or
6547 taskgroup queues in an invalid state, adjust appropriately.
6548 Remove taskgroup argument. Add comments.
6549 (gomp_task_run_post_handle_dependers): Add comments.
6550 (gomp_task_run_post_remove_parent): Likewise.
6551 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6552 (GOMP_taskwait): Likewise. Add comments.
6553 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6554 problem such that the first non parent_depends_on task does not
6555 end up at the end of the children queue.
6556 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6557 GOMP_TASK_UNDEFERRED.
6558 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6559 * taskloop.c: New file.
6560 * testsuite/lib/libgomp.exp
6561 (check_effective_target_offload_device_nonshared_as): New proc.
6562 * testsuite/libgomp.c/affinity-2.c: New test.
6563 * testsuite/libgomp.c/doacross-1.c: New test.
6564 * testsuite/libgomp.c/doacross-2.c: New test.
6565 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6566 Add map clause to target.
6567 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6568 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6569 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6570 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6571 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6573 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6574 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6575 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6576 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6577 not defined. Use those where needed.
6578 * testsuite/libgomp.c/for-4.c: New test.
6579 * testsuite/libgomp.c/for-5.c: New test.
6580 * testsuite/libgomp.c/for-6.c: New test.
6581 * testsuite/libgomp.c/linear-1.c: New test.
6582 * testsuite/libgomp.c/ordered-4.c: New test.
6583 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6584 only allowed on the loop iterator.
6585 * testsuite/libgomp.c/pr66199-3.c: New test.
6586 * testsuite/libgomp.c/pr66199-4.c: New test.
6587 * testsuite/libgomp.c/reduction-7.c: New test.
6588 * testsuite/libgomp.c/reduction-8.c: New test.
6589 * testsuite/libgomp.c/reduction-9.c: New test.
6590 * testsuite/libgomp.c/reduction-10.c: New test.
6591 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6593 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6594 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6595 * testsuite/libgomp.c/target-11.c: New test.
6596 * testsuite/libgomp.c/target-12.c: New test.
6597 * testsuite/libgomp.c/target-13.c: New test.
6598 * testsuite/libgomp.c/target-14.c: New test.
6599 * testsuite/libgomp.c/target-15.c: New test.
6600 * testsuite/libgomp.c/target-16.c: New test.
6601 * testsuite/libgomp.c/target-17.c: New test.
6602 * testsuite/libgomp.c/target-18.c: New test.
6603 * testsuite/libgomp.c/target-19.c: New test.
6604 * testsuite/libgomp.c/target-20.c: New test.
6605 * testsuite/libgomp.c/target-21.c: New test.
6606 * testsuite/libgomp.c/target-22.c: New test.
6607 * testsuite/libgomp.c/target-23.c: New test.
6608 * testsuite/libgomp.c/target-24.c: New test.
6609 * testsuite/libgomp.c/target-25.c: New test.
6610 * testsuite/libgomp.c/target-26.c: New test.
6611 * testsuite/libgomp.c/target-27.c: New test.
6612 * testsuite/libgomp.c/taskloop-1.c: New test.
6613 * testsuite/libgomp.c/taskloop-2.c: New test.
6614 * testsuite/libgomp.c/taskloop-3.c: New test.
6615 * testsuite/libgomp.c/taskloop-4.c: New test.
6616 * testsuite/libgomp.c++/ctor-13.C: New test.
6617 * testsuite/libgomp.c++/doacross-1.C: New test.
6618 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6619 Replace offload_device with offload_device_nonshared_as.
6620 * testsuite/libgomp.c++/for-12.C: New test.
6621 * testsuite/libgomp.c++/for-13.C: New test.
6622 * testsuite/libgomp.c++/for-14.C: New test.
6623 * testsuite/libgomp.c++/linear-1.C: New test.
6624 * testsuite/libgomp.c++/member-1.C: New test.
6625 * testsuite/libgomp.c++/member-2.C: New test.
6626 * testsuite/libgomp.c++/member-3.C: New test.
6627 * testsuite/libgomp.c++/member-4.C: New test.
6628 * testsuite/libgomp.c++/member-5.C: New test.
6629 * testsuite/libgomp.c++/ordered-1.C: New test.
6630 * testsuite/libgomp.c++/reduction-5.C: New test.
6631 * testsuite/libgomp.c++/reduction-6.C: New test.
6632 * testsuite/libgomp.c++/reduction-7.C: New test.
6633 * testsuite/libgomp.c++/reduction-8.C: New test.
6634 * testsuite/libgomp.c++/reduction-9.C: New test.
6635 * testsuite/libgomp.c++/reduction-10.C: New test.
6636 * testsuite/libgomp.c++/reference-1.C: New test.
6637 * testsuite/libgomp.c++/simd14.C: New test.
6638 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6639 * testsuite/libgomp.c++/target-5.C: New test.
6640 * testsuite/libgomp.c++/target-6.C: New test.
6641 * testsuite/libgomp.c++/target-7.C: New test.
6642 * testsuite/libgomp.c++/target-8.C: New test.
6643 * testsuite/libgomp.c++/target-9.C: New test.
6644 * testsuite/libgomp.c++/target-10.C: New test.
6645 * testsuite/libgomp.c++/target-11.C: New test.
6646 * testsuite/libgomp.c++/target-12.C: New test.
6647 * testsuite/libgomp.c++/taskloop-1.C: New test.
6648 * testsuite/libgomp.c++/taskloop-2.C: New test.
6649 * testsuite/libgomp.c++/taskloop-3.C: New test.
6650 * testsuite/libgomp.c++/taskloop-4.C: New test.
6651 * testsuite/libgomp.c++/taskloop-5.C: New test.
6652 * testsuite/libgomp.c++/taskloop-6.C: New test.
6653 * testsuite/libgomp.c++/taskloop-7.C: New test.
6654 * testsuite/libgomp.c++/taskloop-8.C: New test.
6655 * testsuite/libgomp.c++/taskloop-9.C: New test.
6656 * testsuite/libgomp.fortran/affinity1.f90: New test.
6657 * testsuite/libgomp.fortran/affinity2.f90: New test.
6659 2015-10-13 Tom de Vries <tom@codesourcery.com>
6661 PR tree-optimization/67476
6662 * testsuite/libgomp.c/autopar-3.c: New test.
6663 * testsuite/libgomp.c/autopar-4.c: New test.
6664 * testsuite/libgomp.c/autopar-5.c: New test.
6665 * testsuite/libgomp.c/autopar-6.c: New test.
6666 * testsuite/libgomp.c/autopar-7.c: New test.
6667 * testsuite/libgomp.c/autopar-8.c: New test.
6669 2015-10-12 James Norris <jnorris@codesourcery.com>
6671 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6674 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6676 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6679 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6681 * oacc-ptx.h: Remove file, moving its content into...
6682 * config/nvptx/fortran.c: ... here...
6683 * config/nvptx/oacc-init.c: ..., here...
6684 * config/nvptx/oacc-parallel.c: ..., and here.
6685 * config/nvptx/openacc.f90: New file.
6686 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6687 (link_ptx): Don't link in predefined bits of PTX code.
6689 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6690 Bernd Schmidt <bernds@codesourcery.com>
6692 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6693 (struct targ_ptx_obj): New.
6694 (nvptx_tdata): Move earlier, change data format.
6695 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6697 (GOMP_OFFLOAD_load_image): Adjust.
6699 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6701 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6702 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6703 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6704 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6705 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6706 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6707 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6708 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6709 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6710 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6711 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6712 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6713 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6714 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6715 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6716 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6717 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6718 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6719 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6720 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6721 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6722 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6723 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6724 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6725 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6726 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6727 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6728 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6729 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6730 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6731 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6732 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6733 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6734 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6735 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6736 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6737 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6738 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6739 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6740 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6741 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6742 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6743 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6744 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6745 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6746 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6747 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6748 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6749 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6750 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6752 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6755 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6756 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6757 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6758 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6759 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6760 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6761 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6762 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6763 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6765 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6767 * oacc-init.c (acc_on_device): Force optimization level.
6769 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6771 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6772 (cuda_errlist): Delete.
6773 (cuda_error): Reimplement.
6775 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6777 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6779 * libgomp.map (GOACC_parallel_keyed): New.
6780 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6782 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6783 and take keyed varargs list. Adjust call to exec_func.
6784 (GOACC_parallel): Force host fallback.
6785 * libgomp_g.h (GOACC_parallel): Remove.
6786 (GOACC_parallel_keyed): Declare.
6787 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6788 (struct targ_gn_descriptor): Replace name field with launch field.
6789 (nvptx_exec): Lose separate geometry args, take array. Process
6790 dynamic dimensions and adjust.
6791 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6792 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6794 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6796 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6799 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6802 * oacc-int.h (goacc_host_init): Add declaration.
6803 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6804 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6806 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6807 Sebastian Pop <s.pop@samsung.com>
6809 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6811 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6812 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6813 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6814 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6815 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6817 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6819 * configure.tgt: Add missing ;; in between nvptx and rtems
6822 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6824 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6825 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6826 (gomp_thread_pool_reservoir): Add priority member.
6827 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6829 (parse_thread_pools): Likewise.
6830 * team.c (gomp_team_start): Call configuration provided
6831 gomp_adjust_thread_attr(). Destroy thread attributes if
6833 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6835 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6837 * config/posix/pool.h: New.
6838 * config/rtems/pool.h: Likewise.
6839 * config/rtems/proc.c: Likewise.
6840 * libgomp.h (gomp_thread_destructor): Declare.
6841 * team.c: Include configuration provided "pool.h".
6842 (gomp_get_thread_pool): Define in configuration.
6843 (gomp_team_end): Call configuration defined
6844 gomp_release_thread_pool().
6846 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6848 * config/rtems/bar.c: New.
6849 * config/rtems/bar.h: Likewise.
6850 * config/rtems/mutex.c: Likewise.
6851 * config/rtems/mutex.h: Likewise.
6852 * config/rtems/sem.c: Likewise.
6853 * config/rtems/sem.h: Likewise.
6854 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6855 <sys/lock.h> header file.
6856 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6857 supported by Newlib.
6858 * configure: Regenerate.
6860 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6862 * team.c (gomp_new_thread_pool): Delete and move content to ...
6863 (gomp_get_thread_pool): ... new function. Allocate and
6864 initialize thread pool on demand.
6865 (get_last_team): Use gomp_get_thread_pool().
6866 (gomp_team_start): Delete thread pool initialization.
6868 2015-09-03 Tom de Vries <tom@codesourcery.com>
6870 PR tree-optimization/65637
6871 * testsuite/libgomp.c/autopar-2.c: New test.
6873 2015-08-29 Tom de Vries <tom@codesourcery.com>
6875 PR tree-optimization/46193
6876 * testsuite/libgomp.c/pr46193.c: New test.
6878 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6881 * libgomp.map: Add 4.0.2 version.
6882 * target.c (offload_image_descr): Add version field.
6883 (gomp_load_image_to_device): Add version argument. Adjust plugin
6884 call. Improve load mismatch diagnostic.
6885 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6887 (GOMP_offload_regster): Make stub function, move bulk to ...
6888 (GOMP_offload_register_ver): ... here. Process version argument.
6889 (GOMP_offload_unregister): Make stub function, move bulk to ...
6890 (GOMP_offload_unregister_ver): ... here. Process version argument.
6891 (gomp_init_device): Process version field.
6892 (gomp_unload_device): Process version field.
6893 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6894 macros. Check plugin version.
6895 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6896 loader and unloader types.
6897 * oacc-host.c: Include gomp-constants.h.
6898 (host_version): New.
6899 (host_load_image, host_unload_image): Adjust.
6900 (host_dispatch): Add host_version.
6901 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6902 (GOMP_OFFLOAD_version): New.
6903 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6904 (GOMP_OFFLOAD_unload_image): Likewise.
6905 * plugin/plugin-host.c: Include gomp-constants.h.
6906 (GOMP_OFFLOAD_version): New.
6907 (GOMP_OFFLOAD_load_image): Add version arg.
6908 (GOMP_OFFLOAD_unload_image): Likewise.
6910 2015-08-24 Tom de Vries <tom@codesourcery.com>
6912 PR tree-optimization/65468
6913 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6915 2015-08-24 Tom de Vries <tom@codesourcery.com>
6917 PR tree-optimization/65468
6918 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6920 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6924 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6925 (gomp_iter_guided_next): Idem.
6926 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6927 (gomp_iter_ull_guided_next): Idem.
6928 * config/linux/wait.h (do_spin): Idem.
6930 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6932 * libgomp-plugin.h (enum offload_target_type): Remove
6933 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6934 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6935 * openacc.h (enum acc_device_t): Likewise.
6936 * openacc_lib.h: Likewise.
6937 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6938 (acc_on_device): Just use __builtin_acc_on_device.
6939 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6940 of acc_on_device builtin.
6941 * plugin/plugin-host.h: Remove file.
6942 * plugin/plugin-host.c: Likewise, but salvage some content into...
6943 * oacc-host.c: ... this file.
6944 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6945 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6946 * Makefile.in: Regenerate.
6947 * configure: Likewise.
6948 * testsuite/lib/libgomp.exp
6949 (check_effective_target_openacc_host_nonshm_selected): Remove.
6950 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6951 ACC_DEVICE_TYPE=host_nonshm.
6952 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6953 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6955 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6956 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6957 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6959 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6960 Jakub Jelinek <jakub@redhat.com>
6962 * config/nvptx/affinity.c: New file.
6963 * config/nvptx/alloc.c: Likewise.
6964 * config/nvptx/bar.c: Likewise.
6965 * config/nvptx/barrier.c: Likewise.
6966 * config/nvptx/critical.c: Likewise.
6967 * config/nvptx/env.c: Likewise.
6968 * config/nvptx/error.c: Likewise.
6969 * config/nvptx/fortran.c: Likewise.
6970 * config/nvptx/iter.c: Likewise.
6971 * config/nvptx/iter_ull.c: Likewise.
6972 * config/nvptx/libgomp-plugin.c: Likewise.
6973 * config/nvptx/lock.c: Likewise.
6974 * config/nvptx/loop.c: Likewise.
6975 * config/nvptx/loop_ull.c: Likewise.
6976 * config/nvptx/mutex.c: Likewise.
6977 * config/nvptx/oacc-async.c: Likewise.
6978 * config/nvptx/oacc-cuda.c: Likewise.
6979 * config/nvptx/oacc-host.c: Likewise.
6980 * config/nvptx/oacc-init.c: Likewise.
6981 * config/nvptx/oacc-mem.c: Likewise.
6982 * config/nvptx/oacc-parallel.c: Likewise.
6983 * config/nvptx/oacc-plugin.c: Likewise.
6984 * config/nvptx/omp-lock.h: Likewise.
6985 * config/nvptx/ordered.c: Likewise.
6986 * config/nvptx/parallel.c: Likewise.
6987 * config/nvptx/proc.c: Likewise.
6988 * config/nvptx/ptrlock.c: Likewise.
6989 * config/nvptx/sections.c: Likewise.
6990 * config/nvptx/sem.c: Likewise.
6991 * config/nvptx/single.c: Likewise.
6992 * config/nvptx/splay-tree.c: Likewise.
6993 * config/nvptx/target.c: Likewise.
6994 * config/nvptx/task.c: Likewise.
6995 * config/nvptx/team.c: Likewise.
6996 * config/nvptx/time.c: Likewise.
6997 * config/nvptx/work.c: Likewise.
6998 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6999 * configure: Regenerate.
7000 * configure.tgt (config_path): Set to "nvptx" for target
7003 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7005 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7007 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7009 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7010 (cuda_errlist): Constify.
7011 (errmsg): Move into ...
7012 (cuda_error): ... here. Make smaller.
7013 (_XSTR, _STR): Delete.
7014 (cuda_synames): Delete.
7015 (verify_device_library): Delete.
7016 (nvptx_init): Don't call it.
7018 2015-07-28 Tom de Vries <tom@codesourcery.com>
7020 * testsuite/libgomp.c/uns-outer-4.c: New test.
7022 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7024 * testsuite/libgomp.c/pr66714.c: New test.
7026 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7029 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7030 (fib_ref): New function.
7031 (fib): Correct corner cases in the recursion.
7032 (main): Replace the non-simd loop with fib_ref call.
7033 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7035 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7036 for the last array element value. Replace the non-simd loop with
7037 fib_ref call. Remove redundant b_ref array. Remove the comparison
7038 of the last array element with according Fibonacci sequence element.
7039 (fib): Correct corner cases in the recursion.
7041 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7043 * target.c (gomp_offload_image_to_device): Rename to ...
7044 (gomp_load_image_to_device): ... here.
7045 (GOMP_offload_register): Adjust call.
7046 (gomp_init_device): Likewise.
7047 (gomp_unload_image_from_device): New. Broken out of ...
7048 (GOMP_offload_unregister): ... here. Call it.
7049 (gomp_unload_device): New.
7050 * libgomp.h (gomp_unload_device): Declare.
7051 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7054 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7056 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7058 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7060 (goacc_waits): Move !num_waits handling to ...
7061 (GOACC_wait): ... here, the only caller that might have zero waits.
7063 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7064 (struct ptx_image_data): Move earlier, add fns field.
7065 (struct ptx_device): Add images and image_lock fields.
7066 (ptx_images, ptx_image_lock): Delete.
7067 (nvptx_open_device): Initialize images and image_lock fields.
7068 (nvptx_close_device): Destroy image_lock.
7069 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7070 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7073 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7075 * target.c (GOMP_offload_register): Use int for device type arg.
7076 (GOMP_offload_unregister): Likewise.
7078 * target.c (struct_offload_image_descr): Constify host_table.
7079 (gomp_offload_image_to_device): Likewise.
7080 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7082 * libgomp.h (gomp_device_descr): Constify target data arguments.
7083 * target.c (struct offload_image_descr): Constify target_data.
7084 (gomp_offload_image_to_device): Likewise.
7085 (GOMP_offload_register): Likewise.
7086 (GOMP_offload_unregister): Likewise.
7087 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7088 GOMP_OFFLOAD_unload_image): Constify target data.
7089 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7090 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7092 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7094 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7095 Workaround driver library const error.
7096 (struct nvptx_tdata, nvptx_tdata_t): New.
7097 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7100 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7102 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7103 of EPS parameter from integer to real.
7104 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7105 type of EPS parameter from integer to real.
7107 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7109 * team.c (get_last_team): New.
7110 (gomp_new_team): Recycle last non-nested team if possible.
7111 (gomp_team_end): Move team work share list free lock destruction
7113 (free_team): ... here.
7115 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7117 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7118 and ref from int to double. Replaced their comparison with
7119 an inequality of their difference and EPS.
7120 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7121 comparison of pri and a reference number with an inequality of their
7123 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7124 the comparison of sum and sum_ref with an inequality of their
7126 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7127 the comparison of pri and a reference number with an inequality of
7128 their difference and EPS.
7130 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7132 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7133 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7134 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7135 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7136 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7137 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7138 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7139 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7140 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7141 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7142 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7143 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7144 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7146 (vec_mult): Likewise. Add #pragma omp taskwait.
7147 (main): Adjust caller.
7148 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7149 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7150 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7151 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7152 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7153 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7154 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7155 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7156 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7157 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7158 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7159 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7160 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7161 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7162 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7163 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7164 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7165 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7166 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7167 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7168 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7169 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7170 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7171 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7172 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7173 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7174 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7175 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7176 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7177 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7178 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7179 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7180 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7181 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7182 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7183 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7184 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7185 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7186 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7187 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7188 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7189 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7190 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7191 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7192 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7193 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7194 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7195 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7196 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7197 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7198 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7199 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7200 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7201 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7202 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7203 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7204 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7205 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7206 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7207 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7208 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7209 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7210 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7211 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7212 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7213 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7214 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7215 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7216 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7217 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7218 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7219 (vec_mult): Add !$omp taskwait.
7220 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7221 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7222 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7223 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7224 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7225 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7226 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7227 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7228 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7229 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7230 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7231 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7232 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7233 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7234 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7235 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7236 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7237 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7238 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7239 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7240 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7241 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7242 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7243 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7244 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7245 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7246 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7247 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7248 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7249 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7250 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7251 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7252 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7253 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7254 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7255 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7256 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7257 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7258 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7259 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7260 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7261 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7262 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7263 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7264 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7265 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7266 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7267 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7268 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7269 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7270 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7271 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7272 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7273 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7274 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7275 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7276 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7277 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7278 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7279 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7280 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7281 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7282 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7283 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7284 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7285 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7286 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7288 2015-07-10 Tom de Vries <tom@codesourcery.com>
7290 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7291 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7293 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7296 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7297 in a 64-bit configuration.
7298 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7299 offloading testing if no such device is available.
7300 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7301 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7303 2015-07-08 Tom de Vries <tom@codesourcery.com>
7305 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7307 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7309 2015-07-07 Tom de Vries <tom@codesourcery.com>
7311 PR tree-optimization/66642
7312 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7313 iteration count case.
7314 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7315 function, factor out of ...
7316 (main): ... here. Test low iteration count case.
7318 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7320 * libgomp.h (gomp_thread_pool): Comment last_team field.
7322 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7324 * testsuite/libgomp.c++/pr66702-1.C: Require
7325 vect_simd_clones effective target.
7326 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7328 2015-06-30 Tom de Vries <tom@codesourcery.com>
7330 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7331 already set. Use DEFAULT_CFLAGS in dg-runtest.
7332 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7335 2015-06-30 Tom de Vries <tom@codesourcery.com>
7337 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7338 already set. Use DEFAULT_CFLAGS in dg-runtest.
7339 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7340 * testsuite/libgomp.c++/pr64824.C: Same.
7341 * testsuite/libgomp.c++/pr64868.C: Same.
7342 * testsuite/libgomp.c++/pr66199-1.C: Same.
7343 * testsuite/libgomp.c++/pr66199-2.C: Same.
7344 * testsuite/libgomp.c++/target-2.C: Same.
7345 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7346 -std=<standard> option.
7347 * testsuite/libgomp.c++/udr-11.C: Same.
7348 * testsuite/libgomp.c++/udr-12.C: Same.
7349 * testsuite/libgomp.c++/udr-13.C: Same.
7350 * testsuite/libgomp.c++/udr-14.C: Same.
7351 * testsuite/libgomp.c++/udr-15.C: Same.
7352 * testsuite/libgomp.c++/udr-16.C: Same.
7353 * testsuite/libgomp.c++/udr-17.C: Same.
7354 * testsuite/libgomp.c++/udr-18.C: Same.
7355 * testsuite/libgomp.c++/udr-19.C: Same.
7356 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7357 * testsuite/libgomp.c++/simd-1.C: Same.
7358 * testsuite/libgomp.c++/simd-2.C: Same.
7359 * testsuite/libgomp.c++/simd-3.C: Same.
7360 * testsuite/libgomp.c++/simd-4.C: Same.
7361 * testsuite/libgomp.c++/simd-5.C: Same.
7362 * testsuite/libgomp.c++/simd-6.C: Same.
7363 * testsuite/libgomp.c++/simd-7.C: Same.
7364 * testsuite/libgomp.c++/simd-8.C: Same.
7365 * testsuite/libgomp.c++/simd-9.C: Same.
7366 * testsuite/libgomp.c++/simd10.C: Same.
7367 * testsuite/libgomp.c++/simd11.C: Same.
7368 * testsuite/libgomp.c++/simd12.C: Same.
7369 * testsuite/libgomp.c++/simd13.C: Same.
7371 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7374 * testsuite/libgomp.c++/pr66702-1.C: New test.
7375 * testsuite/libgomp.c++/pr66702-2.C: New test.
7377 2015-06-30 Tom de Vries <tom@codesourcery.com>
7379 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7380 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7381 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7382 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7384 2015-06-30 Tom de Vries <tom@codesourcery.com>
7386 PR tree-optimization/66652
7387 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7388 using restrict pointers.
7389 (main): Add arguments to calls to f.
7390 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7392 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7394 * configure.ac: Fix check for header <sys/sysctl.h>.
7395 * configure: Regenerate.
7396 * config.h.in: Likewise.
7398 2015-06-23 Tom de Vries <tom@codesourcery.com>
7400 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7402 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7404 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7406 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7410 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7411 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7413 2015-06-15 Tom de Vries <tom@codesourcery.com>
7415 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7416 dg-additional-options for any remaining options.
7417 * testsuite/libgomp.c/atomic-2.c: Same.
7418 * testsuite/libgomp.c/atomic-4.c: Same.
7419 * testsuite/libgomp.c/atomic-5.c: Same.
7420 * testsuite/libgomp.c/atomic-6.c: Same.
7421 * testsuite/libgomp.c/autopar-1.c: Same.
7422 * testsuite/libgomp.c/copyin-1.c: Same.
7423 * testsuite/libgomp.c/copyin-2.c: Same.
7424 * testsuite/libgomp.c/copyin-3.c: Same.
7425 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7426 * testsuite/libgomp.c/nestedfn-5.c: Same.
7427 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7428 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7429 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7430 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7431 * testsuite/libgomp.c/pr32362-1.c: Same.
7432 * testsuite/libgomp.c/pr32362-2.c: Same.
7433 * testsuite/libgomp.c/pr32362-3.c: Same.
7434 * testsuite/libgomp.c/pr39591-1.c: Same.
7435 * testsuite/libgomp.c/pr39591-2.c: Same.
7436 * testsuite/libgomp.c/pr39591-3.c: Same.
7437 * testsuite/libgomp.c/pr58392.c: Same.
7438 * testsuite/libgomp.c/pr58756.c: Same.
7439 * testsuite/libgomp.c/simd-1.c: Same.
7440 * testsuite/libgomp.c/simd-10.c: Same.
7441 * testsuite/libgomp.c/simd-11.c: Same.
7442 * testsuite/libgomp.c/simd-12.c: Same.
7443 * testsuite/libgomp.c/simd-13.c: Same.
7444 * testsuite/libgomp.c/simd-14.c: Same.
7445 * testsuite/libgomp.c/simd-15.c: Same.
7446 * testsuite/libgomp.c/simd-2.c: Same.
7447 * testsuite/libgomp.c/simd-3.c: Same.
7448 * testsuite/libgomp.c/simd-4.c: Same.
7449 * testsuite/libgomp.c/simd-5.c: Same.
7450 * testsuite/libgomp.c/simd-6.c: Same.
7451 * testsuite/libgomp.c/simd-7.c: Same.
7452 * testsuite/libgomp.c/simd-8.c: Same.
7453 * testsuite/libgomp.c/simd-9.c: Same.
7455 2015-06-15 Tom de Vries <tom@codesourcery.com>
7457 * testsuite/libgomp.c/pr35625.c: Fix typo.
7459 2015-06-15 Tom de Vries <tom@codesourcery.com>
7461 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7463 * testsuite/libgomp.c/atomic-3.c: Same.
7464 * testsuite/libgomp.c/debug-1.c: Same.
7465 * testsuite/libgomp.c/nqueens-1.c: Same.
7466 * testsuite/libgomp.c/pr26171.c: Same.
7467 * testsuite/libgomp.c/pr48591.c: Same.
7468 * testsuite/libgomp.c/pr64824.c: Same.
7469 * testsuite/libgomp.c/pr64868.c: Same.
7470 * testsuite/libgomp.c/pr66133.c: Same.
7471 * testsuite/libgomp.c/pr66199-1.c: Same.
7472 * testsuite/libgomp.c/pr66199-2.c: Same.
7473 * testsuite/libgomp.c/target-8.c: Same.
7475 2015-06-15 Tom de Vries <tom@codesourcery.com>
7477 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7479 * testsuite/libgomp.c/for-1.c: Same.
7480 * testsuite/libgomp.c/for-2.c: Same.
7481 * testsuite/libgomp.c/for-3.c: Same.
7482 * testsuite/libgomp.c/pr35625.c: Same.
7483 * testsuite/libgomp.c/pr39154.c: Same.
7484 * testsuite/libgomp.c/simd-16.c: Same.
7485 * testsuite/libgomp.c/simd-17.c: Same.
7487 2015-06-13 Tom de Vries <tom@codesourcery.com>
7489 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7491 2015-06-13 Tom de Vries <tom@codesourcery.com>
7493 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7494 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7495 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7497 (main): Use N instead of hardcoded constants.
7499 2015-06-05 Tom de Vries <tom@codesourcery.com>
7501 merge from gomp4 branch:
7502 2015-05-28 Tom de Vries <tom@codesourcery.com>
7504 PR tree-optimization/65443
7505 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7506 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7507 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7509 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7511 * testsuite/libgomp.graphite/bounds.c: Adjust for
7512 cleanup-tree-dump removal.
7513 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7514 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7515 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7516 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7517 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7518 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7519 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7520 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7521 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7522 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7524 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7526 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7527 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7528 (futex_wake) [!__x86_64__]: Ditto.
7530 2015-05-28 Julian Brown <julian@codesourcery.com>
7532 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7533 function comment. Only call gomp_fatal if new argument is true.
7534 (acc_dev_num_out_of_range): New function.
7535 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7536 acc_dev_num_out_of_range as appropriate.
7537 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7538 (acc_get_device_num, acc_set_device_num): Update calls to
7540 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7543 2015-05-28 Julian Brown <julian@codesourcery.com>
7546 * oacc-init.c (plugin/plugin-host.h): Include.
7547 (acc_on_device): Check whether we're in an offloaded region for
7549 plugin. Don't use __builtin_acc_on_device.
7550 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7551 nonshm_exec flag in thread-local data.
7552 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7553 data for host_nonshm plugin.
7554 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7555 for host_nonshm plugin.
7556 * plugin/plugin-host.h: New.
7558 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7560 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7562 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7564 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7566 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7567 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7570 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7572 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7574 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7576 * target.c (gomp_map_pointer): New function abstracting out
7577 GOMP_MAP_POINTER handling.
7578 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7581 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7584 * testsuite/libgomp.c/pr66199-1.c: New test.
7585 * testsuite/libgomp.c/pr66199-2.c: New test.
7586 * testsuite/libgomp.c++/pr66199-1.C: New test.
7587 * testsuite/libgomp.c++/pr66199-2.C: New test.
7588 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7589 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7591 2015-05-19 Julian Brown <julian@codesourcery.com>
7593 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7596 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7599 * testsuite/libgomp.c/pr66133.c: New test.
7601 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7603 * Makefile.in: Regenerated with automake-1.11.6.
7604 * aclocal.m4: Likewise.
7605 * config.h.in: Likewise.
7606 * configure: Likewise.
7607 * testsuite/Makefile.in: Likewise.
7609 2015-05-08 Jason Merrill <jason@redhat.com>
7611 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7614 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7616 2015-05-06 Julian Brown <julian@codesourcery.com>
7618 * oacc-init.c (acc_device_lock): Add explanatory comment.
7619 (resolve_device): Add comment about locking requirement.
7620 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7621 gomp_init_device and gomp_fini_device calls.
7622 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7623 (acc_get_device_num, acc_set_device_num): Add locking around
7624 resolve_device and gomp_init_device calls.
7626 2015-05-06 Julian Brown <julian@codesourcery.com>
7628 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7629 goacc_thread_lock on error paths.
7630 * oacc-mem.c (lookup_host): Remove locking from function. Note
7631 locking requirement for caller in function comment.
7632 (lookup_dev): Likewise.
7633 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7634 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7635 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7638 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7642 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7643 don't expect "0x" prefix for "%p" format specifier, don't expect
7644 "(nil)" for NULL pointer.
7645 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7651 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7653 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7654 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7657 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7660 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7663 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7664 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7665 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7666 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7667 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7668 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7669 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7670 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7671 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7672 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7673 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7674 accurately specify what we're looking for.
7675 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7676 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7677 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7678 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7679 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7681 2015-04-30 James Norris <jnorris@codesourcery.com>
7684 * testsuite/lib/libgomp.exp
7685 (check_effective_target_openacc_host_selected)
7686 (check_effective_target_openacc_host_nonshm_selected): New
7688 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7690 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7691 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7692 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7693 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7694 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7695 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7696 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7697 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7698 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7699 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7700 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7701 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7702 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7703 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7704 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7705 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7706 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7707 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7708 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7709 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7710 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7711 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7712 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7713 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7714 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7715 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7716 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7717 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7718 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7719 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7720 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7721 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7722 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7723 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7724 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7725 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7726 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7727 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7728 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7729 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7730 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7731 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7732 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7734 2015-04-08 Julian Brown <julian@codesourcery.com>
7736 * libgomp.h (target_mem_desc: Remove mem_map field.
7737 (acc_dispatch_t): Remove open_device_func, close_device_func,
7738 get_device_num_func, set_device_num_func, target_data members.
7739 Change create_thread_data_func argument to device number instead of
7741 * oacc-async.c (assert.h): Include.
7742 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7743 (acc_wait_all, acc_wait_all_async): Use current host thread's
7744 active device, not base_dev.
7745 * oacc-cuda.c (acc_get_current_cuda_device)
7746 (acc_get_current_cuda_context, acc_get_cuda_stream)
7747 (acc_set_cuda_stream): Likewise.
7748 * oacc-host.c (host_dispatch): Don't set open_device_func,
7749 close_device_func, get_device_num_func or set_device_num_func.
7750 * oacc-init.c (base_dev, init_key): Remove.
7751 (cached_base_dev): New.
7752 (name_of_acc_device_t): New.
7753 (acc_init_1): Initialise default-numbered device, not zeroth.
7754 (acc_shutdown_1): Close all devices of a given type.
7755 (goacc_destroy_thread): Don't use base_dev.
7756 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7757 (goacc_attach_host_thread_to_device): New.
7758 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7759 (acc_get_num_devices): Don't use base_dev.
7760 (acc_set_device_type): Reimplement.
7761 (acc_get_device_type): Don't use base_dev.
7762 (acc_get_device_num): Tweak logic.
7763 (acc_set_device_num): Likewise.
7764 (acc_on_device): Use acc_get_device_type.
7765 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7766 (goacc_lazy_initialize): Reimplement with acc_init and
7767 goacc_attach_host_thread_to_device.
7768 * oacc-int.h (goacc_thread): Add base_dev field.
7769 (base_dev): Remove extern declaration.
7770 (goacc_attach_host_thread_to_device): Add prototype.
7771 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7773 (acc_free): Likewise.
7774 (acc_memcpy_to_device): Likewise.
7775 (acc_memcpy_from_device): Likewise.
7776 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7777 goacc_lazy_initialize (throughout).
7778 (GOACC_parallel): Use tgt_offset to locate target functions.
7779 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7780 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7781 (gomp_load_plugin_for_device): Remove open_device, close_device,
7782 get_device_num, set_device_num openacc hook initialisation. Don't set
7783 openacc.target_data.
7784 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7785 (GOMP_OFFLOAD_openacc_close_device)
7786 (GOMP_OFFLOAD_openacc_get_device_num)
7787 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7788 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7790 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7791 (instantiated_devices, ptx_dev_lock): New.
7792 (struct ptx_image_data): New.
7793 (ptx_devices, ptx_images, ptx_image_lock): New.
7794 (fini_streams_for_device): Reorder cuStreamDestroy call.
7795 (nvptx_get_num_devices): Remove forward declaration.
7796 (nvptx_init): Change return type to bool.
7797 (nvptx_fini): Remove.
7798 (nvptx_attach_host_thread_to_device): New.
7799 (nvptx_open_device): Return struct ptx_device* instead of void*.
7800 (nvptx_close_device): Change argument type to struct ptx_device*,
7801 return type to void.
7802 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7803 (kernel_target_data, kernel_host_table): Remove static globals.
7804 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7805 (GOMP_OFFLOAD_init_device): Reimplement.
7806 (GOMP_OFFLOAD_fini_device): Likewise.
7807 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7808 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7809 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7810 (GOMP_OFFLOAD_openacc_open_device)
7811 (GOMP_OFFLOAD_openacc_close_device)
7812 (GOMP_OFFLOAD_openacc_set_device_num)
7813 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7814 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7818 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7820 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7822 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7823 * libgomp.h (struct gomp_memory_mapping): Remove.
7824 (struct target_mem_desc): Change type of mem_map from
7825 gomp_memory_mapping * to splay_tree_s *.
7826 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7827 Add load_image_func, unload_image_func.
7828 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7829 Remove offload_regions_registered.
7830 (gomp_init_tables): Remove.
7831 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7833 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7834 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7835 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7836 offload_regions_registered.
7837 Initialize load_image_func, unload_image_func, mem_map.root.
7838 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7839 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7840 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7841 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7842 gomp_memory_mapping *. Use dev's lock and splay_tree.
7843 (lookup_dev): Use dev's lock.
7844 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7845 (acc_is_present): Likewise.
7846 (acc_map_data): Likewise.
7847 (acc_unmap_data): Likewise. Use dev's lock.
7848 (present_create_copy): Likewise.
7849 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7850 (update_dev_host): Likewise.
7851 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7852 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7853 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7854 (GOMP_OFFLOAD_get_table): Remove
7855 (GOMP_OFFLOAD_load_image): New function.
7856 (GOMP_OFFLOAD_unload_image): New function.
7857 * target.c (register_lock): New mutex for offload image registration.
7858 (num_devices): Do not guard with PLUGIN_SUPPORT.
7859 (gomp_realloc_unlock): New static function.
7860 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7862 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7863 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7864 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7866 (gomp_unmap_vars): Likewise.
7867 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7868 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7869 (gomp_offload_image_to_device): New static function.
7870 (GOMP_offload_register): Add mutex lock.
7871 Call gomp_offload_image_to_device for all initialized devices.
7872 Replace gomp_realloc with gomp_realloc_unlock.
7873 (GOMP_offload_unregister): New function.
7874 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7875 get_table_func from the plugin with calls to init_device_func and
7876 gomp_offload_image_to_device.
7877 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7879 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7880 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7881 (GOMP_target_data): Do not call gomp_init_tables.
7882 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7883 (gomp_load_plugin_for_device): Replace register_image and get_table
7884 with load_image and unload_image in DLSYM ().
7885 (gomp_register_images_for_device): Remove function.
7886 (gomp_target_init): Do not initialize current_device.mem_map.*,
7887 current_device.offload_regions_registered.
7888 Remove call to gomp_register_images_for_device.
7889 Do not free offload_images and num_offload_images.
7891 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7894 * testsuite/libgomp.fortran/pr65597.f90: New test.
7896 2015-03-27 Tom de Vries <tom@codesourcery.com>
7899 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7900 (init, check): New function.
7901 (foo): Change return type to void.
7902 (main): Call init and check.
7904 2015-03-27 Tom de Vries <tom@codesourcery.com>
7907 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7908 (foo): Use M for non-inner loops to scale down test-case.
7910 2015-03-25 Kai Tietz <ktietz@redhat.com>
7913 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7914 (GOACC_data_start): Likewise.
7915 * target.c (gomp_map_vars): Likewise.
7917 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7919 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7922 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7924 * testsuite/libgomp.c/target-10.c: New test.
7925 * testsuite/libgomp.c++/target-4.C: New test.
7927 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7929 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7930 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7932 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7934 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7935 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7936 (pthread.h): Check for this header file.
7937 * configure: Regenerate.
7939 2015-02-25 Tom de Vries <tom@codesourcery.com>
7941 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7942 (check_reduction_op, check_reduction_macro, max, min):
7944 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7946 (main): Use new functions.
7948 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7950 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7951 char * for variables holding dlerror return values.
7954 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7956 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7958 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7959 Cesar Philippidis <cesar@codesourcery.com>
7961 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7962 GOACC_ctaid, and GOACC_nctaid routines.
7964 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7967 * testsuite/libgomp.c/atomic-18.c: New test.
7968 * testsuite/libgomp.c++/atomic-16.C: New test.
7970 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7974 * testsuite/libgomp.c/pr64824.c: New test.
7975 * testsuite/libgomp.c/pr64868.c: New test.
7976 * testsuite/libgomp.c++/pr64824.C: New test.
7977 * testsuite/libgomp.c++/pr64868.C: New test.
7979 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7982 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7983 Link with -lpthread.
7984 * config/aix/plugin-suffix.h: Delete.
7986 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7989 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7990 (*-*-darwin*): Use config_path "bsd darwin posix".
7991 (*-*-hpux*): Use config_path "hpux posix".
7992 * target.c: Add include of plugin-suffix.h and use
7993 SONAME_SUFFIX macro.
7994 * config/aix/plugin-suffix.h: New file.
7995 * config/darwin/plugin-suffix.h: New file.
7996 * config/hpux/plugin-suffix.h: New file.
7997 * config/posix/plugin-suffix.h: New file.
7999 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8002 * libgomp.c/pr64734.c: New test.
8004 2015-01-23 Tom de Vries <tom@codesourcery.com>
8007 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8009 2015-01-23 Tom de Vries <tom@codesourcery.com>
8012 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8015 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8018 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8019 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8020 formal parameter. Update all users.
8021 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8022 Document unused formal parameter.
8024 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8026 * oacc-parallel.c: Don't include <alloca.h>.
8027 (GOACC_parallel): Use gomp_alloca instead of alloca.
8029 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8031 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8033 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8034 James Norris <jnorris@codesourcery.com>
8035 Tom de Vries <tom@codesourcery.com>
8036 Julian Brown <julian@codesourcery.com>
8037 Cesar Philippidis <cesar@codesourcery.com>
8038 Nathan Sidwell <nathan@codesourcery.com>
8039 Tobias Burnus <burnus@net-b.de>
8041 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8042 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8043 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8044 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8045 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8046 Include $(top_srcdir)/plugin/Makefrag.am.
8047 (nodist_libsubinclude_HEADERS): Add openacc.h.
8048 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8049 openacc.f90, openacc.mod, openacc_kinds.mod.
8050 (omp_lib.mod): Generalize into...
8051 (%.mod): ... this new rule.
8052 (openacc_kinds.mod, openacc.mod): New rules.
8053 * plugin/configfrag.ac: New file.
8054 * configure.ac: Move plugin/offloading support into it. Include
8055 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8056 * plugin/Makefrag.am: New file.
8057 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8058 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8060 (libgomp-test-support.exp): New rule.
8061 (all-local): Depend on it.
8062 * Makefile.in: Regenerate.
8063 * testsuite/Makefile.in: Regenerate.
8064 * config.h.in: Likewise.
8065 * configure: Likewise.
8066 * configure.tgt: Harden shell syntax.
8067 * env.c: Include "oacc-int.h".
8068 (parse_acc_device_type): New function.
8069 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8071 (initialize_env): Initialize those. Call
8072 goacc_runtime_initialize.
8073 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8074 (gomp_fatal): Call gomp_vfatal.
8075 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8076 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8077 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8078 (splay_tree_node, splay_tree, splay_tree_key)
8079 (struct target_mem_desc, struct splay_tree_key_s)
8080 (struct gomp_memory_mapping, struct acc_dispatch_t)
8081 (struct gomp_device_descr, gomp_acc_insert_pointer)
8082 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8083 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8084 (gomp_free_memmap, gomp_fini_device): New declarations.
8085 (gomp_vdebug, gomp_debug): New macros.
8086 Include "splay-tree.h".
8087 * libgomp.map (OACC_2.0): New symbol version. Use for
8088 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8089 acc_set_device_type_h_, acc_get_device_type,
8090 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8091 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8092 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8093 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8094 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8095 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8096 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8097 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8098 acc_copyin_array_h_, acc_present_or_copyin,
8099 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8100 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8101 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8102 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8103 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8104 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8105 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8106 acc_update_device, acc_update_device_32_h_,
8107 acc_update_device_64_h_, acc_update_device_array_h_,
8108 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8109 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8110 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8111 acc_is_present_64_h_, acc_is_present_array_h_,
8112 acc_memcpy_to_device, acc_memcpy_from_device,
8113 acc_get_current_cuda_device, acc_get_current_cuda_context,
8114 acc_get_cuda_stream, acc_set_cuda_stream.
8115 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8116 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8117 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8118 GOACC_get_num_threads.
8119 (GOMP_PLUGIN_1.0): New symbol version. Use for
8120 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8121 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8122 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8123 GOMP_PLUGIN_acc_thread.
8124 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8125 environment variable.
8126 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8127 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8128 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8129 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8130 (splay_tree_remove): New declarations.
8131 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8132 (splay_tree_remove, splay_tree_lookup): Move into...
8133 * splay-tree.c: ... this new file.
8134 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8135 (splay_tree_node, splay_tree, splay_tree_key)
8136 (struct target_mem_desc, struct splay_tree_key_s)
8137 (struct gomp_device_descr): Don't declare.
8138 (num_devices_openmp): New variable.
8139 (gomp_get_num_devices ): Use it.
8140 (gomp_init_targets_once): New function.
8141 (gomp_get_num_devices ): Use it.
8142 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8143 (gomp_fini_device, gomp_register_image_for_device): New functions.
8144 (gomp_map_vars): Add devaddrs parameter.
8145 (gomp_update): Add mm parameter.
8146 (gomp_init_device): Move most of it into...
8147 (gomp_init_tables): ... this new function.
8148 (gomp_register_images_for_device): Remove function.
8149 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8150 Make them hidden instead of static.
8151 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8152 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8153 (GOMP_target_end_data, GOMP_target_update)
8154 (gomp_load_plugin_for_device, gomp_target_init): Update for
8156 * oacc-async.c: New file.
8157 * oacc-cuda.c: Likewise.
8158 * oacc-host.c: Likewise.
8159 * oacc-init.c: Likewise.
8160 * oacc-int.h: Likewise.
8161 * oacc-mem.c: Likewise.
8162 * oacc-parallel.c: Likewise.
8163 * oacc-plugin.c: Likewise.
8164 * oacc-plugin.h: Likewise.
8165 * oacc-ptx.h: Likewise.
8166 * openacc.f90: Likewise.
8167 * openacc.h: Likewise.
8168 * openacc_lib.h: Likewise.
8169 * plugin/plugin-host.c: Likewise.
8170 * plugin/plugin-nvptx.c: Likewise.
8171 * libgomp-plugin.c: Likewise.
8172 * libgomp-plugin.h: Likewise.
8173 * libgomp_target.h: Remove file after merging content into the
8174 former file. Update all users.
8175 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8176 (offload_targets_s, offload_targets_s_openacc): New variables.
8177 (check_effective_target_openacc_nvidia_accel_present)
8178 (check_effective_target_openacc_nvidia_accel_selected): New
8180 (libgomp_init): Update for OpenACC changes.
8181 * testsuite/libgomp-test-support.exp.in: New file.
8182 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8183 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8184 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8185 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8197 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8198 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8199 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8201 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8204 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8205 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8206 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8207 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8208 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8209 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8210 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8211 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8212 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8213 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8214 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8215 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8216 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8217 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8218 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8219 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8220 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8221 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8261 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8263 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8264 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8268 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8272 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8274 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8276 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8278 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8284 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8285 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8286 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8287 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8288 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8289 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8290 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8291 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8292 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8293 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8294 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8295 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8296 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8297 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8298 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8299 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8300 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8301 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8302 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8303 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8304 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8305 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8306 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8307 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8308 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8309 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8310 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8311 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8312 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8313 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8314 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8316 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8317 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8318 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8320 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8321 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8323 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8324 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8325 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8326 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8327 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8328 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8329 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8330 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8331 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8332 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8333 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8334 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8335 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8336 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8337 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8338 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8339 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8340 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8341 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8342 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8343 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8344 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8345 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8346 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8347 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8348 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8349 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8350 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8351 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8352 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8353 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8354 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8355 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8356 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8357 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8358 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8359 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8360 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8361 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8362 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8363 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8364 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8365 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8366 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8367 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8368 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8369 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8370 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8371 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8372 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8373 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8374 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8375 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8376 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8377 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8378 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8379 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8380 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8381 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8382 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8384 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8385 Julian Brown <julian@codesourcery.com>
8386 David Malcolm <dmalcolm@redhat.com>
8388 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8389 to "GNU Offloading and Multi Processing Runtime Library". Change
8391 * configure: Regenerate.
8392 * libgomp.texi: Update.
8394 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8396 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8398 * configure: Regenerate.
8400 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8401 "intelmic" in $offload_targets.
8403 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8405 Update copyright years.
8407 * libgomp.texi: Bump @copying's copyright year.
8409 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8411 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8412 Move load of target-supports.exp earlier.
8414 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8416 * testsuite/libgomp.c/target-9.c: New test.
8418 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8420 * config.h.in: Regenerate.
8421 * configure: Regenerate.
8422 * configure.ac: Add GCC_CHECK_EMUTLS.
8423 * libgomp.h: Add check for USE_EMUTLS: this case
8424 is equal to HAVE_TLS.
8427 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8429 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8431 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8432 Ilya Verbin <ilya.verbin@intel.com>
8434 * testsuite/libgomp.c/target-critical-1.c: New test.
8436 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8438 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8439 to dg-options unless expensive testing is on.
8440 (TESTITERS): Define to N if not defined.
8441 (main): Use TESTITERS instead of N.
8442 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8443 dg-additional-options depending on whether expensive testing is on.
8444 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8445 Decrease N to 100000 and CHUNKSZ to 10000.
8447 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8450 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8451 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8453 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8455 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8457 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8460 * configure: Regenerated.
8462 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8464 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8465 vect_simd_clones effective target.
8466 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8468 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8470 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8471 of 32 as block_size.
8472 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8473 instead of 32 as block_size.
8475 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8476 Ilya Verbin <ilya.verbin@intel.com>
8478 * Makefile.in: Regenerate.
8479 * configure: Regenerate.
8480 * configure.ac: Set up offload_additional_options,
8481 offload_additional_lib_paths and offload_targets.
8482 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8483 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8484 * testsuite/Makefile.in: Regenerate.
8485 * testsuite/lib/libgomp.exp (libgomp_init): Append
8486 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8487 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8488 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8490 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8491 Ilya Verbin <ilya.verbin@intel.com>
8492 Kirill Yukhin <kirill.yukhin@intel.com>
8493 Ilya Tocar <ilya.tocar@intel.com>
8495 * testsuite/lib/libgomp.exp
8496 (check_effective_target_offload_device): New.
8497 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8498 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8499 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8500 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8501 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8502 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8503 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8504 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8505 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8506 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8507 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8508 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8509 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8510 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8511 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8512 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8513 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8514 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8515 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8516 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8517 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8518 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8519 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8520 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8521 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8522 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8523 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8524 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8525 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8526 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8527 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8528 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8529 * testsuite/libgomp.c/target-7.c: Fix test.
8530 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8531 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8532 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8533 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8534 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8535 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8536 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8537 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8538 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8539 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8540 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8541 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8542 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8543 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8544 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8545 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8546 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8547 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8548 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8549 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8550 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8551 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8552 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8553 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8554 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8555 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8556 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8557 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8558 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8559 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8560 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8562 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8563 Ilya Verbin <ilya.verbin@intel.com>
8564 Thomas Schwinge <thomas@codesourcery.com>
8565 Andrey Turetskiy <andrey.turetskiy@intel.com>
8567 * libgomp.map (GOMP_4.0.1): New symbol version.
8568 Add GOMP_offload_register.
8569 * libgomp_target.h: New file.
8570 * splay-tree.h: New file.
8571 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8572 (gomp_target_init): New forward declaration.
8573 (gomp_is_initialized): New static variable.
8574 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8575 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8577 (offload_images, num_offload_images, devices, num_devices): New static
8579 (splay_compare): New static function.
8580 (struct gomp_device_descr): New structure.
8581 (gomp_get_num_devices): Call gomp_target_init.
8582 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8583 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8584 (GOMP_offload_register): New function.
8585 (GOMP_target): Arrange for host callback to be performed in a separate
8586 initial thread and contention group, inheriting ICVs from
8587 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8588 Add device initialization and lookup for target function in splay tree.
8589 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8590 (GOMP_target_end_data): Call gomp_unmap_vars.
8591 (GOMP_target_update): Add device initialization and call gomp_update.
8592 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8593 (gomp_target_init): New static functions.
8595 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8596 Thomas Schwinge <thomas@codesourcery.com>
8597 Ilya Verbin <ilya.verbin@intel.com>
8598 Andrey Turetskiy <andrey.turetskiy@intel.com>
8600 * config.h.in: Regenerate.
8601 * configure: Regenerate.
8602 * configure.ac: Check for libdl, required for plugin support.
8603 (PLUGIN_SUPPORT): Define if plugins are supported.
8604 (enable_offload_targets): Support Intel MIC targets.
8605 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8607 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8610 * configure: Regenerate.
8612 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8614 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8616 2014-10-06 Marek Polacek <polacek@redhat.com>
8618 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8619 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8620 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8621 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8623 2014-10-06 Marek Polacek <polacek@redhat.com>
8625 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8626 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8627 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8628 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8629 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8630 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8631 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8632 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8633 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8634 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8635 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8636 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8637 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8638 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8639 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8640 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8641 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8642 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8645 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8648 * testsuite/libgomp.c/pr61200.c: New test.
8650 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8653 * testsuite/libgomp.c++/pr63248.C: New test.
8655 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8657 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8658 is not zero, but taskgroup->children is NULL and there are
8659 any task->children, schedule those instead of waiting.
8660 * testsuite/libgomp.c/depend-6.c: New test.
8661 * testsuite/libgomp.c/depend-7.c: New test.
8662 * testsuite/libgomp.c/depend-8.c: New test.
8663 * testsuite/libgomp.c/depend-9.c: New test.
8664 * testsuite/libgomp.c/depend-10.c: New test.
8666 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8668 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8669 (struct gomp_taskwait): New type.
8670 (struct gomp_task): Add taskwait and parent_depends_on, remove
8671 in_taskwait and taskwait_sem fields.
8672 (gomp_finish_task): Don't destroy taskwait_sem.
8673 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8674 taskwait and parent_depends_on.
8675 (GOMP_task): For if (0) tasks with depend clause that depend on
8676 earlier tasks don't defer them, instead call
8677 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8678 Initialize redundant_out field, for redundant out entries just
8679 move them at the end of linked list instead of removing them
8680 completely, and set redundant_out flag instead of redundant.
8681 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8683 (gomp_task_run_post_handle_dependers): If parent is in
8684 gomp_task_maybe_wait_for_dependencies and newly runnable task
8685 is not parent_depends_on, queue it in parent->children linked
8686 list after all runnable tasks with parent_depends_on set.
8687 Adjust for addition of taskwait indirection.
8688 (gomp_task_run_post_remove_parent): If parent is in
8689 gomp_task_maybe_wait_for_dependencies and task to be removed
8690 is parent_depends_on, decrement n_depend and if needed awake
8691 parent. Adjust for addition of taskwait indirection.
8692 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8693 (gomp_task_maybe_wait_for_dependencies): New function.
8694 * testsuite/libgomp.c/depend-5.c: New test.
8696 2014-07-13 Tobias Burnus <burnus@net-b.de>
8698 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8699 with TS 18508/Fortran 2015.
8701 2014-07-06 Marek Polacek <polacek@redhat.com>
8704 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8706 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8708 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8709 matches regex $lang_source_re, add $lang_include_flags to options.
8710 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8711 * testsuite/libgomp.c++/c++.exp: Likewise.
8712 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8713 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8715 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8717 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8719 * testsuite/libgomp.fortran/fortran.exp: Explain
8720 gfortran-dg-runtest usage.
8722 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8724 * testsuite/libgomp.fortran/simd5.f90: New test.
8725 * testsuite/libgomp.fortran/simd6.f90: New test.
8726 * testsuite/libgomp.fortran/simd7.f90: New test.
8728 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8730 * testsuite/libgomp.c/for-2.c: Define SC to static for
8731 #pragma omp for simd testing.
8732 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8733 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8735 * testsuite/libgomp.c/simd-14.c: New test.
8736 * testsuite/libgomp.c/simd-15.c: New test.
8737 * testsuite/libgomp.c/simd-16.c: New test.
8738 * testsuite/libgomp.c/simd-17.c: New test.
8739 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8740 #pragma omp for simd testing.
8741 * testsuite/libgomp.c++/simd10.C: New test.
8742 * testsuite/libgomp.c++/simd11.C: New test.
8743 * testsuite/libgomp.c++/simd12.C: New test.
8744 * testsuite/libgomp.c++/simd13.C: New test.
8746 * testsuite/libgomp.fortran/aligned1.f03: New test.
8747 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8748 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8749 tasks with !$omp parallel !$omp single.
8750 * testsuite/libgomp.fortran/target8.f90: New test.
8751 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8752 not to use trim in the combiner, instead call elemental function.
8753 (fn): New elemental function.
8754 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8756 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8758 * testsuite/libgomp.fortran/udr12.f90: New test.
8759 * testsuite/libgomp.fortran/udr13.f90: New test.
8760 * testsuite/libgomp.fortran/udr14.f90: New test.
8761 * testsuite/libgomp.fortran/udr15.f90: New test.
8763 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8765 * omp_lib.f90.in (openmp_version): Set to 201307.
8766 * omp_lib.h.in (openmp_version): Likewise.
8767 * testsuite/libgomp.c/target-8.c: New test.
8768 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8769 and inbranch clauses.
8770 * testsuite/libgomp.fortran/depend-3.f90: New test.
8771 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8773 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8774 * testsuite/libgomp.fortran/target1.f90: New test.
8775 * testsuite/libgomp.fortran/target2.f90: New test.
8776 * testsuite/libgomp.fortran/target3.f90: New test.
8777 * testsuite/libgomp.fortran/target4.f90: New test.
8778 * testsuite/libgomp.fortran/target5.f90: New test.
8779 * testsuite/libgomp.fortran/target6.f90: New test.
8780 * testsuite/libgomp.fortran/target7.f90: New test.
8782 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8785 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8786 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8787 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8788 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8789 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8790 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8791 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8792 * testsuite/libgomp.fortran/associate1.f90: New test.
8793 * testsuite/libgomp.fortran/associate2.f90: New test.
8794 * testsuite/libgomp.fortran/procptr1.f90: New test.
8796 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8798 * testsuite/libgomp.fortran/simd1.f90: New test.
8799 * testsuite/libgomp.fortran/udr1.f90: New test.
8800 * testsuite/libgomp.fortran/udr2.f90: New test.
8801 * testsuite/libgomp.fortran/udr3.f90: New test.
8802 * testsuite/libgomp.fortran/udr4.f90: New test.
8803 * testsuite/libgomp.fortran/udr5.f90: New test.
8804 * testsuite/libgomp.fortran/udr6.f90: New test.
8805 * testsuite/libgomp.fortran/udr7.f90: New test.
8806 * testsuite/libgomp.fortran/udr8.f90: New test.
8807 * testsuite/libgomp.fortran/udr9.f90: New test.
8808 * testsuite/libgomp.fortran/udr10.f90: New test.
8809 * testsuite/libgomp.fortran/udr11.f90: New test.
8811 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8813 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8814 vect_simd_clones effective target.
8815 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8817 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8820 * testsuite/libgomp.c++/simd-9.C: New test.
8822 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8824 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8825 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8826 texts according to their @menu entry positions.
8828 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8830 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8831 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8832 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8833 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8834 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8835 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8836 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8837 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8838 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8839 * testsuite/libgomp.fortran/depend-1.f90: New test.
8840 * testsuite/libgomp.fortran/depend-2.f90: New test.
8841 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8842 * testsuite/libgomp.fortran/simd1.f90: New test.
8843 * testsuite/libgomp.fortran/simd2.f90: New test.
8844 * testsuite/libgomp.fortran/simd3.f90: New test.
8845 * testsuite/libgomp.fortran/simd4.f90: New test.
8846 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8848 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8850 * testsuite/libgomp.c/simd-10.c: New test.
8851 * testsuite/libgomp.c/simd-11.c: New test.
8852 * testsuite/libgomp.c/simd-12.c: New test.
8853 * testsuite/libgomp.c/simd-13.c: New test.
8855 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8857 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8858 atomic type clauses in any order and optional comma in between.
8859 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8860 * testsuite/libgomp.c/atomic-17.c: Likewise.
8862 * testsuite/libgomp.c/simd-7.c: New test.
8863 * testsuite/libgomp.c/simd-8.c: New test.
8864 * testsuite/libgomp.c/simd-9.c: New test.
8865 * testsuite/libgomp.c/loop-16.c: New test.
8867 2014-04-02 Richard Henderson <rth@redhat.com>
8869 * config/linux/futex.h (futex_wait): Get error value from errno.
8870 (futex_wake): Likewise.
8872 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8875 * testsuite/libgomp.c++/udr-11.C: New test.
8876 * testsuite/libgomp.c++/udr-12.C: New test.
8877 * testsuite/libgomp.c++/udr-13.C: New test.
8878 * testsuite/libgomp.c++/udr-14.C: New test.
8879 * testsuite/libgomp.c++/udr-15.C: New test.
8880 * testsuite/libgomp.c++/udr-16.C: New test.
8881 * testsuite/libgomp.c++/udr-17.C: New test.
8882 * testsuite/libgomp.c++/udr-18.C: New test.
8883 * testsuite/libgomp.c++/udr-19.C: New test.
8885 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8887 Update copyright years
8889 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8891 * hashtab.h: Use the standard form for the copyright notice.
8893 2014-01-02 Tobias Burnus <burnus@net-b.de>
8895 * libgomp.texi: Bump @copying's copyright year.
8897 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8899 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8900 alloca () with __builtin_alloca ().
8901 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8902 * testsuite/libgomp.c/lock-3.c: Likewise.
8903 * testsuite/libgomp.c/pr48591.c: Likewise.
8905 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8908 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8911 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8914 * testsuite/libgomp.c/pr58756.c: New test.
8916 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8919 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8922 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8924 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8926 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8927 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8928 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8929 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8932 * libgomp_g.h: Include <stddef.h> for size_t.
8934 * libgomp.spec.in: Update comment about libgomp's dependencies.
8935 * configure.ac: Likewise.
8936 * configure: Regenerate.
8938 2013-10-16 Tobias Burnus <burnus@net-b.de>
8940 * libgomp.texi: (Runtime Library Routines): Update references for
8941 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8942 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8943 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8944 (Environment Variables): Update references for OpenMP 4.0. Add
8945 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8946 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8949 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8951 * env.c (parse_bind_var): Initialize value to avoid
8952 (false positive) warning.
8954 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8957 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8959 (gomp_init_num_threads): Move i variable declaration into
8960 #ifdef CPU_ALLOC_SIZE block.
8961 * config/linux/affinity.c (gomp_affinity_init_level): Test
8962 gomp_places_list_len == 0 rather than gomp_places_list == 0
8963 when checking for topology reading error.
8964 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8965 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8966 gomp_places_list, only parse env var and always return false.
8967 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8968 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8969 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8970 and either of these variables were parsed correctly into a places
8973 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8974 Jakub Jelinek <jakub@redhat.com>
8976 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8977 of 5 loopfn matches.
8978 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8979 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8980 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8981 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8982 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8983 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8984 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8985 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8987 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8989 * Makefile.am (omp_lib.mod): Streamline rule.
8990 * Makefile.in: Regenerate.
8992 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8995 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8996 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8997 * testsuite/libgomp.fortran/lib2.f: Likewise.
8998 * testsuite/libgomp.fortran/lib3.f: Likewise.
9000 * configure.ac: Typo fix.
9001 * configure: Regenerate.
9003 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9004 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9006 * omp.h.in: Don't touch the user's namespace.
9008 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9009 Tobias Burnus <burnus@net-b.de>
9010 Richard Henderson <rth@redhat.com>
9012 * target.c: New file.
9013 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9014 * Makefile.in: Regenerated.
9015 * libgomp_g.h (GOMP_task): Add depend argument.
9016 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9017 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9018 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9019 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9020 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9021 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9022 GOMP_taskgroup_start, GOMP_taskgroup_end,
9023 GOMP_parallel_sections): New prototypes.
9024 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9025 (omp_is_initial_device_): New function.
9026 (ULP, STR1, STR2, ialias_redirect): Removed.
9027 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9028 omp_set_default_device_8_, omp_get_default_device_,
9029 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9031 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9032 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9033 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9035 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9036 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9037 omp_set_default_device, omp_set_default_device_,
9038 omp_set_default_device_8_, omp_get_default_device,
9039 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9040 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9041 omp_get_team_num_): Export @@OMP_4.0.
9042 * team.c (struct gomp_thread_start_data): Add place field.
9043 (gomp_thread_start): Clear thr->thread_pool and
9044 thr->task before returning. Use gomp_team_barrier_wait_final
9045 instead of gomp_team_barrier_wait. Initialize thr->place.
9046 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9047 team_cancelled and task_queued_count fields.
9048 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9049 before calling pthread_exit.
9050 (gomp_free_thread): No longer static. Use
9051 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9052 (gomp_team_start): Add flags argument. Set
9053 thr->thread_pool->threads_busy to nthreads immediately after creating
9054 new pool. Use gomp_managed_threads_lock instead of
9055 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9056 (gomp_team_end): Use gomp_managed_threads_lock instead of
9057 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9058 of gomp_team_barrier_wait. If team->team_cancelled, call
9059 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9060 rather than thr->ts.work_share.
9061 (initialize_team): Don't call gomp_sem_init here.
9062 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9064 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9065 * env.c (gomp_global_icv): Add default_device_var, target_data and
9066 bind_var initializers.
9067 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9068 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9069 gomp_places_list_len): New variables.
9070 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9071 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9073 (gomp_cancel_var): New global variable.
9074 (parse_int): New function.
9075 (handle_omp_display_env): New function.
9076 (initialize_env): Use it. Initialize default_device_var.
9077 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9078 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9079 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9080 been successfully parsed (and call gomp_init_affinity in that case).
9081 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9082 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9083 omp_get_team_num, omp_is_initial_device): New functions.
9084 * libgomp.h: Include stdlib.h.
9085 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9087 (struct target_mem_desc): Forward declare.
9088 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9089 and thread_limit_var fields.
9090 (gomp_get_num_devices): New prototype.
9091 (gomp_cancel_var): New extern decl.
9092 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9093 team_cancelled and task_queued_count fields. Add comments about
9094 task_{,queued_,running_}count.
9095 (gomp_cancel_kind): New enum.
9096 (gomp_work_share_end_cancel): New prototype.
9097 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9098 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9100 (struct gomp_taskgroup): New type.
9101 (struct gomp_task_depend_entry,
9102 struct gomp_dependers_vec): New types.
9103 (gomp_finish_task): Free depend_hash if non-NULL.
9104 (struct gomp_team_state): Add place_partition_off
9105 and place_partition_len fields.
9106 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9107 gomp_places_list_len): New extern decls.
9108 (struct gomp_thread): Add place field.
9109 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9110 (gomp_init_thread_affinity): Add place argument.
9111 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9112 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9113 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9114 gomp_affinity_init_level, gomp_affinity_print_place): New
9116 (gomp_team_start): Add flags argument.
9117 (gomp_thread_limit_var, gomp_remaining_threads_count,
9118 gomp_remaining_threads_lock): Remove.
9119 (gomp_managed_threads_lock): New variable.
9120 (struct gomp_thread_pool): Add threads_busy field.
9121 (gomp_free_thread): New prototype.
9122 * task.c: Include hashtab.h.
9123 (hash_entry_type): New typedef.
9124 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9125 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9126 copy_ctors_done and taskgroup fields.
9127 (GOMP_task): Add depend argument, handle depend clauses. If
9128 gomp_team_barrier_cancelled or if it's taskgroup has been
9129 cancelled, don't queue or start new tasks. Set copy_ctors_done
9130 field if needed. Initialize taskgroup field. If copy_ctors_done
9131 and already cancelled, don't discard the task. If taskgroup is
9132 non-NULL, enqueue the task into taskgroup queue. Increment
9133 num_children field in taskgroup. Increment task_queued_count.
9134 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9135 gomp_task_run_post_remove_taskgroup): New inline functions.
9136 (gomp_task_run_post_handle_depend_hash,
9137 gomp_task_run_post_handle_dependers,
9138 gomp_task_run_post_handle_depend): New functions.
9139 (GOMP_taskwait): Use them. If more than one new tasks
9140 have been queued, wake other threads if needed.
9141 (gomp_barrier_handle_tasks): Likewise. If
9142 gomp_team_barrier_cancelled, don't start any new tasks, just free
9144 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9146 (omp_proc_bind_kind, omp_proc_bind_false,
9147 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9148 omp_proc_bind_spread): New params.
9149 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9150 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9151 omp_get_team_num, omp_is_initial_device): New interfaces.
9152 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9153 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9154 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9155 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9156 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9157 useless use omp_lib_kinds.
9158 * omp.h.in (omp_proc_bind_t): New typedef.
9159 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9160 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9161 omp_get_team_num, omp_is_initial_device): New prototypes.
9162 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9163 through to gomp_team_start.
9164 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9165 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9166 Adjust gomp_parallel_loop_start callers.
9167 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9168 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9169 GOMP_loop_end_cancel): New functions.
9170 (GOMP_parallel_end): Add ialias_redirect.
9171 * hashtab.h: New file.
9172 * libgomp.texi (Environment Variables): Minor cleanup,
9173 update section refs to OpenMP 4.0rc2.
9174 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9175 environment variables.
9176 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9177 team->work_shares_to_free to thr->ts.work_share before calling
9179 (gomp_work_share_end_cancel): New function.
9180 * config/linux/proc.c: Include errno.h.
9181 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9182 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9183 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9184 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9185 gomp_cpuset_size is sizeof (cpu_set_t).
9186 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9187 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9188 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9189 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9190 contain any logical CPUs.
9191 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9192 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9193 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9194 pthread_getaffinity_np. Check gomp_places_list instead of
9195 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9196 * config/linux/bar.c (gomp_barrier_wait_end,
9197 gomp_barrier_wait_last): Use BAR_* defines.
9198 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9199 from state where needed. Set work_share_cancelled to 0 on last
9201 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9202 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9204 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9205 Add cpusetsize argument.
9206 (gomp_cpuset_size, gomp_cpusetp): Declare.
9207 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9208 (affinity_counter): Remove.
9209 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9210 if CPU_ALLOC_SIZE isn't defined.
9211 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9212 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9213 bind current thread to the first place.
9214 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9215 pthread_setaffinity_np to gomp_places_list[place].
9216 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9217 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9218 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9219 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9220 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9221 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9222 (gomp_barrier_t): Add awaited_final field.
9223 (gomp_barrier_init): Initialize awaited_final field.
9224 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9225 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9227 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9229 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9230 gomp_team_barrier_cancelled): New inline functions.
9231 (gomp_barrier_last_thread,
9232 gomp_team_barrier_set_task_pending,
9233 gomp_team_barrier_clear_task_pending,
9234 gomp_team_barrier_set_waiting_for_tasks,
9235 gomp_team_barrier_waiting_for_tasks,
9236 gomp_team_barrier_done): Use BAR_* defines.
9237 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9238 (gomp_barrier_wait_end): Use BAR_* defines.
9239 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9240 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9242 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9243 gomp_team_barrier_cancel): New functions.
9244 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9246 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9247 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9248 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9249 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9250 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9251 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9252 (gomp_barrier_t): Add cancellable field.
9253 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9254 gomp_team_barrier_cancel): New prototypes.
9255 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9256 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9257 gomp_team_barrier_cancelled): New inline functions.
9258 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9259 gomp_team_barrier_set_task_pending,
9260 gomp_team_barrier_clear_task_pending,
9261 gomp_team_barrier_set_waiting_for_tasks,
9262 gomp_team_barrier_waiting_for_tasks,
9263 gomp_team_barrier_done): Use BAR_* defines.
9264 * barrier.c (GOMP_barrier_cancel): New function.
9265 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9266 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9267 omp_proc_bind_spread): New params.
9268 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9269 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9270 omp_get_team_num, omp_is_initial_device): New externals.
9271 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9273 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9274 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9275 infinity. If not nested, just return minimum of max_num_threads
9276 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9277 to the returned value. Otherwise, don't update atomically
9278 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9279 (GOMP_parallel_end): Adjust for thread_limit now being in
9280 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9281 infinity. Adjust threads_busy in the pool rather than
9282 gomp_remaining_threads_count. Remember team->nthreads and call
9283 gomp_team_end before adjusting threads_busy, if not nested
9284 afterwards, just set it to 1 non-atomically. Add ialias.
9285 (GOMP_parallel_start): Adjust gomp_team_start caller.
9286 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9287 * testsuite/libgomp.c/affinity-1.c: New test.
9288 * testsuite/libgomp.c/atomic-15.c: New test.
9289 * testsuite/libgomp.c/atomic-16.c: New test.
9290 * testsuite/libgomp.c/atomic-17.c: New test.
9291 * testsuite/libgomp.c/cancel-for-1.c: New test.
9292 * testsuite/libgomp.c/cancel-for-2.c: New test.
9293 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9294 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9295 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9296 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9297 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9298 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9299 * testsuite/libgomp.c/depend-1.c: New test.
9300 * testsuite/libgomp.c/depend-2.c: New test.
9301 * testsuite/libgomp.c/depend-3.c: New test.
9302 * testsuite/libgomp.c/depend-4.c: New test.
9303 * testsuite/libgomp.c/for-1.c: New test.
9304 * testsuite/libgomp.c/for-1.h: New file.
9305 * testsuite/libgomp.c/for-2.c: New test.
9306 * testsuite/libgomp.c/for-2.h: New file.
9307 * testsuite/libgomp.c/for-3.c: New test.
9308 * testsuite/libgomp.c/pr58392.c: New test.
9309 * testsuite/libgomp.c/simd-1.c: New test.
9310 * testsuite/libgomp.c/simd-2.c: New test.
9311 * testsuite/libgomp.c/simd-3.c: New test.
9312 * testsuite/libgomp.c/simd-4.c: New test.
9313 * testsuite/libgomp.c/simd-5.c: New test.
9314 * testsuite/libgomp.c/simd-6.c: New test.
9315 * testsuite/libgomp.c/target-1.c: New test.
9316 * testsuite/libgomp.c/target-2.c: New test.
9317 * testsuite/libgomp.c/target-3.c: New test.
9318 * testsuite/libgomp.c/target-4.c: New test.
9319 * testsuite/libgomp.c/target-5.c: New test.
9320 * testsuite/libgomp.c/target-6.c: New test.
9321 * testsuite/libgomp.c/target-7.c: New test.
9322 * testsuite/libgomp.c/taskgroup-1.c: New test.
9323 * testsuite/libgomp.c/thread-limit-1.c: New test.
9324 * testsuite/libgomp.c/thread-limit-2.c: New test.
9325 * testsuite/libgomp.c/thread-limit-3.c: New test.
9326 * testsuite/libgomp.c/udr-1.c: New test.
9327 * testsuite/libgomp.c/udr-2.c: New test.
9328 * testsuite/libgomp.c/udr-3.c: New test.
9329 * testsuite/libgomp.c++/affinity-1.C: New test.
9330 * testsuite/libgomp.c++/atomic-10.C: New test.
9331 * testsuite/libgomp.c++/atomic-11.C: New test.
9332 * testsuite/libgomp.c++/atomic-12.C: New test.
9333 * testsuite/libgomp.c++/atomic-13.C: New test.
9334 * testsuite/libgomp.c++/atomic-14.C: New test.
9335 * testsuite/libgomp.c++/atomic-15.C: New test.
9336 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9337 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9338 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9339 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9340 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9341 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9342 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9343 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9344 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9345 * testsuite/libgomp.c++/cancel-test.h: New file.
9346 * testsuite/libgomp.c++/for-9.C: New test.
9347 * testsuite/libgomp.c++/for-10.C: New test.
9348 * testsuite/libgomp.c++/for-11.C: New test.
9349 * testsuite/libgomp.c++/simd-1.C: New test.
9350 * testsuite/libgomp.c++/simd-2.C: New test.
9351 * testsuite/libgomp.c++/simd-3.C: New test.
9352 * testsuite/libgomp.c++/simd-4.C: New test.
9353 * testsuite/libgomp.c++/simd-5.C: New test.
9354 * testsuite/libgomp.c++/simd-6.C: New test.
9355 * testsuite/libgomp.c++/simd-7.C: New test.
9356 * testsuite/libgomp.c++/simd-8.C: New test.
9357 * testsuite/libgomp.c++/target-1.C: New test.
9358 * testsuite/libgomp.c++/target-2.C: New test.
9359 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9360 * testsuite/libgomp.c++/target-3.C: New test.
9361 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9362 * testsuite/libgomp.c++/udr-1.C: New test.
9363 * testsuite/libgomp.c++/udr-2.C: New test.
9364 * testsuite/libgomp.c++/udr-3.C: New test.
9365 * testsuite/libgomp.c++/udr-4.C: New test.
9366 * testsuite/libgomp.c++/udr-5.C: New test.
9367 * testsuite/libgomp.c++/udr-6.C: New test.
9368 * testsuite/libgomp.c++/udr-7.C: New test.
9369 * testsuite/libgomp.c++/udr-8.C: New test.
9370 * testsuite/libgomp.c++/udr-9.C: New test.
9372 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9375 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9378 2013-09-20 Alan Modra <amodra@gmail.com>
9380 * configure: Regenerate.
9382 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9384 * testsuite/libgomp.c/sections-2.c: New test.
9386 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9388 * testsuite/libgomp.fortran/strassen.f90:
9389 Add dg-skip-if aarch64_tiny.
9391 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9392 Cesar Philippidis <cesar@codesourcery.com>
9394 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9395 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9396 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9397 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9398 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9399 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9400 Use dg-runtest rather than gfortran-dg-runtest.
9402 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9404 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9405 Linux-based x86 systems to cover all GNU systems.
9406 * testsuite/libgomp.c/lock-3.c: Likewise.
9407 * testsuite/libgomp.c/pr48591.c: Likewise.
9409 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9411 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9412 GNU/Hurd, as done for Linux-based systems.
9414 * config/posix/ptrlock.h: Fix comment.
9416 2013-05-27 Tobias Burnus <burnus@net-b.de>
9419 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9420 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9421 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9422 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9423 omp_destroy_nest_lock): Correct arguments to match the one in
9425 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9426 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9427 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9428 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9430 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9432 * testsuite/libgomp.c/loop-13.c: New test.
9433 * testsuite/libgomp.c/loop-14.c: New test.
9434 * testsuite/libgomp.c/loop-15.c: New test.
9435 * testsuite/libgomp.c++/loop-13.C: New test.
9436 * testsuite/libgomp.c++/loop-14.C: New test.
9437 * testsuite/libgomp.c++/loop-15.C: New test.
9439 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9442 * testsuite/libgomp.c++/pr56217.C: New test.
9444 2013-02-01 Alan Modra <amodra@gmail.com>
9446 * task.c (GOMP_task, GOMP_taskwait): Comment.
9448 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9449 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9452 * config/linux/wait.h (do_spin): Use atomic load for addr.
9453 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9454 for intptr and ptrlock.
9455 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9458 2013-01-22 Alan Modra <amodra@gmail.com>
9462 * task.c (GOMP_task): Revert 2011-12-09 change.
9463 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9464 barrier to read task->children..
9465 (gomp_barrier_handle_tasks): ..and matching atomic store with
9466 release barrier here when setting parent->children to NULL.
9468 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9469 Tobias Burnus <burnus@net-b.de>
9472 * testsuite/libgomp.fortran/fortran.exp: Use
9473 -fintrinsic-modules-path= instead of
9474 -fintrinsic-modules-path.
9476 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9478 Update copyright years.
9480 2012-12-19 Tobias Burnus <burnus@net-b.de>
9482 * testsuite/libgomp.fortran/fortran.exp: Set
9483 -fintrinsic-modules-path.
9485 2012-12-19 Tobias Burnus <burnus@net-b.de>
9487 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9488 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9490 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9493 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9494 if pool had any threads_used.
9496 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9498 * testsuite/libgomp.c++/pr24455.C: Use
9499 -Wl,-undefined,dynamic_lookup on darwin.
9501 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9503 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9505 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9507 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9509 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9510 Jim MacArthur <jim.macarthur@arm.com>
9511 Marcus Shawcroft <marcus.shawcroft@arm.com>
9512 Nigel Stephens <nigel.stephens@arm.com>
9513 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9514 Richard Earnshaw <rearnsha@arm.com>
9515 Sofiane Naci <sofiane.naci@arm.com>
9516 Stephen Thomas <stephen.thomas@arm.com>
9517 Tejas Belagod <tejas.belagod@arm.com>
9518 Yufeng Zhang <yufeng.zhang@arm.com>
9520 * configure.tgt: Add AArch64.
9522 2012-10-04 Jason Merrill <jason@redhat.com>
9524 * testsuite/libgomp.c++/tls-init1.C: New.
9526 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9528 * configure: Regenerated.
9530 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9532 * config/linux/mips/futex.h (sys_futex0): Change to static
9533 function with noinline, nomips16 attributes under MIPS16. Adjust
9534 asm statement to place 'li v0,SYS_futex' immediately before
9537 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9539 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9540 conflict with index.html on case-insensitive file systems.
9542 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9544 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9545 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9547 2012-07-02 Richard Guenther <rguenther@suse.de>
9548 Michael Matz <matz@suse.de>
9549 Tobias Grosser <tobias@grosser.es>
9550 Sebastian Pop <sebpop@gmail.com>
9552 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9553 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9554 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9555 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9557 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9559 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9561 2012-06-22 Richard Guenther <rguenther@suse.de>
9563 Merge from graphite branch
9564 2012-01-13 Tobias Grosser <tobias@grosser.es>
9566 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9567 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9569 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9572 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9573 use GOMP_barrier () call instead.
9574 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9575 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9576 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9577 call GOMP_barrier instead.
9578 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9580 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9583 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9584 argument to memset call.
9586 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9588 * configure: Regenerated.
9590 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9592 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9594 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9597 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9599 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9602 * testsuite/libgomp.c/pr52547.c: New test.
9604 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9606 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9608 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9610 * configure.tgt (mips-sgi-irix6*): Remove.
9612 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9614 * configure.tgt (alpha*-dec-osf*): Remove.
9616 * config/osf/sem.h: Remove.
9617 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9619 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9621 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9623 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9626 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9627 Remove ENABLE_SYMVERS_SOL2.
9628 * configure: Regenerate.
9629 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9630 (PREPROCESS): New variable.
9631 (libgomp.ver): New target.
9632 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9633 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9634 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9636 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9637 * Makefile.in: Regenerate.
9639 2012-02-14 Walter Lee <walt@tilera.com>
9641 * configure.tgt: Handle tilegx and tilepro.
9642 * config/linux/tile/futex.h: New file.
9644 2012-02-08 Richard Guenther <rguenther@suse.de>
9646 PR tree-optimization/46886
9647 * testsuite/libgomp.c/pr46886.c: New testcase.
9649 2012-01-25 Matthias Klose <doko@ubuntu.com>
9651 * config/linux/arm: Remove empty directory.
9652 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9654 2011-12-09 Alan Modra <amodra@gmail.com>
9657 * task.c (GOMP_taskwait): Don't access task->children outside of
9658 task_lock mutex region.
9659 (GOMP_task): Likewise.
9661 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9664 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9666 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9667 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9668 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9669 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9670 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9672 2011-12-02 Alan Modra <amodra@gmail.com>
9674 * config/linux/affinity.c: Use atomic rather than sync builtin.
9675 * config/linux/lock.c: Likewise.
9676 * config/linux/ptrlock.h: Likewise.
9677 * config/linux/ptrlock.c: Likewise.
9678 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9679 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9680 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9681 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9682 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9683 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9684 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9685 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9686 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9687 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9689 2011-11-30 Alan Modra <amodra@gmail.com>
9692 * config/linux/bar.h: Use atomic rather than sync builtins.
9693 * config/linux/bar.c: Likewise. Add missing acquire
9694 synchronisation on generation field.
9695 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9698 2011-11-30 Alan Modra <amodra@gmail.com>
9700 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9701 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9702 * config/linux/mutex.h: Use atomic rather than sync builtins.
9703 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9704 * config/linux/omp-lock.h: Comment fix.
9705 * config/linux/arm/mutex.h: Delete.
9706 * config/linux/powerpc/mutex.h: Delete.
9707 * config/linux/ia64/mutex.h: Delete.
9708 * config/linux/mips/mutex.h: Delete.
9710 2011-11-30 Alan Modra <amodra@gmail.com>
9713 * config/linux/sem.h: Rewrite.
9714 * config/linux/sem.c: Rewrite.
9716 2011-11-28 Richard Henderson <rth@redhat.com>
9718 * libgomp.h (enum memmodel): New.
9720 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9722 * configure: Regenerate.
9724 2011-10-10 Matthias Klose <doko@ubuntu.com>
9726 * config/posix95: Remove empty directory.
9728 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9730 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9732 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9735 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9736 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9738 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9740 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9742 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9745 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9747 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9749 * config/linux/proc.h: New.
9750 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9751 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9752 (gomp_init_num_threads): Update call to cpuset_popcount.
9753 (get_num_procs): Ditto.
9754 * config/linux/affinity.c (gomp_init_affinity): Call
9755 gomp_cpuset_popcount.
9757 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9761 * omp.h.in (omp_in_final): New prototype.
9762 * omp_lib.f90.in (omp_in_final): New interface.
9763 (omp_integer_kind, omp_logical_kind): Remove
9764 and replace all its uses in the module with 4.
9765 (openmp_version): Change to 201107.
9766 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9767 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9768 kind for the parameters.
9769 (omp_in_final): New external.
9770 (openmp_version): Change to 201107.
9771 * task.c (omp_in_final): New function.
9772 (gomp_init_task): Initialize final_task.
9773 (GOMP_task): Remove unused attribute from flags. Handle final
9775 (GOMP_taskyield): New function.
9776 (omp_in_final): Return true if if (false) or final (true) task
9777 or descendant of final (true).
9778 * fortran.c (omp_in_final_): New function.
9779 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9780 (GOMP_3.0): Export GOMP_taskyield.
9781 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9783 (parse_unsigned_long_list): New function.
9784 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9785 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9786 even if parse_affinity returned false.
9787 * config/linux/affinity.c (gomp_init_affinity): Handle
9788 gomp_cpu_affinity_len == 0.
9789 * libgomp_g.h (GOMP_taskyield): New prototype.
9790 * libgomp.h (struct gomp_task): Add final_task field.
9791 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9792 * team.c (gomp_team_start): Override new task's nthreads_var icv
9793 if list form OMP_NUM_THREADS has been used and it has value for
9794 the new nesting level.
9796 * testsuite/libgomp.c/atomic-11.c: New test.
9797 * testsuite/libgomp.c/atomic-12.c: New test.
9798 * testsuite/libgomp.c/atomic-13.c: New test.
9799 * testsuite/libgomp.c/atomic-14.c: New test.
9800 * testsuite/libgomp.c/reduction-6.c: New test.
9801 * testsuite/libgomp.c/task-5.c: New test.
9802 * testsuite/libgomp.c++/atomic-2.C: New test.
9803 * testsuite/libgomp.c++/atomic-3.C: New test.
9804 * testsuite/libgomp.c++/atomic-4.C: New test.
9805 * testsuite/libgomp.c++/atomic-5.C: New test.
9806 * testsuite/libgomp.c++/atomic-6.C: New test.
9807 * testsuite/libgomp.c++/atomic-7.C: New test.
9808 * testsuite/libgomp.c++/atomic-8.C: New test.
9809 * testsuite/libgomp.c++/atomic-9.C: New test.
9810 * testsuite/libgomp.c++/task-8.C: New test.
9811 * testsuite/libgomp.c++/reduction-4.C: New test.
9812 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9813 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9814 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9815 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9816 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9817 * testsuite/libgomp.fortran/pointer1.f90: New test.
9818 * testsuite/libgomp.fortran/pointer2.f90: New test.
9819 * testsuite/libgomp.fortran/task4.f90: New test.
9821 2011-08-02 Tobias Burnus <burnus@net-b.de>
9823 * libgomp.texi: Update OpenMP spec references to 3.1.
9824 (omp_in_final,OMP_PROC_BIND): New sections.
9825 (OMP_NUM_THREADS): Document that the value can be now a list.
9826 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9828 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9830 * config/linux/x86/futex.h: Check __x86_64__ instead of
9833 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9837 * testsuite/libgomp.c/pr49897-1.c: New test.
9838 * testsuite/libgomp.c/pr49897-2.c: New test.
9839 * testsuite/libgomp.c/pr49898-1.c: New test.
9840 * testsuite/libgomp.c/pr49898-2.c: New test.
9842 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9844 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9845 for ia32 instead of ilp32.
9847 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9848 * testsuite/libgomp.c/atomic-6.c: Likewise.
9850 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9852 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9853 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9855 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9858 * config/osf/sem.h: New file.
9859 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9861 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9864 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9867 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9869 * config/linux/wait.h (do_spin): New inline, largely copied
9870 from do_wait, just don't do futex_wait here, instead return true if
9872 (do_wait): Implement using do_spin.
9873 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9875 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9876 __sync_bool_compare_and_swap, pass the oldval to
9877 gomp_mutex_lock_slow.
9878 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9879 If all mutex contenders are just spinning and not sleeping, don't
9880 change state to 2 unnecessarily. Optimize the loop when state has
9881 already become 2 to use just one atomic operation per loop instead
9883 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9885 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9886 __sync_bool_compare_and_swap, pass the oldval to
9887 gomp_mutex_lock_slow.
9889 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9892 * iter.c (gomp_iter_static_next): For chunk size 0
9893 only use n ceil/ nthreads size for the first
9894 n % nthreads threads in the team instead of
9895 all threads except for the last few ones which
9896 get less work or none at all.
9897 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9898 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9899 chunk argument, set run_sched_modifier to 0 for static
9900 resp. 1 for other kinds. If chunk argument is 0
9901 and not static, set value to 1.
9903 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9906 * testsuite/libgomp.c++/pr49043.C: New test.
9909 * testsuite/libgomp.c++/pr48869.C: New test.
9911 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9914 * fortran.c: Include limits.h.
9916 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9918 (omp_set_num_threads_8_, omp_set_schedule_8_,
9919 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9920 omp_get_team_size_8_): Use TO_INT macro.
9921 * testsuite/libgomp.fortran/pr48894.f90: New test.
9923 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9926 * testsuite/libgomp.c/pr48591.c: New test.
9928 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9931 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9932 * configure: Regenerate.
9934 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9937 * testsuite/libgomp.fortran/task3.f90: New test.
9939 2011-02-24 Tobias Burnus <burnus@net-b.de>
9941 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9943 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9946 * libgomp.texi (omp_get_wtime): Don't say time in the past
9949 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9952 * testsuite/libgomp.fortran/fortran.exp: Check for both
9953 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9954 but $blddir != "", still append ${blddir}/${lang_library_path}
9957 2011-02-16 Tobias Burnus <burnus@net-b.de>
9960 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9961 of libquadmath.a before adding its libpath to ldflags.
9963 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9966 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9967 to FUTEX_WAIT futex syscall.
9968 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9970 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9972 * configure: Regenerate.
9974 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9977 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9979 2011-01-16 Gerald Pfeifer
9981 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9983 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9986 * libgomp.fortran/allocatable6.f90: New test.
9988 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9990 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9991 * configure: Regenerate.
9993 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9997 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9998 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9999 * aclocal.m4: Regenerate.
10000 * configure: Regenerate.
10001 * Makefile.in: Regenerate.
10002 * testsuite/Makefile.in: Regenerate.
10004 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10007 * libgomp.fortran/pr46753.f90: New test.
10010 * env.c (initialize_env): Default to spin count 300000
10011 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10015 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10016 at the end if sync builtins aren't supported.
10018 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10020 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10022 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10024 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10026 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10028 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10030 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10031 Tobias Burnus <burnus@net-b.de>
10035 * configure: Regenerate.
10037 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10039 * config/linux/futex.h: New.
10040 * config/linux/arm/mutex.h: New.
10041 * configure.tgt (arm*-*-linux*): Add config path.
10043 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10045 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10047 2010-09-23 Tobias Burnus <burnus@net-b.de>
10049 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10050 Change Fortran datatype to LOGICAL.
10051 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10052 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10054 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10056 * configure: Regenerate.
10058 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10060 * libgomp.texi: Add function keyword to a couple of Fortran
10061 interfaces, use integer instead of int for Fortran.
10063 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10065 * libgomp.texi: Fix spelling and pasto problems throughout.
10066 Adjust prototypes to match code.
10068 2010-07-24 Tobias Burnus <burnus@net-b.de>
10070 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10071 silence -fwhole-file warning.
10073 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10075 * configure.tgt (*-*-solaris2.[56]*): Removed.
10077 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10079 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10080 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10081 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10082 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10083 targetting solaris2*.
10084 * configure: Regenerate.
10085 * config.h.in: Regenerate.
10087 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10088 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10089 Add libgomp_version_dep.
10090 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10092 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10093 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10094 * Makefile.in: Regenerate.
10096 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10097 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10098 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10099 to common block, protected by
10100 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10102 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10104 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10106 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10109 * configure: Regenerate.
10111 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10114 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10115 * configure: Regenerate.
10116 * Makefile.in: Regenerate.
10117 * testsuite/Makefile.in: Regenerate.
10119 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10122 * testsuite/libgomp.c/pr43893.c: New test.
10123 * testsuite/libgomp.c++/pr43893.C: New test.
10125 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10127 PR middle-end/43570
10128 * testsuite/libgomp.fortran/vla8.f90: New test.
10130 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10133 * config/linux/affinity.c (gomp_init_affinity): Decrease
10134 gomp_available_cpus if affinity mask confines the process to fewer
10136 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10137 non-NULL, just return gomp_available_cpus.
10140 * sections.c (gomp_sections_init): Initialize ws->mode.
10142 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10144 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10145 not unused bar variable.
10146 * configure: Regenerate.
10148 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10150 * Makefile.in: Regenerate.
10151 * aclocal.m4: Regenerate.
10152 * testsuite/Makefile.in: Regenerate.
10154 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10157 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10158 (initialize_env): Adjust callers.
10159 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10160 when the argument is 0.
10162 * testsuite/libgomp.c/pr42942.c: New test.
10164 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10166 PR middle-end/42644
10167 PR middle-end/42130
10168 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10169 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10171 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10173 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10174 * testsuite/libgomp.c++/task-6.C: Likewise.
10176 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10178 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10180 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10182 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10183 * configure: Regenerate.
10185 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10188 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10190 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10192 * configure.ac: Test for executability of GFORTRAN.
10193 * configure: Regenerate.
10195 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10197 * configure: Regenerate.
10199 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10202 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10204 2010-01-03 Richard Guenther <rguenther@suse.de>
10206 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10208 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10210 * testsuite/libgomp.graphite/pr4118.c: New.
10212 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10214 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10215 for darwin, protect the test with require-effective-target tls_runtime.
10216 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10218 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10221 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10222 link spec %s substitutions for static libraries.
10224 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10227 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10229 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10231 * Makefile.in: Regenerate.
10232 * configure: Regenerate.
10233 * testsuite/Makefile.in: Regenerate.
10235 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10237 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10238 settings for LC_ALL and LANG.
10240 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10243 * testsuite/libgomp.fortran/pr42162.f90: New test.
10245 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10247 PR middle-end/42029
10248 * testsuite/libgomp.c/pr42029.c: New test.
10250 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10252 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10253 *s. Accept ld version without text in ()s.
10254 * configure: Regenerated.
10256 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10258 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10260 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10263 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10264 or a hyphen (happens with fortran language disabled).
10265 * configure: Regenerate.
10267 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10269 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10270 use sed script portable to Solaris /bin/sed for extracting ld
10272 * configure: Regenerate.
10274 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10276 * testsuite/libgomp.graphite/bounds.c: New test.
10278 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10280 * Makefile.am (libgomp_la_LINK): New.
10281 * Makefile.in: Regenerate.
10283 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10285 * configure.ac (AC_PREREQ): Bump to 2.64.
10287 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10289 * Makefile.am (install-html, install-pdf): Remove.
10290 * Makefile.in: Regenerate.
10292 * Makefile.in: Regenerate.
10293 * aclocal.m4: Regenerate.
10294 * config.h.in: Regenerate.
10295 * configure: Regenerate.
10296 * testsuite/Makefile.in: Regenerate.
10298 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10300 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10301 * Makefile.in: Regenerate.
10303 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10305 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10306 * Makefile.in: Regenerate.
10308 2009-08-19 Tobias Burnus <burnus@net-b.de>
10311 omp_lib.h.in: Fix -std=f95 errors.
10313 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10315 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10316 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10317 * testsuite/libgomp.graphite/graphite.exp: New.
10319 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10321 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10324 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10326 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10327 needed memory barrier semantics.
10328 * config/linux/mips/mutex.h: New file.
10330 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10332 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10334 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10336 * configure: Regenerate.
10338 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10343 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10344 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10345 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10347 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10349 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10350 options when choosing a multilib.
10352 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10354 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10355 ld_library_path. Use add_path. Add just find_libgcc_s to
10356 ld_library_path, not every libgcc multilib directory.
10357 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10358 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10359 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10361 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10363 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10365 * Makefile.am (LTLDFLAGS): Define.
10367 * Makefile.in: Regenerate.
10369 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10372 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10373 libgfortranbegin, check existence of libgfortran.a instead of
10374 libgfortranbegin.a.
10376 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10379 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10380 (gomp_free_pool_helper): Likewise.
10382 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10383 Jakub Jelinek <jakub@redhat.com>
10386 * testsuite/libgomp.fortran/workshare2.f90: New test.
10388 2009-04-09 Nick Clifton <nickc@redhat.com>
10390 * iter.c: Change copyright header to refer to version 3 of the
10391 GNU General Public License with version 3.1 of the GCC Runtime
10392 Library Exception and to point readers at the COPYING3 and
10393 COPYING3.RUNTIME files and the FSF's license web page.
10394 * alloc.c: Likewise.
10395 * barrier.c: Likewise.
10396 * config/bsd/proc.c: Likewise.
10397 * config/linux/affinity.c: Likewise.
10398 * config/linux/alpha/futex.h: Likewise.
10399 * config/linux/bar.c: Likewise.
10400 * config/linux/bar.h: Likewise.
10401 * config/linux/ia64/futex.h: Likewise.
10402 * config/linux/ia64/mutex.h: Likewise.
10403 * config/linux/lock.c: Likewise.
10404 * config/linux/mips/futex.h: Likewise.
10405 * config/linux/mutex.c: Likewise.
10406 * config/linux/mutex.h: Likewise.
10407 * config/linux/powerpc/futex.h: Likewise.
10408 * config/linux/proc.c: Likewise.
10409 * config/linux/ptrlock.c: Likewise.
10410 * config/linux/ptrlock.h: Likewise.
10411 * config/linux/s390/futex.h: Likewise.
10412 * config/linux/sem.c: Likewise.
10413 * config/linux/sem.h: Likewise.
10414 * config/linux/sparc/futex.h: Likewise.
10415 * config/linux/wait.h: Likewise.
10416 * config/linux/x86/futex.h: Likewise.
10417 * config/mingw32/proc.c: Likewise.
10418 * config/mingw32/time.c: Likewise.
10419 * config/posix/affinity.c: Likewise.
10420 * config/posix/bar.c: Likewise.
10421 * config/posix/bar.h: Likewise.
10422 * config/posix/lock.c: Likewise.
10423 * config/posix/mutex.h: Likewise.
10424 * config/posix/proc.c: Likewise.
10425 * config/posix/ptrlock.h: Likewise.
10426 * config/posix/sem.c: Likewise.
10427 * config/posix/sem.h: Likewise.
10428 * config/posix/time.c: Likewise.
10429 * config/posix95/lock.c: Likewise.
10430 * critical.c: Likewise.
10432 * error.c: Likewise.
10433 * fortran.c: Likewise.
10434 * iter_ull.c: Likewise.
10435 * libgomp.h: Likewise.
10436 * libgomp_f.h.in: Likewise.
10437 * libgomp_g.h: Likewise.
10438 * loop.c: Likewise.
10439 * loop_ull.c: Likewise.
10440 * omp.h.in: Likewise.
10441 * omp_lib.f90.in: Likewise.
10442 * omp_lib.h.in: Likewise.
10443 * ordered.c: Likewise.
10444 * parallel.c: Likewise.
10445 * sections.c: Likewise.
10446 * single.c: Likewise.
10447 * task.c: Likewise.
10448 * team.c: Likewise.
10449 * work.c: Likewise.
10451 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10453 * testsuite/config/default.exp: Change copyright header to refer to
10454 version 3 of the GNU General Public License and to point readers
10455 at the COPYING3 file and the FSF's license web page.
10457 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10459 PR middle-end/39573
10460 * libgomp.c++/pr39573.C: New test.
10462 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10465 * testsuite/libgomp.c/pr39591-1.c: New test.
10466 * testsuite/libgomp.c/pr39591-2.c: New test.
10467 * testsuite/libgomp.c/pr39591-3.c: New test.
10469 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10471 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10472 * testsuite/libgomp.c/atomic-6.c: Ditto.
10474 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10477 * testsuite/libgomp.c/loop-12.c: New test.
10478 * testsuite/libgomp.c/loop-11.c: New test.
10479 * testsuite/libgomp.c++/loop-11.C: New test.
10480 * testsuite/libgomp.c++/loop-12.C: New test.
10481 * testsuite/libgomp.c++/for-8.C: New test.
10483 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10485 * configure: Regenerate.
10487 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10489 PR middle-end/39154
10490 * testsuite/libgomp.c/pr39154.c: New test.
10492 2009-01-30 Ian Lance Taylor <iant@google.com>
10494 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10495 libgomp_ld_is_gold. Get gold version number.
10496 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10497 * configure: Rebuild.
10499 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10501 * testsuite/lib/libgomp.exp: Add -B option for targets that
10502 use libgfortran.a%s in their specs.
10504 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10507 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10508 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10509 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10510 * configure: Regenerated.
10511 * config.h.in: Likewise.
10513 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10516 * testsuite/libgomp.c/pr38650.c: New test.
10517 * testsuite/libgomp.c++/pr38650.C: New test.
10519 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10521 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10523 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10525 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10527 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10529 * configure: Regenerate.
10531 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10533 PR middle-end/36802
10534 * testsuite/libgomp.c/pr36802-1.c: New test.
10535 * testsuite/libgomp.c/pr36802-2.c: New test.
10536 * testsuite/libgomp.c/pr36802-3.c: New test.
10538 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10541 * config/linux/powerpc/mutex.h: New.
10543 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10546 * testsuite/libgomp.c++/for-7.C: New test.
10549 * testsuite/libgomp.c++/for-6.C: New test.
10551 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10554 * testsuite/lib/libgomp.exp: Include new timeout library files.
10555 (libgomp_target_compile): Set timeout value from new proc.
10557 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10560 * config/linux/ia64/mutex.h: New.
10562 2008-11-04 Tobias Burnus <burnus@net-b.de>
10565 * libgomp.texi (Runtime library routines, environment variables):
10566 Update for OpenMP version 3.0.
10568 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10569 Steve Ellcey <sje@cup.hp.com>
10571 * configure: Regenerate for new libtool.
10572 * Makefile.in: Ditto.
10573 * testsuite/Makefile.in: Ditto.
10575 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10576 Andreas Tobler <a.tobler@schweiz.org>
10578 * config/bsd/proc.c: New file.
10579 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10580 * configure.ac: Check for header <sys/sysctl.h>
10581 * configure: Regenerate.
10582 * config.h.in: Likewise.
10584 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10586 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10588 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10590 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10591 * Makefile.in: Regenerated.
10592 * testsuite/Makefile.in: Regenerated.
10594 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10596 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10597 depend on blddir if blddir exists.
10598 (libgomp_target_compile): Likewise.
10599 * testsuite/libgomp.c++/c++.exp: Likewise.
10600 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10602 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10604 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10605 Do not list GPL as Invariant Section.
10607 2008-07-28 Ilie Garbacea <ilie@mips.com>
10608 Chao-ying Fu <fu@mips.com>
10610 * configure.tgt: Enable futex for MIPS.
10611 * config/linux/mips/futex.h: New file.
10613 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10615 * team.c (gomp_team_end): Free team immediately if it has
10618 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10620 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10621 * testsuite/libgomp.fortran/fortran.exp: Same.
10622 * testsuite/libgomp.c/c.exp: Same.
10623 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10624 directory to library path first.
10626 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10628 * env.c (parse_stacksize): Add cast to avoid warning.
10629 (parse_spincount): Likewise.
10631 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10633 * testsuite/libgomp.c/loop-10.c: New test.
10634 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10635 * libgomp.c++/loop-6.C (main): Likewise.
10638 * testsuite/libgomp.c/debug-1.c: New test.
10640 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10642 * testsuite/libgomp.c/nqueens-1.c: New test.
10645 * testsuite/libgomp.c++/task-7.C: New function.
10647 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10649 * configure: Regenerate.
10651 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10653 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10654 mutex when HAVE_SYNC_BUILTINS isn't defined.
10656 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10658 * libgomp.texi (omp_test_lock): Fix typo.
10660 2008-06-12 Tobias Burnus <burnus@net-b.de>
10662 * omp_lib.f90.in: Add "implicit none".
10664 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10666 PR middle-end/36506
10667 * testsuite/libgomp.c/reduction-5.c: New test.
10669 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10671 * libgomp.h (struct gomp_task): Add in_tied_task field.
10672 * task.c (gomp_init_task): Initialize it.
10673 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10674 unconditionally. Don't call gomp_team_barrier_wake if
10675 current task is implicit or if(0) from implicit and number of
10676 running tasks is equal to nthreads - 1.
10679 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10680 omp_get_team_size_8): Fix pastos.
10683 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10684 * configure: Regenerated.
10685 * config.h.in: Regenerated.
10686 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10689 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10692 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10693 (GOMP_loop_ull_dynamic_start): Likewise.
10694 (GOMP_loop_ull_guided_start): Likewise.
10695 (GOMP_loop_ull_ordered_static_start): Likewise.
10696 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10697 (GOMP_loop_ull_ordered_guided_start): Likewise.
10699 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10700 Richard Henderson <rth@redhat.com>
10701 Ulrich Drepper <drepper@redhat.com>
10702 Jakob Blomer <jakob.blomer@ira.uka.de>
10704 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10705 Substitute also OMP_*LOCK_25*.
10706 * configure: Regenerated.
10707 * config.h.in: Regenerated.
10708 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10709 ptrlock.c and task.c.
10710 * Makefile.in: Regenerated.
10711 * testsuite/Makefile.in: Regenerated.
10712 * task.c: New file.
10713 * loop_ull.c: New file.
10714 * iter_ull.c: New file.
10715 * libgomp.h: Include ptrlock.h.
10716 (enum gomp_task_kind): New type.
10717 (struct gomp_team): Add task_lock, task_queue, task_count,
10718 task_running_count, single_count fields. Add
10719 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10720 Remove work_share_lock, generation_mask,
10721 oldest_live_gen, num_live_gen and init_work_shares fields, add
10722 work work_share_list_alloc, work_share_list_free and work_share_chunk
10723 fields. Change work_shares from pointer to pointers into an array.
10724 Change ordered_release field into gomp_sem_t ** from flexible array
10725 member. Add implicit_task and initial_work_shares fields.
10726 Move close to the end of the struct.
10727 (struct gomp_team_state): Add single_count, last_work_share,
10728 active_level and level fields, remove work_share_generation.
10729 (gomp_barrier_handle_tasks): New prototype.
10730 (gomp_finish_task): New inline function.
10731 (struct gomp_work_share): Move chunk_size, end, incr into
10732 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10733 next_ll fields. Reshuffle fields. Add next_alloc,
10734 next_ws, next_free and inline_ordered_team_ids fields, change
10735 ordered_team_ids into pointer from flexible array member.
10736 Add mode field. Put lock and next into a different cache line
10737 from most of the write-once fields.
10738 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10739 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10740 gomp_iter_ull_guided_next): New prototypes.
10741 (gomp_new_icv): New prototype.
10742 (struct gomp_thread): Add thread_pool and task fields.
10743 (struct gomp_thread_pool): New type.
10744 (gomp_new_team): New prototype.
10745 (gomp_team_start): Change type of last argument.
10746 (gomp_new_work_share): Removed.
10747 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10748 (gomp_work_share_init_done): New static inline.
10749 (gomp_throttled_spin_count_var, gomp_available_cpus,
10750 gomp_managed_threads): New extern decls.
10751 (gomp_init_task): New prototype.
10752 (gomp_spin_count_var): New extern var decl.
10753 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10754 or no alias support, or if not PIC.
10755 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10756 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10757 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10758 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10759 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10760 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10761 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10762 gomp_test_nest_lock_25): New prototypes.
10763 (omp_lock_symver, strong_alias): Define.
10764 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10766 (gomp_end_task): New.
10767 (struct gomp_task_icv, gomp_global_icv): New.
10768 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10769 (struct gomp_task): New.
10770 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10771 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10773 (gomp_schedule_type): Reorder enum to match
10775 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10777 (gomp_thread_start): Add gomp_team_barrier_wait call.
10778 For non-nested case remove clearing of docked thread thr fields.
10779 Use pool fields instead of global gomp_* variables. Use
10780 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10781 Create tasks for each member thread.
10782 (free_team): Only destroy team barrier, task_lock here and free it.
10783 (gomp_free_thread): Free last_team if non-NULL.
10784 (gomp_team_end): Call gomp_team_barrier_wait instead of
10785 gomp_barrier_wait. For nested case call one extra
10786 gomp_barrier_wait. Move here some destruction from free_team.
10787 Call free_team on pool->last_team if any, rather than freeing
10788 current team. Destroy work_share_list_free_lock ifndef
10789 HAVE_SYNC_BUILTINS.
10790 (gomp_new_icv): New function.
10791 (gomp_threads, gomp_threads_size, gomp_threads_used,
10792 gomp_threads_dock): Removed.
10793 (gomp_thread_destructor): New variable.
10794 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10796 (gomp_team_start): Create new pool if current thread doesn't have
10797 one. Use pool fields instead of global gomp_* variables.
10798 Initialize thread_pool field for new threads. Clear single_count.
10799 Change last argument from ws to team, don't create
10800 new team, set ts.work_share to &team->work_shares[0] and clear
10801 ts.last_work_share. Don't clear ts.work_share_generation.
10802 If number of threads changed, adjust atomically gomp_managed_threads.
10803 Use gomp_init_task instead of gomp_new_task,
10804 set thr->task to the corresponding implicit_task array entry.
10805 Create tasks for each member thread. Initialize ts.level.
10806 (initialize_team): Call pthread_key_create on
10807 gomp_thread_destructor.
10808 (team_destructor): New function.
10809 (new_team): Removed.
10810 (gomp_new_team): New function.
10811 (free_team): Free gomp_work_share blocks chained through next_alloc,
10812 instead of freeing work_shares and destroying work_share_lock.
10813 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10814 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10815 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10816 of gomp_barrier_wait.
10817 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10818 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10819 if gomp_work_share_start returned true. Don't unlock ws->lock.
10820 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10821 of gomp_barrier_wait.
10822 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10823 gomp_work_share_init_done if gomp_work_share_start returned true.
10824 Don't unlock ws->lock.
10825 * work.c: Include stddef.h.
10826 (free_work_share): Use work_share_list_free_lock instead
10827 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10828 Call gomp_fini_work_share and then either free ws if orphaned, or
10829 put it into work_share_list_free list of the current team.
10830 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10832 (gomp_work_share_start, gomp_work_share_end,
10833 gomp_work_share_end_nowait): Rewritten.
10834 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10835 (openmp_version): Set to 200805.
10836 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10837 omp_sched_guided, omp_sched_auto): New parameters.
10838 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10839 omp_set_max_active_levels, omp_get_max_active_levels,
10840 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10841 omp_get_active_level): New interfaces.
10842 * omp_lib.h.in (openmp_version): Set to 200805.
10843 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10844 omp_sched_guided, omp_sched_auto): New parameters.
10845 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10846 omp_set_max_active_levels, omp_get_max_active_levels,
10847 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10848 omp_get_active_level): New externals.
10849 * loop.c: Include limits.h.
10850 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10852 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10853 Likewise. Use gomp_icv.
10854 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10855 ts.static_trip here.
10856 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10857 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10858 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10859 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10860 don't unlock ws->lock, otherwise lock it.
10861 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10862 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10863 (gomp_parallel_loop_start): Call gomp_new_team instead of
10864 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10865 Adjust gomp_team_start caller. Pass 0 as second argument to
10866 gomp_resolve_num_threads.
10867 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10868 If adding ws->chunk_size nthreads + 1 times after end won't
10869 overflow, set ws->mode to 1.
10870 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10871 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10872 GOMP_loop_ull_ordered_static_start,
10873 GOMP_loop_ull_ordered_dynamic_start,
10874 GOMP_loop_ull_ordered_guided_start,
10875 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10876 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10877 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10878 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10879 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10881 * libgomp.map: Export lock routines also @@OMP_2.0.
10882 (GOMP_loop_ordered_dynamic_first,
10883 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10884 GOMP_loop_ordered_static_first): Remove.
10885 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10886 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10887 GOMP_loop_ull_ordered_dynamic_next,
10888 GOMP_loop_ull_ordered_dynamic_start,
10889 GOMP_loop_ull_ordered_guided_next,
10890 GOMP_loop_ull_ordered_guided_start,
10891 GOMP_loop_ull_ordered_runtime_next,
10892 GOMP_loop_ull_ordered_runtime_start,
10893 GOMP_loop_ull_ordered_static_next,
10894 GOMP_loop_ull_ordered_static_start,
10895 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10896 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10897 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10898 (omp_set_schedule, omp_get_schedule,
10899 omp_get_thread_limit, omp_set_max_active_levels,
10900 omp_get_max_active_levels, omp_get_level,
10901 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10902 omp_set_schedule_, omp_set_schedule_8_,
10903 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10904 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10905 omp_get_max_active_levels_, omp_get_level_,
10906 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10907 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10908 New exports @@OMP_3.0.
10909 * omp.h.in (omp_sched_t): New type.
10910 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10911 omp_set_max_active_levels, omp_get_max_active_levels,
10912 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10913 omp_get_active_level): New prototypes.
10914 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10915 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10916 gomp_thread_limit_var, gomp_remaining_threads_count,
10917 gomp_remaining_threads_lock): New variables.
10918 (parse_spincount): New function.
10919 (initialize_env): Call gomp_init_num_threads unconditionally.
10920 Initialize gomp_available_cpus. Call parse_spincount,
10921 initialize gomp_{,throttled_}spin_count_var
10922 depending on presence and value of OMP_WAIT_POLICY and
10923 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10924 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10925 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10926 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10927 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10928 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10929 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10930 (gomp_global_icv): New.
10931 (parse_schedule): Use it. Parse "auto".
10932 (omp_set_num_threads): Use gomp_icv.
10933 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10935 (omp_get_max_threads): Move from parallel.c.
10936 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10937 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10939 (parse_stacksize, parse_wait_policy): New functions.
10940 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10941 both wrappers for compatibility and new locks.
10942 (omp_set_schedule, omp_get_schedule,
10943 omp_get_thread_limit, omp_set_max_active_levels,
10944 omp_get_max_active_levels, omp_get_level,
10945 omp_get_ancestor_thread_num, omp_get_team_size,
10946 omp_get_active_level): New ialias_redirect.
10947 (omp_set_schedule_, omp_set_schedule_8_,
10948 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10949 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10950 omp_get_max_active_levels_, omp_get_level_,
10951 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10952 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10954 * parallel.c: Include limits.h.
10955 (gomp_resolve_num_threads): Add count argument. Rewritten.
10956 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10957 argument to gomp_team_start. Pass 0 as second argument to
10958 gomp_resolve_num_threads.
10959 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10960 if gomp_thread_limit_var != ULONG_MAX.
10961 (omp_in_parallel): Implement using ts.active_level.
10962 (omp_get_max_threads): Move to env.c.
10963 (omp_get_level, omp_get_ancestor_thread_num,
10964 omp_get_team_size, omp_get_active_level): New functions,
10966 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10967 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10968 gomp_iter_dynamic_next instead of the _locked variant and don't take
10969 lock around it, otherwise acquire it before calling
10970 gomp_iter_dynamic_next_locked.
10971 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10972 gomp_iter_dynamic_next instead of the _locked variant and don't take
10974 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10975 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10976 Adjust gomp_team_start caller. Pass count as second argument to
10977 gomp_resolve_num_threads, don't adjust num_threads after the call.
10979 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10980 ws->chunk_size by incr.
10981 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10983 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10985 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10986 (omp_check_defines): Check even the compat defines.
10987 * config/linux/ptrlock.c: New file.
10988 * config/linux/ptrlock.h: New file.
10989 * config/linux/wait.h: New file.
10990 * config/posix/ptrlock.c: New file.
10991 * config/posix/ptrlock.h: New file.
10992 * config/linux/bar.h (gomp_team_barrier_wait,
10993 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10994 (gomp_team_barrier_set_task_pending,
10995 gomp_team_barrier_clear_task_pending,
10996 gomp_team_barrier_set_waiting_for_tasks,
10997 gomp_team_barrier_waiting_for_tasks,
10998 gomp_team_barrier_done): New inlines.
10999 (gomp_barrier_t): Rewritten.
11000 (gomp_barrier_state_t): New typedef.
11001 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11002 gomp_barrier_wait_start): Rewritten.
11003 (gomp_barrier_wait_end): Change second argument to
11004 gomp_barrier_state_t.
11005 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11007 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11009 (gomp_barrier_wait_end): Rewritten.
11010 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11011 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11012 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11013 (gomp_barrier_state_t): New typedef.
11014 (gomp_team_barrier_wait,
11015 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11016 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11017 into the return value. Return gomp_barrier_state_t.
11018 (gomp_team_barrier_set_task_pending,
11019 gomp_team_barrier_clear_task_pending,
11020 gomp_team_barrier_set_waiting_for_tasks,
11021 gomp_team_barrier_waiting_for_tasks,
11022 gomp_team_barrier_done): New inlines.
11023 (gomp_barrier_wait_end): Change second argument to
11024 gomp_barrier_state_t.
11025 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11027 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11028 (gomp_barrier_wait_end): Change second argument to
11029 gomp_barrier_state_t.
11030 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11031 gomp_team_barrier_wake): New functions.
11032 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11034 (gomp_futex_wake, gomp_futex_wait): New variables.
11035 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11036 * config/linux/lock.c: Rewrite to make locks task owned,
11037 for backwards compatibility provide the old entrypoints
11038 if symbol versioning. Include wait.h instead of libgomp.h and
11040 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11041 * config/posix95/lock.c: Rewrite to make locks task owned,
11042 for backwards compatibility provide the old entrypoints
11043 if symbol versioning.
11044 * config/posix/lock.c: Rewrite to make locks task owned,
11045 for backwards compatibility provide the old entrypoints
11046 if symbol versioning.
11047 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11048 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11049 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11050 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11051 (sys_futex0): Return error code.
11052 (futex_wake, futex_wait): If ENOSYS was returned, clear
11053 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11054 (cpu_relax, atomic_write_barrier): New static inlines.
11055 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11056 (futex_wake, futex_wait): If ENOSYS was returned, clear
11057 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11058 (cpu_relax, atomic_write_barrier): New static inlines.
11059 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11060 (sys_futex0): Return error code.
11061 (futex_wake, futex_wait): If ENOSYS was returned, clear
11062 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11063 (cpu_relax, atomic_write_barrier): New static inlines.
11064 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11065 (sys_futex0): Return error code.
11066 (futex_wake, futex_wait): If ENOSYS was returned, clear
11067 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11068 (cpu_relax, atomic_write_barrier): New static inlines.
11069 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11070 (sys_futex0): Return error code.
11071 (futex_wake, futex_wait): If ENOSYS was returned, clear
11072 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11073 (cpu_relax, atomic_write_barrier): New static inlines.
11074 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11075 (sys_futex0): Return error code.
11076 (futex_wake, futex_wait): If ENOSYS was returned, clear
11077 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11078 (cpu_relax, atomic_write_barrier): New static inlines.
11079 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11081 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11082 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11083 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11085 (omp_nest_lock_t): Change owner into void *, add lock field.
11086 * config/posix95/omp-lock.h: Include semaphore.h.
11087 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11088 (omp_lock_t): Use sem_t instead of mutex if semaphores
11090 (omp_nest_lock_t): Likewise. Change owner to void *.
11091 * config/posix/omp-lock.h: Include semaphore.h.
11092 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11093 (omp_lock_t): Use sem_t instead of mutex if semaphores
11095 (omp_nest_lock_t): Likewise. Add owner field.
11097 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11099 * testsuite/libgomp.c/collapse-1.c: New test.
11100 * testsuite/libgomp.c/collapse-2.c: New test.
11101 * testsuite/libgomp.c/collapse-3.c: New test.
11102 * testsuite/libgomp.c/icv-1.c: New test.
11103 * testsuite/libgomp.c/icv-2.c: New test.
11104 * testsuite/libgomp.c/lib-2.c: New test.
11105 * testsuite/libgomp.c/lock-1.c: New test.
11106 * testsuite/libgomp.c/lock-2.c: New test.
11107 * testsuite/libgomp.c/lock-3.c: New test.
11108 * testsuite/libgomp.c/loop-4.c: New test.
11109 * testsuite/libgomp.c/loop-5.c: New test.
11110 * testsuite/libgomp.c/loop-6.c: New test.
11111 * testsuite/libgomp.c/loop-7.c: New test.
11112 * testsuite/libgomp.c/loop-8.c: New test.
11113 * testsuite/libgomp.c/loop-9.c: New test.
11114 * testsuite/libgomp.c/nested-3.c: New test.
11115 * testsuite/libgomp.c/nestedfn-6.c: New test.
11116 * testsuite/libgomp.c/sort-1.c: New test.
11117 * testsuite/libgomp.c/task-1.c: New test.
11118 * testsuite/libgomp.c/task-2.c: New test.
11119 * testsuite/libgomp.c/task-3.c: New test.
11120 * testsuite/libgomp.c/task-4.c: New test.
11121 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11122 to C++ testsuite default compiler options.
11123 * testsuite/libgomp.c++/collapse-1.C: New test.
11124 * testsuite/libgomp.c++/collapse-2.C: New test.
11125 * testsuite/libgomp.c++/ctor-10.C: New test.
11126 * testsuite/libgomp.c++/for-1.C: New test.
11127 * testsuite/libgomp.c++/for-2.C: New test.
11128 * testsuite/libgomp.c++/for-3.C: New test.
11129 * testsuite/libgomp.c++/for-4.C: New test.
11130 * testsuite/libgomp.c++/for-5.C: New test.
11131 * testsuite/libgomp.c++/loop-8.C: New test.
11132 * testsuite/libgomp.c++/loop-9.C: New test.
11133 * testsuite/libgomp.c++/loop-10.C: New test.
11134 * testsuite/libgomp.c++/task-1.C: New test.
11135 * testsuite/libgomp.c++/task-2.C: New test.
11136 * testsuite/libgomp.c++/task-3.C: New test.
11137 * testsuite/libgomp.c++/task-4.C: New test.
11138 * testsuite/libgomp.c++/task-5.C: New test.
11139 * testsuite/libgomp.c++/task-6.C: New test.
11140 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11141 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11142 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11143 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11144 * testsuite/libgomp.fortran/collapse1.f90: New test.
11145 * testsuite/libgomp.fortran/collapse2.f90: New test.
11146 * testsuite/libgomp.fortran/collapse3.f90: New test.
11147 * testsuite/libgomp.fortran/collapse4.f90: New test.
11148 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11149 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11150 * testsuite/libgomp.fortran/lib4.f90: New test.
11151 * testsuite/libgomp.fortran/lock-1.f90: New test.
11152 * testsuite/libgomp.fortran/lock-2.f90: New test.
11153 * testsuite/libgomp.fortran/nested1.f90: New test.
11154 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11155 * testsuite/libgomp.fortran/strassen.f90: New test.
11156 * testsuite/libgomp.fortran/tabs1.f90: New test.
11157 * testsuite/libgomp.fortran/tabs2.f: New test.
11158 * testsuite/libgomp.fortran/task1.f90: New test.
11159 * testsuite/libgomp.fortran/task2.f90: New test.
11160 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11161 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11162 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11163 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11164 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11166 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11169 * testsuite/libgomp.c++/ctor-11.C: New test.
11170 * testsuite/libgomp.c++/ctor-12.C: New test.
11172 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11174 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11176 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11178 PR middle-end/36106
11179 * testsuite/libgomp.c/atomic-5.c: New test.
11180 * testsuite/libgomp.c/atomic-6.c: New test.
11181 * testsuite/libgomp.c/autopar-1.c: New test.
11183 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11185 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11186 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11187 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11188 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11189 * configure: Regenerate.
11190 * Makefile.in, testsuite/Makefile.in: Likewise.
11192 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11195 * aclocal.m4: Regenerate.
11196 * configure: Regenerate.
11198 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11200 PR middle-end/35611
11201 * testsuite/libgomp.c/atomic-4.c: New test.
11204 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11205 (gomp_iter_guided_next): Likewise.
11206 * testsuite/libgomp.c/pr35625.c: New test.
11208 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11210 * aclocal.m4: Regenerate.
11211 * configure: Likewise.
11212 * Makefile.in: Likewise.
11213 * testsuite/Makefile.in: Likewise.
11215 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11217 PR middle-end/35185
11218 * testsuite/libgomp.c++/pr35185.C: New test.
11220 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11222 PR middle-end/35549
11223 * testsuite/libgomp.c/pr35549.c: New test.
11225 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11227 * testsuite/libgomp.c/atomic-3.c: New test.
11229 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11232 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11233 .F08 file suffixes.
11235 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11238 * configure.ac: Add ACX_HEADER_STRING.
11239 * env.c: Include strings.h.
11240 * aclocal.m4: Regenerate.
11241 * config.h.in: Regenerate.
11242 * configure: Regenerate.
11243 * Makefile.in: Regenerate.
11244 * testsuite/Makefile.in: Regenerate.
11246 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11248 PR middle-end/35196
11249 * testsuite/libgomp.c/pr35196.c: New test.
11251 PR middle-end/35130
11252 * testsuite/libgomp.fortran/pr35130.f90: New test.
11253 * testsuite/libgomp.c/pr35130.c: New test.
11255 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11257 PR middle-end/33880
11258 * testsuite/libgomp.c/pr33880.c: New test.
11259 * testsuite/libgomp.fortran/pr33880.f90: New test.
11261 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11263 * configure: Regenerate.
11265 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11267 * configure.ac: Move futex checking into ../config/futex.m4.
11268 * configure: Rebuilt.
11269 * aclocal.m4: Rebuilt.
11270 * Makefile.in: Rebuilt.
11272 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11273 2007-10-15 ../config/tls.m4 change.
11275 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11278 * testsuite/libgomp.c/pr34513.c: New test.
11279 * testsuite/libgomp.c++/pr34513.C: New test.
11281 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11284 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11286 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11288 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11290 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11292 * testsuite/libgomp.c/private-1.c: New test.
11294 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11295 Paolo Bonzini <bonzini@gnu.org>
11297 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11298 instead of 'VPATH ='.
11299 * Makefile.in: Regenerate.
11301 2007-11-23 Matthias Klose <doko@ubuntu.com>
11303 * configure.ac: Adjust makeinfo version check.
11304 * configure: Regenerate.
11306 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11309 * testsuite/libgomp.fortran/pr34020.f90: New test.
11311 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11314 * testsuite/libgomp.c++/atomic-1.C: New test.
11316 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11319 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11320 Make x and y integers rather than (implicit) reals. Add private (j)
11321 clause to the last omp parallel.
11323 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11325 * configure: Regenerate following changes to ../config/tls.m4.
11327 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11329 * testsuite/libgomp.fortran/stack.f90: New test.
11331 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11333 * config/mingw32/proc.c: New file.
11335 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11337 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11338 (main): Use __get_cpuid to get i386 target fetaures.
11339 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11340 (main): Use __get_cpuid to get x86_64 target fetaures.
11342 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11345 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11346 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11348 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11351 * testsuite/libgomp.fortran/pr32550.f90: New test.
11352 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11354 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11356 * aclocal.m4: Regenerated.
11358 2007-07-05 Tobias Burnus <burnus@net-b.de>
11361 * testsuite/libgomp.fortran/pr32359.f90: New.
11363 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11366 * sections.c (GOMP_parallel_sections_start): Only decrease
11367 number of threads to COUNT if dyn_var is true.
11368 * testsuite/libgomp.c/pr32468.c: New test.
11370 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11373 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11375 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11377 PR middle-end/32362
11378 * testsuite/libgomp.c/pr32362-1.c: New test.
11379 * testsuite/libgomp.c/pr32362-2.c: New test.
11380 * testsuite/libgomp.c/pr32362-3.c: New test.
11382 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11384 * team.c (gomp_team_start): Fix setting up thread_attr
11387 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11389 * configure: Regenerate.
11391 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11393 * Makefile.in: Regenerate.
11394 * configure: Regenerate.
11395 * aclocal.m4: Regenerate.
11396 * testsuite/Makefile.in: Regenerate.
11398 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11400 * config/linux/proc.c: New file.
11403 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11405 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11407 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11409 2007-04-16 Matthias Klose <doko@debian.org>
11411 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11412 flags if not building with -m64.
11413 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11414 flag for i?86-*-* targets, if current target matches -m64.
11416 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11418 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11419 * Makefile.in: Regenerate.
11421 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11424 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11426 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11428 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11430 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11432 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11433 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11434 (parse_affinity): New function.
11435 (initialize_env): Call it and gomp_init_affinity.
11436 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11437 create new pthread_attr_t and call gomp_init_thread_affinity
11438 on it for each thread before passing the attribute to pthread_create.
11439 * config/linux/affinity.c: New file.
11440 * config/posix/affinity.c: New file.
11441 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11442 * configure: Rebuilt.
11443 * config.h.in: Rebuilt.
11444 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11445 * Makefile.in: Rebuilt.
11447 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11449 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11451 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11452 and use it if found.
11454 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11456 * testsuite/config/default.exp: New file.
11457 * testsuite/lib/libgomp.exp: New file.
11458 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11459 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11460 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11461 (libgomp_load): Remove.
11462 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11463 always_ld_library_path, not ld_library_path. Set additional_flags
11464 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11465 (target_compile): Do not call libgomp_init. Append lang_library_path
11466 and lang_link_flags to options.
11467 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11468 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11470 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11471 always_ld_library_path. Set LD_LIBRARY_PATH here.
11472 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11473 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11474 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11476 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11477 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11478 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11479 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11480 * testsuite/libgomp.c/atomic-10.c: Ditto.
11482 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11484 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11485 dg-final cleanup-modules line.
11486 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11487 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11488 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11489 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11490 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11491 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11492 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11494 2007-03-18 Andreas Schwab <schwab@suse.de>
11496 * acinclude.m4: Adjust regular expression for ld version
11498 * configure: Regenerate.
11500 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11502 * Makefile.am: Add install-pdf target as copied from
11503 automake v1.10 rules.
11504 * Makefile.in: Regenerate
11506 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11509 * configure: Regenerate.
11512 * testsuite/libgomp.c++/pr30703.C: New test.
11514 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11517 2006-07-05 Eric Christopher <echristo@apple.com>
11518 * configure.ac: Depend addition of -pthread on host OS.
11519 * configure: Regenerate.
11521 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11523 * libgomp.texi: Fix spacing after abbreviations.
11525 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11528 * configure.ac: Add check for makeinfo
11529 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11530 if an appropriate version of makeinfo is found.
11531 * aclocal.m4: Regenerated.
11532 * configure: Regenerated.
11533 * Makefile.in: Regenerated.
11534 * testsuite/Makefile.in: Regenerated.
11536 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11539 * libgomp.texi: More about implementation-dependent settings.
11541 2007-01-26 Tobias Burnus <burnus@net-b.de>
11543 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11545 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11547 PR middle-end/30494
11548 * testsuite/libgomp.c/pr30494.c: New test.
11550 2007-01-15 Tom Tromey <tromey@redhat.com>
11552 * configure: Rebuilt.
11553 * configure.ac: Fixed comment.
11555 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11557 * libgomp.texi: Document implementation specific default values of
11558 environment variables.
11560 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11563 * libgomp.texi: New file.
11564 * configure.ac: Add --enable-generated-files-in-srcdir option.
11565 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11567 * Makefile.in: Regenerated.
11568 * config.h.in: Regenerated.
11569 * testsuite/Makefile.in: Regenerated.
11572 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11575 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11577 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11579 * configure: Regenerate.
11581 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11584 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11585 start if there shouldn't be any loop iterations.
11586 (gomp_loop_ordered_static_start): Remove start == end test.
11587 * testsuite/libgomp.c/pr29947-1.c: New test.
11588 * testsuite/libgomp.c/pr29947-2.c: New test.
11590 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11592 * configure.tgt: Force initial-exec TLS model on Linux only.
11594 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11596 * configure: Regenerated.
11598 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11600 * env.c (parse_schedule): Reject out of range values.
11601 (parse_unsigned_long): Reject out of range, negative or zero values.
11603 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11606 * testsuite/libgomp.fortran/pr29629.f90: New test.
11608 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11611 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11612 * config/posix95: New directory.
11613 * config/posix95/omp-lock.h: New file.
11614 * config/posix95/lock.c: Likewise.
11616 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11618 * aclocal.m4: Regenerate.
11619 * configure: Regenerate.
11621 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11623 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11626 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11628 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11630 * configure: Regenerate.
11631 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11633 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11635 PR middle-end/25261
11636 PR middle-end/28790
11637 * testsuite/libgomp.c/nestedfn-4.c: New test.
11638 * testsuite/libgomp.c/nestedfn-5.c: New test.
11639 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11642 * testsuite/libgomp.fortran/condinc1.f: New test.
11643 * testsuite/libgomp.fortran/condinc2.f: New test.
11644 * testsuite/libgomp.fortran/condinc3.f90: New test.
11645 * testsuite/libgomp.fortran/condinc4.f90: New test.
11646 * testsuite/libgomp.fortran/condinc1.inc: New file.
11648 2006-09-18 Tom Tromey <tromey@redhat.com>
11650 * configure: Rebuilt.
11652 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11655 PR preprocessor/14634
11656 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11658 * configure: Regenerate.
11660 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11662 * testsuite/libgomp.fortran/reduction3.f90: Change
11663 -2147483648 to -huge(i)-1 to avoid overflow.
11664 * testsuite/libgomp.fortran/reduction4.f90: Change
11665 Z'ffffffff' to not(0) to avoid overflow.
11667 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11670 * Makefile.am (libsubincludedir): New.
11671 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11672 * Makefile.in: Regenerate.
11674 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11677 * env.c: Include ctype.h.
11678 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11679 leading and/or trailing whitespace and compare strings case
11682 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11685 * testsuite/libgomp.fortran/pr28390.f: New test.
11687 2006-07-05 Eric Christopher <echristo@apple.com>
11689 * configure.ac: Depend addition of -pthread on host OS.
11690 * configure: Regenerate.
11692 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11694 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11695 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11698 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11702 * configure.ac: If neither --enable-linux-futex nor
11703 --disable-linux-futex is passed, determine the default by checking
11704 for compiling and/or running against NPTL. With --enable-linux-futex,
11705 check if SYS_gettid and SYS_futex are defined.
11706 * configure: Rebuilt.
11708 2006-06-14 Richard Henderson <rth@redhat.com>
11711 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11712 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11714 2006-06-09 Richard Henderson <rth@redhat.com>
11716 * env.c (gomp_nthreads_var): Change to unsigned long.
11717 (gomp_run_sched_chunk): Likewise.
11718 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11719 (initialize_env): Initialize gomp_thread_attr.
11720 * libgomp.h (gomp_nthreads_var): Update decl.
11721 (gomp_run_sched_chunk): Likewise.
11722 (gomp_thread_attr): Declare.
11723 * team.c (gomp_thread_attr): Export.
11724 (initialize_team): Don't initialize it.
11726 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11729 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11730 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11732 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11734 * config/mingw32/time.c: New file.
11735 * configure.tgt: Use it.
11737 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11739 * Makefile.am: Add install-html target. Add install-html to .PHONY
11740 * Makefile.in: Regenerate.
11742 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11745 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11746 * testsuite/libgomp.c/critical-1.c: Likewise.
11747 * testsuite/libgomp.c/loop-1.c: Likewise.
11748 * testsuite/libgomp.c/loop-2.c: Likewise.
11749 * testsuite/libgomp.c/single-1.c: Likewise.
11750 * testsuite/libgomp.c/ordered-1.c: Likewise.
11751 * testsuite/libgomp.c/ordered-2.c: Likewise.
11753 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11755 PR middle-end/27416
11756 * libgomp.fortran/pr27416-1.f90: New test.
11758 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11761 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11762 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11764 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11767 * testsuite/libgomp.c/pr26943-1.c: New test.
11768 * testsuite/libgomp.c/pr26943-2.c: New test.
11769 * testsuite/libgomp.c/pr26943-3.c: New test.
11770 * testsuite/libgomp.c/pr26943-4.c: New test.
11771 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11772 * testsuite/libgomp.c++/pr26943.C: New test.
11774 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11776 PR middle-end/27337
11777 * testsuite/libgomp.c++/pr27337.C: New test.
11779 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11782 * testsuite/libgomp.c/pr26171.c: New test.
11784 2006-04-25 Richard Henderson <rth@redhat.com>
11787 * configure.ac: Use GCC_CHECK_TLS.
11788 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11789 * Makefile.in, aclocal.m4, configure: Regenerate.
11791 2006-04-10 Matthias Klose <doko@debian.org>
11793 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11794 directory names containing underscores.
11796 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11799 * testsuite/libgomp.c++/pr26691.C: New test.
11801 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11803 * testsuite/libgomp.fortran/retval2.f90: New test.
11805 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11807 * testsuite/libgomp.c++: New directory.
11809 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11811 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11812 * config/posix/sem.c: Implement the above.
11814 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11816 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11817 define HAVE_BROKEN_POSIX_SEMAPHORES.
11818 * configure: Rebuilt.
11819 * config.h.in: Rebuilt.
11821 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11824 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11825 for the other pthread check.
11826 * configure: Regenerate.
11827 * config.h.in: Regenerate.
11829 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11833 * Makefile.am (fincludedir): New variable.
11834 (nodist_include_HEADERS): Remove Fortran files.
11835 (nodist_finclude_HEADERS): New variable.
11836 * Makefile.in: Regenerated.
11838 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11840 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11841 Remove tests for returning assumed character length arrays.
11843 2006-02-12 Roger Sayle <roger@eyesopen.com>
11844 John David Anglin <dave@hiauly1.hia.nrc.ca>
11847 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11849 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11851 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11853 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11855 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11856 part of LD_LIBRARY_PATH manually.
11858 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11861 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11864 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11867 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11868 * configure.ac (PERL): Don't set.
11869 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11870 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11871 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11872 * omp.h.in: Wrap the new configure substitutions with @ characters.
11873 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11874 * aclocal.m4, configure, Makefile.in: Regenerate.
11875 * mkomp_h.pl: Delete.
11877 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11880 * configure.ac: Use GCC_HEADER_STDINT.
11881 * libgomp.h: Include gstdint.h.
11882 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11883 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11885 2006-01-24 Richard Henderson <rth@redhat.com>
11888 * configure.ac: Add AM_MAINTAINER_MODE.
11889 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11891 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11893 * Makefile.in: Regenerate.
11894 * testsuite/Makefile.in: Regenerate.
11895 * aclocal.m4: Regenerate.
11897 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11899 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11901 * configure.ac: Add check for loadavg.h.
11902 (link_gomp): Adjust comment.
11903 * configure: Regenerate.
11904 * config.h.in: Regenerate.
11906 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11909 * configure.ac: Remove check for alloca.h.
11910 * configure: Regenerate.
11911 * config.h.in: Regenerate.
11912 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11913 * team.c: Remove use of alloca.h.
11914 Call gomp_alloca instead of alloca.
11916 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11919 * team.c: Add include of alloca.h.
11920 * configure.ac: Add check for alloca.h.
11921 * configure: Regenerate.
11922 * config.h.in: Regenerate.
11924 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11927 * testsuite/libgomp.fortran/pr25219.f90: New test.
11929 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11931 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11932 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11933 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11934 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11935 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11936 testsuite/libgomp.fortran/threadprivate1.f90,
11937 testsuite/libgomp.fortran/threadprivate2.f90,
11938 testsuite/libgomp.fortran/threadprivate3.f90,
11939 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11940 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11941 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11942 effective-target to TLS runtime.
11944 * testsuite/libgomp.fortran/pr25162.f: Require
11945 effective-target TLS runtime.
11947 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11949 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11950 * testsuite/libgomp.c/nestedfn-3.c: New test.
11952 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11955 * testsuite/libgomp.fortran/pr25162.f: New test.
11957 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11959 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11960 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11962 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11964 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11965 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11966 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11967 single.c, team.c, work.c, config/linux/alpha/futex.h,
11968 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11969 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11970 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11971 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11972 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11973 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11974 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11977 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11979 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11980 to nodist_noinst_HEADERS.
11981 * Makefile.in: Rebuilt.
11983 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11984 add integer count field.
11985 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11986 omp_nest_lock_t type change.
11987 (omp_init_nest_lock): Likewise. Initialize count to 0.
11988 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11990 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11992 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11993 Increment count if successful and return the new nesting level.
11994 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11995 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11996 * testsuite/libgomp.c/lib-1.c: New test.
11997 * testsuite/libgomp.fortran/lib1.f90: New test.
11998 * testsuite/libgomp.fortran/lib2.f: New test.
11999 * testsuite/libgomp.fortran/lib3.f: New test.
12001 2005-11-17 Richard Henderson <rth@redhat.com>
12004 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12005 * configure.ac (link_gomp): New. Substitute it.
12006 (AC_CONFIG_FILES): Add libgomp.spec.
12007 * libgomp.spec.in: New file.
12008 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12009 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12011 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12013 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12014 reduction(-:var) behaving the same as reduction(+:var).
12015 * testsuite/libgomp.c/reduction-4.c: New test.
12017 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12019 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12020 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12021 testsuite/libgomp.c/copyin-3.c,
12022 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12023 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12024 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12025 testsuite/libgomp.c++/pr24455.C,
12026 testsuite/libgomp.fortran/threadprivate1.f90,
12027 testsuite/libgomp.fortran/threadprivate2.f90,
12028 testsuite/libgomp.fortran/threadprivate3.f90,
12029 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12030 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12031 testsuite/libgomp.fortran/omp_parse3.f90: Require
12032 effective-target TLS.
12034 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12038 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12041 * team.c (initialize_team): Pass NULL rather than free as
12042 pthread_key_create destructor. Initialize thread specific data
12043 pointer in initial thread to a static local variable rather than
12046 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12048 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12049 its location to ld_library_path.
12051 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12053 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12055 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12057 * testsuite/libgomp.c: Rename from libgomp.dg.
12059 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12061 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12062 threadprivate variable 'i'.
12064 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12066 * config/linux/s390/futex.h: New file.
12067 * configure.tgt: Use it.
12069 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12070 before the parallel.
12072 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12075 * testsuite/libgomp.c++/master-1.C: New test.
12077 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12079 * testsuite/libgomp.dg/copyin-3.c: New test.
12081 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12083 * testsuite/libgomp.fortran/retval1.f90: New test.
12084 * testsuite/libgomp.fortran/vla7.f90: New test.
12086 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12088 * testsuite/libgomp.fortran/vla2.f90: New test.
12089 * testsuite/libgomp.fortran/vla3.f90: New test.
12090 * testsuite/libgomp.fortran/vla4.f90: New test.
12091 * testsuite/libgomp.fortran/vla5.f90: New test.
12092 * testsuite/libgomp.fortran/vla6.f90: New test.
12094 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12096 * config/linux/sparc/futex.h: New file.
12097 * configure.tgt: Use it.
12098 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12100 * critical.c: Include stdlib.h.
12101 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12102 ignoring return value.
12103 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12104 LIBGOMP_CHECK_SYNC_BUILTINS check.
12105 * configure: Rebuilt.
12107 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12109 * testsuite/libgomp.fortran/vla1.f90: New test.
12111 2005-10-31 Richard Henderson <rth@redhat.com>
12113 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12114 setting 's' in different threads.
12116 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12118 * libgomp.h (attribute_hidden, ialias): Define.
12119 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12120 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12121 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12122 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12123 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12124 omp_test_lock, omp_test_nest_lock): Likewise.
12125 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12126 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12127 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12128 omp_test_lock, omp_test_nest_lock): Likewise.
12129 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12130 omp_get_dynamic, omp_get_nested): Likewise.
12131 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12132 omp_get_thread_num, omp_in_parallel): Likewise.
12133 * fortran.c (ialias_redirect): Define.
12134 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12135 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12136 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12137 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12138 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12139 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12140 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12141 omp_get_wtime): Add ialias_redirect.
12143 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12145 * fortran.c: Include stdlib.h.
12147 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12149 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12150 * Makefile.in: Regenerated.
12152 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12154 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12155 * libgomp_f.h.in (omp_check_defines): New function.
12156 * env.c: Include libgomp_f.h.
12157 (initialize_env): Call omp_check_defines.
12159 * testsuite/libgomp.dg/copyin-2.c: New test.
12160 * testsuite/libgomp.c++/copyin-2.C: New test.
12161 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12163 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12164 * testsuite/libgomp.fortran/sharing2.f90: New test.
12166 * testsuite/libgomp.dg/copyin-1.c: New test.
12167 * testsuite/libgomp.c++/copyin-1.C: New test.
12169 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12171 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12173 * testsuite/libgomp.fortran/workshare1.f90: New test.
12175 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12177 * libgomp.fortran/sharing1.f90: New test.
12179 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12182 * testsuite/libgomp.c++/loop-7.C: New test.
12184 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12186 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12187 * testsuite/libgomp.fortran/reduction6.f90: New test.
12188 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12190 2005-10-23 Richard Henderson <rth@redhat.com>
12192 * testsuite/libgomp.c++/ctor-1.C: New.
12193 * testsuite/libgomp.c++/ctor-2.C: New.
12194 * testsuite/libgomp.c++/ctor-3.C: New.
12195 * testsuite/libgomp.c++/ctor-4.C: New.
12196 * testsuite/libgomp.c++/ctor-5.C: New.
12197 * testsuite/libgomp.c++/ctor-6.C: New.
12198 * testsuite/libgomp.c++/ctor-7.C: New.
12199 * testsuite/libgomp.c++/ctor-8.C: New.
12200 * testsuite/libgomp.c++/ctor-9.C: New.
12202 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12205 * testsuite/libgomp.c++/pr24455-1.C: New test.
12206 * testsuite/libgomp.c++/pr24455.C: New test.
12207 * testsuite/libgomp.dg/pr24455-1.c: New test.
12208 * testsuite/libgomp.dg/pr24455.c: New test.
12210 2005-10-20 Richard Henderson <rth@redhat.com>
12212 * testsuite/libgomp.c++/loop-6.C: New.
12213 * testsuite/libgomp.dg/loop-3.c: New.
12215 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12217 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12218 explicitly private.
12219 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12222 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12224 * testsuite/libgomp.fortran/jacobi.f: New test.
12226 2005-10-19 Richard Henderson <rth@redhat.com>
12228 * configure.tgt (i?86-linux): Default to with_arch instead of
12229 CFLAGS. Add -mtune to match target_cpu.
12230 (x86_64-linux): Tune to i686.
12232 * fortran.c (omp_test_nest_lock_): Fix typo.
12234 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12236 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12237 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12238 * testsuite/libgomp.dg/ordered-3.c: New test.
12240 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12241 Remove volatile keyword.
12243 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12244 in COMMON block to avoid warnings on 64-bit targets.
12246 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12248 * testsuite/libgomp.dg/shared-3.c: New test.
12250 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12252 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12253 * testsuite/libgomp.fortran/reduction5.f90: New test.
12255 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12257 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12259 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12260 flush loop now that __sync_synchronize has proper memory barrier.
12261 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12262 Add -ffixed-form to dg-options.
12264 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12266 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12267 from subdirectories.
12268 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12269 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12270 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12271 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12272 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12273 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12274 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12275 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12276 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12277 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12278 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12279 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12280 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12281 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12282 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12283 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12284 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12285 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12286 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12287 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12288 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12289 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12290 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12291 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12292 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12294 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12296 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12297 lang_library_path exists. Use find instead of glob to gather tests.
12298 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12300 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12302 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12303 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12304 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12305 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12306 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12307 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12308 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12309 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12310 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12311 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12312 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12313 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12314 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12316 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12318 * testsuite/libgomp.dg/vla-1.c: New test.
12320 * testsuite/libgomp.fortran/reference2.f90: New test.
12322 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12323 declaration of omp_get_thread_num.
12324 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12327 * testsuite/libgomp.fortran/reduction1.f90: New test.
12328 * testsuite/libgomp.fortran/reduction2.f90: New test.
12329 * testsuite/libgomp.fortran/reduction3.f90: New test.
12330 * testsuite/libgomp.fortran/reduction4.f90: New test.
12332 2005-10-13 Richard Henderson <rth@redhat.com>
12334 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12335 * Makefile.in: Regenerate.
12336 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12337 * libgomp.h: Include bar.h.
12338 (struct gomp_barrier): Remove.
12339 (struct gomp_team): Add barrier. Replace master_barrier with
12340 master_release. Replace threads with ordered_release.
12341 (struct gomp_thread): Replace barrier with release.
12342 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12343 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12344 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12345 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12346 (GOMP_single_copy_end): Likewise.
12347 * team.c (gomp_threads_dock): New.
12348 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12349 (gomp_thread_start): Use gomp_barrier_wait.
12350 (new_team, free_team): Update for gomp_team changes.
12351 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12352 (gomp_team_end): Use gomp_barrier_wait.
12353 (initialize_team): Update for gomp_thread changes.
12354 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12355 (gomp_work_share_end_nowait): Use atomic ops when available.
12356 * config/linux/bar.c, config/linux/bar.h: New files.
12357 * config/posix/bar.c, config/posix/bar.h: New files.
12359 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12361 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12362 * testsuite/libgomp.dg/single-2.c: New test.
12364 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12365 lang_link_flags): Unset, so that they aren't inherited from previously
12368 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12370 2005-10-12 Richard Henderson <rth@redhat.com>
12372 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12373 (libgomp_init): Use lang_test_file, lang_library_path, and
12374 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12376 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12377 (lang_test_file, lang_link_flags): New.
12378 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12380 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12381 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12382 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12383 testsuite/libgomp.c++/parallel-1.C,
12384 testsuite/libgomp.c++/reduction-1.C,
12385 testsuite/libgomp.c++/reduction-2.C,
12386 testsuite/libgomp.c++/reduction-3.C,
12387 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12388 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12389 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12390 New files, largely cribbed from the C testsuite.
12392 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12394 * testsuite/libgomp.fortran/character1.f90: New test.
12395 * testsuite/libgomp.fortran/character2.f90: New test.
12397 * testsuite/libgomp.dg/nested-1.c: New test.
12398 * testsuite/libgomp.dg/nested-2.c: New test.
12399 * testsuite/libgomp.fortran/do1.f90: New test.
12400 * testsuite/libgomp.fortran/do2.f90: New test.
12402 * testsuite/libgomp.fortran/reference1.f90: New test.
12404 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12406 * testsuite/libgomp.dg/reduction-1.c: New test.
12407 * testsuite/libgomp.dg/reduction-2.c: New test.
12408 * testsuite/libgomp.dg/reduction-3.c: New test.
12410 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12412 * testsuite/libgomp.dg/atomic-1.c: New test.
12413 * testsuite/libgomp.dg/atomic-2.c: New test.
12415 2005-10-09 Richard Henderson <rth@redhat.com>
12417 * critical.c (atomic_lock): New.
12418 (initialize_critical): Initialize it.
12419 (GOMP_atomic_start, GOMP_atomic_end): New.
12420 * libgomp.map: Export them.
12421 * libgomp_g.h: Declare them.
12423 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12425 2005-10-02 Richard Henderson <rth@redhat.com>
12427 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12428 to XCFLAGS instead of CFLAGS.
12430 2005-09-30 Richard Henderson <rth@redhat.com>
12432 * configure.ac: Determine whether -pthread or -lpthread is needed.
12433 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12434 * Makefile.in, configure: Rebuild.
12436 2005-09-28 Richard Henderson <rth@redhat.com>
12438 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12439 * testsuite/libgomp.dg/omp-single-3.c: New test.
12441 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12443 * testsuite/libgomp.dg/omp-single-2.c: New test.
12444 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12446 2005-09-27 Richard Henderson <rth@redhat.com>
12448 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12449 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12451 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12453 * testsuite/libgomp.dg/omp-loop03.c: New test.
12455 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12457 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12459 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12461 * testsuite/libgomp.dg/omp-single-1.c: New test.
12462 * testsuite/libgomp.dg/shared-1.c: Return 0.
12463 Add prototype for abort.
12464 * testsuite/libgomp.dg/shared-2.c: Likewise.
12466 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12468 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12471 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12473 * testsuite/libgomp.dg/shared-1.c: New test.
12474 * testsuite/libgomp.dg/shared-2.c: New test.
12476 2005-09-24 Richard Henderson <rth@redhat.com>
12478 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12480 2005-09-24 Richard Henderson <rth@redhat.com>
12482 * iter.c (gomp_iter_static_next): Round up when computing number
12483 of iterations. Don't bother distributing a remainder equally.
12485 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12486 Don't call srand. Zero b before testing.
12489 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12491 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12492 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12494 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12496 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12497 without !$omp end do, followed immediately by subroutine end.
12499 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12501 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12503 2005-09-22 Richard Henderson <rth@redhat.com>
12505 * critical.c (GOMP_critical_name_start): Change argument to void**.
12506 Reuse the pointer space if the mutex fits.
12507 (GOMP_critical_name_end): Likewise.
12508 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12509 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12510 (GOMP_critical_name_end): Likewise.
12511 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12512 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12514 2005-09-20 Richard Henderson <rth@redhat.com>
12516 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12517 (create_lock_lock): New.
12518 (initialize_critical): Initialize it.
12519 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12520 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12522 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12524 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12526 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12528 * testsuite/libgomp.dg/omp-loop01.c: New test.
12529 * testsuite/libgomp.dg/omp-loop02.c: New test.
12531 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12533 * configure.ac (AC_PROG_FC): Add.
12534 (USE_FORTRAN): New automake conditional.
12535 * configure: Rebuilt.
12536 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12537 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12538 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12539 Add rules to build them.
12540 * Makefile.in: Rebuilt.
12541 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12542 OMP_NEST_LOCK_KIND.
12543 * libgomp.map: Add Fortran wrappers.
12544 * libgomp_f.h.in: New file.
12545 * omp_lib.h.in: New file.
12546 * omp_lib.f90.in: New file.
12547 * fortran.c: New file.
12548 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12549 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12550 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12551 libgfortran has been built.
12552 * testsuite/libgomp.fortran/fortran.exp: New file.
12553 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12554 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12555 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12556 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12557 * testsuite/libgomp.fortran/omp_hello.f: New test.
12558 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12559 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12560 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12561 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12562 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12563 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12564 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12565 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12567 2005-08-30 Richard Henderson <rth@redhat.com>
12569 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12570 function for when aliases are not usable.
12571 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12572 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12573 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12574 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12575 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12576 GOMP_loop_ordered_guided_next): Likewise.
12577 * ordered.c (GOMP_ordered_start): Likewise.
12579 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12581 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12582 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12583 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12584 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12585 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12586 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12587 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12588 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12589 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12591 2005-07-07 Eric Christopher <echristo@redhat.com>
12592 Diego Novillo <dnovillo@redhat.com>
12594 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12595 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12597 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12598 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12599 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12600 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12601 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12602 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12603 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12605 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12607 * TOPLEVEL.patch: Remove.
12609 2005-05-16 Richard Henderson <rth@redhat.com>
12611 * configure.ac: Test for clock_gettime.
12612 * config.h.in, configure: Rebuild.
12613 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12614 (omp_get_wtime): Use clock_gettime if available.
12615 (omp_get_wtick): Use clock_getres if available.
12617 2005-05-11 Richard Henderson <rth@redhat.com>
12619 * config/linux/ia64/futex.h: New file.
12620 * configure.tgt: Use it.
12622 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12624 2005-05-07 Richard Henderson <rth@redhat.com>
12626 * config/linux/powerpc/futex.h: New file.
12627 * configure.tgt: Use it.
12629 * config/linux/i486/futex.h: Merge ...
12630 * config/linux/x86_64/futex.h: ... into ...
12631 * config/linux/x86/futex.h: ... here.
12632 * configure.tgt: Update to match.
12634 2005-05-06 Richard Henderson <rth@redhat.com>
12636 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12637 * config/linux/i486/futex.h: Likewise.
12638 * config/linux/x86_64/futex.h: Likewise.
12640 * config/linux/lock.c: New file.
12641 * config/linux/omp-lock.h: New file.
12643 * critical.c, env.h: Don't include omp.h
12644 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12645 * config/posix/time.c: Likewise.
12646 * config/posix/omp-lock.h: New file.
12647 * libgomp.h: Include omp-lock.h and omp.h.
12648 * Makefile.am (nodist_include_HEADERS): New.
12650 * configure.ac (PERL): New.
12651 * mkomp_h.pl: New file.
12652 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12654 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12656 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12657 build directory. Re-add -march=i486 hack.
12659 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12660 (libgomp_link_flags): Remove.
12661 (libgomp_initialized): Remove.
12662 (libgomp_init): Don't protect from reinitialization. Copy code
12663 from libstdc++ for getting the multilib set correctly.
12665 2005-05-05 Richard Henderson <rth@redhat.com>
12667 * config/linux/alpha/futex.h: New file.
12668 * configure.tgt (alpha*-*-linux*): Use it.
12670 * config/posix/mutex.c: New file.
12671 * config/posix/sem.c: Use libgomp.h.
12673 * configure.tgt (x86_64-linux): Also test CC for -m32.
12674 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12676 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12679 * Makefile.am (SUBDIRS): New.
12680 (libgomp_la_LDFLAGS): Add -lpthread.
12681 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12682 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12684 * libgomp_g.h: New file.
12685 * libgomp.h: Split out all public declarations to libgomp_g.h.
12686 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12687 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12688 * config/linux/sem.h: Likewise.
12689 * config/posix/sem.h: Likewise.
12691 * Makefile.am (AM_LDFLAGS): New.
12692 (libgomp_version_script): Split out from ...
12693 (libgomp_la_LDFLAGS): ... here.
12694 (libgomp_version_info): New.
12695 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12696 (LIBGOMP_ENABLE): New.
12697 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12698 (LIBGOMP_ENABLE_SYMVERS): New.
12699 * configure.ac (AC_INIT): Version 1.0.
12700 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12701 (enable-linux-futex): Likewise. Rename from enable-futex.
12702 (libtool_VERSION): New.
12703 (LIBGOMP_ENABLE_SYMVERS): Use it.
12704 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12705 * Makefile.in, aclocal.m4, configure: Rebuild.
12707 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12708 (gomp_mutex_unlock_slow): Fix typo.
12709 * config/linux/sem.c: Similarly.
12710 (gomp_sem_post_slow): Fix typo.
12711 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12712 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12713 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12715 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12716 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12717 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12718 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12719 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12720 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12721 LDFLAGS. Pull enable_futex check to top-level.
12722 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12723 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12725 First attempt at real configury.
12726 * Makefile, config.h: Remove file.
12727 * Makefile.am, Makefile.in: New file.
12728 * acinclude.m4 aclocal.m4: New file.
12729 * configure.ac, configure.tgt, configure: New file.
12731 * config/posix/lock.c: Rename from sys-lock.c.
12732 * config/posix/mutex.h: Rename from sys-mutex.h.
12733 * config/posix/sem.c: Rename from sys-sem.c.
12734 * config/posix/sem.h: Rename from sys-sem.h.
12735 * config/posix/proc.c: Rename from sys-proc.c.
12736 * config/posix/time.c: Rename from sys-proc.c.
12738 * config/linux/mutex.c: New file.
12739 * config/linux/mutex.h: New file.
12740 * config/linux/sem.c: New file.
12741 * config/linux/sem.h: New file.
12742 * config/linux/i486/futex.h: New file.
12743 * config/linux/x86_64/futex.h: New file.
12745 2005-05-04 Richard Henderson <rth@redhat.com>
12747 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12748 * libgomp.h: Declare them.
12749 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12750 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12752 2005-05-04 Richard Henderson <rth@redhat.com>
12754 * libgomp-1 code drop
12756 2005-05-04 Richard Henderson <rth@redhat.com>
12758 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12759 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12760 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12761 (gomp_iter_static_next): Update.
12762 (gomp_ordered_static_next): Update.
12763 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12764 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12765 totally empty range.
12766 (gomp_loop_ordered_static_next): Refine test for calling
12767 gomp_ordered_static_next.
12768 * testsuite/ordered-1.c: Add case for more threads than iterations.
12770 * iter.c (gomp_iter_runtime_next_locked): Remove.
12771 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12772 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12773 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12774 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12775 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12776 gomp_loop_ordered_guided_next): Downcase name, make static, add
12777 an external alias with the old name.
12778 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12779 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12780 switch and call one of the above static functions.
12781 * libgomp.h: Update.
12783 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12784 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12785 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12786 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12787 GOMP_loop_ordered_guided_start): Update to match.
12788 * sections.c (GOMP_sections_start): Likewise.
12789 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12791 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12792 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12793 Use bounds check instead of modulus.
12794 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12795 (gomp_ordered_last): Don't sync with ordered_owner here.
12796 (gomp_ordered_next): Likewise.
12797 (gomp_ordered_static_loop_next): Likewise.
12798 * loop.c, libgomp.h: Update to match.
12800 * libgomp.h (GOMP_barrier): Declare.
12802 * testsuite/barrier-1.c: New file.
12803 * testsuite/critical-1.c: New file.
12804 * testsuite/ordered-2.c: New file.
12805 * testsuite/ordered-1.c: New file.
12806 * testsuite/sections-1.c: New file.
12807 * testsuite/single-1.c: New file.
12808 * testsuite/Makefile (TESTS): Add them.
12810 2005-05-04 Richard Henderson <rth@redhat.com>
12812 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12813 * loop.c (GOMP_loop_static_start): If not the startup thread,
12814 acquire the mutex to wait for initialization complete.
12815 (GOMP_loop_ordered_static_start): Likewise.
12816 (GOMP_loop_ordered_runtime_start): Likewise.
12817 (GOMP_loop_ordered_static_first): Remove.
12818 (GOMP_loop_ordered_dynamic_first): Remove.
12819 (GOMP_loop_ordered_guided_first): Remove.
12820 (GOMP_loop_ordered_runtime_first): Remove.
12821 * ordered.c (gomp_ordered_loop_first): Post to own release when
12822 we're the first thread.
12823 (gomp_ordered_loop_last): Wait on release if not owner.
12824 (gomp_ordered_loop_next): Likewise.
12825 (gomp_ordered_static_loop_init): New.
12826 (gomp_ordered_static_loop_next): Use ordered_owner.
12827 (GOMP_ordered_start): Likewise.
12828 * work.c (gomp_new_work_share): Initialize ordered_owner.
12830 2005-05-03 Richard Henderson <rth@redhat.com>
12832 * Makefile (OPT): New.
12835 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12836 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12837 * libgomp.h, libgomp.map, NOTES: Update to match.
12839 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12840 Add initialized and thr members.
12841 (gomp_thread_start): Pause when initially spawned to wait for
12842 the whole team to be created.
12843 (gomp_team_start): Release team members at the end.
12845 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12846 (f_foo_1): Use GOMP_loop_end.
12847 (f_foo_2): Use GOMP_loop_end_nowait.
12849 * testsuite/loop-2.c: New file.
12850 * testsuite/Makefile (TESTS): Add it.
12852 2005-05-03 Richard Henderson <rth@redhat.com>
12854 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12855 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12856 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12857 initial work_share.
12859 * testsuite/Makefile: New file.
12860 * testsuite/loop-1.c: New file.
12862 2005-05-03 Richard Henderson <rth@redhat.com>
12864 Initial implementation and checkin.
12866 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12868 Copying and distribution of this file, with or without modification,
12869 are permitted in any medium without royalty provided the copyright
12870 notice and this notice are preserved.