2 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4 * plugin-gcn.c (struct agent_info): Add fields "name" and
6 (GOMP_OFFLOAD_init_device): ... and init from here.
7 (struct hsa_context_info): Add field "driver_version_s" ...
8 (init_hsa_contest): ... and init from here.
9 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
11 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
12 Enable test execution for amdgcn and host offloading targets.
13 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
14 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
15 (expect_device_properties): Split function into ...
16 (expect_device_string_properties): ... this new function ...
17 (expect_device_memory): ... and this new function.
18 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
21 2020-01-28 Julian Brown <julian@codesourcery.com>
23 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
24 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
25 component/non-component variable refs in a single directive.
26 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
28 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
30 * configure.ac: Handle `--with-toolexeclibdir='.
31 * Makefile.in: Regenerate.
32 * aclocal.m4: Regenerate.
33 * configure: Regenerate.
34 * testsuite/Makefile.in: Regenerate.
36 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
38 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
39 (expect_device_properties): Remove "expected_free_mem" argument,
40 change "expected_total_mem" argument type to size_t;
41 change types of acc_get_property results to size_t,
43 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
44 Use %zu instead of %zd to print size_t values.
45 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
47 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
48 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
50 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
52 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
54 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
57 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
59 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
60 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
61 Adjust test dimensions for amdgcn.
62 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
63 gang/worker/vector expectations dynamically.
64 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
66 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
67 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
68 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
69 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
70 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
71 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
72 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
73 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
74 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
75 (acc_gang): Recognise acc_device_radeon.
76 (acc_worker): Likewise.
77 (acc_vector): Likewise.
78 (main): Set expectations for amdgcn.
79 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
80 (main): Adjust gang/worker/vector expectations dynamically.
81 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
82 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
83 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
84 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
87 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
89 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
92 * openacc.f90 (openacc_kinds): Likewise.
94 * openacc.h (acc_device_t): Likewise.
95 * openacc_lib.h: Likewise.
96 * testsuite/lib/libgomp.exp
97 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
99 (cb_compute_construct_end): Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
101 (cb_enqueue_launch_start): Likewise.
102 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
103 (cb_enter_data_end): Likewise.
104 (cb_exit_data_start): Likewise.
105 (cb_exit_data_end): Likewise.
106 (cb_compute_construct_end): Likewise.
107 (cb_enqueue_launch_start): Likewise.
108 (cb_enqueue_launch_end): Likewise.
109 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
112 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
114 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
115 to use this instead of 'enum gomp_device_property'.
116 (GOMP_OFFLOAD_get_property): Rename to...
117 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
118 * libgomp.h (struct gomp_device_descr): Move
119 'GOMP_OFFLOAD_openacc_get_property'...
120 (struct acc_dispatch_t): ... here. Adjust all users.
121 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
123 * target.c (gomp_map_vars_internal)
124 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
127 2020-01-10 Jakub Jelinek <jakub@redhat.com>
130 * libgomp.h (gomp_print_string): Change return type from void to int.
131 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
132 not all characters have been written.
134 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
136 * libgomp.texi: Fix typos, use https.
138 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
140 * testsuite/libgomp.fortran/optional-map.f90: Add test for
141 unallocated/disassociated actual arguments to nonallocatable/nonpointer
142 dummy arguments; those are/shall be regarded as absent arguments.
143 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
144 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
146 2020-01-01 Jakub Jelinek <jakub@redhat.com>
148 Update copyright years.
150 * libgomp.texi: Bump @copying's copyright year.
152 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
155 * oacc-init.c (goacc_runtime_deinitialize): New function.
157 2019-12-28 Jakub Jelinek <jakub@redhat.com>
160 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
161 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
163 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
164 Frederik Harwath <frederik@codesourcery.com>
165 Thomas Schwinge <tschwinge@codesourcery.com>
167 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
168 * libgomp-plugin.h (gomp_device_property_value): New union.
169 (gomp_device_property_value): New prototype.
170 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
172 (acc_device_property_t): New enum.
173 (acc_get_property, acc_get_property_string): New prototypes.
174 * oacc-init.c (acc_get_device_type): Also assert that result
175 is not `acc_device_current'.
176 (get_property_any, acc_get_property, acc_get_property_string):
178 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
179 `acc_property_memory', `acc_property_free_memory',
180 `acc_property_name', `acc_property_vendor' and
181 `acc_property_driver' constants. Add `acc_device_property' data
183 (openacc_internal): Add `acc_get_property' and
184 `acc_get_property_string' interfaces. Add `acc_get_property_h',
185 `acc_get_property_string_h', `acc_get_property_l' and
186 `acc_get_property_string_l'.
187 * oacc-host.c (host_get_property): New function.
188 (host_dispatch): Wire it.
189 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
190 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
191 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
192 * libgomp.texi (OpenACC Runtime Library Routines): Add
194 (acc_get_property): New node.
195 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
197 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
198 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
199 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
201 (GOMP_OFFLOAD_get_property): New function.
202 (struct ptx_device): Add new field "name".
203 (cuda_driver_version_s): Add new static variable ...
204 (nvptx_init): ... and init from here.
206 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
207 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
208 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
209 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
210 with test helper functions.
212 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
214 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
216 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
219 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
221 * target.c (gomp_map_vars_internal): Restore 'omp declare target
224 2019-12-19 Julian Brown <julian@codesourcery.com>
226 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
227 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
228 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
230 2019-12-19 Julian Brown <julian@codesourcery.com>
231 Cesar Philippidis <cesar@codesourcery.com>
233 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
234 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
235 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
236 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
237 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
238 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
239 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
240 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
241 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
242 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
243 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
244 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
245 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
247 2019-12-19 Julian Brown <julian@codesourcery.com>
249 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
250 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
251 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
252 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
253 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
254 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
255 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
256 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
257 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
258 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
259 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
260 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
262 2019-12-19 Julian Brown <julian@codesourcery.com>
264 * libgomp.h (struct target_var_desc): Add do_detach flag.
265 * oacc-init.c (acc_shutdown_1): Free aux block if present.
266 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
267 struct components. Tidy up and add some new checks.
268 (goacc_enter_data_internal): Update call to find_group_last.
269 (goacc_exit_data_internal): Support detach operations and
271 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
272 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
273 attach/detach in enter/exit data detection code.
274 * target.c (gomp_map_vars_existing): Initialise do_detach field of
276 (gomp_map_vars_internal): Support attach.
277 (gomp_unmap_vars_internal): Support detach.
279 2019-12-19 Julian Brown <julian@codesourcery.com>
280 Thomas Schwinge <thomas@codesourcery.com>
282 * libgomp.h (struct splay_tree_aux): Add attach_count field.
283 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
284 * libgomp.map (OACC_2.6): New section. Add acc_attach,
285 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
286 acc_detach_finalize_async.
287 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
288 acc_detach, acc_detach_async, acc_detach_finalize,
289 acc_detach_finalize_async): New functions.
290 * openacc.h (acc_attach, acc_attach_async, acc_detach,
291 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
293 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
294 (gomp_remove_var_internal): Free attachment counts if present.
295 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
296 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
298 2019-12-19 Julian Brown <julian@codesourcery.com>
299 Cesar Philippidis <cesar@codesourcery.com>
301 * libgomp.h (gomp_map_val): Add prototype.
302 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
303 open-coding device-address calculation.
304 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
307 2019-12-19 Julian Brown <julian@codesourcery.com>
309 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
310 field for virtual_refcount.
311 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
312 (gomp_free_memmap): Remove prototype.
313 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
314 instead of calling gomp_free_memmap.
315 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
317 (acc_unmap_data): Open code instead of forcing target_mem_desc's
318 to_free field to NULL then calling gomp_unmap_vars. Handle
319 REFCOUNT_INFINITY on target blocks.
320 (goacc_enter_data): Rename to...
321 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
322 handling for mapping groups. Use virtual_refcount instead of
323 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
324 map_map_vars_async call. Re-do lookup for target pointer return value.
325 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
326 renamed goacc_enter_datum function.
327 (goacc_exit_data): Rename to...
328 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
329 (acc_delete, acc_delete_async, acc_delete_finalize,
330 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
331 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
332 goacc_exit_datum function.
333 (gomp_acc_remove_pointer, find_pointer): Remove functions.
334 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
336 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
337 goacc_exit_data_internal helper functions.
338 * target.c (gomp_map_vars_internal): Handle
339 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
341 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
342 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
343 virtual_refcount field instead of dynamic_refcount.
344 (gomp_free_memmap): Remove function.
345 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
346 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
347 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
349 2019-12-19 Julian Brown <julian@codesourcery.com>
350 Thomas Schwinge <thomas@codesourcery.com>
352 * libgomp.h (struct splay_tree_aux): New.
353 (struct splay_tree_key_s): Replace link_key field with aux pointer.
354 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
356 (gomp_remove_var_internal): Free aux block if present.
357 (gomp_load_image_to_device): Zero-initialise aux field instead of
359 (omp_target_associate_pointer): Zero-initialise aux field.
361 2019-12-18 Jakub Jelinek <jakub@redhat.com>
364 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
366 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
369 2019-12-19 Julian Brown <julian@codesourcery.com>
370 Maciej W. Rozycki <macro@codesourcery.com>
371 Tobias Burnus <tobias@codesourcery.com>
372 Thomas Schwinge <thomas@codesourcery.com>
374 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
375 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
376 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
377 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
378 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
379 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
380 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
381 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
382 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
384 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
386 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
388 (goacc_insert_pointer): ... from here, "present" case.
389 (goacc_insert_pointer): Inline function into...
390 (GOACC_enter_exit_data): ... here, and simplify.
392 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
394 (goacc_insert_pointer): ... from here, "not present" case.
396 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
399 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
400 'goacc_enter_data', 'goacc_exit_data'.
402 * oacc-mem.c (delete_copyout): Refactor into...
403 (goacc_exit_data): ... this. Adjust all users.
405 * oacc-mem.c (present_create_copy): Refactor into...
406 (goacc_enter_data): ... this. Adjust all users.
408 * target.c (gomp_unmap_vars_internal): Add a safeguard to
411 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
412 like 'GOMP_MAP_FROM'.
417 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
419 (GOACC_enter_exit_data): Simplify accordingly.
420 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
422 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
423 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
425 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
427 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
428 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
430 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
432 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
434 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
438 * oacc-mem.c (acc_map_data, present_create_copy)
439 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
440 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
441 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
442 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
443 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
444 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
445 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
446 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
449 * target.c (gomp_unmap_tgt): Make it 'static'.
450 * libgomp.h (gomp_unmap_tgt): Remove.
452 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
455 * testsuite/libgomp.c/pr86416-1.c: New.
456 * testsuite/libgomp.c/pr86416-2.c: New.
458 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
460 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
461 all symbols as public except for the 'use …, only' imported symbol,
463 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
464 all symbols from module openacc_kinds as PUBLIC
465 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
467 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
469 2019-12-13 Julian Brown <julian@codesourcery.com>
473 * libgomp.h (gomp_remove_var_async): Add prototype.
474 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
476 * target.c (gomp_unref_tgt): Change return type to bool, indicating
477 whether target_mem_desc was unmapped.
478 (gomp_unref_tgt_void): New.
479 (gomp_remove_var): Reimplement in terms of...
480 (gomp_remove_var_internal): ...this new helper function.
481 (gomp_remove_var_async): New, implemented using above helper function.
482 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
485 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
487 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
488 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
489 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
490 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
491 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
493 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
494 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
496 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
498 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
499 as public except for the 'use …, only' imported symbol, which is
501 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
502 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
503 attributes for acc_copyout_finalize and acc_delete_finalize.
505 2019-12-11 Jakub Jelinek <jakub@redhat.com>
508 * testsuite/libgomp.fortran/atomic1.f90: New test.
510 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
513 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
514 reference counting for structured 'REFCOUNT_INFINITY'. Add some
516 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
517 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
518 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
519 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
520 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
522 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
523 * oacc-mem.c: ... here.
524 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
525 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
526 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
528 * libgomp_g.h: Update.
530 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
531 * oacc-async.c: ... here.
532 * oacc-int.h (goacc_wait): Declare.
533 * libgomp_g.h: Update
536 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
538 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
540 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
542 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
544 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
546 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
549 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
550 Julian Brown <julian@codesourcery.com>
552 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
553 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
555 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
557 * omp_lib.h.in: Fix spelling of function declaration
558 omp_get_cancell(l)ation.
559 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
561 * env.c: Fix comment typos.
562 * oacc-host.c: Likewise.
563 * ordered.c: Likewise.
566 * config/gcn/task.c: Likewise.
567 * config/gcn/team.c: Likewise.
568 * config/nvptx/task.c: Likewise.
569 * config/nvptx/team.c: Likewise.
570 * plugin/plugin-gcn.c: Likewise.
571 * testsuite/libgomp.fortran/jacobi.f: Likewise.
572 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
573 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
575 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
577 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
578 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
579 unnecessary 'dg-additional-options "-w"'.
581 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
582 Julian Brown <julian@codesourcery.com>
587 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
588 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
590 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
592 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
594 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
596 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
599 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
600 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
602 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
604 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
606 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
608 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
610 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
612 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
613 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
614 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
620 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
624 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
625 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
626 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
628 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
630 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
632 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
633 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
636 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
638 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
640 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
642 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
644 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
645 ... with their content moved into, and extended in this new file.
646 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
648 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
650 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
652 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
655 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
658 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
660 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
662 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
664 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
666 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
668 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
669 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
670 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
671 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
673 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
674 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
676 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
678 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
680 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
681 Kwok Cheung Yeung <kcy@codesourcery.com>
683 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
684 if input it a NULL pointer.
685 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
686 diagnostic of NULL pointer.
687 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
688 * testsuite/libgomp.fortran/optional-map.f90: New.
689 * testsuite/libgomp.fortran/use_device_addr-1.f90
690 (test_dummy_opt_callee_1_absent): New.
691 (test_dummy_opt_call_1): Call it.
692 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
693 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
694 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
695 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
696 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
697 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
698 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
699 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
700 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
701 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
702 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
703 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
704 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
705 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
706 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
707 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
709 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
711 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
712 expect dg-output of 'Error termination.' for GCN.
713 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
714 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
716 2019-12-04 Jakub Jelinek <jakub@redhat.com>
719 * testsuite/libgomp.fortran/teams1.f90: New test.
720 * testsuite/libgomp.fortran/teams2.f90: New test.
722 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
724 * oacc-init.c (acc_known_device_type): Add function.
725 (unknown_device_type_error): Add function.
726 (name_of_acc_device_t): Change to call unknown_device_type_error
728 (resolve_device): Use acc_known_device_type.
729 (acc_init): Fail if acc_device_t argument is not valid.
730 (acc_shutdown): Likewise.
731 (acc_get_num_devices): Likewise.
732 (acc_set_device_type): Likewise.
733 (acc_get_device_num): Likewise.
734 (acc_set_device_num): Likewise.
735 (acc_on_device): Add comment that argument validity is not checked.
737 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
739 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
741 (check_effective_target_openacc_amdgcn_accel_present): New proc.
742 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
743 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
744 * testsuite/libgomp.oacc-c/c.exp: Likewise.
745 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
747 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
750 * configure.tgt: Avoid IE tls on *-*-musl*.
752 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
754 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
755 adding a common-block test case.
757 2019-11-29 Jakub Jelinek <jakub@redhat.com>
760 * testsuite/libgomp.c++/udr-20.C: New test.
761 * testsuite/libgomp.c++/udr-21.C: New test.
763 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
765 * testsuite/lib/libgomp.exp
766 (check_effective_target_offload_target_nvptx): New proc.
767 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
769 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
770 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
771 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
773 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
775 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
776 * testsuite/libgomp.c/pr39591-2.c: Likewise.
777 * testsuite/libgomp.c/pr39591-3.c: Likewise.
778 * testsuite/libgomp.c/private-1.c: Likewise.
779 * testsuite/libgomp.c/task-1.c: Likewise.
780 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
782 2019-11-20 Julian Brown <julian@codesourcery.com>
784 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
786 (queue_push_launch): Lock aq->mutex before calling
787 wait_for_queue_nonfull.
788 (queue_push_callback): Likewise.
789 (queue_push_asyncwait): Likewise.
790 (queue_push_placeholder): Likewise.
792 2019-11-20 Julian Brown <julian@codesourcery.com>
794 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
795 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
796 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
799 2019-11-20 Julian Brown <julian@codesourcery.com>
803 * oacc-mem.c (present_create_copy): Fix device pointer return value in
804 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
805 in non-present/create case.
806 (delete_copyout): Change error condition to fail only on copies outside
807 of mapped block. Adjust error message accordingly.
808 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
809 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
810 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
812 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
813 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
814 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
816 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
818 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
819 libatomic in build-tree testing.
821 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
823 * testsuite/Makefile.in: Regenerate.
825 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
827 * testsuite/libgomp.c/target-print-1.c: New file.
828 * testsuite/libgomp.fortran/target-print-1.f90: New file.
829 * testsuite/libgomp.oacc-c/print-1.c: New file.
830 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
832 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
833 Kwok Cheung Yeung <kcy@codesourcery.com>
834 Julian Brown <julian@codesourcery.com>
835 Tom de Vries <tom@codesourcery.com>
837 * plugin/Makefrag.am: Add amdgcn plugin support.
838 * plugin/configfrag.ac: Likewise.
839 * plugin/plugin-gcn.c: New file.
840 * configure: Regenerate.
841 * Makefile.in: Regenerate.
842 * testsuite/Makefile.in: Regenerate.
844 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
846 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
847 and use team_malloc variants.
848 (gomp_gcn_exit_kernel): Use team_free.
849 * libgomp.h (TEAM_ARENA_SIZE): Define.
850 (TEAM_ARENA_START): Define.
851 (TEAM_ARENA_FREE): Define.
852 (TEAM_ARENA_END): Define.
853 (team_malloc): New function.
854 (team_malloc_cleared): New function.
855 (team_free): New function.
856 * team.c (gomp_new_team): Initialize and use team_malloc.
857 (free_team): Use team_free.
858 (gomp_free_thread): Use team_free.
859 (gomp_pause_host): Use team_free.
860 * work.c (gomp_init_work_share): Use team_malloc.
861 (gomp_fini_work_share): Use team_free.
863 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
864 Kwok Cheung Yeung <kcy@codesourcery.com>
865 Julian Brown <julian@codesourcery.com>
866 Tom de Vries <tom@codesourcery.com>
868 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
869 * Makefile.in: Regenerate.
870 * config.h.in (PLUGIN_GCN): Add new undef.
871 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
872 * config/gcn/affinity-fmt.c: New file.
873 * config/gcn/bar.c: New file.
874 * config/gcn/bar.h: New file.
875 * config/gcn/doacross.h: New file.
876 * config/gcn/icv-device.c: New file.
877 * config/gcn/oacc-target.c: New file.
878 * config/gcn/simple-bar.h: New file.
879 * config/gcn/target.c: New file.
880 * config/gcn/task.c: New file.
881 * config/gcn/team.c: New file.
882 * config/gcn/time.c: New file.
883 * configure.ac: Add amdgcn*-*-*.
884 * configure: Regenerate.
885 * configure.tgt: Add amdgcn*-*-*.
886 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
887 * libgomp.h (gcn_thrs): Add amdgcn variant.
888 (set_gcn_thrs): Likewise.
889 (gomp_thread): Likewise.
890 * oacc-int.h (goacc_thread): Likewise.
891 * oacc-target.c: New file.
892 * openacc.f90 (acc_device_gcn): New parameter.
893 * openacc.h (acc_device_t): Add acc_device_gcn.
894 * team.c (gomp_free_pool_helper): Add amdgcn support.
896 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
897 Julian Brown <julian@codesourcery.com>
899 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
901 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
903 * oacc-host.c (host_openacc_async_construct): Add device parameter.
904 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
907 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
909 * configure.tgt (nvptx*-*-*): Add "accel" directory.
910 * config/nvptx/libgomp-plugin.c: Move ...
911 * config/accel/libgomp-plugin.c: ... to here.
912 * config/nvptx/lock.c: Move ...
913 * config/accel/lock.c: ... to here.
914 * config/nvptx/mutex.c: Move ...
915 * config/accel/mutex.c: ... to here.
916 * config/nvptx/mutex.h: Move ...
917 * config/accel/mutex.h: ... to here.
918 * config/nvptx/oacc-async.c: Move ...
919 * config/accel/oacc-async.c: ... to here.
920 * config/nvptx/oacc-cuda.c: Move ...
921 * config/accel/oacc-cuda.c: ... to here.
922 * config/nvptx/oacc-host.c: Move ...
923 * config/accel/oacc-host.c: ... to here.
924 * config/nvptx/oacc-init.c: Move ...
925 * config/accel/oacc-init.c: ... to here.
926 * config/nvptx/oacc-mem.c: Move ...
927 * config/accel/oacc-mem.c: ... to here.
928 * config/nvptx/oacc-plugin.c: Move ...
929 * config/accel/oacc-plugin.c: ... to here.
930 * config/nvptx/omp-lock.h: Move ...
931 * config/accel/omp-lock.h: ... to here.
932 * config/nvptx/openacc.f90: Move ...
933 * config/accel/openacc.f90: ... to here.
934 * config/nvptx/pool.h: Move ...
935 * config/accel/pool.h: ... to here.
936 * config/nvptx/proc.c: Move ...
937 * config/accel/proc.c: ... to here.
938 * config/nvptx/ptrlock.c: Move ...
939 * config/accel/ptrlock.c: ... to here.
940 * config/nvptx/ptrlock.h: Move ...
941 * config/accel/ptrlock.h: ... to here.
942 * config/nvptx/sem.c: Move ...
943 * config/accel/sem.c: ... to here.
944 * config/nvptx/sem.h: Move ...
945 * config/accel/sem.h: ... to here.
946 * config/nvptx/thread-stacksize.h: Move ...
947 * config/accel/thread-stacksize.h: ... to here.
949 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
950 Tobias Burnus <tobias@codesourcery.com>
951 Frederik Harwath <frederik@codesourcery.com>
952 Thomas Schwinge <thomas@codesourcery.com>
955 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
956 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
957 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
959 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
960 Kwok Cheung Yeung <kcy@codesourcery.com>
962 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
963 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
965 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
967 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
969 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
971 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
972 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
974 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
976 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
977 Add expected warnings about missing reduction clauses.
978 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
980 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
982 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
985 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
987 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
988 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
989 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
990 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
991 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
992 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
994 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
997 * testsuite/libgomp.fortran/allocatable2.f90: Use
998 unique numbers with 'stop'.
999 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1000 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1001 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1002 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1003 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1005 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1007 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1008 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1009 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1010 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1011 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1012 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1014 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1016 * testsuite/libgomp.fortran/target9.f90: New.
1018 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1020 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1021 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1022 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1023 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1024 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1025 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1026 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1027 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1028 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1029 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1030 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1031 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1032 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1033 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1034 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1035 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1036 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1037 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1038 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1039 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1040 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1041 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1042 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1043 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1044 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1045 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1046 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1047 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1048 * testsuite/libgomp.fortran/character1.f90: Ditto.
1049 * testsuite/libgomp.fortran/character2.f90: Ditto.
1050 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1051 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1052 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1053 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1054 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1055 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1056 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1057 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1058 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1059 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1060 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1061 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1062 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1063 * testsuite/libgomp.fortran/do1.f90: Ditto.
1064 * testsuite/libgomp.fortran/do2.f90: Ditto.
1065 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1066 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1067 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1068 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1069 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1070 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1071 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1072 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1073 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1074 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1075 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1076 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1077 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1078 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1079 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1080 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1081 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1082 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1083 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1084 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1085 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1086 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1087 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1088 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1089 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1090 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1091 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1092 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1093 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1094 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1095 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1096 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1097 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1098 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1099 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1100 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1101 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1102 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1103 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1104 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1105 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1106 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1107 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1108 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1109 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1110 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1111 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1112 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1113 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1114 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1115 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1116 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1117 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1118 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1119 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1120 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1121 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1122 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1123 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1124 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1125 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1126 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1127 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1128 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1129 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1130 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1131 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1132 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1133 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1134 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1135 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1136 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1137 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1138 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1139 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1140 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1141 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1142 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1143 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1144 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1145 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1146 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1147 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1148 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1149 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1150 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1151 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1152 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1153 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1154 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1155 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1156 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1157 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1158 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1159 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1160 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1161 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1162 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1163 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1164 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1165 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1166 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1167 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1168 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1169 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1170 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1171 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1172 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1173 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1174 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1175 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1176 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1177 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1178 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1179 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1180 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1181 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1182 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1183 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1184 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1185 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1186 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1187 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1188 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1189 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1190 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1191 * testsuite/libgomp.fortran/stack.f90: Ditto.
1192 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1193 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1194 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1195 * testsuite/libgomp.fortran/target1.f90: Ditto.
1196 * testsuite/libgomp.fortran/target2.f90: Ditto.
1197 * testsuite/libgomp.fortran/target3.f90: Ditto.
1198 * testsuite/libgomp.fortran/target4.f90: Ditto.
1199 * testsuite/libgomp.fortran/target5.f90: Ditto.
1200 * testsuite/libgomp.fortran/target6.f90: Ditto.
1201 * testsuite/libgomp.fortran/target7.f90: Ditto.
1202 * testsuite/libgomp.fortran/target8.f90: Ditto.
1203 * testsuite/libgomp.fortran/task1.f90: Ditto.
1204 * testsuite/libgomp.fortran/task2.f90: Ditto.
1205 * testsuite/libgomp.fortran/task3.f90: Ditto.
1206 * testsuite/libgomp.fortran/task4.f90: Ditto.
1207 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1208 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1209 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1210 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1211 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1212 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1213 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1214 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1215 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1216 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1217 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1218 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1219 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1220 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1221 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1222 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1223 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1224 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1225 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1226 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1227 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1228 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1229 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1230 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1231 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1232 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1233 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1234 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1235 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1236 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1237 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1238 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1239 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1240 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1242 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1244 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1245 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1246 Ditto; add 'dg-do run' for torture testing.
1247 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1248 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1249 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1250 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1251 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1252 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1253 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1254 * testsuite/libgomp.fortran/task2.f90: Ditto.
1255 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1256 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1257 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1258 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1259 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1260 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1262 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1264 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1265 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1266 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1267 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1268 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1269 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1270 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1271 Use 'stop' not abort().
1272 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1273 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1274 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1275 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1276 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1277 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1278 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1279 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1280 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1281 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1282 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1283 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1284 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1285 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1286 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1287 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1288 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1290 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1292 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1294 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1296 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1298 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1300 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1302 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1304 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1306 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1308 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1310 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1312 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1314 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1316 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1317 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1318 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1319 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1320 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1321 Likewise and also add 'dg-do run'.
1322 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1325 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1326 Tobias Burnus <tobias@codesourcery.com>
1328 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1329 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1330 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1332 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1335 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1338 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1340 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1341 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1343 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1346 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1349 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1352 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1354 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1356 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1359 * target.c (gomp_map_vars_internal): Readd the previous
1360 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1361 though do that just in the !not_found_cnt case.
1363 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1365 * gfortran.dg/gomp/target-simd.f90: New.
1367 2019-10-02 Julian Brown <julian@codesourcery.com>
1368 Cesar Philippidis <cesar@codesourcery.com>
1370 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1371 * target.c (FIELD_TGT_EMPTY): Define.
1372 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1373 as switch instead of list of ifs.
1374 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1376 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1378 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1379 include. Replace alloca () with __builtin_alloca ().
1380 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1382 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1384 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1385 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1386 * oacc-parallel.c: Don't include "libgomp_g.h".
1387 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1388 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1389 * aclocal.m4: Regenerated.
1390 * config.h.in: Regenerated.
1391 * configure: Regenerated.
1392 * Makefile.in: Regenerated.
1394 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1396 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1398 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1400 * configure: Regenerate.
1402 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1404 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1405 string is initialized.
1407 2019-09-06 Florian Weimer <fweimer@redhat.com>
1409 * configure: Regenerate.
1411 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1414 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1415 scanning to conform to the GNU Coding Standards.
1416 * configure: Regenerate.
1418 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1421 * testsuite/libgomp.c/scan-21.c: New test.
1422 * testsuite/libgomp.c/scan-22.c: New test.
1424 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1427 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1429 * testsuite/libgomp.c/scan-12.c: Likewise.
1430 * testsuite/libgomp.c/scan-13.c: Likewise.
1431 * testsuite/libgomp.c/scan-14.c: Likewise.
1432 * testsuite/libgomp.c/scan-15.c: Likewise.
1433 * testsuite/libgomp.c/scan-16.c: Likewise.
1434 * testsuite/libgomp.c/scan-17.c: Likewise.
1435 * testsuite/libgomp.c/scan-18.c: Likewise.
1436 * testsuite/libgomp.c/scan-19.c: Likewise.
1437 * testsuite/libgomp.c/scan-20.c: Likewise.
1438 * testsuite/libgomp.c++/scan-9.C: Likewise.
1439 * testsuite/libgomp.c++/scan-10.C: Likewise.
1440 * testsuite/libgomp.c++/scan-11.C: Likewise.
1441 * testsuite/libgomp.c++/scan-12.C: Likewise.
1442 * testsuite/libgomp.c++/scan-14.C: Likewise.
1443 * testsuite/libgomp.c++/scan-15.C: Likewise.
1444 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1445 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1446 * testsuite/libgomp.c++/scan-16.C: Likewise.
1448 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1451 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1452 -std=legacy so invalid code in the test case is accepted.
1454 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1457 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1460 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1462 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1463 perform the lookup in the first loop only if !not_found_cnt, otherwise
1464 perform lookups for it in the second loop guarded with
1465 if (not_found_cnt || has_firstprivate).
1466 * testsuite/libgomp.c/target-37.c: New test.
1467 * testsuite/libgomp.c++/target-22.C: New test.
1469 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1471 * testsuite/libgomp.c/target-18.c (struct S): New type.
1472 (foo): Use use_device_addr clause instead of use_device_ptr clause
1473 where required by OpenMP 5.0, add further tests for both use_device_ptr
1474 and use_device_addr clauses.
1475 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1476 (foo): Use use_device_addr clause instead of use_device_ptr clause
1477 where required by OpenMP 5.0, add further tests for both use_device_ptr
1478 and use_device_addr clauses. Add t and u arguments.
1479 (main): Adjust caller.
1481 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1483 * testsuite/libgomp.c++/loop-13.C: New test.
1484 * testsuite/libgomp.c++/loop-14.C: New test.
1485 * testsuite/libgomp.c++/loop-15.C: New test.
1487 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1490 * testsuite/libgomp.c++/for-27.C: New test.
1492 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1494 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1495 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1497 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1499 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1501 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1503 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1504 * testsuite/libgomp.c++/scan-16.C: Likewise.
1506 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1508 * testsuite/libgomp.c/scan-19.c: New test.
1509 * testsuite/libgomp.c/scan-20.c: New test.
1511 * testsuite/libgomp.c/scan-11.c: New test.
1512 * testsuite/libgomp.c/scan-12.c: New test.
1513 * testsuite/libgomp.c/scan-13.c: New test.
1514 * testsuite/libgomp.c/scan-14.c: New test.
1515 * testsuite/libgomp.c/scan-15.c: New test.
1516 * testsuite/libgomp.c/scan-16.c: New test.
1517 * testsuite/libgomp.c/scan-17.c: New test.
1518 * testsuite/libgomp.c/scan-18.c: New test.
1519 * testsuite/libgomp.c++/scan-9.C: New test.
1520 * testsuite/libgomp.c++/scan-10.C: New test.
1521 * testsuite/libgomp.c++/scan-11.C: New test.
1522 * testsuite/libgomp.c++/scan-12.C: New test.
1523 * testsuite/libgomp.c++/scan-13.C: New test.
1524 * testsuite/libgomp.c++/scan-14.C: New test.
1525 * testsuite/libgomp.c++/scan-15.C: New test.
1526 * testsuite/libgomp.c++/scan-16.C: New test.
1528 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1530 * testsuite/libgomp.c/scan-9.c: New test.
1531 * testsuite/libgomp.c/scan-10.c: New test.
1533 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1535 * testsuite/libgomp.c++/scan-1.C: New test.
1536 * testsuite/libgomp.c++/scan-2.C: New test.
1537 * testsuite/libgomp.c++/scan-3.C: New test.
1538 * testsuite/libgomp.c++/scan-4.C: New test.
1539 * testsuite/libgomp.c++/scan-5.C: New test.
1540 * testsuite/libgomp.c++/scan-6.C: New test.
1541 * testsuite/libgomp.c++/scan-7.C: New test.
1542 * testsuite/libgomp.c++/scan-8.C: New test.
1543 * testsuite/libgomp.c/scan-1.c: New test.
1544 * testsuite/libgomp.c/scan-2.c: New test.
1545 * testsuite/libgomp.c/scan-3.c: New test.
1546 * testsuite/libgomp.c/scan-4.c: New test.
1547 * testsuite/libgomp.c/scan-5.c: New test.
1548 * testsuite/libgomp.c/scan-6.c: New test.
1549 * testsuite/libgomp.c/scan-7.c: New test.
1550 * testsuite/libgomp.c/scan-8.c: New test.
1552 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1554 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1555 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1558 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1561 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1563 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1566 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1569 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1571 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1572 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1573 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1574 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1580 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1582 2019-06-16 Tom de Vries <tdevries@suse.de>
1584 PR tree-optimization/89376
1585 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1587 2019-06-15 Tom de Vries <tdevries@suse.de>
1589 PR tree-optimization/89713
1590 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1591 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1593 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1596 * testsuite/libgomp.c/pr90779.c: New test.
1597 * testsuite/libgomp.fortran/pr90779.f90: New test.
1599 2019-06-15 Tom de Vries <tdevries@suse.de>
1601 PR tree-optimization/90009
1602 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1604 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1606 PR tree-optimization/89713
1607 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1609 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1612 * testsuite/libgomp.c/pr90811.c: New test.
1614 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1616 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1617 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1619 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1621 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1622 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1623 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1624 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1626 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1628 * configure.ac: Call AX_COUNT_CPUS.
1629 Substitute CPU_COUNT.
1630 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1632 * aclocal.m4: Regenerate.
1633 * configure: Regenerate.
1634 * Makefile.in, testsuite/Makefile.in: Regenerate.
1636 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1638 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1640 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1641 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1642 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1644 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1646 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1648 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1651 * work.c (gomp_init_work_share): Instead of aligning final ordered
1652 value to multiples of long long alignment, align to that the
1653 first part (ordered team ids) and if inline_ordered_team_ids
1654 is not on a long long alignment boundary within the structure,
1655 use __alignof__ (long long) - 1 pad size always.
1656 * loop.c (GOMP_loop_start): Fix *mem computation if
1657 inline_ordered_team_ids is not aligned on long long alignment boundary
1658 within the structure.
1659 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1660 * sections.c (GOMP_sections2_start): Likewise.
1662 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1664 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1665 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1668 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1669 HAVE_INTTYPES_H is defined.
1670 (print_uint64_t): New typedef.
1671 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1672 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1673 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1674 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1675 before casting to void *.
1676 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1677 * oacc-mem.c: Don't include config.h nor stdint.h.
1678 * target.c: Don't include config.h.
1679 * oacc-cuda.c: Likewise.
1680 * oacc-host.c: Don't include stdint.h.
1682 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1685 * alloc.c (_GNU_SOURCE): Define.
1687 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1689 * acc_prof.h: New file.
1690 * oacc-profiling.c: Likewise.
1691 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1692 Add these, respectively.
1693 * Makefile.in: Regenerate.
1694 * env.c (initialize_env): Call goacc_profiling_initialize.
1695 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1696 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1697 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1698 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1699 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1700 acc_prof_register, acc_prof_unregister, and acc_register_library.
1701 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1702 GOMP_PLUGIN_goacc_thread.
1703 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1704 prof_callbacks_enabled members.
1705 (goacc_prof_enabled, goacc_profiling_initialize)
1706 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1707 (goacc_profiling_dispatch): Declare.
1708 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1709 (GOACC_PROFILING_SETUP_P): Define.
1710 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1711 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1712 OpenACC Profiling Interface.
1713 * oacc-cuda.c (acc_get_current_cuda_device)
1714 (acc_get_current_cuda_context, acc_get_cuda_stream)
1715 (acc_set_cuda_stream): Likewise.
1716 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1717 (acc_init, acc_set_device_type, acc_get_device_type)
1718 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1719 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1720 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1721 (acc_unmap_data, present_create_copy, delete_copyout)
1722 (update_dev_host): Likewise.
1723 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1724 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1726 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1727 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1729 * libgomp.texi: Update.
1730 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1732 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1733 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1735 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1737 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1739 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1742 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1744 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1745 (struct goacc_asyncqueue_list): Likewise.
1746 (goacc_aq): Likewise.
1747 (goacc_aq_list): Likewise.
1748 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1749 (GOMP_OFFLOAD_openacc_async_test): Remove.
1750 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1751 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1752 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1753 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1754 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1755 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1756 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1757 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1758 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1759 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1760 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1761 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1762 (GOMP_OFFLOAD_openacc_async_test): Declare.
1763 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1764 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1765 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1766 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1767 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1769 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1770 (gomp_acc_insert_pointer): Adjust declaration.
1771 (gomp_copy_host2dev): New declaration.
1772 (gomp_copy_dev2host): Likewise.
1773 (gomp_map_vars_async): Likewise.
1774 (gomp_unmap_tgt): Likewise.
1775 (gomp_unmap_vars_async): Likewise.
1776 (gomp_fini_device): Likewise.
1778 * oacc-async.c (get_goacc_thread): New function.
1779 (get_goacc_thread_device): New function.
1780 (lookup_goacc_asyncqueue): New function.
1781 (get_goacc_asyncqueue): New function.
1782 (acc_async_test): Adjust code to use new async design.
1783 (acc_async_test_all): Likewise.
1784 (acc_wait): Likewise.
1785 (acc_wait_async): Likewise.
1786 (acc_wait_all): Likewise.
1787 (acc_wait_all_async): Likewise.
1788 (goacc_async_free): New function.
1789 (goacc_init_asyncqueues): Likewise.
1790 (goacc_fini_asyncqueues): Likewise.
1791 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1793 (acc_set_cuda_stream): Likewise.
1794 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1795 (host_openacc_register_async_cleanup): Remove.
1796 (host_openacc_async_exec): New function.
1797 (host_openacc_async_test): Adjust parameters.
1798 (host_openacc_async_test_all): Remove.
1799 (host_openacc_async_wait): Remove.
1800 (host_openacc_async_wait_async): Remove.
1801 (host_openacc_async_wait_all): Remove.
1802 (host_openacc_async_wait_all_async): Remove.
1803 (host_openacc_async_set_async): Remove.
1804 (host_openacc_async_synchronize): New function.
1805 (host_openacc_async_serialize): New function.
1806 (host_openacc_async_host2dev): New function.
1807 (host_openacc_async_dev2host): New function.
1808 (host_openacc_async_queue_callback): New function.
1809 (host_openacc_async_construct): New function.
1810 (host_openacc_async_destruct): New function.
1811 (struct gomp_device_descr host_dispatch): Remove initialization of old
1812 interface, add initialization of new async sub-struct.
1813 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1814 (goacc_attach_host_thread_to_device): Remove old async code usage.
1815 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1816 (goacc_fini_asyncqueues): Likewise.
1817 (goacc_async_copyout_unmap_vars): Likewise.
1818 (goacc_async_free): Likewise.
1819 (get_goacc_asyncqueue): Likewise.
1820 (lookup_goacc_asyncqueue): Likewise.
1821 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1823 (present_create_copy): Adjust code to use new async design.
1824 (delete_copyout): Likewise.
1825 (update_dev_host): Likewise.
1826 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1828 (gomp_acc_remove_pointer): Adjust code to use new async design.
1829 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1831 (GOACC_enter_exit_data): Likewise.
1832 (goacc_wait): Likewise.
1833 (GOACC_update): Likewise.
1834 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1835 when called, warn as obsolete in comment.
1836 * target.c (goacc_device_copy_async): New function.
1837 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1838 add goacc_device_copy_async case.
1839 (gomp_copy_dev2host): Likewise.
1840 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1841 (gomp_map_pointer): Likewise.
1842 (gomp_map_fields_existing): Likewise.
1843 (gomp_map_vars_internal): New always_inline function, renamed from
1845 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1846 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1847 passing goacc_asyncqueue argument.
1848 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1849 (gomp_unref_tgt): New function.
1850 (gomp_unmap_vars_internal): New always_inline function, renamed from
1852 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1853 (gomp_unmap_vars_async): Implement by calling
1854 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1855 (gomp_fini_device): New function.
1856 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1857 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1858 new async interface.
1859 (gomp_target_fini): Adjust code to call gomp_fini_device.
1861 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1862 (struct ptx_stream): Remove.
1863 (struct nvptx_thread): Remove current_stream field.
1864 (cuda_map_create): Remove.
1865 (cuda_map_destroy): Remove.
1870 (struct goacc_asyncqueue): Define.
1871 (struct nvptx_callback): Define.
1872 (struct ptx_free_block): Define.
1873 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1874 stream_lock, and next fields.
1875 (enum ptx_event_type): Remove.
1876 (struct ptx_event): Remove.
1877 (ptx_event_lock): Remove.
1878 (ptx_events): Remove.
1879 (init_streams_for_device): Remove.
1880 (fini_streams_for_device): Remove.
1881 (select_stream_for_async): Remove.
1882 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1883 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1885 (nvptx_open_device): Add free_blocks initialization, remove
1886 init_streams_for_device call.
1887 (nvptx_close_device): Remove fini_streams_for_device call, add
1888 free_blocks destruct code.
1890 (event_add): Remove.
1891 (nvptx_exec): Adjust parameters and code.
1892 (nvptx_free): Likewise.
1893 (nvptx_host2dev): Remove.
1894 (nvptx_dev2host): Remove.
1895 (nvptx_set_async): Remove.
1896 (nvptx_async_test): Remove.
1897 (nvptx_async_test_all): Remove.
1898 (nvptx_wait): Remove.
1899 (nvptx_wait_async): Remove.
1900 (nvptx_wait_all): Remove.
1901 (nvptx_wait_all_async): Remove.
1902 (nvptx_get_cuda_stream): Remove.
1903 (nvptx_set_cuda_stream): Remove.
1904 (GOMP_OFFLOAD_alloc): Adjust code.
1905 (GOMP_OFFLOAD_free): Likewise.
1906 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1907 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1908 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1909 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1910 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1911 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1912 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1913 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1914 (cuda_free_argmem): New function.
1915 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1916 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1917 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1918 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1919 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1920 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1921 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1922 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1923 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1924 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1925 (cuda_callback_wrapper): New function.
1926 (cuda_memcpy_sanity_check): New function.
1927 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1928 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1929 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1930 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1932 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1935 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1937 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1939 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1941 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1943 * team.c (gomp_team_start): Initialize pool->threads[0].
1945 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1947 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1948 "-foffload=$offload_target".
1949 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1950 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1951 * testsuite/lib/libgomp.exp
1952 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1953 as (conceptually) merged into
1954 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1957 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1958 * testsuite/libgomp-test-support.exp.in: Adjust.
1959 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1960 openacc_device_types_s.
1961 (offload_target_to_openacc_device_type): New proc.
1962 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1963 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1964 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1965 * Makefile.in: Regenerate.
1966 * configure: Likewise.
1967 * testsuite/Makefile.in: Likewise.
1969 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1970 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1971 instead of OFFLOAD_TARGETS.
1972 * target.c (gomp_target_init): Adjust.
1973 * testsuite/libgomp-test-support.exp.in: Likewise.
1974 * testsuite/lib/libgomp.exp: Likewise. Populate
1975 openacc_device_types_s instead of offload_targets_s_openacc.
1976 (check_effective_target_openacc_nvidia_accel_selected)
1977 (check_effective_target_openacc_host_selected): Adjust.
1978 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1979 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1980 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1981 * Makefile.in: Regenerate.
1982 * config.h.in: Likewise.
1983 * configure: Likewise.
1984 * testsuite/Makefile.in: Likewise.
1986 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1987 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1988 "offloading: supported, but hardware not accessible".
1989 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1990 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1992 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1995 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1997 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1998 and related adjustment.
2000 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2003 * testsuite/libgomp.c++/pr88988.C: New test.
2005 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2008 * testsuite/libgomp.c/pr89002.c: New test.
2010 2019-01-28 Richard Biener <rguenther@suse.de>
2013 PR tree-optimization/86865
2014 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2016 2019-01-24 Tom de Vries <tdevries@suse.de>
2018 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2019 once instantiated_devices drops to 0.
2021 2019-01-23 Tom de Vries <tdevries@suse.de>
2024 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2026 (nvptx_exec): Don't call map_push if mapnum == 0.
2027 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2029 2019-01-23 Tom de Vries <tdevries@suse.de>
2033 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2034 (map_fini): Remove "assert (!s->map->active)".
2035 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2037 2019-01-23 Tom de Vries <tdevries@suse.de>
2040 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2041 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2043 2019-01-15 Tom de Vries <tdevries@suse.de>
2046 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2049 2019-01-12 Tom de Vries <tdevries@suse.de>
2051 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2052 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2053 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2054 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2056 2019-01-12 Tom de Vries <tdevries@suse.de>
2058 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2060 2019-01-12 Tom de Vries <tdevries@suse.de>
2062 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2063 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2064 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2066 2019-01-12 Tom de Vries <tdevries@suse.de>
2069 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2070 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2072 2019-01-12 Tom de Vries <tdevries@suse.de>
2075 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2076 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2078 2019-01-12 Tom de Vries <tdevries@suse.de>
2080 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2081 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2082 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2084 2019-01-12 Tom de Vries <tdevries@suse.de>
2086 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2087 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2088 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2090 2019-01-12 Tom de Vries <tdevries@suse.de>
2092 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2093 resources diagnostic.
2095 2019-01-12 Tom de Vries <tdevries@suse.de>
2097 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2098 vector length to be 128.
2099 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2100 length 2097152 to be reduced to 1024 instead of 32.
2102 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2103 James Norris <jnorris@codesourcery.com>
2105 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2106 Library Routines", and "Environment Variables".
2108 2019-01-11 Tom de Vries <tdevries@suse.de>
2110 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2113 2019-01-11 Tom de Vries <tdevries@suse.de>
2115 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2117 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2118 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2119 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2120 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2122 2019-01-11 Tom de Vries <tdevries@suse.de>
2124 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2127 2019-01-10 Nathan Sidwell <nathan@acm.org>
2128 Julian Brown <julian@codesourcery.com>
2131 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2132 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2134 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2136 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2139 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2141 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2142 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2145 2019-01-09 Tom de Vries <tdevries@suse.de>
2148 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2149 #define instead of "const int".
2150 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2151 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2152 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2153 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2155 2019-01-09 Tom de Vries <tdevries@suse.de>
2157 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2160 2019-01-07 Tom de Vries <tdevries@suse.de>
2162 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2163 GOMP_OPENACC_DIM argument.
2165 2019-01-03 Tom de Vries <tdevries@suse.de>
2167 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2168 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2170 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2172 Update copyright years.
2174 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2176 * libgomp.texi: Bump @copying's copyright year.
2178 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2180 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2181 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2182 (GOACC_declare): Redefine the "device" argument to "flags".
2184 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2185 Cesar Philippidis <cesar@codesourcery.com>
2187 * target.c (struct gomp_coalesce_chunk): New structure.
2188 (struct gomp_coalesce_buf): Update the chunks member to use that
2189 type. Adjust all users.
2191 2018-12-19 Tom de Vries <tdevries@suse.de>
2193 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2194 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2195 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2197 2018-12-19 Tom de Vries <tdevries@suse.de>
2199 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2200 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2201 gcc/testsuite/gcc.dg/goacc.
2202 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2204 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2205 Chung-Lin Tang <cltang@codesourcery.com>
2207 * oacc-mem.c (acc_present_or_create): Remove definition and change
2208 to alias of acc_create.
2209 (acc_present_or_copyin): Remove definition and change to alias of
2211 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2212 of acc_present_or_create.
2213 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2214 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2215 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2216 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2217 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2218 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2219 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2220 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2221 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2222 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2223 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2224 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2225 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2226 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2227 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2228 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2230 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2233 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2234 "identical parameters".
2235 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2236 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2239 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2240 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2243 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2244 (nvptx_wait_async): Unseen async-argument is a no-op.
2245 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2246 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2247 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2248 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2249 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2250 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2251 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2252 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2253 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2255 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2256 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2258 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2260 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2261 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2262 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2264 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2267 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2268 (acc_set_cuda_stream): Clarify.
2269 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2271 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2273 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2274 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2275 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2276 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2278 2018-12-14 Tom de Vries <tdevries@suse.de>
2280 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2281 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2282 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2283 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2284 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2286 2018-12-13 Tom de Vries <tdevries@suse.de>
2288 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2289 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2290 * fortran.c (omp_display_affinity_): ... here.
2291 * libgomp.h (gomp_print_string): Declare.
2292 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2293 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2296 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2299 * testsuite/libgomp.c++/for-24.C (results): Include it in
2300 omp declare target region.
2301 (main): Use map (always, tofrom: results) instead of
2302 map (tofrom: results).
2304 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2307 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2308 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2310 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2312 2018-12-12 Andreas Schwab <schwab@suse.de>
2314 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2317 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2320 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2322 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2323 Jakub Jelinek <jakub@redhat.com>
2325 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2326 devicep->host2dev_func.
2328 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2331 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2332 tls_runtime effective target.
2333 (t): New threadprivate variable.
2334 (main): Set t in threads which execute iterations of the worksharing
2335 loop. Propagate that to the task after the loop and don't abort
2336 if the current taskgroup hasn't been cancelled.
2338 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2340 * testsuite/libgomp.c/task-reduction-3.c: New test.
2342 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2344 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2347 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2348 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2350 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2352 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2354 2018-10-19 Richard Biener <rguenther@suse.de>
2356 PR tree-optimization/88182
2357 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2359 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2361 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2362 (RUNTEST): Don't define.
2363 (RUNTESTDEFAULTFLAGS): Add.
2364 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2365 (distclean-am): Depend on distclean-DEJAGNU.
2366 (check-am): If -j% option is present in MFLAGS and if
2367 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2368 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2369 * testsuite/Makefile.in: Regenerated.
2371 2018-11-26 Richard Biener <rguenther@suse.de>
2373 PR tree-optimization/88182
2374 * testsuite/libgomp.c++/pr88182.C: New testcase.
2376 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2379 * config/mingw32/affinity-fmt.c: New file.
2381 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2383 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2384 (gomp_display_affinity): Use __builtin_choose_expr to handle
2385 properly handle argument having integral, or pointer or some other
2386 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2387 with uint64_t type instead of %llx and unsigned long long.
2389 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2390 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2392 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2394 * affinity.c: Include <string.h>, <stdio.h>.
2395 (gomp_display_affinity_place): Remove cpusetp.
2396 * teams.c: Include <limits.h>.
2398 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2400 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2401 in_reduction clause for s[0].
2403 * affinity.c (gomp_display_affinity_place): New function.
2404 * affinity-fmt.c: New file.
2405 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2406 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2407 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2408 Move these functions to ...
2409 * config/nvptx/teams.c: ... here. New file.
2410 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2412 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2414 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2415 and _aligned_malloc.
2416 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2417 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2418 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2419 gomp_affinity_format_len): New variables.
2420 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2421 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2422 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2423 modifiers. Display (non-default) chunk sizes. Print
2424 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2425 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2426 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2427 * fortran.c: Include stdio.h and string.h.
2428 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2429 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2430 (omp_set_affinity_format_, omp_get_affinity_format_,
2431 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2432 omp_pause_resource_all_): New functions.
2433 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2435 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2437 * teams.c: ... here. New file.
2438 * libgomp_g.h: Include gstdint.h.
2439 (GOMP_loop_nonmonotonic_runtime_start,
2440 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2441 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2442 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2443 GOMP_parallel_loop_nonmonotonic_runtime,
2444 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2445 GOMP_loop_ull_nonmonotonic_runtime_start,
2446 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2447 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2448 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2449 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2450 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2451 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2452 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2453 GOMP_teams_reg): Declare.
2454 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2455 gomp_aligned_alloc uses fallback implementation.
2456 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2457 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2458 (struct gomp_doacross_work_share): Add extra field.
2459 (struct gomp_work_share): Add task_reductions field.
2460 (struct gomp_taskgroup): Add workshare and reductions fields.
2461 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2462 (gomp_thread_handle): New typedef.
2463 (gomp_display_affinity_place, gomp_set_affinity_format,
2464 gomp_display_string, gomp_display_affinity,
2465 gomp_display_affinity_thread): Declare.
2466 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2467 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2468 gomp_workshare_task_reduction_register): Declare.
2469 (gomp_team_start): Add taskgroup argument.
2470 (gomp_pause_host): Declare.
2471 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2473 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2474 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2475 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2476 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2477 GOMP_loop_ull_doacross_start,
2478 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2479 GOMP_loop_maybe_nonmonotonic_runtime_next,
2480 GOMP_loop_maybe_nonmonotonic_runtime_start,
2481 GOMP_loop_nonmonotonic_runtime_next,
2482 GOMP_loop_nonmonotonic_runtime_start,
2483 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2484 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2485 GOMP_loop_ull_nonmonotonic_runtime_next,
2486 GOMP_loop_ull_nonmonotonic_runtime_start,
2487 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2488 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2489 GOMP_taskgroup_reduction_register,
2490 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2491 GOMP_teams_reg and GOMP_taskwait_depend.
2492 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2493 omp_{capture,display}_affinity{,_}, and
2494 omp_[gs]et_affinity_format{,_}.
2495 * loop.c: Include string.h.
2496 (GOMP_loop_runtime_next): Add ialias.
2497 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2498 (gomp_loop_static_start, gomp_loop_dynamic_start,
2499 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2500 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2501 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2502 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2503 or gomp_doacross_init callers.
2504 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2505 GOMP_loop_doacross_start): New functions.
2506 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2507 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2508 Mask off GFS_MONOTONIC bit.
2509 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2510 GOMP_loop_maybe_nonmonotonic_runtime_start,
2511 GOMP_loop_nonmonotonic_runtime_next,
2512 GOMP_loop_nonmonotonic_runtime_start,
2513 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2514 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2516 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2518 * loop_ull.c: Include string.h.
2519 (GOMP_loop_ull_runtime_next): Add ialias.
2520 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2521 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2522 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2523 gomp_loop_ull_ordered_dynamic_start,
2524 gomp_loop_ull_ordered_guided_start,
2525 gomp_loop_ull_doacross_static_start,
2526 gomp_loop_ull_doacross_dynamic_start,
2527 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2528 and gomp_doacross_ull_init callers.
2529 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2530 GOMP_loop_ull_doacross_start): New functions.
2531 (GOMP_loop_ull_runtime_start,
2532 GOMP_loop_ull_ordered_runtime_start,
2533 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2534 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2535 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2536 GOMP_loop_ull_nonmonotonic_runtime_next,
2537 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2538 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2539 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2540 (omp_pause_resource_t, omp_depend_t): New typedefs.
2541 (enum omp_lock_hint_t): Renamed to ...
2542 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2543 enumerators using numbers and omp_lock_hint_* as their aliases.
2544 (omp_lock_hint_t): New typedef. Rename to ...
2545 (omp_sync_hint_t): ... this.
2546 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2547 omp_sync_hint_t instead of omp_lock_hint_t.
2548 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2549 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2551 (omp_target_is_present, omp_target_disassociate_ptr):
2552 Change first argument from void * to const void *.
2553 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2554 from void * to const void *.
2555 (omp_target_associate_ptr): Change first and second arguments from
2556 void * to const void *.
2557 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2558 omp_pause_hard): New parameters.
2559 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2560 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2562 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2563 omp_pause_hard): New parameters.
2564 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2565 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2567 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2568 EXTRA argument. If not needed to prepare array, if extra is 0,
2569 clear ws->doacross, otherwise allocate just doacross structure and
2570 extra payload. If array is needed, allocate also extra payload.
2571 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2572 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2574 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2576 (GOMP_parallel): Likewise. Formatting fix.
2577 (GOMP_parallel_reductions): New function.
2578 (GOMP_cancellation_point): If taskgroup has workshare
2579 flag set, check cancelled of prev taskgroup if any.
2580 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2581 on prev taskgroup if any.
2582 * sections.c: Include string.h.
2583 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2584 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2585 (GOMP_sections2_start): New function.
2586 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2587 Pass NULL as taskgroup to gomp_team_start.
2588 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2589 gomp_work_share_start callers.
2590 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2591 If taskgroup has workshare flag set, check cancelled on prev
2592 taskgroup if any. Guard all cancellation tests with
2593 gomp_cancel_var test.
2594 (omp_target_is_present, omp_target_disassociate_ptr):
2595 Change ptr argument from void * to const void *.
2596 (omp_target_memcpy): Change src argument from void * to const void *.
2597 (omp_target_memcpy_rect): Likewise.
2598 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2599 instead of char * where needed.
2600 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2601 from void * to const void *.
2602 (omp_pause_resource, omp_pause_resource_all): New functions.
2603 * task.c (gomp_task_handle_depend): Handle new depend array format
2604 in addition to the old. Handle mutexinoutset kinds the same as
2605 inout for now, handle unspecified kinds.
2606 (gomp_create_target_task): If taskgroup has workshare flag set, check
2607 cancelled on prev taskgroup if any. Guard all cancellation tests with
2608 gomp_cancel_var test. Handle new depend array format count in
2609 addition to the old.
2610 (GOMP_task): Likewise. Adjust function comment.
2611 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2612 cancelled on prev taskgroup if any. Guard all cancellation tests with
2613 gomp_cancel_var test.
2614 (GOMP_taskwait_depend): New function.
2615 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2616 format in addition to the old. Handle mutexinoutset kinds the same as
2617 inout for now, handle unspecified kinds. Fix a function comment typo.
2618 (gomp_taskgroup_init): New function.
2619 (GOMP_taskgroup_start): Use it.
2620 (gomp_reduction_register, gomp_create_artificial_team,
2621 GOMP_taskgroup_reduction_register,
2622 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2623 gomp_parallel_reduction_register,
2624 gomp_workshare_task_reduction_register,
2625 gomp_workshare_taskgroup_start,
2626 GOMP_workshare_task_reduction_unregister): New functions.
2627 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2628 check cancelled on prev taskgroup if any. Guard all cancellation
2629 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2630 by calling GOMP_taskgroup_reduction_register.
2631 * team.c (gomp_thread_attr): Remove comment.
2632 (struct gomp_thread_start_data): Add handle field.
2633 (gomp_thread_start): Call pthread_detach.
2634 (gomp_new_team): Adjust gomp_init_work_share caller.
2635 (gomp_free_pool_helper): Call pthread_detach.
2636 (gomp_team_start): Add taskgroup argument, initialize implicit
2637 tasks' taskgroup field to that. Don't call
2638 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2639 (gomp_team_end): Determine nesting by thr->ts.level != 0
2640 rather than thr->ts.team != NULL.
2641 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2642 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2643 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2644 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2645 if more than 1 allocate also extra payload at the end of array. Never
2646 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2647 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2648 return true instead of ws.
2649 * Makefile.in: Regenerated.
2650 * configure: Regenerated.
2651 * config.h.in: Regenerated.
2652 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2654 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2655 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2656 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2657 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2658 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2659 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2660 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2661 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2662 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2663 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2664 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2665 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2666 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2667 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2668 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2669 define a different N(test), don't define N(f0) to N(f14), but instead
2670 define N(f20) to N(f34) using != comparisons.
2671 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2672 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2673 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2674 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2675 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2676 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2677 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2678 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2679 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2680 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2681 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2682 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2683 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2684 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2685 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2686 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2687 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2688 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2689 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2690 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2691 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2692 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2693 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2694 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2695 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2696 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2697 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2698 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2699 * testsuite/libgomp.c++/depend-1.C: New test.
2700 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2701 * testsuite/libgomp.c++/depobj-1.C: New test.
2702 * testsuite/libgomp.c++/for-16.C: New test.
2703 * testsuite/libgomp.c++/for-21.C: New test.
2704 * testsuite/libgomp.c++/for-22.C: New test.
2705 * testsuite/libgomp.c++/for-23.C: New test.
2706 * testsuite/libgomp.c++/for-24.C: New test.
2707 * testsuite/libgomp.c++/for-25.C: New test.
2708 * testsuite/libgomp.c++/for-26.C: New test.
2709 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2710 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2711 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2712 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2713 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2714 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2715 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2716 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2717 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2718 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2719 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2720 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2721 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2722 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2723 * testsuite/libgomp.c/task-reduction-1.c: New test.
2724 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2725 * testsuite/libgomp.c/task-reduction-2.c: New test.
2726 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2727 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2728 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2729 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2730 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2731 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2732 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2733 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2734 * testsuite/libgomp.c/teams-1.c: New test.
2735 * testsuite/libgomp.c/teams-2.c: New test.
2736 * testsuite/libgomp.c/thread-limit-4.c: New test.
2737 * testsuite/libgomp.c/thread-limit-5.c: New test.
2738 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2740 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2742 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2743 acc_memcpy_to/from_device functions, now with async parameter.
2744 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2745 (acc_memcpy_from_device): Likewise.
2746 (acc_memcpy_to_device_async): New API function.
2747 (acc_memcpy_from_device_async): Likewise.
2748 (present_create_copy): Add async parameter and async setting/unsetting.
2749 (acc_create): Adjust present_create_copy call.
2750 (acc_copyin): Likewise.
2751 (acc_present_or_create): Likewise.
2752 (acc_present_or_copyin): Likewise.
2753 (acc_create_async): New API function.
2754 (acc_copyin_async): New API function.
2755 (delete_copyout): Add async parameter and async setting/unsetting.
2756 (acc_delete): Adjust delete_copyout call.
2757 (acc_copyout): Likewise.
2758 (acc_delete_async): New API function.
2759 (acc_copyout_async): Likewise.
2760 (update_dev_host): Add async parameter and async setting/unsetting.
2761 (acc_update_device): Adjust update_dev_host call.
2762 (acc_update_self): Likewise.
2763 (acc_update_device_async): New API function.
2764 (acc_update_self_async): Likewise.
2765 * openacc.h (acc_copyin_async): Declare new API function.
2766 (acc_create_async): Likewise.
2767 (acc_copyout_async): Likewise.
2768 (acc_delete_async): Likewise.
2769 (acc_update_device_async): Likewise.
2770 (acc_update_self_async): Likewise.
2771 (acc_memcpy_to_device_async): Likewise.
2772 (acc_memcpy_from_device_async): Likewise.
2773 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2774 (acc_copyin_async_64_h): New subroutine.
2775 (acc_copyin_async_array_h): New subroutine.
2776 (acc_create_async_32_h): New subroutine.
2777 (acc_create_async_64_h): New subroutine.
2778 (acc_create_async_array_h): New subroutine.
2779 (acc_copyout_async_32_h): New subroutine.
2780 (acc_copyout_async_64_h): New subroutine.
2781 (acc_copyout_async_array_h): New subroutine.
2782 (acc_delete_async_32_h): New subroutine.
2783 (acc_delete_async_64_h): New subroutine.
2784 (acc_delete_async_array_h): New subroutine.
2785 (acc_update_device_async_32_h): New subroutine.
2786 (acc_update_device_async_64_h): New subroutine.
2787 (acc_update_device_async_array_h): New subroutine.
2788 (acc_update_self_async_32_h): New subroutine.
2789 (acc_update_self_async_64_h): New subroutine.
2790 (acc_update_self_async_array_h): New subroutine.
2791 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2792 (acc_copyin_async_64_h): New subroutine.
2793 (acc_copyin_async_array_h): New subroutine.
2794 (acc_create_async_32_h): New subroutine.
2795 (acc_create_async_64_h): New subroutine.
2796 (acc_create_async_array_h): New subroutine.
2797 (acc_copyout_async_32_h): New subroutine.
2798 (acc_copyout_async_64_h): New subroutine.
2799 (acc_copyout_async_array_h): New subroutine.
2800 (acc_delete_async_32_h): New subroutine.
2801 (acc_delete_async_64_h): New subroutine.
2802 (acc_delete_async_array_h): New subroutine.
2803 (acc_update_device_async_32_h): New subroutine.
2804 (acc_update_device_async_64_h): New subroutine.
2805 (acc_update_device_async_array_h): New subroutine.
2806 (acc_update_self_async_32_h): New subroutine.
2807 (acc_update_self_async_64_h): New subroutine.
2808 (acc_update_self_async_array_h): New subroutine.
2809 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2810 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2811 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2812 acc_memcpy_to_device_async*, acc_update_device_async*, and
2813 acc_update_self_async* entries.
2814 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2815 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2816 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2818 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2821 * Makefile.am: Include multilib.am
2822 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2823 (CLEANFILES): Remove libgomp.info.
2824 * configure.ac: Remove AC_PREREQ.
2825 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2826 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2829 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2830 Julian Brown <julian@codesourcery.com>
2832 * testsuite/libgomp.oacc-c++/this.C: New.
2834 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2836 * plugin/plugin-nvptx.c (struct cuda_map): New.
2837 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2838 h_tail with (cuda_map *) map.
2839 (cuda_map_create): New function.
2840 (cuda_map_destroy): New function.
2841 (map_init): Update to use a linked list of cuda_map objects.
2842 (map_fini): Likewise.
2843 (map_pop): Likewise.
2844 (map_push): Likewise. Return CUdeviceptr instead of void.
2845 (init_streams_for_device): Remove stales references to ptx_stream
2847 (select_stream_for_async): Likewise.
2848 (nvptx_exec): Update call to map_init.
2850 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2851 Julian Brown <julian@codesourcery.com>
2854 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2856 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2857 Thomas Koenig <tkoenig@gcc.gnu.org>
2860 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2861 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2862 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2863 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2864 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2865 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2866 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2868 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2869 Tom de Vries <tdevries@suse.de>
2872 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2873 (cuOccupancyMaxPotentialBlockSize): Declare.
2874 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2875 CUDA_ONE_CALL_MAYBE_NULL.
2876 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2877 CUoccupancyB2DSize and declare
2878 cuOccupancyMaxPotentialBlockSize.
2879 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2880 default num_gangs and num_workers when the driver supports it.
2882 2018-08-08 Tom de Vries <tdevries@suse.de>
2884 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2885 CUDA_ONE_CALL_MAYBE_NULL.
2886 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2887 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2888 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2891 2018-08-08 Tom de Vries <tdevries@suse.de>
2893 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2894 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2897 2018-08-08 Tom de Vries <tdevries@suse.de>
2899 * plugin/plugin-nvptx.c
2900 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2901 (nvptx_open_device): Use
2902 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2904 2018-08-08 Tom de Vries <tdevries@suse.de>
2906 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2907 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2909 2018-08-07 Tom de Vries <tdevries@suse.de>
2911 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2912 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2913 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2914 corresponding call in CUDA_ONE_CALL. Add def/undef of
2915 CUDA_ONE_CALL_MAYBE_NULL.
2916 (CUDA_CALL_EXISTS): Define.
2918 2018-08-07 Tom de Vries <tdevries@suse.de>
2920 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2921 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2922 corresponding undefs right after.
2924 2018-08-04 Tom de Vries <tdevries@suse.de>
2926 * plugin/configfrag.ac: For --without-cuda-driver, set
2927 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2928 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2929 * configure: Regenerate.
2931 2018-08-02 Tom de Vries <tdevries@suse.de>
2934 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2935 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2936 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2938 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2939 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2940 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2942 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2943 Thomas Schwinge <thomas@codesourcery.com>
2945 * config/nvptx/oacc-parallel.c: Truncate.
2947 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2948 James Norris <jnorris@codesourcery.com>
2950 * plugin/plugin-nvptx.c (struct map): Removed.
2951 (map_init, map_pop): Remove use of struct map.
2952 (map_push): Likewise and change argument list.
2953 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2955 2018-08-01 Tom de Vries <tdevries@suse.de>
2957 * plugin/cuda-lib.def: New file. Factor out of ...
2958 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2959 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2962 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2964 Revert 'AsyncI/O patch committed'.
2965 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2966 Thomas Koenig <tkoenig@gcc.gnu.org>
2969 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2970 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2971 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2972 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2973 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2974 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2975 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2977 2018-07-30 Tom de Vries <tdevries@suse.de>
2979 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2980 (nvptx_exec): Ensure worker and vector default dims don't exceed
2981 targ_fn->max_threads_per_block.
2983 2018-07-30 Tom de Vries <tdevries@suse.de>
2985 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2986 (nvptx_open_device): Init default_dims for device.
2987 (nvptx_exec): Use default_dims from device.
2989 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2992 * testsuite/libgomp.c++/for-15.C (results): Include it in
2993 omp declare target region.
2994 (main): Use map (always, tofrom: results) instead of
2995 map (tofrom: results).
2998 * testsuite/libgomp.c/pr86660.c: New test.
3000 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3001 Tom de Vries <tdevries@suse.de>
3003 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3004 sufficient resources to launch a kernel, and give a hint on how to fix
3007 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3008 Tom de Vries <tdevries@suse.de>
3010 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3011 max_threads_per_block and max_threads_per_multiprocessor fields.
3012 (nvptx_open_device): Initialize new fields.
3013 (nvptx_exec): Use num_sms, and new fields.
3015 2018-07-26 Tom de Vries <tdevries@suse.de>
3017 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3018 to correct locations. Remove xfail.
3020 2018-07-26 Tom de Vries <tdevries@suse.de>
3022 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3023 acc_wait. Move acc_async_test calls to correct locations. Remove
3026 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3027 Thomas Koenig <tkoenig@gcc.gnu.org>
3030 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3031 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3032 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3033 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3034 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3035 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3036 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3038 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3041 * testsuite/libgomp.c++/pr86542.C: New test.
3044 * testsuite/libgomp.c++/pr86539.C: New test.
3046 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3049 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3050 (results): Make sure the variable is not inside declare target region.
3051 (qux): Remove unused function.
3053 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3056 * testsuite/libgomp.c++/for-15.C: New test.
3058 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3061 * testsuite/libgomp.c++/pr86291.C: New test.
3063 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3065 * libgomp.texi (Top): Move www.openmp.org to https.
3066 (Enabling OpenMP): Ditto.
3067 (omp_get_active_level): Ditto.
3068 (omp_get_ancestor_thread_num): Ditto.
3069 (omp_get_cancellation): Ditto.
3070 (omp_get_default_device): Ditto.
3071 (omp_get_dynamic): Ditto.
3072 (omp_get_level): Ditto.
3073 (omp_get_max_active_levels): Ditto.
3074 (omp_get_max_task_priority): Ditto.
3075 (omp_get_max_threads): Ditto.
3076 (omp_get_nested): Ditto.
3077 (omp_get_num_devices): Ditto.
3078 (omp_get_num_procs): Ditto.
3079 (omp_get_num_teams): Ditto.
3080 (omp_get_num_threads): Ditto.
3081 (omp_get_proc_bind): Ditto.
3082 (omp_get_schedule): Ditto.
3083 (omp_get_team_num): Ditto.
3084 (omp_get_team_size): Ditto.
3085 (omp_get_thread_limit): Ditto.
3086 (omp_get_thread_num): Ditto.
3087 (omp_in_parallel): Ditto.
3088 (omp_in_final): Ditto.
3089 (omp_is_initial_device): Ditto.
3090 (omp_set_default_device): Ditto.
3091 (omp_set_dynamic): Ditto.
3092 (omp_set_max_active_levels): Ditto.
3093 (omp_set_nested): Ditto.
3094 (omp_set_num_threads): Ditto.
3095 (omp_set_schedule): Ditto.
3096 (omp_init_lock): Ditto.
3097 (omp_set_lock): Ditto.
3098 (omp_test_lock): Ditto.
3099 (omp_unset_lock): Ditto.
3100 (omp_destroy_lock): Ditto.
3101 (omp_init_nest_lock): Ditto.
3102 (omp_set_nest_lock): Ditto.
3103 (omp_test_nest_lock): Ditto.
3104 (omp_unset_nest_lock): Ditto.
3105 (omp_destroy_nest_lock): Ditto.
3106 (omp_get_wtick): Ditto.
3107 (omp_get_wtime): Ditto.
3108 (OMP_CANCELLATION): Ditto.
3109 (OMP_DISPLAY_ENV): Ditto.
3110 (OMP_DEFAULT_DEVICE): Ditto.
3111 (OMP_DYNAMIC): Ditto.
3112 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3113 (OMP_MAX_TASK_PRIORITY): Ditto.
3114 (OMP_NESTED): Ditto.
3115 (OMP_NUM_THREADS): Ditto.
3116 (OMP_PROC_BIND): Ditto.
3117 (OMP_PLACES): Ditto.
3118 (OMP_STACKSIZE): Ditto.
3119 (OMP_SCHEDULE): Ditto.
3120 (OMP_THREAD_LIMIT): Ditto.
3121 (OMP_WAIT_POLICY): Ditto.
3123 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3124 James Norris <jnorris@codesourcery.com>
3125 Julian Brown <julian@codesourcery.com>
3126 Thomas Schwinge <thomas@codesourcery.com>
3127 Tom de Vries <tom@codesourcery.com>
3129 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3130 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3131 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3132 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3133 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3134 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3135 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3136 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3142 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3144 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3146 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3148 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3150 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3152 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3154 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3156 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3158 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3160 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3162 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3164 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3166 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3168 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3170 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3172 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3174 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3176 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3178 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3180 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3182 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3184 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3190 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3192 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3194 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3195 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3196 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3197 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3198 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3199 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3200 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3202 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3204 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3205 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3206 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3208 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3209 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3210 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3212 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3214 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3216 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3218 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3220 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3222 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3224 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3226 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3228 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3230 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3234 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3238 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3240 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3241 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3242 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3243 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3244 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3245 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3246 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3248 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3249 Thomas Schwinge <thomas@codesourcery.com>
3250 Cesar Philippidis <cesar@codesourcery.com>
3252 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3253 (gomp_acc_remove_pointer): Update declaration.
3254 (gomp_acc_declare_allocate): Declare.
3255 (gomp_remove_var): Declare.
3256 * libgomp.map (OACC_2.5): Define.
3257 * oacc-mem.c (acc_map_data): Update refcount.
3258 (acc_unmap_data): Likewise.
3259 (present_create_copy): Likewise.
3260 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3261 (acc_copyin): Likewise.
3262 (FLAG_FINALIZE): Define.
3263 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3264 (acc_delete_finalize): New function.
3265 (acc_delete_finalize_async): New function.
3266 (acc_copyout_finalize): New function.
3267 (acc_copyout_finalize_async): New function.
3268 (gomp_acc_insert_pointer): Update refcounts.
3269 (gomp_acc_remove_pointer): Return if data is not present on the
3271 * oacc-parallel.c (find_pset): Rename to find_pointer.
3272 (find_pointer): Add support for GOMP_MAP_POINTER.
3273 (handle_ftn_pointers): New function.
3274 (GOACC_parallel_keyed): Update refcounts of variables.
3275 (GOACC_enter_exit_data): Add support for finalized data mappings.
3276 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3278 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3279 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3280 for GOMP_MAP_FORCE_FROM.
3281 * openacc.f90 (module openacc_internal): Add
3282 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3283 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3284 acc_copyout_finalize and acc_delete_finalize.
3285 (acc_copyout_finalize_32_h): New subroutine.
3286 (acc_copyout_finalize_64_h): New subroutine.
3287 (acc_copyout_finalize_array_h): New subroutine.
3288 (acc_delete_finalize_32_h): New subroutine.
3289 (acc_delete_finalize_64_h): New subroutine.
3290 (acc_delete_finalize_array_h): New subroutine.
3291 * openacc.h (acc_copyout_finalize): Declare.
3292 (acc_copyout_finalize_async): Declare.
3293 (acc_delete_finalize): Declare.
3294 (acc_delete_finalize_async): Declare.
3295 * openacc_lib.h (acc_copyout_finalize): New interface.
3296 (acc_delete_finalize): New interface.
3297 * target.c (gomp_map_vars): Update dynamic_refcount.
3298 (gomp_remove_var): New function.
3299 (gomp_unmap_vars): Use it.
3300 (gomp_unload_image_from_device): Likewise.
3301 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3302 case to utilize OpenACC 2.5 data clause semantics.
3303 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3304 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3305 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3306 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3307 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3308 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3309 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3310 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3311 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3312 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3313 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3314 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3315 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3316 utilize OpenACC 2.5 data clause semantics.
3317 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3318 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3319 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3320 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3321 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3322 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3323 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3324 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3325 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3327 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3331 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3332 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3333 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3334 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3335 * testsuite/libgomp.fortran/task2.f90: Ditto.
3336 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3337 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3338 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3339 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3340 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3341 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3342 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3343 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3344 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3346 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3349 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3351 2018-05-09 Tom de Vries <tom@codesourcery.com>
3354 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3355 to GOACC_enter_exit_data.
3357 2018-05-09 Tom de Vries <tom@codesourcery.com>
3360 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3361 (async_synchronous_p): New function.
3362 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3364 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3365 async_valid_stream_id_p.
3366 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3367 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3369 2018-05-07 Tom de Vries <tom@codesourcery.com>
3372 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3373 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3375 2018-05-03 Tom de Vries <tom@codesourcery.com>
3378 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3379 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3380 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3381 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3383 2018-05-02 Tom de Vries <tom@codesourcery.com>
3386 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3387 GOMP_OPENACC_DIM ...
3388 * env.c (parse_gomp_openacc_dim): ... here. New function.
3389 (initialize_env): Call parse_gomp_openacc_dim.
3390 (goacc_default_dims): Define.
3391 * libgomp.h (goacc_default_dims): Declare.
3392 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3393 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3394 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3395 GOMP_PLUGIN_acc_default_dim.
3396 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3397 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3399 2018-05-02 Tom de Vries <tom@codesourcery.com>
3402 * testsuite/libgomp.c++/udr-9.C: Update.
3403 * testsuite/libgomp.c++/atomic-16.C: Remove.
3404 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3405 * testsuite/libgomp.c++/loop-13.C: Remove.
3406 * testsuite/libgomp.c++/loop-14.C: Remove.
3407 * testsuite/libgomp.c++/loop-15.C: Remove.
3408 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3409 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3410 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3411 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3412 * testsuite/libgomp.c++/ordered-1.C: Remove.
3413 * testsuite/libgomp.c++/pr45784.C: Remove.
3414 * testsuite/libgomp.c++/pr64824.C: Remove.
3415 * testsuite/libgomp.c++/pr64868.C: Remove.
3416 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3417 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3418 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3419 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3420 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3421 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3422 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3423 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3424 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3425 * testsuite/libgomp.c++/pr69389.C: Remove.
3426 * testsuite/libgomp.c++/simd10.C: Remove.
3427 * testsuite/libgomp.c++/simd11.C: Remove.
3428 * testsuite/libgomp.c++/simd12.C: Remove.
3429 * testsuite/libgomp.c++/simd13.C: Remove.
3430 * testsuite/libgomp.c++/target-1.C: Remove.
3431 * testsuite/libgomp.c++/target-3.C: Remove.
3432 * testsuite/libgomp.c++/target-4.C: Remove.
3433 * testsuite/libgomp.c++/target-5.C: Remove.
3434 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3435 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3436 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3437 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3438 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3439 * testsuite/libgomp.c++/udr-9.C: Remove.
3440 * testsuite/libgomp.c++/for-10.C: Remove.
3441 * testsuite/libgomp.c++/for-11.C: Remove.
3442 * testsuite/libgomp.c++/for-12.C: Remove.
3443 * testsuite/libgomp.c++/for-13.C: Remove.
3444 * testsuite/libgomp.c++/for-14.C: Remove.
3445 * testsuite/libgomp.c++/for-9.C: Remove.
3446 * testsuite/libgomp.c/atomic-18.c: Move ...
3447 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3448 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3449 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3450 * testsuite/libgomp.c/loop-13.c: Move ...
3451 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3452 * testsuite/libgomp.c/loop-14.c: Move ...
3453 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3454 * testsuite/libgomp.c/loop-15.c: Remove.
3455 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3456 * testsuite/libgomp.c/monotonic-1.c: Move ...
3457 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3458 * testsuite/libgomp.c/monotonic-2.c: Move ...
3459 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3460 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3461 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3462 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3463 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3464 * testsuite/libgomp.c/ordered-4.c: Move ...
3465 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3466 * testsuite/libgomp.c/pr45784.c: Move ...
3467 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3468 * testsuite/libgomp.c/pr64824.c: Move ...
3469 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3470 * testsuite/libgomp.c/pr64868.c: Move ...
3471 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3472 * testsuite/libgomp.c/pr66199-1.c: Move ...
3473 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3474 * testsuite/libgomp.c/pr66199-2.c: Move ...
3475 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3476 * testsuite/libgomp.c/pr66199-3.c: Move ...
3477 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3478 * testsuite/libgomp.c/pr66199-4.c: Move ...
3479 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3480 * testsuite/libgomp.c/pr66199-5.c: Move ...
3481 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3482 * testsuite/libgomp.c/pr66199-6.c: Move ...
3483 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3484 * testsuite/libgomp.c/pr66199-7.c: Move ...
3485 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3486 * testsuite/libgomp.c/pr66199-8.c: Move ...
3487 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3488 * testsuite/libgomp.c/pr66199-9.c: Move ...
3489 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3490 * testsuite/libgomp.c/pr69389.c: Move ...
3491 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3492 * testsuite/libgomp.c/simd-14.c: Move ...
3493 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3494 * testsuite/libgomp.c/simd-15.c: Move ...
3495 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3496 * testsuite/libgomp.c/simd-16.c: Move ...
3497 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3498 * testsuite/libgomp.c/simd-17.c: Move ...
3499 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3500 * testsuite/libgomp.c/target-1.c: Move ...
3501 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3502 * testsuite/libgomp.c/target-10.c: Move ...
3503 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3504 * testsuite/libgomp.c/target-13.c: Move ...
3505 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3506 * testsuite/libgomp.c/target-2.c: Move ...
3507 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3508 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3509 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3510 * testsuite/libgomp.c/taskloop-1.c: Move ...
3511 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3512 * testsuite/libgomp.c/taskloop-2.c: Move ...
3513 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3514 * testsuite/libgomp.c/taskloop-3.c: Move ...
3515 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3516 * testsuite/libgomp.c/taskloop-4.c: Move ...
3517 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3518 * testsuite/libgomp.c/udr-1.c: Move ...
3519 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3520 * testsuite/libgomp.c/for-1.c: Move ...
3521 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3522 * testsuite/libgomp.c/for-1.h: Move ...
3523 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3524 * testsuite/libgomp.c/for-2.c: Move ...
3525 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3526 * testsuite/libgomp.c/for-2.h: Move ...
3527 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3528 * testsuite/libgomp.c/for-3.c: Move ...
3529 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3530 * testsuite/libgomp.c/for-4.c: Move ...
3531 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3532 * testsuite/libgomp.c/for-5.c: Move ...
3533 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3534 * testsuite/libgomp.c/for-6.c: Move ...
3535 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3537 2018-05-02 Tom de Vries <tom@codesourcery.com>
3540 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3541 __builtin_goacc_parlevel_{id,size}.
3542 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3543 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3544 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3545 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3546 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3547 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3548 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3549 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3550 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3551 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3552 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3553 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3554 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3555 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3556 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3557 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3558 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3559 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3560 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3561 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3562 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3563 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3564 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3566 2018-05-02 Tom de Vries <tom@codesourcery.com>
3569 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3571 2018-05-02 Tom de Vries <tom@codesourcery.com>
3574 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3576 2018-04-29 Julian Brown <julian@codesourcery.com>
3577 Tom de Vries <tom@codesourcery.com>
3580 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3581 arbitrary order for iterations of atomic subtract check.
3583 2018-04-28 Tom de Vries <tom@codesourcery.com>
3586 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3587 atomic capture results obtained in parallel loop to an array, instead of
3590 2018-04-26 Tom de Vries <tom@codesourcery.com>
3593 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3594 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3595 (process_GOMP_NVPTX_JIT): New function.
3596 (link_ptx): Use process_GOMP_NVPTX_JIT.
3598 2018-04-26 Richard Biener <rguenther@suse.de>
3599 Tom de Vries <tom@codesourcery.com>
3602 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3604 2018-04-26 Tom de Vries <tom@codesourcery.com>
3607 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3608 recursion depth from 25 to 23.
3609 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3611 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3613 * configure: Regenerated.
3615 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3616 Tom de Vries <tom@codesourcery.com>
3619 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3621 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3624 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3625 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3626 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3627 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3628 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3629 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3632 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3634 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3636 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3638 * configure: Regenerated.
3640 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3643 * configure: Regenerate.
3645 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3646 Tom de Vries <tom@codesourcery.com>
3649 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3650 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3652 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3656 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3657 test from gfortran.dg to here.
3659 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3661 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3662 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3664 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3667 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3668 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3670 2018-04-05 Tom de Vries <tom@codesourcery.com>
3673 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3675 2018-03-26 Tom de Vries <tom@codesourcery.com>
3677 PR tree-optimization/85063
3678 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3679 * testsuite/libgomp.c/switch-conversion.c: New test.
3680 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3681 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3683 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3686 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3687 call abort by STOP n.
3688 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3689 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3690 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3691 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3692 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3693 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3694 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3695 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3696 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3697 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3698 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3699 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3700 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3701 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3702 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3703 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3704 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3705 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3706 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3707 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3708 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3709 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3710 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3711 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3712 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3713 * testsuite/libgomp.fortran/character1.f90: Likewise.
3714 * testsuite/libgomp.fortran/character2.f90: Likewise.
3715 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3716 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3717 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3718 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3719 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3720 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3721 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3722 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3723 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3724 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3725 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3726 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3727 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3728 * testsuite/libgomp.fortran/do1.f90: Likewise.
3729 * testsuite/libgomp.fortran/do2.f90: Likewise.
3730 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3731 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3732 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3733 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3734 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3735 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3736 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3737 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3738 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3739 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3740 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3741 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3742 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3743 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3744 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3745 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3746 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3747 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3748 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3749 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3750 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3751 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3752 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3753 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3754 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3755 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3756 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3757 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3758 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3759 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3760 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3761 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3762 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3763 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3764 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3765 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3766 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3767 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3768 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3769 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3770 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3771 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3772 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3773 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3774 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3775 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3776 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3777 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3778 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3779 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3780 * testsuite/libgomp.fortran/lib2.f: Likewise.
3781 * testsuite/libgomp.fortran/lib3.f: Likewise.
3782 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3783 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3784 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3785 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3786 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3787 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3788 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3789 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3790 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3791 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3792 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3793 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3794 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3795 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3796 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3797 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3798 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3799 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3800 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3801 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3802 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3803 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3804 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3805 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3806 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3807 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3808 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3809 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3810 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3811 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3812 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3813 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3814 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3815 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3816 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3817 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3818 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3819 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3820 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3821 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3822 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3823 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3824 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3825 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3826 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3827 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3828 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3829 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3830 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3831 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3832 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3833 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3834 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3835 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3836 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3837 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3838 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3839 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3840 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3841 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3842 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3843 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3844 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3845 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3846 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3847 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3848 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3849 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3850 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3851 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3852 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3853 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3854 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3855 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3856 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3857 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3858 * testsuite/libgomp.fortran/stack.f90: Likewise.
3859 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3860 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3861 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3862 * testsuite/libgomp.fortran/target1.f90: Likewise.
3863 * testsuite/libgomp.fortran/target2.f90: Likewise.
3864 * testsuite/libgomp.fortran/target3.f90: Likewise.
3865 * testsuite/libgomp.fortran/target4.f90: Likewise.
3866 * testsuite/libgomp.fortran/target5.f90: Likewise.
3867 * testsuite/libgomp.fortran/target6.f90: Likewise.
3868 * testsuite/libgomp.fortran/target7.f90: Likewise.
3869 * testsuite/libgomp.fortran/target8.f90: Likewise.
3870 * testsuite/libgomp.fortran/task1.f90: Likewise.
3871 * testsuite/libgomp.fortran/task2.f90: Likewise.
3872 * testsuite/libgomp.fortran/task3.f90: Likewise.
3873 * testsuite/libgomp.fortran/task4.f90: Likewise.
3874 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3875 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3876 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3877 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3878 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3879 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3880 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3881 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3882 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3883 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3884 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3885 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3886 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3887 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3888 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3889 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3890 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3891 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3892 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3893 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3894 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3895 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3896 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3897 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3898 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3899 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3900 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3901 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3902 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3903 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3904 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3905 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3906 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3907 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3908 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3909 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3910 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3912 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3913 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3914 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3915 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3916 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3917 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3918 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3919 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3920 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3921 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3922 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3923 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3924 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3925 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3926 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3927 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3928 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3929 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3930 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3931 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3932 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3933 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3934 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3935 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3936 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3937 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3938 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3939 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3940 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3941 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3942 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3943 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3944 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3945 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3946 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3947 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3948 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3949 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3950 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3951 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3952 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3953 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3954 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3955 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3956 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3957 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3958 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3959 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3960 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3961 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3962 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3963 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3964 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3965 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3966 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3967 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3968 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3969 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3970 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3971 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3972 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3973 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3974 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3975 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3976 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3977 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3978 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3979 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3980 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3981 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3982 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3983 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3984 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3985 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3986 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3987 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3988 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3989 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3990 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3991 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3992 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3993 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3994 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3995 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3996 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3997 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3998 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3999 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4001 2018-03-20 Richard Biener <rguenther@suse.de>
4003 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4004 parallelizable loop.
4006 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4009 * configure: Regenerate.
4011 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4014 * libgomp.fortran/pr84418-1.f90: New test.
4015 * libgomp.fortran/pr84418-2.f90: New test.
4017 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4020 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4021 -std=f2003 -fall-intrinsics into dg-additional-options.
4023 2018-02-08 Martin Jambor <mjambor@suse.cz>
4025 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4028 2018-02-08 Martin Jambor <mjambor@suse.cz>
4030 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4032 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4034 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4035 [__cplusplus]: Declare extern "C".
4037 2018-02-07 Tom de Vries <tom@codesourcery.com>
4040 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4042 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4043 Jakub Jelinek <jakub@redhat.com>
4046 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4047 instead of omp_lock_t.
4049 2018-01-25 Tom de Vries <tom@codesourcery.com>
4052 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4054 2018-01-24 Tom de Vries <tom@codesourcery.com>
4057 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4059 2018-01-24 Tom de Vries <tom@codesourcery.com>
4062 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4064 2018-01-19 Tom de Vries <tom@codesourcery.com>
4065 Cesar Philippidis <cesar@codesourcery.com>
4068 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4069 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4071 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4073 Update copyright years.
4075 * libgomp.texi: Bump @copying's copyright year.
4077 2017-12-30 Tom de Vries <tom@codesourcery.com>
4080 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4081 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4083 2017-12-27 Tom de Vries <tom@codesourcery.com>
4086 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4087 (test_nonstatic): Fix return type to workaround PR83046.
4089 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4092 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4093 j suffix instead of i.
4094 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4097 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4099 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4100 call to acc_wait (1).
4102 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4105 * testsuite/libgomp.fortran/pr81304.f90: New test.
4107 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4110 * libgomp.fortran/pr81841.f90: New test.
4112 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4115 * target.c (gomp_target_init): Compute lengths just once and
4116 use them in both malloc size and subsequent copying.
4118 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4120 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4121 * acinclude.m4: Add cet.m4.
4122 * configure: Regenerate.
4123 * Makefile.in: Likewise.
4124 * testsuite/Makefile.in: Likewise.
4126 2017-11-15 Tom de Vries <tom@codesourcery.com>
4128 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4129 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4130 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4131 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4132 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4133 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4135 2017-11-14 Tom de Vries <tom@codesourcery.com>
4137 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4140 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4143 * testsuite/libgomp.c++/pr82835.C: New test.
4145 2017-11-06 Martin Liska <mliska@suse.cz>
4147 * testsuite/libgomp.c++/loop-2.C: Return a value
4148 for functions with non-void return type, or change type to void,
4149 or add -Wno-return-type for test.
4150 * testsuite/libgomp.c++/loop-4.C: Likewise.
4151 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4152 * testsuite/libgomp.c++/shared-1.C: Likewise.
4153 * testsuite/libgomp.c++/single-1.C: Likewise.
4154 * testsuite/libgomp.c++/single-2.C: Likewise.
4156 2017-10-31 Tom de Vries <tom@codesourcery.com>
4158 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4159 "do {} while (false)".
4160 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4161 after HSA_DEBUG call.
4163 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4165 * target.c (struct gomp_coalesce_buf): New type.
4166 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4167 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4168 (gomp_copy_host2dev): Add CBUF argument, if copying into
4169 the cached ranges, memcpy into buffer instead of copying
4171 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4172 Add CBUF argument, pass it through to other calls.
4173 (gomp_map_vars): Aggregate copies from host to device if small enough
4174 and with small enough gaps in between into memcpy into a buffer and
4175 fewer host to device copies from the buffer.
4176 (gomp_update): Adjust gomp_copy_host2dev caller.
4178 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4180 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4182 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4183 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4184 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4185 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4187 2017-10-16 Tom de Vries <tom@codesourcery.com>
4189 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4190 openacc_nvidia_accel_selected.
4191 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4192 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4193 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4194 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4195 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4196 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4197 openacc_nvidia_accel_selected. Skip for shared memory device.
4198 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4199 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4201 2017-10-09 Martin Jambor <mjambor@suse.cz>
4204 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4206 2017-10-07 Tom de Vries <tom@codesourcery.com>
4208 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4209 Remove acc_device_nvidia references.
4210 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4213 2017-10-05 Tom de Vries <tom@codesourcery.com>
4215 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4216 vector_length(32) clause from acc parallel directive.
4217 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4219 2017-10-04 Tom de Vries <tom@codesourcery.com>
4221 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4222 (main): Reduce sum of arr elements. Assert that hres is exactly
4223 representable in 32-bit floating point.
4224 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4225 (main): Reduce sum of arr elements. Assert that hres and hmres are
4226 exactly representable in 32-bit floating point.
4227 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4229 2017-09-28 Tom de Vries <tom@codesourcery.com>
4231 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4233 * testsuite/libgomp.c++/pr69393.C: Same.
4234 * testsuite/libgomp.c++/taskloop-1.C: Same.
4235 * testsuite/libgomp.c++/taskloop-3.C: Same.
4236 * testsuite/libgomp.c++/taskloop-4.C: Same.
4237 * testsuite/libgomp.c/for-4.c: Same.
4238 * testsuite/libgomp.c/pr66199-3.c: Same.
4239 * testsuite/libgomp.c/pr66199-4.c: Same.
4240 * testsuite/libgomp.c/pr66199-6.c: Same.
4241 * testsuite/libgomp.c/taskloop-1.c: Same.
4242 * testsuite/libgomp.c/taskloop-3.c: Same.
4243 * testsuite/libgomp.c/taskloop-4.c: Same.
4244 * testsuite/libgomp.fortran/aligned1.f03: Same.
4245 * testsuite/libgomp.fortran/condinc1.f: Same.
4246 * testsuite/libgomp.fortran/condinc3.f90: Same.
4247 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4248 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4249 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4250 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4251 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4252 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4253 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4254 * testsuite/libgomp.fortran/recursion1.f90: Same.
4255 * testsuite/libgomp.fortran/target2.f90: Same.
4256 * testsuite/libgomp.fortran/target5.f90: Same.
4257 * testsuite/libgomp.fortran/task3.f90: Same.
4259 2017-09-28 Tom de Vries <tom@codesourcery.com>
4261 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4262 vector_length(32) clause from acc parallel directive.
4263 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4265 2017-09-27 Tom de Vries <tom@codesourcery.com>
4267 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4268 Remove acc_device_nvidia references.
4270 2017-09-16 Tom de Vries <tom@codesourcery.com>
4273 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4275 2017-09-14 Tom de Vries <tom@codesourcery.com>
4277 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4278 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4279 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4280 * testsuite/libgomp.c/c.exp: Include test-cases from
4281 libgomp.c-c++-common.
4282 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4285 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4288 * testsuite/libgomp.c++/pr81314.C: New test.
4290 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4292 * libgomp.texi (Top): www.openacc.org now uses https.
4293 (Enabling OpenACC): Ditto.
4294 (acc_get_num_devices): Ditto.
4295 (acc_set_device_type): Ditto.
4296 (acc_get_device_type): Ditto.
4297 (acc_set_device_num): Ditto.
4298 (acc_get_device_num): Ditto.
4299 (acc_async_test): Ditto.
4300 (acc_async_test_all): Ditto.
4302 (acc_wait_all): Ditto.
4303 (acc_wait_all_async): Ditto.
4304 (acc_wait_async): Ditto.
4306 (acc_shutdown): Ditto.
4307 (acc_on_device): Ditto.
4308 (acc_malloc): Ditto.
4310 (acc_copyin): Ditto.
4311 (acc_present_or_copyin): Ditto.
4312 (acc_create): Ditto.
4313 (acc_present_or_create): Ditto.
4314 (acc_copyout): Ditto.
4315 (acc_delete): Ditto.
4316 (acc_update_device): Ditto.
4317 (acc_update_self): Ditto.
4318 (acc_map_data): Ditto.
4319 (acc_unmap_data): Ditto.
4320 (acc_deviceptr): Ditto.
4321 (acc_hostptr): Ditto.
4322 (acc_is_present): Ditto.
4323 (acc_memcpy_to_device): Ditto.
4324 (acc_memcpy_from_device): Ditto.
4325 (acc_get_current_cuda_device): Ditto.
4326 (acc_get_current_cuda_context): Ditto.
4327 (acc_get_cuda_stream): Ditto.
4328 (acc_set_cuda_stream): Ditto.
4329 (ACC_DEVICE_TYPE): Ditto.
4330 (ACC_DEVICE_NUM): Ditto.
4331 (OpenACC Library Interoperability): Ditto.
4333 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4336 * testsuite/libgomp.c/pr81687-1.c: New test.
4337 * testsuite/libgomp.c/pr81687-2.c: New test.
4339 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4342 * testsuite/libgomp.c/pr69389.c: New test.
4343 * testsuite/libgomp.c++/pr69389.C: New test.
4345 2017-08-07 Tom de Vries <tom@codesourcery.com>
4348 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4349 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4351 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4354 * testsuite/libgomp.c/pr45784.c: New test.
4355 * testsuite/libgomp.c++/pr45784.C: New test.
4357 2017-07-19 Tom de Vries <tom@codesourcery.com>
4359 * testsuite/libgomp.oacc-c/vec.c: New test.
4361 2017-07-03 Tom de Vries <tom@codesourcery.com>
4363 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4365 2017-06-27 Tom de Vries <tom@codesourcery.com>
4367 * plugin/plugin-nvptx.c (notify_var): New function.
4368 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4370 2017-06-27 Tom de Vries <tom@codesourcery.com>
4372 * env.c (parse_unsigned_long_1): Factor out of ...
4373 (parse_unsigned_long): ... here.
4374 (parse_int_1): Factor out of ...
4375 (parse_int): ... here.
4376 (parse_int_secure): New function.
4377 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4378 * secure_getenv.h: Factor out of ...
4379 * plugin/plugin-hsa.c: ... here.
4380 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4382 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4385 * testsuite/libgomp.c++/pr81130.C: New test.
4387 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4389 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4391 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4392 dg-xfail-run-if default args.
4394 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4396 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4397 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4399 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4402 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4403 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4404 sibling lists, depending on level just pick up what CPUs to put
4405 together into a place vs. whether add multiple ordered places.
4407 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4409 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4410 * libgomp.map (OACC_2.0.1): Add these.
4411 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4412 for "acc_wait", and "acc_wait_all", respectively.
4413 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4414 for "acc_wait", and "acc_wait_all", respectively.
4415 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4416 * libgomp.texi (acc_wait, acc_wait_all): Update.
4417 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4418 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4419 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4421 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4422 acc_present_or_copyin and acc_present_or_create procedures,
4424 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4425 generally different variants of OpenACC Runtime Library functions.
4426 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4428 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4429 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4431 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4432 of preprocessor definitions.
4433 * libgomp.h (strong_alias): Guard by "#ifdef
4434 HAVE_ATTRIBUTE_ALIAS".
4435 * oacc-mem.c: Provide "acc_pcreate" as alias for
4436 "acc_present_or_create", and "acc_pcopyin" as alias for
4437 "acc_present_or_copyin".
4438 * libgomp.map: New version "OACC_2.0.1".
4439 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4440 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4442 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4445 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4446 when disabling nvptx offloading.
4448 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4450 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4451 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4452 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4454 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4455 * testsuite/lib/libgomp.exp
4456 (check_effective_target_openacc_nvidia_accel_configured): New
4458 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4459 (check_effective_target_c++): New procs.
4460 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4461 (check_effective_target_c++): Likewise.
4463 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4466 * testsuite/libgomp.c/pr80809-2.c: New test.
4467 * testsuite/libgomp.c/pr80809-3.c: New test.
4470 * testsuite/libgomp.c/pr80809-1.c: New test.
4473 * testsuite/libgomp.c/pr80853.c: New test.
4475 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4477 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4478 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4479 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4480 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4481 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4483 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4484 Debug output for failure.
4486 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4488 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4490 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4493 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4494 bootstrap compare failures.
4496 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4498 * testsuite/libgomp.c/target-36.c: New testcase.
4500 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4502 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4505 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4508 * testsuite/libgomp.c/pr80394.c: New test.
4510 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4513 * config/posix/thread-stacksize.h: New file.
4514 * config/darwin/thread-stacksize.h: New file.
4515 * config/nvptx/thread-stacksize.h: New file.
4516 * env.c: Include thread-stacksize.h.
4517 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4518 instead of 0. Call pthread_attr_setstacksize even if
4519 GOMP_DEFAULT_STACKSIZE is non-zero.
4521 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4523 * env.c (initialize_env): Initialize stacksize to 0.
4525 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4528 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4530 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4533 * testsuite/libgomp.c/pr79940.c: New test.
4535 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4537 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4539 Add __float128 options.
4541 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4543 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4544 hppa*-*-* dg-skip-if directive.
4546 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4548 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4549 dg-skip-if directive into a comment.
4551 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4552 Chung-Lin Tang <cltang@codesourcery.com>
4554 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4555 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4556 add additional case.
4557 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4558 "openacc_nvidia_accel_selected".
4559 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4560 Add num_workers(8) clause.
4562 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4564 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4566 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4567 include complex.h on hppa*-*-hpux*.
4568 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4570 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4572 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4574 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4575 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4576 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4577 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4578 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4579 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4580 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4581 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4582 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4583 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4585 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4587 * libgomp-plugin.h: #include <stdbool.h>.
4588 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4589 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4590 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4591 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4592 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4593 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4594 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4595 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4596 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4597 (GOMP_OFFLOAD_openacc_async_test)
4598 (GOMP_OFFLOAD_openacc_async_test_all)
4599 (GOMP_OFFLOAD_openacc_async_wait)
4600 (GOMP_OFFLOAD_openacc_async_wait_async)
4601 (GOMP_OFFLOAD_openacc_async_wait_all)
4602 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4603 (GOMP_OFFLOAD_openacc_async_set_async)
4604 (GOMP_OFFLOAD_openacc_create_thread_data)
4605 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4606 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4607 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4608 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4609 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4610 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4612 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4613 (GOMP_OFFLOAD_unload_image): Fix argument types.
4615 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4617 * testsuite/lib/libgomp.exp
4618 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4619 check_compile invocation. Fix up removal of executable. Drop
4620 bogus "2>&1" argument.
4622 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4625 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4626 Martin Jambor <mjambor@suse.cz>
4628 * plugin/hsa.h: Moved to top level include.
4629 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4631 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4634 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4635 of cat to get version from BASE-VER file.
4636 * testsuite/Makefile.in: Regenerated.
4638 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4640 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4643 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4645 * plugin/hsa.h: Add GCC runtime library exception.
4646 * plugin/hsa_ext_finalize.h: Likewise.
4648 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4649 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4650 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4651 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4652 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4653 library to link ptx plugin against.
4654 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4655 (CUDA_CALLS): Define.
4656 (cuda_lib, cuda_lib_inited): New variables.
4657 (init_cuda_lib): New function.
4658 (CUDA_CALL_PREFIX): Define.
4659 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4660 (CUDA_CALL): Use FN instead of (FN).
4661 (CUDA_CALL_NOCHECK): Define.
4662 (cuda_error, fini_streams_for_device, select_stream_for_async,
4663 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4664 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4665 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4666 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4668 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4670 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4671 Use CUDA_CALL_NOCHECK.
4672 * plugin/cuda/cuda.h: New file.
4673 * config.h.in: Regenerated.
4674 * configure: Regenerated.
4677 * configure.ac: Add GCC_BASE_VER.
4678 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4679 get version from BASE-VER file.
4680 * testsuite/Makefile.in: Regenerated.
4681 * configure: Regenerated.
4682 * Makefile.in: Regenerated.
4684 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4687 * Makefile.am: Make fincludedir multilib-aware.
4688 * Makefile.in: Regenerate.
4690 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4692 Update copyright years.
4694 * libgomp.texi: Bump @copying's copyright year.
4696 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4698 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4699 pthread_spinlock_t instead of gomp_mutex_t lock.
4700 (gomp_get_thread_pool): Likewise.
4701 (gomp_release_thread_pool): Likewise.
4702 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4705 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4707 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4708 thread pool in case nthreads == 1.
4710 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4712 * config/nvptx/env.c: Delete.
4713 * icv.c: Move definitions of ICV variables back ...
4714 * env.c: ...here. Do not compile environment-related functionality if
4715 LIBGOMP_OFFLOADED_ONLY is set.
4717 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4719 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4720 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4721 * configure: Regenerate.
4722 * config.h.in: Likewise.
4724 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4726 * Makefile.in: Regenerate with automake-1.11.6.
4727 * aclocal.m4: Likewise.
4728 * configure: Likewise.
4729 * testsuite/Makefile.in: Likewise.
4731 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4733 * config/nvptx/critical.c: Delete to use generic implementation.
4735 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4737 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4738 ../../affinity.c as fallback.
4739 * config/nvptx/affinity.c: Delete to use fallback implementation.
4741 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4742 Jakub Jelinek <jakub@redhat.com>
4743 Dmitry Melnik <dm@ispras.ru>
4745 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4746 * Makefile.in. Regenerate.
4747 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4748 (LIBGOMP_USE_PTHREADS): ...here; new define.
4749 * configure: Regenerate.
4750 * config.h.in: Likewise.
4751 * config/posix/affinity.c: Move to...
4752 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4753 interface by LIBGOMP_USE_PTHREADS.
4754 * critical.c: Split out GOMP_atomic_{start,end} into...
4755 * atomic.c: ...here (new file).
4756 * env.c: Split out ICV definitions into...
4757 * icv.c: ...here (new file) and...
4758 * icv-device.c: ...here. New file.
4759 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4760 (gomp_destroy_lock_30): Ditto.
4761 (gomp_set_lock_30): Ditto.
4762 (gomp_unset_lock_30): Ditto.
4763 (gomp_test_lock_30): Ditto.
4764 (gomp_init_nest_lock_30): Ditto.
4765 (gomp_destroy_nest_lock_30): Ditto.
4766 (gomp_set_nest_lock_30): Ditto.
4767 (gomp_unset_nest_lock_30): Ditto.
4768 (gomp_test_nest_lock_30): Ditto.
4770 * config/nvptx/lock.c: New.
4771 * config/nvptx/bar.c: New.
4772 * config/nvptx/bar.h: New.
4773 * config/nvptx/doacross.h: New.
4774 * config/nvptx/error.c: New.
4775 * config/nvptx/icv-device.c: New.
4776 * config/nvptx/mutex.h: New.
4777 * config/nvptx/pool.h: New.
4778 * config/nvptx/proc.c: New.
4779 * config/nvptx/ptrlock.h: New.
4780 * config/nvptx/sem.h: New.
4781 * config/nvptx/simple-bar.h: New.
4782 * config/nvptx/target.c: New.
4783 * config/nvptx/task.c: New.
4784 * config/nvptx/team.c: New.
4785 * config/nvptx/time.c: New.
4786 * config/posix/simple-bar.h: New.
4787 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4788 (gomp_num_teams_var): Declare.
4789 (struct gomp_thread_pool): Change threads_dock member to
4790 gomp_simple_barrier_t.
4791 [__nvptx__] (gomp_thread): New implementation.
4792 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4793 (gomp_thread_destructor): Ditto.
4794 (gomp_init_thread_affinity): Ditto.
4795 * team.c: Guard uses of Pthreads-specific interfaces by
4796 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4797 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4798 * config/nvptx/alloc.c: Delete.
4799 * config/nvptx/barrier.c: Ditto.
4800 * config/nvptx/fortran.c: Ditto.
4801 * config/nvptx/iter.c: Ditto.
4802 * config/nvptx/iter_ull.c: Ditto.
4803 * config/nvptx/loop.c: Ditto.
4804 * config/nvptx/loop_ull.c: Ditto.
4805 * config/nvptx/ordered.c: Ditto.
4806 * config/nvptx/parallel.c: Ditto.
4807 * config/nvptx/priority_queue.c: Ditto.
4808 * config/nvptx/sections.c: Ditto.
4809 * config/nvptx/single.c: Ditto.
4810 * config/nvptx/splay-tree.c: Ditto.
4811 * config/nvptx/work.c: Ditto.
4812 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4813 -foffload=-lgfortran in addition to -lgfortran.
4814 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4815 * plugin/plugin-nvptx.c: Include <limits.h>.
4816 (struct targ_fn_descriptor): Add new fields.
4817 (struct ptx_device): Ditto. Set them...
4818 (nvptx_open_device): ...here.
4819 (nvptx_adjust_launch_bounds): New.
4820 (nvptx_host2dev): Allow NULL 'nvthd'.
4821 (nvptx_dev2host): Ditto.
4822 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4823 (link_ptx): Adjust log sizes.
4824 (nvptx_host2dev): Allow NULL 'nvthd'.
4825 (nvptx_dev2host): Ditto.
4826 (nvptx_set_clocktick): New. Use it...
4827 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4829 (GOMP_OFFLOAD_dev2dev): New.
4830 (nvptx_adjust_launch_bounds): New.
4831 (nvptx_stacks_size): New.
4832 (nvptx_stacks_alloc): New.
4833 (nvptx_stacks_free): New.
4834 (GOMP_OFFLOAD_run): New.
4835 (GOMP_OFFLOAD_async_run): New (stub).
4837 2016-11-23 Martin Jambor <mjambor@suse.cz>
4839 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4840 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4841 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4843 2016-11-23 Martin Liska <mliska@suse.cz>
4844 Martin Jambor <mjambor@suse.cz>
4846 * plugin/hsa.h: New file.
4847 * plugin/hsa_ext_finalize.h: New file.
4848 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4849 header file unistd.h, and functions secure_getenv, __secure_getenv,
4850 getuid, geteuid, getgid and getegid.
4851 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4853 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4854 Handle various cases of secure_getenv presence, add an implementation
4855 when we can test effective UID and GID.
4856 (struct hsa_runtime_fn_info): New structure.
4857 (hsa_runtime_fn_info hsa_fns): New variable.
4858 (hsa_runtime_lib): Likewise.
4859 (support_cpu_devices): Likewise.
4860 (init_enviroment_variables): Load newly introduced ENV
4862 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4863 (hsa_fatal): Likewise.
4864 (DLSYM_FN): New macro.
4865 (init_hsa_runtime_functions): New function.
4866 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4867 structure. Depending on environment, also allow CPU devices.
4868 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4869 (get_kernarg_memory_region): Likewise.
4870 (GOMP_OFFLOAD_init_device): Likewise.
4871 (destroy_hsa_program): Likewise.
4872 (init_basic_kernel_info): New function.
4873 (GOMP_OFFLOAD_load_image): Use it.
4874 (create_and_finalize_hsa_program): Call hsa run-time functions via
4876 (create_single_kernel_dispatch): Likewise.
4877 (release_kernel_dispatch): Likewise.
4878 (init_single_kernel): Likewise.
4879 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4880 (get_group_size): New function.
4881 (run_kernel): Likewise.
4882 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4883 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4885 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4886 * testsuite/libgomp-test-support.exp.in: Likewise.
4887 * Makefile.in: Regenerated.
4888 * aclocal.m4: Likewise.
4889 * config.h.in: Likewise.
4890 * configure: Likewise.
4891 * testsuite/Makefile.in: Likewise.
4893 2016-11-15 Martin Jambor <mjambor@suse.cz>
4894 Alexander Monakov <amonakov@ispras.ru>
4896 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4897 mapping clauses to target constructs.
4898 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4900 2016-11-15 Matthias Klose <doko@ubuntu.com>
4902 * configure: Regenerate.
4904 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4906 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4907 * omp_lib.h.in (openmp_version): Likewise.
4908 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4910 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4912 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4913 (fib_wrapper): Add map(from: x) clause.
4914 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4916 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4917 (accum): Add map(tmp) clause.
4918 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4919 (accum): Add map(tofrom: tmp) clause.
4920 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4921 (gramSchmidt): Likewise.
4922 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4923 map(tofrom: sum) clause.
4924 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4925 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4926 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4927 only allowed on the loop iterator.
4928 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4929 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4930 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4931 * testsuite/libgomp.fortran/doacross1.f90: New test.
4932 * testsuite/libgomp.fortran/doacross3.f90: New test.
4933 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4934 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4935 * testsuite/libgomp.fortran/doacross2.f90: New test.
4936 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4937 #pragma omp atomic read.
4938 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4939 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4941 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4942 Nathan Sidwell <nathan@acm.org>
4944 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4945 to determine default geometry.
4946 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4949 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4951 * hashtab.h: Use standard GPLv3 with runtime exception
4954 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4956 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4957 size when allocating new thread.
4959 2016-09-14 Marek Polacek <polacek@redhat.com>
4961 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4963 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4966 * testsuite/libgomp.fortran/pr71014.f90: New test.
4968 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4971 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4972 firstprivate clauses.
4973 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4975 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4976 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4977 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4978 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4979 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4980 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4981 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4982 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4983 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4984 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4985 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4986 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4988 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4991 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4993 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4996 * testsuite/libgomp.c++/pr58706.C: New test.
4998 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5000 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5001 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5002 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5004 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5005 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5007 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5009 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5010 test, and don't hardcode -O0.
5012 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5014 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5016 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5018 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5021 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5024 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5025 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5027 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5030 * testsuite/libgomp.fortran/associate3.f90: New test.
5032 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5034 * testsuite/libgomp.c++/target-21.C: New test.
5036 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5038 * testsuite/libgomp.c++/target-20.C: New test.
5040 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5041 Cesar Philippidis <cesar@codesourcery.com>
5044 * libgomp.oacc-c/nested-function-1.c: New file.
5045 * libgomp.oacc-c/nested-function-2.c: Likewise.
5046 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5047 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5048 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5050 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5053 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5054 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5055 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5057 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5059 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5060 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5062 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5065 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5067 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5069 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5070 instead of invalid schedule(static, 0).
5071 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5073 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5075 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5076 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5077 parameter, use to set async stream around call to gomp_unmap_vars,
5078 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5079 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5080 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5081 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5082 (event_add): Add int parameter, initialize 'val' field when
5083 adding new ptx_event struct.
5084 (nvptx_evec): Adjust event_add() call arguments.
5085 (nvptx_host2dev): Likewise.
5086 (nvptx_dev2host): Likewise.
5087 (nvptx_wait_async): Likewise.
5088 (nvptx_wait_all_async): Likewise.
5089 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5090 pass to event_add() call.
5091 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5093 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5094 call openacc.register_async_cleanup_func() hook.
5095 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5096 * target.c (gomp_copy_from_async): Delete function.
5097 (gomp_map_vars): Remove async_refcount.
5098 (gomp_unmap_vars): Likewise.
5099 (gomp_load_image_to_device): Likewise.
5100 (omp_target_associate_ptr): Likewise.
5101 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5102 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5103 (gomp_copy_from_async): Remove.
5105 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5107 * target.c (gomp_device_copy): New function.
5108 (gomp_copy_host2dev): Likewise.
5109 (gomp_copy_dev2host): Likewise.
5110 (gomp_free_device_memory): Likewise.
5111 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5112 (gomp_map_pointer): Likewise.
5113 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5114 NULL value from alloc_func plugin hook.
5115 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5116 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5117 (gomp_unmap_vars): Likewise.
5118 (gomp_update): Adjust to call gomp_copy_dev2host and
5119 gomp_copy_host2dev functions.
5120 (gomp_unload_image_from_device): Handle false value from
5121 unload_image_func plugin hook.
5122 (gomp_init_device): Handle false value from init_device_func
5124 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5125 (omp_target_free): Adjust to call gomp_free_device_memory.
5126 (omp_target_memcpy): Handle return values from host2dev_func,
5127 dev2host_func, and dev2dev_func plugin hooks.
5128 (omp_target_memcpy_rect_worker): Likewise.
5129 (gomp_target_fini): Handle false value from fini_device_func
5131 * libgomp.h (struct gomp_device_descr): Adjust return type of
5132 init_device_func, fini_device_func, unload_image_func, free_func,
5133 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5134 * oacc-init.c (acc_shutdown_1): Handle false value from
5135 fini_device_func plugin hook.
5136 * oacc-host.c (host_init_device): Change return type to bool.
5137 (host_fini_device): Likewise.
5138 (host_unload_image): Likewise.
5139 (host_free): Likewise.
5140 (host_dev2host): Likewise.
5141 (host_host2dev): Likewise.
5142 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5143 (acc_memcpy_to_device): Likewise.
5144 (acc_memcpy_from_device): Likewise.
5145 (delete_copyout): Add libfnname parameter, handle free_func
5146 hook fatal error case.
5147 (acc_delete): Adjust delete_copyout call.
5148 (acc_copyout): Likewise.
5149 (update_dev_host): Move gomp_mutex_unlock to after
5150 host2dev/dev2host hook calls.
5152 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5153 to 'hsa_error_msg', for clarity.
5154 (hsa_fatal): Likewise.
5155 (hsa_error): New function.
5156 (init_hsa_context): Change return type to bool, adjust to return
5158 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5160 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5161 return false on error.
5162 (get_agent_info): Adjust to return NULL on error.
5163 (destroy_hsa_program): Change return type to bool, adjust to
5164 return false on error.
5165 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5166 (destroy_module): Change return type to bool, adjust to
5167 return false on error.
5168 (GOMP_OFFLOAD_unload_image): Likewise.
5169 (GOMP_OFFLOAD_fini_device): Likewise.
5170 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5171 (GOMP_OFFLOAD_free): Change to return false when called.
5172 (GOMP_OFFLOAD_dev2host): Likewise.
5173 (GOMP_OFFLOAD_host2dev): Likewise.
5174 (GOMP_OFFLOAD_dev2dev): Likewise.
5176 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5177 (CUDA_CALL): Likewise.
5178 (CUDA_CALL_ASSERT): Likewise.
5179 (map_init): Change return type to bool, use CUDA_CALL* macros.
5180 (map_fini): Likewise.
5181 (init_streams_for_device): Change return type to bool, adjust
5183 (fini_streams_for_device): Change return type to bool, adjust
5185 (select_stream_for_async): Release stream_lock before calls to
5186 GOMP_PLUGIN_fatal, adjust call to map_init.
5187 (nvptx_init): Use CUDA_CALL* macros.
5188 (nvptx_attach_host_thread_to_device): Change return type to bool,
5189 use CUDA_CALL* macros.
5190 (nvptx_open_device): Use CUDA_CALL* macros.
5191 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5193 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5194 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5195 (nvptx_exec): Use CUDA_CALL* macros.
5196 (nvptx_alloc): Use CUDA_CALL* macros.
5197 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5198 (nvptx_host2dev): Likewise.
5199 (nvptx_dev2host): Likewise.
5200 (nvptx_wait): Use CUDA_CALL* macros.
5201 (nvptx_wait_async): Likewise.
5202 (nvptx_wait_all): Likewise.
5203 (nvptx_wait_all_async): Likewise.
5204 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5205 use CUDA_CALL* macros, adjust call to map_fini.
5206 (GOMP_OFFLOAD_init_device): Change return type to bool,
5207 adjust code accordingly.
5208 (GOMP_OFFLOAD_fini_device): Likewise.
5209 (GOMP_OFFLOAD_load_image): Adjust calls to
5210 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5211 use CUDA_CALL* macros.
5212 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5214 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5215 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5216 handle error return.
5217 (GOMP_OFFLOAD_dev2host): Likewise.
5218 (GOMP_OFFLOAD_host2dev): Likewise.
5219 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5220 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5222 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5224 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5225 (acc_free): Likewise.
5226 (acc_memcpy_to_device): Likewise.
5227 (acc_memcpy_from_device): Likewise.
5228 (acc_deviceptr): Likewise.
5229 (acc_hostptr): Likewise.
5230 (acc_is_present): Likewise.
5231 (acc_map_data): Likewise.
5232 (acc_unmap_data): Likewise.
5233 (present_create_copy): Likewise.
5234 (delete_copyout): Likewise.
5235 (update_dev_host): Likewise.
5236 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5237 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5238 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5239 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5240 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5241 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5242 it only runs on nvptx targets.
5243 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5244 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5245 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5246 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5247 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5248 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5249 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5250 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5251 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5252 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5253 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5254 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5255 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5256 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5257 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5258 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5259 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5260 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5261 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5262 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5263 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5264 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5265 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5267 2016-05-23 Martin Jambor <mjambor@suse.cz>
5269 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5271 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5273 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5274 to gomp_init_targets_once.
5275 (acc_set_device_type): Remove !cached_base_dev condition on call to
5276 gomp_init_targets_once, move call to before acc_device_lock acquire,
5278 (acc_get_device_num): Remove !cached_base_dev condition on call to
5279 gomp_init_targets_once.
5280 (acc_set_device_num): Likewise.
5282 2016-05-16 Martin Jambor <mjambor@suse.cz>
5284 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5286 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5288 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5289 expected partitioning.
5291 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5294 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5295 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5296 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5298 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5300 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5303 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5306 * testsuite/libgomp.c/pr70680-1.c: New test.
5307 * testsuite/libgomp.c/pr70680-2.c: New test.
5309 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5311 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5312 pass parameter variables to subroutines.
5314 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5317 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5319 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5322 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5323 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5325 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5327 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5328 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5329 GOACC_declare prototype.
5331 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5332 Merge this file, and...
5333 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5334 ... this file, and...
5335 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5336 ... this file, and...
5337 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5338 ... this file, and...
5339 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5340 ... this file, and...
5341 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5342 ... this file, and...
5343 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5344 ... this file, and...
5345 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5346 ... this file, and...
5347 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5348 ... this file, and...
5349 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5350 ... this file, and...
5351 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5352 ... this file, and...
5353 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5354 ... this file, and...
5355 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5356 ... this file into...
5357 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5360 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5361 Make failure observable.
5363 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5365 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5367 * target.c (gomp_target_fallback_firstprivate,
5368 gomp_target_unshare_firstprivate): Removed.
5369 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5370 before waiting for dependencies.
5371 (gomp_target_task_fn): Don't copy firstprivate vars here.
5372 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5373 firstprivate_copies here.
5374 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5375 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5376 explicit/implicit firstprivate.
5378 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5382 PR tree-optimization/70373
5386 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5388 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5390 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5392 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5394 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5396 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5398 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5400 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5402 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5404 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5405 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5406 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5407 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5409 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5411 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5413 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5415 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5417 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5420 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5421 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5422 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5424 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5429 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5430 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5431 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5432 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5433 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5434 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5435 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5436 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5437 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5438 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5440 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5441 James Norris <jnorris@codesourcery.com>
5442 Nathan Sidwell <nathan@codesourcery.com>
5443 Julian Brown <julian@codesourcery.com>
5444 Cesar Philippidis <cesar@codesourcery.com>
5445 Chung-Lin Tang <cltang@codesourcery.com>
5446 Tom de Vries <tom@codesourcery.com>
5448 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5449 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5450 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5451 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5452 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5453 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5454 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5455 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5456 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5460 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5462 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5463 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5467 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5469 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5473 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5474 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5475 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5476 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5477 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5478 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5480 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5481 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5482 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5484 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5486 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5488 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5490 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5492 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5493 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5494 ... this new file. Update.
5495 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5496 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5497 ... this new file. Update.
5498 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5499 file. Incorporate...
5500 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5502 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5504 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5506 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5508 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5510 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5511 set-torture-options.
5513 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5515 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5517 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5518 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5519 -fno-builtin-acc_on_device instead of -O0.
5520 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5522 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5523 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5525 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5526 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5527 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5529 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5531 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5532 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5533 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5535 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5536 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5537 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5539 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5540 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5541 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5542 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5544 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5546 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5549 2016-03-24 Martin Liska <mliska@suse.cz>
5551 * plugin/plugin-hsa.c (packet_store_release): New function
5552 that is taken from the HSA runtime manual.
5553 (GOMP_OFFLOAD_run): Use the function.
5555 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5558 * testsuite/libgomp.c++/pr70376.C: New test.
5560 2016-03-23 Tom de Vries <tom@codesourcery.com>
5562 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5563 initialization of lresult and lvresult.
5564 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5566 2016-03-23 James Norris <jnorris@codesourcery.com>
5567 Daichi Fukuoka <dc-fukuoka@sgi.com>
5570 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5571 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5572 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5573 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5575 2016-03-23 Martin Liska <mliska@suse.cz>
5578 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5579 argument just in case a dispatched kernel uses that argument.
5581 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5583 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5584 -ftree-parallelize-loops/-fopenacc changes.
5585 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5587 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5589 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5591 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5593 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5594 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5596 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5598 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5599 always_ld_library_path the path to libgcc_s.
5601 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5604 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5606 2016-03-09 Tom de Vries <tom@codesourcery.com>
5608 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5609 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5610 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5612 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5613 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5614 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5615 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5617 2016-03-07 Martin Jambor <mjambor@suse.cz>
5619 * testsuite/lib/libgomp.exp
5620 (check_effective_target_hsa_offloading_selected_nocache): New.
5621 (check_effective_target_hsa_offloading_selected): Likewise.
5622 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5623 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5624 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5625 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5626 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5627 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5628 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5629 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5630 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5631 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5632 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5633 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5634 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5635 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5636 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5637 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5638 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5640 2016-03-07 Martin Jambor <mjambor@suse.cz>
5642 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5643 non-shared memory accelerators.
5644 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5645 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5646 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5647 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5648 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5649 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5650 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5651 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5652 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5654 2016-03-07 Martin Jambor <mjambor@suse.cz>
5656 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5659 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5662 * testsuite/libgomp.c++/pr69555-1.C: New test.
5663 * testsuite/libgomp.c++/pr69555-2.C: New test.
5665 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5666 Martin Jambor <mjambor@suse.cz>
5668 * testsuite/lib/libgomp.exp
5669 (check_effective_target_offload_device_shared_as): New proc.
5670 * testsuite/libgomp.c++/declare_target-1.C: New test.
5672 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5675 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5677 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5679 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5680 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5682 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5683 -ftree-parallelize-loops/-fopenacc changes.
5684 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5685 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5687 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5689 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5691 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5693 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5695 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5697 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5699 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5700 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5702 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5703 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5705 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5706 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5709 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5711 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5713 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5716 * testsuite/libgomp.c/pr69805.c: New test.
5718 2016-02-16 Tom de Vries <tom@codesourcery.com>
5721 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5723 2016-02-09 Tom de Vries <tom@codesourcery.com>
5725 PR tree-optimization/69599
5726 * testsuite/libgomp.c/omp-nested-3.c: New test.
5727 * testsuite/libgomp.c/pr46032-2.c: New test.
5728 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5729 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5731 2016-02-09 Tom de Vries <tom@codesourcery.com>
5734 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5736 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5738 * testsuite/libgomp.c/target-31.c: Fix testcase.
5740 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5742 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5744 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5745 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5746 reduction and map clauses.
5747 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5749 2016-02-02 James Norris <jnorris@codesourcery.com>
5751 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5753 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5755 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5756 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5758 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5761 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5763 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5764 (hsa_kmt_lib): Set variables.
5765 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5766 always_ld_library_path.
5767 * Makefile.in: Regenerate.
5768 * configure: Likewise.
5769 * testsuite/Makefile.in: Likewise.
5771 * plugin/configfrag.ac (offload_additional_options)
5772 (offload_additional_lib_paths): Don't amend for hsa offloading.
5773 * configure: Regenerate.
5775 * plugin/configfrag.ac: Don't configure for offloading target if
5776 we don't build the corresponding plugin.
5777 * configure: Regenerate.
5779 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5781 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5782 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5784 2016-01-26 Tom de Vries <tom@codesourcery.com>
5786 PR tree-optimization/69110
5787 * testsuite/libgomp.c/pr69110.c: New test.
5789 2016-01-25 Richard Biener <rguenther@suse.de>
5792 * testsuite/libgomp.c++/pr69393.C: New testcase.
5794 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5796 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5797 function wasn't mapped to the device with non-shared memory.
5799 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5801 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5803 2016-01-19 Martin Jambor <mjambor@suse.cz>
5804 Martin Liska <mliska@suse.cz>
5806 * plugin/Makefrag.am: Add HSA plugin requirements.
5807 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5808 (HSA_RUNTIME_LIB): Likewise.
5809 (HSA_RUNTIME_CPPFLAGS): Likewise.
5810 (HSA_RUNTIME_INCLUDE): New substitution.
5811 (HSA_RUNTIME_LIB): Likewise.
5812 (HSA_RUNTIME_LDFLAGS): Likewise.
5813 (hsa-runtime): New configure option.
5814 (hsa-runtime-include): Likewise.
5815 (hsa-runtime-lib): Likewise.
5816 (PLUGIN_HSA): New substitution variable.
5817 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5819 (PLUGIN_HSA_CPPFLAGS): Likewise.
5820 (PLUGIN_HSA_LDFLAGS): Likewise.
5821 (PLUGIN_HSA_LIBS): Likewise.
5822 Check that we have access to HSA run-time.
5823 * libgomp-plugin.h (offload_target_type): New element
5824 OFFLOAD_TARGET_TYPE_HSA.
5825 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5827 (bool gomp_create_target_task): Updated.
5828 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5829 new field can_run_func.
5830 * libgomp_g.h (GOMP_target_ext): Update prototype.
5831 * oacc-host.c (host_run): Added a new parameter args.
5832 * target.c (calculate_firstprivate_requirements): New function.
5833 (copy_firstprivate_data): Likewise.
5834 (gomp_target_fallback_firstprivate): Use them.
5835 (gomp_target_unshare_firstprivate): New function.
5836 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5838 (GOMP_target): Do host fallback for all shared memory devices. Do not
5839 pass any args to plugins.
5840 (GOMP_target_ext): Introduce device-specific argument parameter args.
5841 Allow host fallback if device shares memory. Do not remap data if
5842 device has shared memory.
5843 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5844 like host fallback for mappings.
5845 (GOMP_target_data): Treat shared memory devices like host fallback.
5846 (GOMP_target_data_ext): Likewise.
5847 (GOMP_target_update): Likewise.
5848 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5849 gomp_create_target_task.
5850 (GOMP_target_enter_exit_data): Likewise.
5851 (omp_target_alloc): Treat shared memory devices like host fallback.
5852 (omp_target_free): Likewise.
5853 (omp_target_is_present): Likewise.
5854 (omp_target_memcpy): Likewise.
5855 (omp_target_memcpy_rect): Likewise.
5856 (omp_target_associate_ptr): Likewise.
5857 (gomp_load_plugin_for_device): Also load can_run.
5858 * task.c (GOMP_PLUGIN_target_task_completion): Free
5859 firstprivate_copies.
5860 (gomp_create_target_task): Accept new argument args and store it to
5862 * plugin/plugin-hsa.c: New file.
5864 2016-01-18 Tom de Vries <tom@codesourcery.com>
5866 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5867 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5868 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5870 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5871 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5872 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5873 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5874 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5875 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5876 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5878 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5880 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5881 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5882 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5883 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5884 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5885 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5886 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5887 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5889 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5891 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5893 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5895 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5897 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5899 2016-01-12 James Norris <jnorris@codesourcery.com>
5901 * libgomp.texi: Updates for OpenACC.
5903 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5905 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5907 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5910 * testsuite/libgomp.fortran/pr66680.f90: New test.
5912 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5915 * testsuite/libgomp.c/pr68960.c: New test.
5917 2016-01-06 Nathan Sidwell <nathan@acm.org>
5919 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5920 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5922 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5924 Update copyright years.
5926 * libgomp.texi: Bump @copying's copyright year.
5928 2015-12-31 Nathan Sidwell <nathan@acm.org>
5930 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5931 dg-additional-options syntax.
5932 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5933 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5934 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5935 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5936 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5937 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5939 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5940 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5941 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5942 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5943 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5944 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5945 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5946 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5947 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5948 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5949 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5951 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5953 * libgomp.h (REFCOUNT_LINK): Define.
5954 (struct splay_tree_key_s): Add link_key.
5955 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5956 Replace target address of the pointer with target address of newly
5957 mapped object in the splay tree. Set link pointer on target to the
5958 device address of the mapped object.
5959 (gomp_unmap_vars): Restore target address of the pointer in the splay
5960 tree for REFCOUNT_LINK objects after unmapping.
5961 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5962 declare target link" objects.
5963 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5964 "omp declare target link" objects, which were mapped for the image.
5965 (gomp_exit_data): Restore target address of the pointer in the splay
5966 tree for REFCOUNT_LINK objects after unmapping.
5967 * testsuite/libgomp.c/target-link-1.c: New file.
5969 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5971 * libgomp.h (gomp_device_state): New enum.
5972 (struct gomp_device_descr): Replace is_initialized with state.
5973 (gomp_fini_device): Remove declaration.
5974 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5975 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5976 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5977 (acc_set_device_type): Use state instead of is_initialized.
5978 (acc_set_device_num): Likewise.
5979 * target.c (resolve_device): Use state instead of is_initialized.
5980 Do not initialize finalized device.
5981 (gomp_map_vars): Do nothing if device is finalized.
5982 (gomp_unmap_vars): Likewise.
5983 (gomp_update): Likewise.
5984 (GOMP_offload_register_ver): Use state instead of is_initialized.
5985 (GOMP_offload_unregister_ver): Likewise.
5986 (gomp_init_device): Likewise.
5987 (gomp_unload_device): Likewise.
5988 (gomp_fini_device): Remove.
5989 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5990 (GOMP_target): Go to host fallback if device is finalized.
5991 (GOMP_target_ext): Likewise.
5992 (gomp_exit_data): Do nothing if device is finalized.
5993 (gomp_target_task_fn): Go to host fallback if device is finalized.
5994 (gomp_target_fini): New static function.
5995 (gomp_target_init): Use state instead of is_initialized.
5996 Call gomp_target_fini at exit.
5998 2015-12-09 Tom de Vries <tom@codesourcery.com>
6000 PR tree-optimization/68716
6001 * testsuite/libgomp.c/omp-nested-2.c: New test.
6003 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6005 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6006 target openacc_nvidia_accel_selected.
6007 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6008 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6009 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6010 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6012 2015-12-01 Julian Brown <julian@codesourcery.com>
6013 James Norris <James_Norris@mentor.com>
6015 * oacc-parallel.c (GOACC_host_data): New function.
6016 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6017 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6018 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6019 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6020 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6021 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6022 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6024 2015-11-30 James Norris <jnorris@codesourcery.com>
6025 Cesar Philippidis <cesar@codesourcery.com>
6028 * libgomp.oacc-fortran/routine-5.f90: New test.
6029 * libgomp.oacc-fortran/routine-7.f90: New test.
6030 * libgomp.oacc-fortran/routine-9.f90: New test.
6032 2015-11-30 Tom de Vries <tom@codesourcery.com>
6034 PR tree-optimization/46032
6035 * testsuite/libgomp.c/pr46032.c: New test.
6037 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6040 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6041 (gomp_create_target_task): Call it before freeing
6042 GOMP_TARGET_TASK_DATA tasks.
6045 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6046 in between case label and OpenMP standalone directives.
6047 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6049 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6051 * configure: Regenerate.
6053 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6055 * testsuite/libgomp.c/target-35.c: New test.
6057 2015-11-22 James Norris <jnorris@codesourcery.com>
6058 Cesar Philippidis <cesar@codesourcery.com>
6060 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6061 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6062 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6063 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6064 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6066 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6069 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6070 * testsuite/libgomp.c/reduction-12.c: Likewise.
6071 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6072 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6074 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6076 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6077 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6078 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6079 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6080 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6082 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6083 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6085 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6087 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6088 worker & gang cases.
6089 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6091 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6093 * config/nvptx/priority_queue.c: New file.
6095 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6097 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6100 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6101 Aldy Hernandez <aldyh@redhat.com>
6102 Ilya Verbin <ilya.verbin@intel.com>
6104 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6105 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6106 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6107 iterators or IV by chunk size.
6108 * parallel.c (gomp_resolve_num_threads): Don't assume that
6109 if thr->ts.team is non-NULL, then pool must be non-NULL.
6110 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6111 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6112 GOMP_PLUGIN_target_task_completion.
6113 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6114 * Makefile.in: Regenerate.
6115 * libgomp.h: Shuffle prototypes and forward definitions around so
6116 priority queues can be defined.
6117 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6118 (enum gomp_target_task_state): New enum.
6119 (struct gomp_target_task): Add state, tgt, task and team fields.
6120 (gomp_create_target_task): Change return type to bool, add
6122 (gomp_target_task_fn): Change return type to bool.
6123 (struct gomp_device_descr): Add async_run_func.
6124 (struct gomp_task): Remove children, next_child, prev_child,
6125 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6127 (struct gomp_taskgroup): Remove children.
6128 Add taskgroup_queue.
6129 (struct gomp_team): Change task_queue type to a priority queue.
6130 (splay_compare): Define inline.
6131 (priority_queue_offset): New.
6132 (priority_node_to_task): New.
6133 (task_to_priority_node): New.
6134 * oacc-mem.c: Do not include splay-tree.h.
6135 * priority_queue.c: New file.
6136 * priority_queue.h: New file.
6137 * splay-tree.c: Do not include splay-tree.h.
6138 (splay_tree_foreach_internal): New.
6139 (splay_tree_foreach): New.
6140 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6141 (splay_tree_callback): Define typedef.
6142 * target.c (splay_compare): Move to libgomp.h.
6143 (GOMP_target): Don't adjust *thr in any way around running offloaded
6145 (GOMP_target_ext): Likewise. Handle target nowait.
6146 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6147 return value from gomp_create_target_task, if false, fallthrough
6148 as if no dependencies exist.
6149 (gomp_target_task_fn): Change return type to bool, return true
6150 if the task should have another part scheduled later. Handle
6152 (gomp_load_plugin_for_device): Initialize async_run.
6153 * task.c (gomp_init_task): Initialize children_queue.
6154 (gomp_clear_parent_in_list): New.
6155 (gomp_clear_parent_in_tree): New.
6156 (gomp_clear_parent): Handle priorities.
6157 (GOMP_task): Likewise.
6158 (priority_queue_move_task_first,
6159 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6161 (gomp_create_target_task): Use priority queues. Change return type
6162 to bool, add state argument, return false if for async
6163 {{enter,exit} data,update} constructs no dependencies need to be
6164 waited for, handle target nowait. Set task->fn to NULL instead of
6165 gomp_target_task_fn.
6166 (verify_children_queue): Remove.
6167 (priority_list_upgrade_task): New.
6168 (priority_queue_upgrade_task): New.
6169 (verify_task_queue): Remove.
6170 (priority_list_downgrade_task): New.
6171 (priority_queue_downgrade_task): New.
6172 (gomp_task_run_pre): Use priority queues.
6173 Abstract code out to priority_queue_downgrade_task.
6174 (gomp_task_run_post_handle_dependers): Use priority queues.
6175 (gomp_task_run_post_remove_parent): Likewise.
6176 (gomp_task_run_post_remove_taskgroup): Likewise.
6177 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6179 (GOMP_taskwait): Likewise.
6180 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6181 priority-queue_upgrade_task.
6182 (GOMP_taskgroup_start): Use priority queues.
6183 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6184 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6186 * taskloop.c (GOMP_taskloop): Handle priorities.
6187 * team.c (gomp_new_team): Call priority_queue_init.
6188 (free_team): Call priority_queue_free.
6189 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6190 team created for target nowait in implicit parallel region.
6191 (gomp_team_start): For nested check, test thr->ts.level instead of
6192 thr->ts.team != NULL.
6193 * testsuite/libgomp.c/doacross-3.c: New test.
6194 * testsuite/libgomp.c/ordered-5.c: New test.
6195 * testsuite/libgomp.c/priority.c: New test.
6196 * testsuite/libgomp.c/target-31.c: New test.
6197 * testsuite/libgomp.c/target-32.c: New test.
6198 * testsuite/libgomp.c/target-33.c: New test.
6199 * testsuite/libgomp.c/target-34.c: New test.
6201 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6203 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6205 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6208 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6210 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6211 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6213 2015-11-12 James Norris <jnorris@codesourcery.com>
6214 Joseph Myers <joseph@codesourcery.com>
6216 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6217 * oacc-parallel.c (GOACC_declare): New function.
6218 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6219 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6220 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6221 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6222 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6224 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6226 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6228 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6230 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6231 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6233 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6235 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6238 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6240 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6241 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6242 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6243 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6244 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6246 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6248 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6249 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6251 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6252 Ilya Verbin <ilya.verbin@intel.com>
6254 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6255 GOMP_loop_nonmonotonic_dynamic_start,
6256 GOMP_loop_nonmonotonic_guided_next,
6257 GOMP_loop_nonmonotonic_guided_start,
6258 GOMP_loop_ull_nonmonotonic_dynamic_next,
6259 GOMP_loop_ull_nonmonotonic_dynamic_start,
6260 GOMP_loop_ull_nonmonotonic_guided_next,
6261 GOMP_loop_ull_nonmonotonic_guided_start,
6262 GOMP_parallel_loop_nonmonotonic_dynamic,
6263 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6264 (GOMP_target_41): Renamed to ...
6265 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6267 (GOMP_target_data_41): Renamed to ...
6268 (GOMP_target_data_ext): ... this.
6269 (GOMP_target_update_41): Renamed to ...
6270 (GOMP_target_update_ext): ... this.
6271 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6272 GOMP_target_data_ext and GOMP_target_update_ext instead of
6273 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6274 Export GOMP_loop_nonmonotonic_dynamic_next,
6275 GOMP_loop_nonmonotonic_dynamic_start,
6276 GOMP_loop_nonmonotonic_guided_next,
6277 GOMP_loop_nonmonotonic_guided_start,
6278 GOMP_loop_ull_nonmonotonic_dynamic_next,
6279 GOMP_loop_ull_nonmonotonic_dynamic_start,
6280 GOMP_loop_ull_nonmonotonic_guided_next,
6281 GOMP_loop_ull_nonmonotonic_guided_start,
6282 GOMP_parallel_loop_nonmonotonic_dynamic and
6283 GOMP_parallel_loop_nonmonotonic_guided.
6284 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6285 GOMP_parallel_loop_nonmonotonic_guided,
6286 GOMP_loop_nonmonotonic_dynamic_start,
6287 GOMP_loop_nonmonotonic_guided_start,
6288 GOMP_loop_nonmonotonic_dynamic_next,
6289 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6290 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6291 GOMP_loop_ull_nonmonotonic_guided_start,
6292 GOMP_loop_ull_nonmonotonic_dynamic_next,
6293 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6294 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6296 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6297 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6298 Use gomp_map_val function.
6299 (gomp_target_fallback_firstprivate): New static function.
6300 (GOMP_target_41): Renamed to ...
6301 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6302 arguments. Move firstprivate fallback handling into a new
6304 (GOMP_target_data_41): Renamed to ...
6305 (GOMP_target_data_ext): ... this.
6306 (GOMP_target_update_41): Renamed to ...
6307 (GOMP_target_update_ext): ... this.
6308 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6309 gomp_map_0len_lookup instead of gomp_map_lookup.
6310 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6312 * testsuite/libgomp.c/target-28.c: Likewise.
6313 * testsuite/libgomp.c/monotonic-1.c: New test.
6314 * testsuite/libgomp.c/monotonic-2.c: New test.
6315 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6316 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6317 * testsuite/libgomp.c/pr66199-5.c: New test.
6318 * testsuite/libgomp.c/pr66199-6.c: New test.
6319 * testsuite/libgomp.c/pr66199-7.c: New test.
6320 * testsuite/libgomp.c/pr66199-8.c: New test.
6321 * testsuite/libgomp.c/pr66199-9.c: New test.
6322 * testsuite/libgomp.c/reduction-11.c: New test.
6323 * testsuite/libgomp.c/reduction-12.c: New test.
6324 * testsuite/libgomp.c/reduction-13.c: New test.
6325 * testsuite/libgomp.c/reduction-14.c: New test.
6326 * testsuite/libgomp.c/reduction-15.c: New test.
6327 * testsuite/libgomp.c/target-12.c (main): Adjust for
6328 omp_target_is_present change for one-past-last element.
6329 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6330 the same var is both mapped and privatized.
6331 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6332 handling of zero-length array sections.
6333 * testsuite/libgomp.c/target-28.c: New test.
6334 * testsuite/libgomp.c/target-29.c: New test.
6335 * testsuite/libgomp.c/target-30.c: New test.
6336 * testsuite/libgomp.c/target-teams-1.c: New test.
6337 * testsuite/libgomp.c++/member-6.C: New test.
6338 * testsuite/libgomp.c++/member-7.C: New test.
6339 * testsuite/libgomp.c++/monotonic-1.C: New test.
6340 * testsuite/libgomp.c++/monotonic-2.C: New test.
6341 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6342 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6343 * testsuite/libgomp.c++/pr66199-3.C: New test.
6344 * testsuite/libgomp.c++/pr66199-4.C: New test.
6345 * testsuite/libgomp.c++/pr66199-5.C: New test.
6346 * testsuite/libgomp.c++/pr66199-6.C: New test.
6347 * testsuite/libgomp.c++/pr66199-7.C: New test.
6348 * testsuite/libgomp.c++/pr66199-8.C: New test.
6349 * testsuite/libgomp.c++/pr66199-9.C: New test.
6350 * testsuite/libgomp.c++/reduction-11.C: New test.
6351 * testsuite/libgomp.c++/reduction-12.C: New test.
6352 * testsuite/libgomp.c++/target-13.C: New test.
6353 * testsuite/libgomp.c++/target-14.C: New test.
6354 * testsuite/libgomp.c++/target-15.C: New test.
6355 * testsuite/libgomp.c++/target-16.C: New test.
6356 * testsuite/libgomp.c++/target-17.C: New test.
6357 * testsuite/libgomp.c++/target-18.C: New test.
6358 * testsuite/libgomp.c++/target-19.C: New test.
6360 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6362 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6364 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6365 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6366 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6367 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6368 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6369 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6370 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6371 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6373 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6375 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6377 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6379 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6381 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6382 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6383 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6384 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6385 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6386 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6387 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6388 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6390 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6392 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6393 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6394 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6395 * oacc-host.c (host_openacc_exec): Likewise.
6396 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6398 2015-11-03 Julian Brown <julian@codesourcery.com>
6399 Thomas Schwinge <thomas@codesourcery.com>
6401 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6402 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6403 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6405 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6406 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6408 2015-11-03 James Norris <jnorris@codesourcery.com>
6410 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6412 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6414 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6416 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6417 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6418 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6420 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6422 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6424 (enum acc_async_t): Reformat.
6425 (acc_on_device): Declare compatible with builtin and provide C++
6427 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6429 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6430 Cesar Philippidis <cesar@codesourcery.com>
6432 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6433 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6434 ... this. Add a description of the test at the top of the file.
6435 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6436 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6437 ... this. Add a description of the test at the top of the file.
6439 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6441 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6442 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6443 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6444 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6445 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6446 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6448 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6450 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6453 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6456 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6458 2015-10-27 James Norris <jnorris@codesourcery.com>
6460 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6461 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6463 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6465 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6466 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6468 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6469 acc_device_nvidia usage.
6470 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6471 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6474 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6475 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6478 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6482 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6483 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6485 2015-10-23 Tom de Vries <tom@codesourcery.com>
6488 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6490 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6492 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6494 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6496 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6497 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6499 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6500 to 0 when mapnum is 0.
6502 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6504 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6505 Cast to int from int32_t.
6507 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6508 Aldy Hernandez <aldyh@redhat.com>
6509 Ilya Verbin <ilya.verbin@intel.com>
6511 * config/linux/affinity.c (omp_get_place_num_procs,
6512 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6513 * config/linux/doacross.h: New file.
6514 * config/posix/affinity.c (omp_get_place_num_procs,
6515 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6516 * config/posix/doacross.h: New file.
6517 * env.c: Include gomp-constants.h.
6518 (struct gomp_task_icv): Rename run_sched_modifier to
6519 run_sched_chunk_size.
6520 (gomp_max_task_priority_var): New variable.
6521 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6522 (handle_omp_display_env): Change _OPENMP value from 201307 to
6523 201511. Print OMP_MAX_TASK_PRIORITY.
6524 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6525 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6526 chunk_size and run_sched_modifier to run_sched_chunk_size.
6527 (omp_get_max_task_priority, omp_get_initial_device,
6528 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6529 omp_get_partition_place_nums): New functions.
6530 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6531 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6533 (omp_get_num_places_, omp_get_place_num_procs_,
6534 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6535 omp_get_place_proc_ids_8_, omp_get_place_num_,
6536 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6537 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6538 omp_get_max_task_priority_): New functions.
6539 * libgomp_g.h (GOMP_loop_doacross_static_start,
6540 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6541 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6542 GOMP_loop_ull_doacross_dynamic_start,
6543 GOMP_loop_ull_doacross_guided_start,
6544 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6545 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6546 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6547 GOMP_target_data_41, GOMP_target_update_41,
6548 GOMP_target_enter_exit_data): New prototypes.
6549 (GOMP_task): Add prototype argument.
6550 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6551 (struct gomp_doacross_work_share): New type.
6552 (struct gomp_work_share): Add doacross field.
6553 (struct gomp_task_icv): Rename run_sched_modifier to
6554 run_sched_chunk_size.
6555 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6556 GOMP_TASK_UNDEFERRED. Add comments.
6557 (struct gomp_task_depend_entry): Add comments.
6558 (struct gomp_task): Likewise.
6559 (struct gomp_taskgroup): Likewise.
6560 (struct gomp_target_task): New type.
6561 (struct gomp_team): Add comment.
6562 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6563 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6564 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6565 (struct target_var_desc): New type.
6566 (struct target_mem_desc): Adjust comment. Use struct
6567 target_var_desc instead of splay_tree_key for list.
6568 (REFCOUNT_INFINITY): Define.
6569 (struct splay_tree_key_s): Remove copy_from field.
6570 (struct gomp_device_descr): Add dev2dev_func field.
6571 (enum gomp_map_vars_kind): New enum.
6572 (gomp_map_vars): Add one argument.
6573 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6574 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6575 omp_get_place_num_procs, omp_get_place_num_procs_,
6576 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6577 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6578 omp_get_place_num_, omp_get_partition_num_places,
6579 omp_get_partition_num_places_, omp_get_partition_place_nums,
6580 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6581 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6582 omp_target_free, omp_target_is_present, omp_target_memcpy,
6583 omp_target_memcpy_rect, omp_target_associate_ptr and
6584 omp_target_disassociate_ptr.
6585 (GOMP_4.0.2): Renamed to ...
6586 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6587 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6588 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6589 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6590 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6591 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6592 GOMP_loop_ull_doacross_guided_start,
6593 GOMP_loop_ull_doacross_runtime_start,
6594 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6595 GOMP_doacross_ull_wait.
6596 * libgomp.texi: Document omp_get_max_task_priority.
6597 Rename modifier argument to chunk_size for omp_set_schedule and
6598 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6599 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6600 to run_sched_chunk_size renaming.
6601 (GOMP_loop_ordered_runtime_start): Likewise.
6602 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6603 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6604 GOMP_parallel_loop_runtime_start): New functions.
6605 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6606 to run_sched_chunk_size renaming.
6607 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6608 GOMP_loop_doacross_guided_start): New functions or aliases.
6609 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6610 run_sched_modifier to run_sched_chunk_size renaming.
6611 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6612 (gomp_loop_ull_doacross_static_start,
6613 gomp_loop_ull_doacross_dynamic_start,
6614 gomp_loop_ull_doacross_guided_start,
6615 GOMP_loop_ull_doacross_runtime_start): New functions.
6616 (GOMP_loop_ull_doacross_static_start,
6617 GOMP_loop_ull_doacross_dynamic_start,
6618 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6619 * oacc-mem.c (acc_map_data, present_create_copy,
6620 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6622 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6623 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6624 instead of false to gomp_map_vars.
6625 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6626 * omp.h.in (omp_lock_hint_t): New type.
6627 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6628 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6629 omp_get_place_num, omp_get_partition_num_places,
6630 omp_get_partition_place_nums, omp_get_initial_device,
6631 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6632 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6633 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6635 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6636 (omp_lock_hint_none, omp_lock_hint_uncontended,
6637 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6638 omp_lock_hint_speculative): New parameters.
6639 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6640 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6641 omp_get_place_num, omp_get_partition_num_places,
6642 omp_get_partition_place_nums, omp_get_initial_device,
6643 omp_get_max_task_priority): New interfaces.
6644 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6646 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6647 (omp_lock_hint_none, omp_lock_hint_uncontended,
6648 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6649 omp_lock_hint_speculative): New parameters.
6650 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6651 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6652 omp_get_place_num, omp_get_partition_num_places,
6653 omp_get_partition_place_nums, omp_get_initial_device,
6654 omp_get_max_task_priority): New functions and subroutines.
6655 * ordered.c: Include stdarg.h and string.h.
6656 (MAX_COLLAPSED_BITS): Define.
6657 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6658 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6659 GOMP_doacross_ull_wait): New functions.
6660 * target.c: Include errno.h.
6661 (resolve_device): If device is not initialized, call
6662 gomp_init_device on it.
6663 (gomp_map_lookup): New function.
6664 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6665 Don't bump refcount if REFCOUNT_INFINITY. Handle
6666 GOMP_MAP_ALWAYS_TO_P.
6667 (get_kind): Rename is_openacc argument to short_mapkind.
6668 (gomp_map_pointer): Use gomp_map_lookup.
6669 (gomp_map_fields_existing): New function.
6670 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6671 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6672 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6673 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6674 Adjust for tgt->list changed type and copy_from living in there.
6675 (gomp_copy_from_async): Adjust for tgt->list changed type and
6676 copy_from living in there.
6677 (gomp_unmap_vars): Likewise.
6678 (gomp_update): Likewise. Rename is_openacc argument to
6679 short_mapkind. Don't fail if object is not mapped.
6680 (gomp_load_image_to_device): Initialize refcount to
6682 (gomp_target_fallback): New function.
6683 (gomp_get_target_fn_addr): Likewise.
6684 (GOMP_target): Adjust gomp_map_vars caller, use
6685 gomp_get_target_fn_addr and gomp_target_fallback.
6686 (GOMP_target_41): New function.
6687 (gomp_target_data_fallback): New function.
6688 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6689 (GOMP_target_data_41): New function.
6690 (GOMP_target_update): Adjust gomp_update caller.
6691 (GOMP_target_update_41): New function.
6692 (gomp_exit_data, GOMP_target_enter_exit_data,
6693 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6694 omp_target_is_present, omp_target_memcpy,
6695 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6696 omp_target_associate_ptr, omp_target_disassociate_ptr,
6697 gomp_load_plugin_for_device): New functions.
6698 * task.c: Include gomp-constants.h. Include taskloop.c
6699 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6700 (gomp_task_handle_depend): New function.
6701 (GOMP_task): Use it. Add priority argument. Use
6702 gomp-constant.h constants instead of hardcoded numbers.
6703 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6704 (gomp_create_target_task): New function.
6705 (verify_children_queue, verify_taskgroup_queue,
6706 verify_task_queue): New functions.
6707 (gomp_task_run_pre): Call verify_*_queue functions.
6708 If an upcoming tied task is about to leave the sibling or
6709 taskgroup queues in an invalid state, adjust appropriately.
6710 Remove taskgroup argument. Add comments.
6711 (gomp_task_run_post_handle_dependers): Add comments.
6712 (gomp_task_run_post_remove_parent): Likewise.
6713 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6714 (GOMP_taskwait): Likewise. Add comments.
6715 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6716 problem such that the first non parent_depends_on task does not
6717 end up at the end of the children queue.
6718 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6719 GOMP_TASK_UNDEFERRED.
6720 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6721 * taskloop.c: New file.
6722 * testsuite/lib/libgomp.exp
6723 (check_effective_target_offload_device_nonshared_as): New proc.
6724 * testsuite/libgomp.c/affinity-2.c: New test.
6725 * testsuite/libgomp.c/doacross-1.c: New test.
6726 * testsuite/libgomp.c/doacross-2.c: New test.
6727 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6728 Add map clause to target.
6729 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6730 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6731 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6732 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6733 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6735 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6736 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6737 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6738 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6739 not defined. Use those where needed.
6740 * testsuite/libgomp.c/for-4.c: New test.
6741 * testsuite/libgomp.c/for-5.c: New test.
6742 * testsuite/libgomp.c/for-6.c: New test.
6743 * testsuite/libgomp.c/linear-1.c: New test.
6744 * testsuite/libgomp.c/ordered-4.c: New test.
6745 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6746 only allowed on the loop iterator.
6747 * testsuite/libgomp.c/pr66199-3.c: New test.
6748 * testsuite/libgomp.c/pr66199-4.c: New test.
6749 * testsuite/libgomp.c/reduction-7.c: New test.
6750 * testsuite/libgomp.c/reduction-8.c: New test.
6751 * testsuite/libgomp.c/reduction-9.c: New test.
6752 * testsuite/libgomp.c/reduction-10.c: New test.
6753 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6755 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6756 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6757 * testsuite/libgomp.c/target-11.c: New test.
6758 * testsuite/libgomp.c/target-12.c: New test.
6759 * testsuite/libgomp.c/target-13.c: New test.
6760 * testsuite/libgomp.c/target-14.c: New test.
6761 * testsuite/libgomp.c/target-15.c: New test.
6762 * testsuite/libgomp.c/target-16.c: New test.
6763 * testsuite/libgomp.c/target-17.c: New test.
6764 * testsuite/libgomp.c/target-18.c: New test.
6765 * testsuite/libgomp.c/target-19.c: New test.
6766 * testsuite/libgomp.c/target-20.c: New test.
6767 * testsuite/libgomp.c/target-21.c: New test.
6768 * testsuite/libgomp.c/target-22.c: New test.
6769 * testsuite/libgomp.c/target-23.c: New test.
6770 * testsuite/libgomp.c/target-24.c: New test.
6771 * testsuite/libgomp.c/target-25.c: New test.
6772 * testsuite/libgomp.c/target-26.c: New test.
6773 * testsuite/libgomp.c/target-27.c: New test.
6774 * testsuite/libgomp.c/taskloop-1.c: New test.
6775 * testsuite/libgomp.c/taskloop-2.c: New test.
6776 * testsuite/libgomp.c/taskloop-3.c: New test.
6777 * testsuite/libgomp.c/taskloop-4.c: New test.
6778 * testsuite/libgomp.c++/ctor-13.C: New test.
6779 * testsuite/libgomp.c++/doacross-1.C: New test.
6780 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6781 Replace offload_device with offload_device_nonshared_as.
6782 * testsuite/libgomp.c++/for-12.C: New test.
6783 * testsuite/libgomp.c++/for-13.C: New test.
6784 * testsuite/libgomp.c++/for-14.C: New test.
6785 * testsuite/libgomp.c++/linear-1.C: New test.
6786 * testsuite/libgomp.c++/member-1.C: New test.
6787 * testsuite/libgomp.c++/member-2.C: New test.
6788 * testsuite/libgomp.c++/member-3.C: New test.
6789 * testsuite/libgomp.c++/member-4.C: New test.
6790 * testsuite/libgomp.c++/member-5.C: New test.
6791 * testsuite/libgomp.c++/ordered-1.C: New test.
6792 * testsuite/libgomp.c++/reduction-5.C: New test.
6793 * testsuite/libgomp.c++/reduction-6.C: New test.
6794 * testsuite/libgomp.c++/reduction-7.C: New test.
6795 * testsuite/libgomp.c++/reduction-8.C: New test.
6796 * testsuite/libgomp.c++/reduction-9.C: New test.
6797 * testsuite/libgomp.c++/reduction-10.C: New test.
6798 * testsuite/libgomp.c++/reference-1.C: New test.
6799 * testsuite/libgomp.c++/simd14.C: New test.
6800 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6801 * testsuite/libgomp.c++/target-5.C: New test.
6802 * testsuite/libgomp.c++/target-6.C: New test.
6803 * testsuite/libgomp.c++/target-7.C: New test.
6804 * testsuite/libgomp.c++/target-8.C: New test.
6805 * testsuite/libgomp.c++/target-9.C: New test.
6806 * testsuite/libgomp.c++/target-10.C: New test.
6807 * testsuite/libgomp.c++/target-11.C: New test.
6808 * testsuite/libgomp.c++/target-12.C: New test.
6809 * testsuite/libgomp.c++/taskloop-1.C: New test.
6810 * testsuite/libgomp.c++/taskloop-2.C: New test.
6811 * testsuite/libgomp.c++/taskloop-3.C: New test.
6812 * testsuite/libgomp.c++/taskloop-4.C: New test.
6813 * testsuite/libgomp.c++/taskloop-5.C: New test.
6814 * testsuite/libgomp.c++/taskloop-6.C: New test.
6815 * testsuite/libgomp.c++/taskloop-7.C: New test.
6816 * testsuite/libgomp.c++/taskloop-8.C: New test.
6817 * testsuite/libgomp.c++/taskloop-9.C: New test.
6818 * testsuite/libgomp.fortran/affinity1.f90: New test.
6819 * testsuite/libgomp.fortran/affinity2.f90: New test.
6821 2015-10-13 Tom de Vries <tom@codesourcery.com>
6823 PR tree-optimization/67476
6824 * testsuite/libgomp.c/autopar-3.c: New test.
6825 * testsuite/libgomp.c/autopar-4.c: New test.
6826 * testsuite/libgomp.c/autopar-5.c: New test.
6827 * testsuite/libgomp.c/autopar-6.c: New test.
6828 * testsuite/libgomp.c/autopar-7.c: New test.
6829 * testsuite/libgomp.c/autopar-8.c: New test.
6831 2015-10-12 James Norris <jnorris@codesourcery.com>
6833 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6836 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6838 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6841 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6843 * oacc-ptx.h: Remove file, moving its content into...
6844 * config/nvptx/fortran.c: ... here...
6845 * config/nvptx/oacc-init.c: ..., here...
6846 * config/nvptx/oacc-parallel.c: ..., and here.
6847 * config/nvptx/openacc.f90: New file.
6848 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6849 (link_ptx): Don't link in predefined bits of PTX code.
6851 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6852 Bernd Schmidt <bernds@codesourcery.com>
6854 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6855 (struct targ_ptx_obj): New.
6856 (nvptx_tdata): Move earlier, change data format.
6857 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6859 (GOMP_OFFLOAD_load_image): Adjust.
6861 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6863 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6864 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6870 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6875 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6876 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6877 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6878 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6917 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6918 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6919 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6920 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6921 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6922 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6923 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6924 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6925 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6927 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6929 * oacc-init.c (acc_on_device): Force optimization level.
6931 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6933 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6934 (cuda_errlist): Delete.
6935 (cuda_error): Reimplement.
6937 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6939 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6941 * libgomp.map (GOACC_parallel_keyed): New.
6942 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6944 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6945 and take keyed varargs list. Adjust call to exec_func.
6946 (GOACC_parallel): Force host fallback.
6947 * libgomp_g.h (GOACC_parallel): Remove.
6948 (GOACC_parallel_keyed): Declare.
6949 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6950 (struct targ_gn_descriptor): Replace name field with launch field.
6951 (nvptx_exec): Lose separate geometry args, take array. Process
6952 dynamic dimensions and adjust.
6953 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6954 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6956 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6958 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6961 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6964 * oacc-int.h (goacc_host_init): Add declaration.
6965 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6966 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6968 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6969 Sebastian Pop <s.pop@samsung.com>
6971 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6973 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6974 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6975 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6976 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6977 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6979 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6981 * configure.tgt: Add missing ;; in between nvptx and rtems
6984 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6986 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6987 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6988 (gomp_thread_pool_reservoir): Add priority member.
6989 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6991 (parse_thread_pools): Likewise.
6992 * team.c (gomp_team_start): Call configuration provided
6993 gomp_adjust_thread_attr(). Destroy thread attributes if
6995 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6997 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6999 * config/posix/pool.h: New.
7000 * config/rtems/pool.h: Likewise.
7001 * config/rtems/proc.c: Likewise.
7002 * libgomp.h (gomp_thread_destructor): Declare.
7003 * team.c: Include configuration provided "pool.h".
7004 (gomp_get_thread_pool): Define in configuration.
7005 (gomp_team_end): Call configuration defined
7006 gomp_release_thread_pool().
7008 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7010 * config/rtems/bar.c: New.
7011 * config/rtems/bar.h: Likewise.
7012 * config/rtems/mutex.c: Likewise.
7013 * config/rtems/mutex.h: Likewise.
7014 * config/rtems/sem.c: Likewise.
7015 * config/rtems/sem.h: Likewise.
7016 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7017 <sys/lock.h> header file.
7018 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7019 supported by Newlib.
7020 * configure: Regenerate.
7022 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7024 * team.c (gomp_new_thread_pool): Delete and move content to ...
7025 (gomp_get_thread_pool): ... new function. Allocate and
7026 initialize thread pool on demand.
7027 (get_last_team): Use gomp_get_thread_pool().
7028 (gomp_team_start): Delete thread pool initialization.
7030 2015-09-03 Tom de Vries <tom@codesourcery.com>
7032 PR tree-optimization/65637
7033 * testsuite/libgomp.c/autopar-2.c: New test.
7035 2015-08-29 Tom de Vries <tom@codesourcery.com>
7037 PR tree-optimization/46193
7038 * testsuite/libgomp.c/pr46193.c: New test.
7040 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7043 * libgomp.map: Add 4.0.2 version.
7044 * target.c (offload_image_descr): Add version field.
7045 (gomp_load_image_to_device): Add version argument. Adjust plugin
7046 call. Improve load mismatch diagnostic.
7047 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7049 (GOMP_offload_regster): Make stub function, move bulk to ...
7050 (GOMP_offload_register_ver): ... here. Process version argument.
7051 (GOMP_offload_unregister): Make stub function, move bulk to ...
7052 (GOMP_offload_unregister_ver): ... here. Process version argument.
7053 (gomp_init_device): Process version field.
7054 (gomp_unload_device): Process version field.
7055 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7056 macros. Check plugin version.
7057 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7058 loader and unloader types.
7059 * oacc-host.c: Include gomp-constants.h.
7060 (host_version): New.
7061 (host_load_image, host_unload_image): Adjust.
7062 (host_dispatch): Add host_version.
7063 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7064 (GOMP_OFFLOAD_version): New.
7065 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7066 (GOMP_OFFLOAD_unload_image): Likewise.
7067 * plugin/plugin-host.c: Include gomp-constants.h.
7068 (GOMP_OFFLOAD_version): New.
7069 (GOMP_OFFLOAD_load_image): Add version arg.
7070 (GOMP_OFFLOAD_unload_image): Likewise.
7072 2015-08-24 Tom de Vries <tom@codesourcery.com>
7074 PR tree-optimization/65468
7075 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7077 2015-08-24 Tom de Vries <tom@codesourcery.com>
7079 PR tree-optimization/65468
7080 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7082 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7086 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7087 (gomp_iter_guided_next): Idem.
7088 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7089 (gomp_iter_ull_guided_next): Idem.
7090 * config/linux/wait.h (do_spin): Idem.
7092 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7094 * libgomp-plugin.h (enum offload_target_type): Remove
7095 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7096 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7097 * openacc.h (enum acc_device_t): Likewise.
7098 * openacc_lib.h: Likewise.
7099 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7100 (acc_on_device): Just use __builtin_acc_on_device.
7101 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7102 of acc_on_device builtin.
7103 * plugin/plugin-host.h: Remove file.
7104 * plugin/plugin-host.c: Likewise, but salvage some content into...
7105 * oacc-host.c: ... this file.
7106 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7107 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7108 * Makefile.in: Regenerate.
7109 * configure: Likewise.
7110 * testsuite/lib/libgomp.exp
7111 (check_effective_target_openacc_host_nonshm_selected): Remove.
7112 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7113 ACC_DEVICE_TYPE=host_nonshm.
7114 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7115 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7116 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7117 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7118 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7119 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7121 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7122 Jakub Jelinek <jakub@redhat.com>
7124 * config/nvptx/affinity.c: New file.
7125 * config/nvptx/alloc.c: Likewise.
7126 * config/nvptx/bar.c: Likewise.
7127 * config/nvptx/barrier.c: Likewise.
7128 * config/nvptx/critical.c: Likewise.
7129 * config/nvptx/env.c: Likewise.
7130 * config/nvptx/error.c: Likewise.
7131 * config/nvptx/fortran.c: Likewise.
7132 * config/nvptx/iter.c: Likewise.
7133 * config/nvptx/iter_ull.c: Likewise.
7134 * config/nvptx/libgomp-plugin.c: Likewise.
7135 * config/nvptx/lock.c: Likewise.
7136 * config/nvptx/loop.c: Likewise.
7137 * config/nvptx/loop_ull.c: Likewise.
7138 * config/nvptx/mutex.c: Likewise.
7139 * config/nvptx/oacc-async.c: Likewise.
7140 * config/nvptx/oacc-cuda.c: Likewise.
7141 * config/nvptx/oacc-host.c: Likewise.
7142 * config/nvptx/oacc-init.c: Likewise.
7143 * config/nvptx/oacc-mem.c: Likewise.
7144 * config/nvptx/oacc-parallel.c: Likewise.
7145 * config/nvptx/oacc-plugin.c: Likewise.
7146 * config/nvptx/omp-lock.h: Likewise.
7147 * config/nvptx/ordered.c: Likewise.
7148 * config/nvptx/parallel.c: Likewise.
7149 * config/nvptx/proc.c: Likewise.
7150 * config/nvptx/ptrlock.c: Likewise.
7151 * config/nvptx/sections.c: Likewise.
7152 * config/nvptx/sem.c: Likewise.
7153 * config/nvptx/single.c: Likewise.
7154 * config/nvptx/splay-tree.c: Likewise.
7155 * config/nvptx/target.c: Likewise.
7156 * config/nvptx/task.c: Likewise.
7157 * config/nvptx/team.c: Likewise.
7158 * config/nvptx/time.c: Likewise.
7159 * config/nvptx/work.c: Likewise.
7160 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7161 * configure: Regenerate.
7162 * configure.tgt (config_path): Set to "nvptx" for target
7165 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7167 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7169 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7171 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7172 (cuda_errlist): Constify.
7173 (errmsg): Move into ...
7174 (cuda_error): ... here. Make smaller.
7175 (_XSTR, _STR): Delete.
7176 (cuda_synames): Delete.
7177 (verify_device_library): Delete.
7178 (nvptx_init): Don't call it.
7180 2015-07-28 Tom de Vries <tom@codesourcery.com>
7182 * testsuite/libgomp.c/uns-outer-4.c: New test.
7184 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7186 * testsuite/libgomp.c/pr66714.c: New test.
7188 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7191 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7192 (fib_ref): New function.
7193 (fib): Correct corner cases in the recursion.
7194 (main): Replace the non-simd loop with fib_ref call.
7195 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7197 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7198 for the last array element value. Replace the non-simd loop with
7199 fib_ref call. Remove redundant b_ref array. Remove the comparison
7200 of the last array element with according Fibonacci sequence element.
7201 (fib): Correct corner cases in the recursion.
7203 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7205 * target.c (gomp_offload_image_to_device): Rename to ...
7206 (gomp_load_image_to_device): ... here.
7207 (GOMP_offload_register): Adjust call.
7208 (gomp_init_device): Likewise.
7209 (gomp_unload_image_from_device): New. Broken out of ...
7210 (GOMP_offload_unregister): ... here. Call it.
7211 (gomp_unload_device): New.
7212 * libgomp.h (gomp_unload_device): Declare.
7213 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7216 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7218 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7220 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7222 (goacc_waits): Move !num_waits handling to ...
7223 (GOACC_wait): ... here, the only caller that might have zero waits.
7225 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7226 (struct ptx_image_data): Move earlier, add fns field.
7227 (struct ptx_device): Add images and image_lock fields.
7228 (ptx_images, ptx_image_lock): Delete.
7229 (nvptx_open_device): Initialize images and image_lock fields.
7230 (nvptx_close_device): Destroy image_lock.
7231 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7232 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7235 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7237 * target.c (GOMP_offload_register): Use int for device type arg.
7238 (GOMP_offload_unregister): Likewise.
7240 * target.c (struct_offload_image_descr): Constify host_table.
7241 (gomp_offload_image_to_device): Likewise.
7242 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7244 * libgomp.h (gomp_device_descr): Constify target data arguments.
7245 * target.c (struct offload_image_descr): Constify target_data.
7246 (gomp_offload_image_to_device): Likewise.
7247 (GOMP_offload_register): Likewise.
7248 (GOMP_offload_unregister): Likewise.
7249 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7250 GOMP_OFFLOAD_unload_image): Constify target data.
7251 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7252 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7254 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7256 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7257 Workaround driver library const error.
7258 (struct nvptx_tdata, nvptx_tdata_t): New.
7259 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7262 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7264 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7265 of EPS parameter from integer to real.
7266 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7267 type of EPS parameter from integer to real.
7269 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7271 * team.c (get_last_team): New.
7272 (gomp_new_team): Recycle last non-nested team if possible.
7273 (gomp_team_end): Move team work share list free lock destruction
7275 (free_team): ... here.
7277 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7279 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7280 and ref from int to double. Replaced their comparison with
7281 an inequality of their difference and EPS.
7282 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7283 comparison of pri and a reference number with an inequality of their
7285 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7286 the comparison of sum and sum_ref with an inequality of their
7288 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7289 the comparison of pri and a reference number with an inequality of
7290 their difference and EPS.
7292 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7294 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7295 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7296 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7297 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7298 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7299 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7300 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7301 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7302 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7303 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7304 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7305 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7306 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7308 (vec_mult): Likewise. Add #pragma omp taskwait.
7309 (main): Adjust caller.
7310 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7311 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7312 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7313 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7314 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7315 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7316 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7317 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7318 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7319 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7320 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7321 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7322 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7323 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7324 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7325 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7326 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7327 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7328 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7329 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7330 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7331 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7332 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7333 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7334 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7335 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7336 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7337 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7338 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7339 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7340 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7341 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7342 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7343 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7344 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7345 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7346 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7347 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7348 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7349 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7350 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7351 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7352 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7353 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7354 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7355 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7356 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7357 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7358 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7359 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7360 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7361 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7362 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7363 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7364 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7365 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7366 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7367 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7368 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7369 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7370 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7371 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7372 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7373 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7374 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7375 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7376 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7377 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7378 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7379 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7380 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7381 (vec_mult): Add !$omp taskwait.
7382 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7383 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7384 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7385 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7386 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7387 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7388 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7389 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7390 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7391 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7392 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7393 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7394 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7395 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7396 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7397 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7398 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7399 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7400 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7401 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7402 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7403 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7404 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7405 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7406 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7407 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7408 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7409 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7410 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7411 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7412 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7413 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7414 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7415 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7416 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7417 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7418 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7419 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7420 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7421 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7422 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7423 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7424 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7425 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7426 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7427 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7428 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7429 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7430 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7431 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7432 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7433 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7434 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7435 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7436 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7437 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7438 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7439 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7440 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7441 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7442 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7443 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7444 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7445 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7446 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7447 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7448 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7450 2015-07-10 Tom de Vries <tom@codesourcery.com>
7452 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7453 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7455 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7458 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7459 in a 64-bit configuration.
7460 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7461 offloading testing if no such device is available.
7462 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7463 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7465 2015-07-08 Tom de Vries <tom@codesourcery.com>
7467 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7469 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7471 2015-07-07 Tom de Vries <tom@codesourcery.com>
7473 PR tree-optimization/66642
7474 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7475 iteration count case.
7476 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7477 function, factor out of ...
7478 (main): ... here. Test low iteration count case.
7480 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7482 * libgomp.h (gomp_thread_pool): Comment last_team field.
7484 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7486 * testsuite/libgomp.c++/pr66702-1.C: Require
7487 vect_simd_clones effective target.
7488 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7490 2015-06-30 Tom de Vries <tom@codesourcery.com>
7492 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7493 already set. Use DEFAULT_CFLAGS in dg-runtest.
7494 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7497 2015-06-30 Tom de Vries <tom@codesourcery.com>
7499 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7500 already set. Use DEFAULT_CFLAGS in dg-runtest.
7501 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7502 * testsuite/libgomp.c++/pr64824.C: Same.
7503 * testsuite/libgomp.c++/pr64868.C: Same.
7504 * testsuite/libgomp.c++/pr66199-1.C: Same.
7505 * testsuite/libgomp.c++/pr66199-2.C: Same.
7506 * testsuite/libgomp.c++/target-2.C: Same.
7507 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7508 -std=<standard> option.
7509 * testsuite/libgomp.c++/udr-11.C: Same.
7510 * testsuite/libgomp.c++/udr-12.C: Same.
7511 * testsuite/libgomp.c++/udr-13.C: Same.
7512 * testsuite/libgomp.c++/udr-14.C: Same.
7513 * testsuite/libgomp.c++/udr-15.C: Same.
7514 * testsuite/libgomp.c++/udr-16.C: Same.
7515 * testsuite/libgomp.c++/udr-17.C: Same.
7516 * testsuite/libgomp.c++/udr-18.C: Same.
7517 * testsuite/libgomp.c++/udr-19.C: Same.
7518 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7519 * testsuite/libgomp.c++/simd-1.C: Same.
7520 * testsuite/libgomp.c++/simd-2.C: Same.
7521 * testsuite/libgomp.c++/simd-3.C: Same.
7522 * testsuite/libgomp.c++/simd-4.C: Same.
7523 * testsuite/libgomp.c++/simd-5.C: Same.
7524 * testsuite/libgomp.c++/simd-6.C: Same.
7525 * testsuite/libgomp.c++/simd-7.C: Same.
7526 * testsuite/libgomp.c++/simd-8.C: Same.
7527 * testsuite/libgomp.c++/simd-9.C: Same.
7528 * testsuite/libgomp.c++/simd10.C: Same.
7529 * testsuite/libgomp.c++/simd11.C: Same.
7530 * testsuite/libgomp.c++/simd12.C: Same.
7531 * testsuite/libgomp.c++/simd13.C: Same.
7533 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7536 * testsuite/libgomp.c++/pr66702-1.C: New test.
7537 * testsuite/libgomp.c++/pr66702-2.C: New test.
7539 2015-06-30 Tom de Vries <tom@codesourcery.com>
7541 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7542 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7543 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7544 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7546 2015-06-30 Tom de Vries <tom@codesourcery.com>
7548 PR tree-optimization/66652
7549 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7550 using restrict pointers.
7551 (main): Add arguments to calls to f.
7552 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7554 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7556 * configure.ac: Fix check for header <sys/sysctl.h>.
7557 * configure: Regenerate.
7558 * config.h.in: Likewise.
7560 2015-06-23 Tom de Vries <tom@codesourcery.com>
7562 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7564 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7566 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7568 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7572 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7573 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7575 2015-06-15 Tom de Vries <tom@codesourcery.com>
7577 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7578 dg-additional-options for any remaining options.
7579 * testsuite/libgomp.c/atomic-2.c: Same.
7580 * testsuite/libgomp.c/atomic-4.c: Same.
7581 * testsuite/libgomp.c/atomic-5.c: Same.
7582 * testsuite/libgomp.c/atomic-6.c: Same.
7583 * testsuite/libgomp.c/autopar-1.c: Same.
7584 * testsuite/libgomp.c/copyin-1.c: Same.
7585 * testsuite/libgomp.c/copyin-2.c: Same.
7586 * testsuite/libgomp.c/copyin-3.c: Same.
7587 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7588 * testsuite/libgomp.c/nestedfn-5.c: Same.
7589 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7590 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7591 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7592 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7593 * testsuite/libgomp.c/pr32362-1.c: Same.
7594 * testsuite/libgomp.c/pr32362-2.c: Same.
7595 * testsuite/libgomp.c/pr32362-3.c: Same.
7596 * testsuite/libgomp.c/pr39591-1.c: Same.
7597 * testsuite/libgomp.c/pr39591-2.c: Same.
7598 * testsuite/libgomp.c/pr39591-3.c: Same.
7599 * testsuite/libgomp.c/pr58392.c: Same.
7600 * testsuite/libgomp.c/pr58756.c: Same.
7601 * testsuite/libgomp.c/simd-1.c: Same.
7602 * testsuite/libgomp.c/simd-10.c: Same.
7603 * testsuite/libgomp.c/simd-11.c: Same.
7604 * testsuite/libgomp.c/simd-12.c: Same.
7605 * testsuite/libgomp.c/simd-13.c: Same.
7606 * testsuite/libgomp.c/simd-14.c: Same.
7607 * testsuite/libgomp.c/simd-15.c: Same.
7608 * testsuite/libgomp.c/simd-2.c: Same.
7609 * testsuite/libgomp.c/simd-3.c: Same.
7610 * testsuite/libgomp.c/simd-4.c: Same.
7611 * testsuite/libgomp.c/simd-5.c: Same.
7612 * testsuite/libgomp.c/simd-6.c: Same.
7613 * testsuite/libgomp.c/simd-7.c: Same.
7614 * testsuite/libgomp.c/simd-8.c: Same.
7615 * testsuite/libgomp.c/simd-9.c: Same.
7617 2015-06-15 Tom de Vries <tom@codesourcery.com>
7619 * testsuite/libgomp.c/pr35625.c: Fix typo.
7621 2015-06-15 Tom de Vries <tom@codesourcery.com>
7623 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7625 * testsuite/libgomp.c/atomic-3.c: Same.
7626 * testsuite/libgomp.c/debug-1.c: Same.
7627 * testsuite/libgomp.c/nqueens-1.c: Same.
7628 * testsuite/libgomp.c/pr26171.c: Same.
7629 * testsuite/libgomp.c/pr48591.c: Same.
7630 * testsuite/libgomp.c/pr64824.c: Same.
7631 * testsuite/libgomp.c/pr64868.c: Same.
7632 * testsuite/libgomp.c/pr66133.c: Same.
7633 * testsuite/libgomp.c/pr66199-1.c: Same.
7634 * testsuite/libgomp.c/pr66199-2.c: Same.
7635 * testsuite/libgomp.c/target-8.c: Same.
7637 2015-06-15 Tom de Vries <tom@codesourcery.com>
7639 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7641 * testsuite/libgomp.c/for-1.c: Same.
7642 * testsuite/libgomp.c/for-2.c: Same.
7643 * testsuite/libgomp.c/for-3.c: Same.
7644 * testsuite/libgomp.c/pr35625.c: Same.
7645 * testsuite/libgomp.c/pr39154.c: Same.
7646 * testsuite/libgomp.c/simd-16.c: Same.
7647 * testsuite/libgomp.c/simd-17.c: Same.
7649 2015-06-13 Tom de Vries <tom@codesourcery.com>
7651 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7653 2015-06-13 Tom de Vries <tom@codesourcery.com>
7655 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7656 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7657 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7659 (main): Use N instead of hardcoded constants.
7661 2015-06-05 Tom de Vries <tom@codesourcery.com>
7663 merge from gomp4 branch:
7664 2015-05-28 Tom de Vries <tom@codesourcery.com>
7666 PR tree-optimization/65443
7667 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7668 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7669 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7671 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7673 * testsuite/libgomp.graphite/bounds.c: Adjust for
7674 cleanup-tree-dump removal.
7675 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7676 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7677 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7678 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7679 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7680 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7681 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7682 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7683 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7684 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7686 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7688 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7689 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7690 (futex_wake) [!__x86_64__]: Ditto.
7692 2015-05-28 Julian Brown <julian@codesourcery.com>
7694 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7695 function comment. Only call gomp_fatal if new argument is true.
7696 (acc_dev_num_out_of_range): New function.
7697 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7698 acc_dev_num_out_of_range as appropriate.
7699 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7700 (acc_get_device_num, acc_set_device_num): Update calls to
7702 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7705 2015-05-28 Julian Brown <julian@codesourcery.com>
7708 * oacc-init.c (plugin/plugin-host.h): Include.
7709 (acc_on_device): Check whether we're in an offloaded region for
7711 plugin. Don't use __builtin_acc_on_device.
7712 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7713 nonshm_exec flag in thread-local data.
7714 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7715 data for host_nonshm plugin.
7716 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7717 for host_nonshm plugin.
7718 * plugin/plugin-host.h: New.
7720 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7722 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7724 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7726 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7728 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7729 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7732 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7734 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7736 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7738 * target.c (gomp_map_pointer): New function abstracting out
7739 GOMP_MAP_POINTER handling.
7740 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7743 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7746 * testsuite/libgomp.c/pr66199-1.c: New test.
7747 * testsuite/libgomp.c/pr66199-2.c: New test.
7748 * testsuite/libgomp.c++/pr66199-1.C: New test.
7749 * testsuite/libgomp.c++/pr66199-2.C: New test.
7750 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7751 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7753 2015-05-19 Julian Brown <julian@codesourcery.com>
7755 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7758 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7761 * testsuite/libgomp.c/pr66133.c: New test.
7763 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7765 * Makefile.in: Regenerated with automake-1.11.6.
7766 * aclocal.m4: Likewise.
7767 * config.h.in: Likewise.
7768 * configure: Likewise.
7769 * testsuite/Makefile.in: Likewise.
7771 2015-05-08 Jason Merrill <jason@redhat.com>
7773 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7776 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7778 2015-05-06 Julian Brown <julian@codesourcery.com>
7780 * oacc-init.c (acc_device_lock): Add explanatory comment.
7781 (resolve_device): Add comment about locking requirement.
7782 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7783 gomp_init_device and gomp_fini_device calls.
7784 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7785 (acc_get_device_num, acc_set_device_num): Add locking around
7786 resolve_device and gomp_init_device calls.
7788 2015-05-06 Julian Brown <julian@codesourcery.com>
7790 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7791 goacc_thread_lock on error paths.
7792 * oacc-mem.c (lookup_host): Remove locking from function. Note
7793 locking requirement for caller in function comment.
7794 (lookup_dev): Likewise.
7795 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7796 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7797 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7800 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7804 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7805 don't expect "0x" prefix for "%p" format specifier, don't expect
7806 "(nil)" for NULL pointer.
7807 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7808 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7809 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7810 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7811 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7812 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7813 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7814 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7815 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7816 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7817 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7819 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7820 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7821 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7822 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7823 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7824 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7825 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7826 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7827 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7828 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7829 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7830 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7831 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7832 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7833 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7834 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7835 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7836 accurately specify what we're looking for.
7837 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7839 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7840 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7841 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7843 2015-04-30 James Norris <jnorris@codesourcery.com>
7846 * testsuite/lib/libgomp.exp
7847 (check_effective_target_openacc_host_selected)
7848 (check_effective_target_openacc_host_nonshm_selected): New
7850 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7852 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7853 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7854 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7855 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7856 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7857 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7858 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7859 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7860 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7861 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7862 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7863 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7864 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7865 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7866 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7867 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7868 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7869 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7870 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7871 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7872 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7873 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7874 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7875 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7876 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7877 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7878 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7879 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7880 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7881 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7882 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7883 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7884 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7885 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7886 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7887 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7888 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7889 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7890 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7891 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7892 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7893 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7894 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7896 2015-04-08 Julian Brown <julian@codesourcery.com>
7898 * libgomp.h (target_mem_desc: Remove mem_map field.
7899 (acc_dispatch_t): Remove open_device_func, close_device_func,
7900 get_device_num_func, set_device_num_func, target_data members.
7901 Change create_thread_data_func argument to device number instead of
7903 * oacc-async.c (assert.h): Include.
7904 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7905 (acc_wait_all, acc_wait_all_async): Use current host thread's
7906 active device, not base_dev.
7907 * oacc-cuda.c (acc_get_current_cuda_device)
7908 (acc_get_current_cuda_context, acc_get_cuda_stream)
7909 (acc_set_cuda_stream): Likewise.
7910 * oacc-host.c (host_dispatch): Don't set open_device_func,
7911 close_device_func, get_device_num_func or set_device_num_func.
7912 * oacc-init.c (base_dev, init_key): Remove.
7913 (cached_base_dev): New.
7914 (name_of_acc_device_t): New.
7915 (acc_init_1): Initialise default-numbered device, not zeroth.
7916 (acc_shutdown_1): Close all devices of a given type.
7917 (goacc_destroy_thread): Don't use base_dev.
7918 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7919 (goacc_attach_host_thread_to_device): New.
7920 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7921 (acc_get_num_devices): Don't use base_dev.
7922 (acc_set_device_type): Reimplement.
7923 (acc_get_device_type): Don't use base_dev.
7924 (acc_get_device_num): Tweak logic.
7925 (acc_set_device_num): Likewise.
7926 (acc_on_device): Use acc_get_device_type.
7927 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7928 (goacc_lazy_initialize): Reimplement with acc_init and
7929 goacc_attach_host_thread_to_device.
7930 * oacc-int.h (goacc_thread): Add base_dev field.
7931 (base_dev): Remove extern declaration.
7932 (goacc_attach_host_thread_to_device): Add prototype.
7933 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7935 (acc_free): Likewise.
7936 (acc_memcpy_to_device): Likewise.
7937 (acc_memcpy_from_device): Likewise.
7938 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7939 goacc_lazy_initialize (throughout).
7940 (GOACC_parallel): Use tgt_offset to locate target functions.
7941 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7942 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7943 (gomp_load_plugin_for_device): Remove open_device, close_device,
7944 get_device_num, set_device_num openacc hook initialisation. Don't set
7945 openacc.target_data.
7946 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7947 (GOMP_OFFLOAD_openacc_close_device)
7948 (GOMP_OFFLOAD_openacc_get_device_num)
7949 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7950 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7952 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7953 (instantiated_devices, ptx_dev_lock): New.
7954 (struct ptx_image_data): New.
7955 (ptx_devices, ptx_images, ptx_image_lock): New.
7956 (fini_streams_for_device): Reorder cuStreamDestroy call.
7957 (nvptx_get_num_devices): Remove forward declaration.
7958 (nvptx_init): Change return type to bool.
7959 (nvptx_fini): Remove.
7960 (nvptx_attach_host_thread_to_device): New.
7961 (nvptx_open_device): Return struct ptx_device* instead of void*.
7962 (nvptx_close_device): Change argument type to struct ptx_device*,
7963 return type to void.
7964 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7965 (kernel_target_data, kernel_host_table): Remove static globals.
7966 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7967 (GOMP_OFFLOAD_init_device): Reimplement.
7968 (GOMP_OFFLOAD_fini_device): Likewise.
7969 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7970 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7971 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7972 (GOMP_OFFLOAD_openacc_open_device)
7973 (GOMP_OFFLOAD_openacc_close_device)
7974 (GOMP_OFFLOAD_openacc_set_device_num)
7975 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7976 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7980 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7982 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7984 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7985 * libgomp.h (struct gomp_memory_mapping): Remove.
7986 (struct target_mem_desc): Change type of mem_map from
7987 gomp_memory_mapping * to splay_tree_s *.
7988 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7989 Add load_image_func, unload_image_func.
7990 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7991 Remove offload_regions_registered.
7992 (gomp_init_tables): Remove.
7993 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7995 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7996 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7997 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7998 offload_regions_registered.
7999 Initialize load_image_func, unload_image_func, mem_map.root.
8000 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8001 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8002 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8003 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8004 gomp_memory_mapping *. Use dev's lock and splay_tree.
8005 (lookup_dev): Use dev's lock.
8006 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8007 (acc_is_present): Likewise.
8008 (acc_map_data): Likewise.
8009 (acc_unmap_data): Likewise. Use dev's lock.
8010 (present_create_copy): Likewise.
8011 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8012 (update_dev_host): Likewise.
8013 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8014 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8015 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8016 (GOMP_OFFLOAD_get_table): Remove
8017 (GOMP_OFFLOAD_load_image): New function.
8018 (GOMP_OFFLOAD_unload_image): New function.
8019 * target.c (register_lock): New mutex for offload image registration.
8020 (num_devices): Do not guard with PLUGIN_SUPPORT.
8021 (gomp_realloc_unlock): New static function.
8022 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8024 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8025 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8026 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8028 (gomp_unmap_vars): Likewise.
8029 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8030 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8031 (gomp_offload_image_to_device): New static function.
8032 (GOMP_offload_register): Add mutex lock.
8033 Call gomp_offload_image_to_device for all initialized devices.
8034 Replace gomp_realloc with gomp_realloc_unlock.
8035 (GOMP_offload_unregister): New function.
8036 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8037 get_table_func from the plugin with calls to init_device_func and
8038 gomp_offload_image_to_device.
8039 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8041 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8042 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8043 (GOMP_target_data): Do not call gomp_init_tables.
8044 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8045 (gomp_load_plugin_for_device): Replace register_image and get_table
8046 with load_image and unload_image in DLSYM ().
8047 (gomp_register_images_for_device): Remove function.
8048 (gomp_target_init): Do not initialize current_device.mem_map.*,
8049 current_device.offload_regions_registered.
8050 Remove call to gomp_register_images_for_device.
8051 Do not free offload_images and num_offload_images.
8053 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8056 * testsuite/libgomp.fortran/pr65597.f90: New test.
8058 2015-03-27 Tom de Vries <tom@codesourcery.com>
8061 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8062 (init, check): New function.
8063 (foo): Change return type to void.
8064 (main): Call init and check.
8066 2015-03-27 Tom de Vries <tom@codesourcery.com>
8069 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8070 (foo): Use M for non-inner loops to scale down test-case.
8072 2015-03-25 Kai Tietz <ktietz@redhat.com>
8075 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8076 (GOACC_data_start): Likewise.
8077 * target.c (gomp_map_vars): Likewise.
8079 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8081 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8084 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8086 * testsuite/libgomp.c/target-10.c: New test.
8087 * testsuite/libgomp.c++/target-4.C: New test.
8089 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8091 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8092 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8094 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8096 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8097 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8098 (pthread.h): Check for this header file.
8099 * configure: Regenerate.
8101 2015-02-25 Tom de Vries <tom@codesourcery.com>
8103 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8104 (check_reduction_op, check_reduction_macro, max, min):
8106 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8108 (main): Use new functions.
8110 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8112 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8113 char * for variables holding dlerror return values.
8116 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8118 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8120 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8121 Cesar Philippidis <cesar@codesourcery.com>
8123 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8124 GOACC_ctaid, and GOACC_nctaid routines.
8126 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8129 * testsuite/libgomp.c/atomic-18.c: New test.
8130 * testsuite/libgomp.c++/atomic-16.C: New test.
8132 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8136 * testsuite/libgomp.c/pr64824.c: New test.
8137 * testsuite/libgomp.c/pr64868.c: New test.
8138 * testsuite/libgomp.c++/pr64824.C: New test.
8139 * testsuite/libgomp.c++/pr64868.C: New test.
8141 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8144 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8145 Link with -lpthread.
8146 * config/aix/plugin-suffix.h: Delete.
8148 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8151 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8152 (*-*-darwin*): Use config_path "bsd darwin posix".
8153 (*-*-hpux*): Use config_path "hpux posix".
8154 * target.c: Add include of plugin-suffix.h and use
8155 SONAME_SUFFIX macro.
8156 * config/aix/plugin-suffix.h: New file.
8157 * config/darwin/plugin-suffix.h: New file.
8158 * config/hpux/plugin-suffix.h: New file.
8159 * config/posix/plugin-suffix.h: New file.
8161 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8164 * libgomp.c/pr64734.c: New test.
8166 2015-01-23 Tom de Vries <tom@codesourcery.com>
8169 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8171 2015-01-23 Tom de Vries <tom@codesourcery.com>
8174 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8177 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8180 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8181 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8182 formal parameter. Update all users.
8183 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8184 Document unused formal parameter.
8186 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8188 * oacc-parallel.c: Don't include <alloca.h>.
8189 (GOACC_parallel): Use gomp_alloca instead of alloca.
8191 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8193 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8195 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8196 James Norris <jnorris@codesourcery.com>
8197 Tom de Vries <tom@codesourcery.com>
8198 Julian Brown <julian@codesourcery.com>
8199 Cesar Philippidis <cesar@codesourcery.com>
8200 Nathan Sidwell <nathan@codesourcery.com>
8201 Tobias Burnus <burnus@net-b.de>
8203 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8204 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8205 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8206 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8207 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8208 Include $(top_srcdir)/plugin/Makefrag.am.
8209 (nodist_libsubinclude_HEADERS): Add openacc.h.
8210 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8211 openacc.f90, openacc.mod, openacc_kinds.mod.
8212 (omp_lib.mod): Generalize into...
8213 (%.mod): ... this new rule.
8214 (openacc_kinds.mod, openacc.mod): New rules.
8215 * plugin/configfrag.ac: New file.
8216 * configure.ac: Move plugin/offloading support into it. Include
8217 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8218 * plugin/Makefrag.am: New file.
8219 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8220 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8222 (libgomp-test-support.exp): New rule.
8223 (all-local): Depend on it.
8224 * Makefile.in: Regenerate.
8225 * testsuite/Makefile.in: Regenerate.
8226 * config.h.in: Likewise.
8227 * configure: Likewise.
8228 * configure.tgt: Harden shell syntax.
8229 * env.c: Include "oacc-int.h".
8230 (parse_acc_device_type): New function.
8231 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8233 (initialize_env): Initialize those. Call
8234 goacc_runtime_initialize.
8235 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8236 (gomp_fatal): Call gomp_vfatal.
8237 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8238 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8239 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8240 (splay_tree_node, splay_tree, splay_tree_key)
8241 (struct target_mem_desc, struct splay_tree_key_s)
8242 (struct gomp_memory_mapping, struct acc_dispatch_t)
8243 (struct gomp_device_descr, gomp_acc_insert_pointer)
8244 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8245 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8246 (gomp_free_memmap, gomp_fini_device): New declarations.
8247 (gomp_vdebug, gomp_debug): New macros.
8248 Include "splay-tree.h".
8249 * libgomp.map (OACC_2.0): New symbol version. Use for
8250 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8251 acc_set_device_type_h_, acc_get_device_type,
8252 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8253 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8254 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8255 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8256 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8257 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8258 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8259 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8260 acc_copyin_array_h_, acc_present_or_copyin,
8261 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8262 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8263 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8264 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8265 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8266 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8267 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8268 acc_update_device, acc_update_device_32_h_,
8269 acc_update_device_64_h_, acc_update_device_array_h_,
8270 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8271 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8272 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8273 acc_is_present_64_h_, acc_is_present_array_h_,
8274 acc_memcpy_to_device, acc_memcpy_from_device,
8275 acc_get_current_cuda_device, acc_get_current_cuda_context,
8276 acc_get_cuda_stream, acc_set_cuda_stream.
8277 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8278 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8279 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8280 GOACC_get_num_threads.
8281 (GOMP_PLUGIN_1.0): New symbol version. Use for
8282 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8283 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8284 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8285 GOMP_PLUGIN_acc_thread.
8286 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8287 environment variable.
8288 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8289 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8290 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8291 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8292 (splay_tree_remove): New declarations.
8293 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8294 (splay_tree_remove, splay_tree_lookup): Move into...
8295 * splay-tree.c: ... this new file.
8296 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8297 (splay_tree_node, splay_tree, splay_tree_key)
8298 (struct target_mem_desc, struct splay_tree_key_s)
8299 (struct gomp_device_descr): Don't declare.
8300 (num_devices_openmp): New variable.
8301 (gomp_get_num_devices ): Use it.
8302 (gomp_init_targets_once): New function.
8303 (gomp_get_num_devices ): Use it.
8304 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8305 (gomp_fini_device, gomp_register_image_for_device): New functions.
8306 (gomp_map_vars): Add devaddrs parameter.
8307 (gomp_update): Add mm parameter.
8308 (gomp_init_device): Move most of it into...
8309 (gomp_init_tables): ... this new function.
8310 (gomp_register_images_for_device): Remove function.
8311 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8312 Make them hidden instead of static.
8313 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8314 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8315 (GOMP_target_end_data, GOMP_target_update)
8316 (gomp_load_plugin_for_device, gomp_target_init): Update for
8318 * oacc-async.c: New file.
8319 * oacc-cuda.c: Likewise.
8320 * oacc-host.c: Likewise.
8321 * oacc-init.c: Likewise.
8322 * oacc-int.h: Likewise.
8323 * oacc-mem.c: Likewise.
8324 * oacc-parallel.c: Likewise.
8325 * oacc-plugin.c: Likewise.
8326 * oacc-plugin.h: Likewise.
8327 * oacc-ptx.h: Likewise.
8328 * openacc.f90: Likewise.
8329 * openacc.h: Likewise.
8330 * openacc_lib.h: Likewise.
8331 * plugin/plugin-host.c: Likewise.
8332 * plugin/plugin-nvptx.c: Likewise.
8333 * libgomp-plugin.c: Likewise.
8334 * libgomp-plugin.h: Likewise.
8335 * libgomp_target.h: Remove file after merging content into the
8336 former file. Update all users.
8337 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8338 (offload_targets_s, offload_targets_s_openacc): New variables.
8339 (check_effective_target_openacc_nvidia_accel_present)
8340 (check_effective_target_openacc_nvidia_accel_selected): New
8342 (libgomp_init): Update for OpenACC changes.
8343 * testsuite/libgomp-test-support.exp.in: New file.
8344 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8345 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8346 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8347 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8348 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8349 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8350 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8351 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8352 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8353 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8354 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8355 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8356 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8357 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8358 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8359 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8360 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8361 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8362 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8363 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8364 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8365 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8366 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8367 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8368 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8369 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8370 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8371 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8372 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8373 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8374 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8375 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8376 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8377 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8378 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8379 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8380 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8381 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8382 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8383 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8384 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8385 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8386 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8387 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8388 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8389 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8390 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8391 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8392 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8393 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8394 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8395 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8396 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8397 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8398 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8399 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8400 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8401 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8402 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8403 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8404 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8405 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8406 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8407 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8408 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8409 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8410 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8411 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8412 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8413 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8414 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8415 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8416 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8417 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8418 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8419 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8420 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8421 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8422 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8423 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8424 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8425 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8426 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8427 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8428 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8429 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8430 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8431 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8432 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8433 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8434 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8435 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8436 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8437 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8438 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8439 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8440 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8441 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8442 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8443 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8444 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8445 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8446 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8447 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8448 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8449 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8450 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8451 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8452 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8453 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8454 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8455 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8456 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8457 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8458 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8459 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8460 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8461 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8462 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8463 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8464 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8465 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8466 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8467 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8468 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8469 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8470 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8471 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8472 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8473 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8474 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8475 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8476 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8477 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8478 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8479 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8480 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8481 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8482 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8483 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8485 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8486 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8487 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8488 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8489 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8490 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8491 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8492 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8493 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8494 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8495 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8496 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8497 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8498 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8499 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8500 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8501 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8502 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8503 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8504 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8505 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8506 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8507 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8508 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8509 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8510 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8511 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8512 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8513 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8514 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8515 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8516 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8517 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8518 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8519 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8520 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8521 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8522 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8523 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8524 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8525 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8526 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8527 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8528 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8529 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8530 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8531 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8532 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8533 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8534 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8535 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8536 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8537 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8538 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8539 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8540 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8541 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8542 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8543 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8544 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8546 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8547 Julian Brown <julian@codesourcery.com>
8548 David Malcolm <dmalcolm@redhat.com>
8550 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8551 to "GNU Offloading and Multi Processing Runtime Library". Change
8553 * configure: Regenerate.
8554 * libgomp.texi: Update.
8556 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8558 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8560 * configure: Regenerate.
8562 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8563 "intelmic" in $offload_targets.
8565 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8567 Update copyright years.
8569 * libgomp.texi: Bump @copying's copyright year.
8571 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8573 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8574 Move load of target-supports.exp earlier.
8576 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8578 * testsuite/libgomp.c/target-9.c: New test.
8580 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8582 * config.h.in: Regenerate.
8583 * configure: Regenerate.
8584 * configure.ac: Add GCC_CHECK_EMUTLS.
8585 * libgomp.h: Add check for USE_EMUTLS: this case
8586 is equal to HAVE_TLS.
8589 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8591 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8593 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8594 Ilya Verbin <ilya.verbin@intel.com>
8596 * testsuite/libgomp.c/target-critical-1.c: New test.
8598 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8600 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8601 to dg-options unless expensive testing is on.
8602 (TESTITERS): Define to N if not defined.
8603 (main): Use TESTITERS instead of N.
8604 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8605 dg-additional-options depending on whether expensive testing is on.
8606 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8607 Decrease N to 100000 and CHUNKSZ to 10000.
8609 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8612 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8613 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8615 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8617 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8619 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8622 * configure: Regenerated.
8624 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8626 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8627 vect_simd_clones effective target.
8628 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8630 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8632 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8633 of 32 as block_size.
8634 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8635 instead of 32 as block_size.
8637 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8638 Ilya Verbin <ilya.verbin@intel.com>
8640 * Makefile.in: Regenerate.
8641 * configure: Regenerate.
8642 * configure.ac: Set up offload_additional_options,
8643 offload_additional_lib_paths and offload_targets.
8644 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8645 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8646 * testsuite/Makefile.in: Regenerate.
8647 * testsuite/lib/libgomp.exp (libgomp_init): Append
8648 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8649 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8650 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8652 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8653 Ilya Verbin <ilya.verbin@intel.com>
8654 Kirill Yukhin <kirill.yukhin@intel.com>
8655 Ilya Tocar <ilya.tocar@intel.com>
8657 * testsuite/lib/libgomp.exp
8658 (check_effective_target_offload_device): New.
8659 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8660 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8661 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8662 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8663 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8664 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8665 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8666 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8667 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8668 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8669 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8670 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8671 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8672 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8673 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8674 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8675 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8676 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8677 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8678 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8679 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8680 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8681 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8682 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8683 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8684 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8685 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8686 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8687 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8688 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8689 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8690 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8691 * testsuite/libgomp.c/target-7.c: Fix test.
8692 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8693 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8694 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8695 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8696 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8697 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8698 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8699 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8700 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8701 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8702 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8703 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8704 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8705 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8706 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8707 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8708 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8709 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8710 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8711 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8712 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8713 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8714 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8715 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8716 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8717 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8718 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8719 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8720 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8721 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8722 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8724 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8725 Ilya Verbin <ilya.verbin@intel.com>
8726 Thomas Schwinge <thomas@codesourcery.com>
8727 Andrey Turetskiy <andrey.turetskiy@intel.com>
8729 * libgomp.map (GOMP_4.0.1): New symbol version.
8730 Add GOMP_offload_register.
8731 * libgomp_target.h: New file.
8732 * splay-tree.h: New file.
8733 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8734 (gomp_target_init): New forward declaration.
8735 (gomp_is_initialized): New static variable.
8736 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8737 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8739 (offload_images, num_offload_images, devices, num_devices): New static
8741 (splay_compare): New static function.
8742 (struct gomp_device_descr): New structure.
8743 (gomp_get_num_devices): Call gomp_target_init.
8744 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8745 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8746 (GOMP_offload_register): New function.
8747 (GOMP_target): Arrange for host callback to be performed in a separate
8748 initial thread and contention group, inheriting ICVs from
8749 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8750 Add device initialization and lookup for target function in splay tree.
8751 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8752 (GOMP_target_end_data): Call gomp_unmap_vars.
8753 (GOMP_target_update): Add device initialization and call gomp_update.
8754 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8755 (gomp_target_init): New static functions.
8757 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8758 Thomas Schwinge <thomas@codesourcery.com>
8759 Ilya Verbin <ilya.verbin@intel.com>
8760 Andrey Turetskiy <andrey.turetskiy@intel.com>
8762 * config.h.in: Regenerate.
8763 * configure: Regenerate.
8764 * configure.ac: Check for libdl, required for plugin support.
8765 (PLUGIN_SUPPORT): Define if plugins are supported.
8766 (enable_offload_targets): Support Intel MIC targets.
8767 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8769 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8772 * configure: Regenerate.
8774 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8776 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8778 2014-10-06 Marek Polacek <polacek@redhat.com>
8780 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8781 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8782 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8783 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8785 2014-10-06 Marek Polacek <polacek@redhat.com>
8787 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8788 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8789 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8790 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8791 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8792 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8793 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8794 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8795 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8796 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8797 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8798 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8799 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8800 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8801 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8802 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8803 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8804 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8807 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8810 * testsuite/libgomp.c/pr61200.c: New test.
8812 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8815 * testsuite/libgomp.c++/pr63248.C: New test.
8817 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8819 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8820 is not zero, but taskgroup->children is NULL and there are
8821 any task->children, schedule those instead of waiting.
8822 * testsuite/libgomp.c/depend-6.c: New test.
8823 * testsuite/libgomp.c/depend-7.c: New test.
8824 * testsuite/libgomp.c/depend-8.c: New test.
8825 * testsuite/libgomp.c/depend-9.c: New test.
8826 * testsuite/libgomp.c/depend-10.c: New test.
8828 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8830 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8831 (struct gomp_taskwait): New type.
8832 (struct gomp_task): Add taskwait and parent_depends_on, remove
8833 in_taskwait and taskwait_sem fields.
8834 (gomp_finish_task): Don't destroy taskwait_sem.
8835 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8836 taskwait and parent_depends_on.
8837 (GOMP_task): For if (0) tasks with depend clause that depend on
8838 earlier tasks don't defer them, instead call
8839 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8840 Initialize redundant_out field, for redundant out entries just
8841 move them at the end of linked list instead of removing them
8842 completely, and set redundant_out flag instead of redundant.
8843 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8845 (gomp_task_run_post_handle_dependers): If parent is in
8846 gomp_task_maybe_wait_for_dependencies and newly runnable task
8847 is not parent_depends_on, queue it in parent->children linked
8848 list after all runnable tasks with parent_depends_on set.
8849 Adjust for addition of taskwait indirection.
8850 (gomp_task_run_post_remove_parent): If parent is in
8851 gomp_task_maybe_wait_for_dependencies and task to be removed
8852 is parent_depends_on, decrement n_depend and if needed awake
8853 parent. Adjust for addition of taskwait indirection.
8854 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8855 (gomp_task_maybe_wait_for_dependencies): New function.
8856 * testsuite/libgomp.c/depend-5.c: New test.
8858 2014-07-13 Tobias Burnus <burnus@net-b.de>
8860 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8861 with TS 18508/Fortran 2015.
8863 2014-07-06 Marek Polacek <polacek@redhat.com>
8866 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8868 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8870 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8871 matches regex $lang_source_re, add $lang_include_flags to options.
8872 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8873 * testsuite/libgomp.c++/c++.exp: Likewise.
8874 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8875 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8877 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8879 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8881 * testsuite/libgomp.fortran/fortran.exp: Explain
8882 gfortran-dg-runtest usage.
8884 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8886 * testsuite/libgomp.fortran/simd5.f90: New test.
8887 * testsuite/libgomp.fortran/simd6.f90: New test.
8888 * testsuite/libgomp.fortran/simd7.f90: New test.
8890 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8892 * testsuite/libgomp.c/for-2.c: Define SC to static for
8893 #pragma omp for simd testing.
8894 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8895 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8897 * testsuite/libgomp.c/simd-14.c: New test.
8898 * testsuite/libgomp.c/simd-15.c: New test.
8899 * testsuite/libgomp.c/simd-16.c: New test.
8900 * testsuite/libgomp.c/simd-17.c: New test.
8901 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8902 #pragma omp for simd testing.
8903 * testsuite/libgomp.c++/simd10.C: New test.
8904 * testsuite/libgomp.c++/simd11.C: New test.
8905 * testsuite/libgomp.c++/simd12.C: New test.
8906 * testsuite/libgomp.c++/simd13.C: New test.
8908 * testsuite/libgomp.fortran/aligned1.f03: New test.
8909 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8910 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8911 tasks with !$omp parallel !$omp single.
8912 * testsuite/libgomp.fortran/target8.f90: New test.
8913 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8914 not to use trim in the combiner, instead call elemental function.
8915 (fn): New elemental function.
8916 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8918 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8920 * testsuite/libgomp.fortran/udr12.f90: New test.
8921 * testsuite/libgomp.fortran/udr13.f90: New test.
8922 * testsuite/libgomp.fortran/udr14.f90: New test.
8923 * testsuite/libgomp.fortran/udr15.f90: New test.
8925 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8927 * omp_lib.f90.in (openmp_version): Set to 201307.
8928 * omp_lib.h.in (openmp_version): Likewise.
8929 * testsuite/libgomp.c/target-8.c: New test.
8930 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8931 and inbranch clauses.
8932 * testsuite/libgomp.fortran/depend-3.f90: New test.
8933 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8935 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8936 * testsuite/libgomp.fortran/target1.f90: New test.
8937 * testsuite/libgomp.fortran/target2.f90: New test.
8938 * testsuite/libgomp.fortran/target3.f90: New test.
8939 * testsuite/libgomp.fortran/target4.f90: New test.
8940 * testsuite/libgomp.fortran/target5.f90: New test.
8941 * testsuite/libgomp.fortran/target6.f90: New test.
8942 * testsuite/libgomp.fortran/target7.f90: New test.
8944 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8947 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8948 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8949 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8950 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8951 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8952 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8953 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8954 * testsuite/libgomp.fortran/associate1.f90: New test.
8955 * testsuite/libgomp.fortran/associate2.f90: New test.
8956 * testsuite/libgomp.fortran/procptr1.f90: New test.
8958 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8960 * testsuite/libgomp.fortran/simd1.f90: New test.
8961 * testsuite/libgomp.fortran/udr1.f90: New test.
8962 * testsuite/libgomp.fortran/udr2.f90: New test.
8963 * testsuite/libgomp.fortran/udr3.f90: New test.
8964 * testsuite/libgomp.fortran/udr4.f90: New test.
8965 * testsuite/libgomp.fortran/udr5.f90: New test.
8966 * testsuite/libgomp.fortran/udr6.f90: New test.
8967 * testsuite/libgomp.fortran/udr7.f90: New test.
8968 * testsuite/libgomp.fortran/udr8.f90: New test.
8969 * testsuite/libgomp.fortran/udr9.f90: New test.
8970 * testsuite/libgomp.fortran/udr10.f90: New test.
8971 * testsuite/libgomp.fortran/udr11.f90: New test.
8973 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8975 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8976 vect_simd_clones effective target.
8977 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8979 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8982 * testsuite/libgomp.c++/simd-9.C: New test.
8984 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8986 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8987 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8988 texts according to their @menu entry positions.
8990 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8992 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8993 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8994 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8995 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8996 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8997 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8998 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8999 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9000 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9001 * testsuite/libgomp.fortran/depend-1.f90: New test.
9002 * testsuite/libgomp.fortran/depend-2.f90: New test.
9003 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9004 * testsuite/libgomp.fortran/simd1.f90: New test.
9005 * testsuite/libgomp.fortran/simd2.f90: New test.
9006 * testsuite/libgomp.fortran/simd3.f90: New test.
9007 * testsuite/libgomp.fortran/simd4.f90: New test.
9008 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9010 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9012 * testsuite/libgomp.c/simd-10.c: New test.
9013 * testsuite/libgomp.c/simd-11.c: New test.
9014 * testsuite/libgomp.c/simd-12.c: New test.
9015 * testsuite/libgomp.c/simd-13.c: New test.
9017 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9019 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9020 atomic type clauses in any order and optional comma in between.
9021 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9022 * testsuite/libgomp.c/atomic-17.c: Likewise.
9024 * testsuite/libgomp.c/simd-7.c: New test.
9025 * testsuite/libgomp.c/simd-8.c: New test.
9026 * testsuite/libgomp.c/simd-9.c: New test.
9027 * testsuite/libgomp.c/loop-16.c: New test.
9029 2014-04-02 Richard Henderson <rth@redhat.com>
9031 * config/linux/futex.h (futex_wait): Get error value from errno.
9032 (futex_wake): Likewise.
9034 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9037 * testsuite/libgomp.c++/udr-11.C: New test.
9038 * testsuite/libgomp.c++/udr-12.C: New test.
9039 * testsuite/libgomp.c++/udr-13.C: New test.
9040 * testsuite/libgomp.c++/udr-14.C: New test.
9041 * testsuite/libgomp.c++/udr-15.C: New test.
9042 * testsuite/libgomp.c++/udr-16.C: New test.
9043 * testsuite/libgomp.c++/udr-17.C: New test.
9044 * testsuite/libgomp.c++/udr-18.C: New test.
9045 * testsuite/libgomp.c++/udr-19.C: New test.
9047 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9049 Update copyright years
9051 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9053 * hashtab.h: Use the standard form for the copyright notice.
9055 2014-01-02 Tobias Burnus <burnus@net-b.de>
9057 * libgomp.texi: Bump @copying's copyright year.
9059 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9061 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9062 alloca () with __builtin_alloca ().
9063 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9064 * testsuite/libgomp.c/lock-3.c: Likewise.
9065 * testsuite/libgomp.c/pr48591.c: Likewise.
9067 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9070 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9073 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9076 * testsuite/libgomp.c/pr58756.c: New test.
9078 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9081 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9084 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9086 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9088 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9089 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9090 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9091 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9094 * libgomp_g.h: Include <stddef.h> for size_t.
9096 * libgomp.spec.in: Update comment about libgomp's dependencies.
9097 * configure.ac: Likewise.
9098 * configure: Regenerate.
9100 2013-10-16 Tobias Burnus <burnus@net-b.de>
9102 * libgomp.texi: (Runtime Library Routines): Update references for
9103 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9104 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9105 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9106 (Environment Variables): Update references for OpenMP 4.0. Add
9107 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9108 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9111 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9113 * env.c (parse_bind_var): Initialize value to avoid
9114 (false positive) warning.
9116 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9119 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9121 (gomp_init_num_threads): Move i variable declaration into
9122 #ifdef CPU_ALLOC_SIZE block.
9123 * config/linux/affinity.c (gomp_affinity_init_level): Test
9124 gomp_places_list_len == 0 rather than gomp_places_list == 0
9125 when checking for topology reading error.
9126 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9127 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9128 gomp_places_list, only parse env var and always return false.
9129 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9130 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9131 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9132 and either of these variables were parsed correctly into a places
9135 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9136 Jakub Jelinek <jakub@redhat.com>
9138 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9139 of 5 loopfn matches.
9140 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9141 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9142 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9143 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9144 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9145 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9146 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9147 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9149 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9151 * Makefile.am (omp_lib.mod): Streamline rule.
9152 * Makefile.in: Regenerate.
9154 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9157 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9158 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9159 * testsuite/libgomp.fortran/lib2.f: Likewise.
9160 * testsuite/libgomp.fortran/lib3.f: Likewise.
9162 * configure.ac: Typo fix.
9163 * configure: Regenerate.
9165 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9166 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9168 * omp.h.in: Don't touch the user's namespace.
9170 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9171 Tobias Burnus <burnus@net-b.de>
9172 Richard Henderson <rth@redhat.com>
9174 * target.c: New file.
9175 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9176 * Makefile.in: Regenerated.
9177 * libgomp_g.h (GOMP_task): Add depend argument.
9178 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9179 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9180 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9181 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9182 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9183 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9184 GOMP_taskgroup_start, GOMP_taskgroup_end,
9185 GOMP_parallel_sections): New prototypes.
9186 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9187 (omp_is_initial_device_): New function.
9188 (ULP, STR1, STR2, ialias_redirect): Removed.
9189 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9190 omp_set_default_device_8_, omp_get_default_device_,
9191 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9193 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9194 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9195 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9197 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9198 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9199 omp_set_default_device, omp_set_default_device_,
9200 omp_set_default_device_8_, omp_get_default_device,
9201 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9202 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9203 omp_get_team_num_): Export @@OMP_4.0.
9204 * team.c (struct gomp_thread_start_data): Add place field.
9205 (gomp_thread_start): Clear thr->thread_pool and
9206 thr->task before returning. Use gomp_team_barrier_wait_final
9207 instead of gomp_team_barrier_wait. Initialize thr->place.
9208 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9209 team_cancelled and task_queued_count fields.
9210 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9211 before calling pthread_exit.
9212 (gomp_free_thread): No longer static. Use
9213 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9214 (gomp_team_start): Add flags argument. Set
9215 thr->thread_pool->threads_busy to nthreads immediately after creating
9216 new pool. Use gomp_managed_threads_lock instead of
9217 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9218 (gomp_team_end): Use gomp_managed_threads_lock instead of
9219 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9220 of gomp_team_barrier_wait. If team->team_cancelled, call
9221 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9222 rather than thr->ts.work_share.
9223 (initialize_team): Don't call gomp_sem_init here.
9224 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9226 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9227 * env.c (gomp_global_icv): Add default_device_var, target_data and
9228 bind_var initializers.
9229 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9230 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9231 gomp_places_list_len): New variables.
9232 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9233 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9235 (gomp_cancel_var): New global variable.
9236 (parse_int): New function.
9237 (handle_omp_display_env): New function.
9238 (initialize_env): Use it. Initialize default_device_var.
9239 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9240 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9241 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9242 been successfully parsed (and call gomp_init_affinity in that case).
9243 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9244 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9245 omp_get_team_num, omp_is_initial_device): New functions.
9246 * libgomp.h: Include stdlib.h.
9247 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9249 (struct target_mem_desc): Forward declare.
9250 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9251 and thread_limit_var fields.
9252 (gomp_get_num_devices): New prototype.
9253 (gomp_cancel_var): New extern decl.
9254 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9255 team_cancelled and task_queued_count fields. Add comments about
9256 task_{,queued_,running_}count.
9257 (gomp_cancel_kind): New enum.
9258 (gomp_work_share_end_cancel): New prototype.
9259 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9260 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9262 (struct gomp_taskgroup): New type.
9263 (struct gomp_task_depend_entry,
9264 struct gomp_dependers_vec): New types.
9265 (gomp_finish_task): Free depend_hash if non-NULL.
9266 (struct gomp_team_state): Add place_partition_off
9267 and place_partition_len fields.
9268 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9269 gomp_places_list_len): New extern decls.
9270 (struct gomp_thread): Add place field.
9271 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9272 (gomp_init_thread_affinity): Add place argument.
9273 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9274 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9275 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9276 gomp_affinity_init_level, gomp_affinity_print_place): New
9278 (gomp_team_start): Add flags argument.
9279 (gomp_thread_limit_var, gomp_remaining_threads_count,
9280 gomp_remaining_threads_lock): Remove.
9281 (gomp_managed_threads_lock): New variable.
9282 (struct gomp_thread_pool): Add threads_busy field.
9283 (gomp_free_thread): New prototype.
9284 * task.c: Include hashtab.h.
9285 (hash_entry_type): New typedef.
9286 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9287 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9288 copy_ctors_done and taskgroup fields.
9289 (GOMP_task): Add depend argument, handle depend clauses. If
9290 gomp_team_barrier_cancelled or if it's taskgroup has been
9291 cancelled, don't queue or start new tasks. Set copy_ctors_done
9292 field if needed. Initialize taskgroup field. If copy_ctors_done
9293 and already cancelled, don't discard the task. If taskgroup is
9294 non-NULL, enqueue the task into taskgroup queue. Increment
9295 num_children field in taskgroup. Increment task_queued_count.
9296 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9297 gomp_task_run_post_remove_taskgroup): New inline functions.
9298 (gomp_task_run_post_handle_depend_hash,
9299 gomp_task_run_post_handle_dependers,
9300 gomp_task_run_post_handle_depend): New functions.
9301 (GOMP_taskwait): Use them. If more than one new tasks
9302 have been queued, wake other threads if needed.
9303 (gomp_barrier_handle_tasks): Likewise. If
9304 gomp_team_barrier_cancelled, don't start any new tasks, just free
9306 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9308 (omp_proc_bind_kind, omp_proc_bind_false,
9309 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9310 omp_proc_bind_spread): New params.
9311 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9312 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9313 omp_get_team_num, omp_is_initial_device): New interfaces.
9314 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9315 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9316 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9317 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9318 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9319 useless use omp_lib_kinds.
9320 * omp.h.in (omp_proc_bind_t): New typedef.
9321 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9322 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9323 omp_get_team_num, omp_is_initial_device): New prototypes.
9324 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9325 through to gomp_team_start.
9326 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9327 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9328 Adjust gomp_parallel_loop_start callers.
9329 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9330 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9331 GOMP_loop_end_cancel): New functions.
9332 (GOMP_parallel_end): Add ialias_redirect.
9333 * hashtab.h: New file.
9334 * libgomp.texi (Environment Variables): Minor cleanup,
9335 update section refs to OpenMP 4.0rc2.
9336 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9337 environment variables.
9338 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9339 team->work_shares_to_free to thr->ts.work_share before calling
9341 (gomp_work_share_end_cancel): New function.
9342 * config/linux/proc.c: Include errno.h.
9343 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9344 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9345 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9346 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9347 gomp_cpuset_size is sizeof (cpu_set_t).
9348 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9349 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9350 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9351 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9352 contain any logical CPUs.
9353 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9354 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9355 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9356 pthread_getaffinity_np. Check gomp_places_list instead of
9357 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9358 * config/linux/bar.c (gomp_barrier_wait_end,
9359 gomp_barrier_wait_last): Use BAR_* defines.
9360 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9361 from state where needed. Set work_share_cancelled to 0 on last
9363 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9364 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9366 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9367 Add cpusetsize argument.
9368 (gomp_cpuset_size, gomp_cpusetp): Declare.
9369 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9370 (affinity_counter): Remove.
9371 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9372 if CPU_ALLOC_SIZE isn't defined.
9373 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9374 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9375 bind current thread to the first place.
9376 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9377 pthread_setaffinity_np to gomp_places_list[place].
9378 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9379 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9380 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9381 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9382 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9383 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9384 (gomp_barrier_t): Add awaited_final field.
9385 (gomp_barrier_init): Initialize awaited_final field.
9386 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9387 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9389 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9391 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9392 gomp_team_barrier_cancelled): New inline functions.
9393 (gomp_barrier_last_thread,
9394 gomp_team_barrier_set_task_pending,
9395 gomp_team_barrier_clear_task_pending,
9396 gomp_team_barrier_set_waiting_for_tasks,
9397 gomp_team_barrier_waiting_for_tasks,
9398 gomp_team_barrier_done): Use BAR_* defines.
9399 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9400 (gomp_barrier_wait_end): Use BAR_* defines.
9401 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9402 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9404 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9405 gomp_team_barrier_cancel): New functions.
9406 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9408 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9409 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9410 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9411 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9412 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9413 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9414 (gomp_barrier_t): Add cancellable field.
9415 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9416 gomp_team_barrier_cancel): New prototypes.
9417 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9418 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9419 gomp_team_barrier_cancelled): New inline functions.
9420 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9421 gomp_team_barrier_set_task_pending,
9422 gomp_team_barrier_clear_task_pending,
9423 gomp_team_barrier_set_waiting_for_tasks,
9424 gomp_team_barrier_waiting_for_tasks,
9425 gomp_team_barrier_done): Use BAR_* defines.
9426 * barrier.c (GOMP_barrier_cancel): New function.
9427 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9428 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9429 omp_proc_bind_spread): New params.
9430 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9431 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9432 omp_get_team_num, omp_is_initial_device): New externals.
9433 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9435 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9436 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9437 infinity. If not nested, just return minimum of max_num_threads
9438 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9439 to the returned value. Otherwise, don't update atomically
9440 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9441 (GOMP_parallel_end): Adjust for thread_limit now being in
9442 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9443 infinity. Adjust threads_busy in the pool rather than
9444 gomp_remaining_threads_count. Remember team->nthreads and call
9445 gomp_team_end before adjusting threads_busy, if not nested
9446 afterwards, just set it to 1 non-atomically. Add ialias.
9447 (GOMP_parallel_start): Adjust gomp_team_start caller.
9448 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9449 * testsuite/libgomp.c/affinity-1.c: New test.
9450 * testsuite/libgomp.c/atomic-15.c: New test.
9451 * testsuite/libgomp.c/atomic-16.c: New test.
9452 * testsuite/libgomp.c/atomic-17.c: New test.
9453 * testsuite/libgomp.c/cancel-for-1.c: New test.
9454 * testsuite/libgomp.c/cancel-for-2.c: New test.
9455 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9456 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9457 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9458 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9459 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9460 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9461 * testsuite/libgomp.c/depend-1.c: New test.
9462 * testsuite/libgomp.c/depend-2.c: New test.
9463 * testsuite/libgomp.c/depend-3.c: New test.
9464 * testsuite/libgomp.c/depend-4.c: New test.
9465 * testsuite/libgomp.c/for-1.c: New test.
9466 * testsuite/libgomp.c/for-1.h: New file.
9467 * testsuite/libgomp.c/for-2.c: New test.
9468 * testsuite/libgomp.c/for-2.h: New file.
9469 * testsuite/libgomp.c/for-3.c: New test.
9470 * testsuite/libgomp.c/pr58392.c: New test.
9471 * testsuite/libgomp.c/simd-1.c: New test.
9472 * testsuite/libgomp.c/simd-2.c: New test.
9473 * testsuite/libgomp.c/simd-3.c: New test.
9474 * testsuite/libgomp.c/simd-4.c: New test.
9475 * testsuite/libgomp.c/simd-5.c: New test.
9476 * testsuite/libgomp.c/simd-6.c: New test.
9477 * testsuite/libgomp.c/target-1.c: New test.
9478 * testsuite/libgomp.c/target-2.c: New test.
9479 * testsuite/libgomp.c/target-3.c: New test.
9480 * testsuite/libgomp.c/target-4.c: New test.
9481 * testsuite/libgomp.c/target-5.c: New test.
9482 * testsuite/libgomp.c/target-6.c: New test.
9483 * testsuite/libgomp.c/target-7.c: New test.
9484 * testsuite/libgomp.c/taskgroup-1.c: New test.
9485 * testsuite/libgomp.c/thread-limit-1.c: New test.
9486 * testsuite/libgomp.c/thread-limit-2.c: New test.
9487 * testsuite/libgomp.c/thread-limit-3.c: New test.
9488 * testsuite/libgomp.c/udr-1.c: New test.
9489 * testsuite/libgomp.c/udr-2.c: New test.
9490 * testsuite/libgomp.c/udr-3.c: New test.
9491 * testsuite/libgomp.c++/affinity-1.C: New test.
9492 * testsuite/libgomp.c++/atomic-10.C: New test.
9493 * testsuite/libgomp.c++/atomic-11.C: New test.
9494 * testsuite/libgomp.c++/atomic-12.C: New test.
9495 * testsuite/libgomp.c++/atomic-13.C: New test.
9496 * testsuite/libgomp.c++/atomic-14.C: New test.
9497 * testsuite/libgomp.c++/atomic-15.C: New test.
9498 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9499 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9500 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9501 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9502 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9503 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9504 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9505 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9506 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9507 * testsuite/libgomp.c++/cancel-test.h: New file.
9508 * testsuite/libgomp.c++/for-9.C: New test.
9509 * testsuite/libgomp.c++/for-10.C: New test.
9510 * testsuite/libgomp.c++/for-11.C: New test.
9511 * testsuite/libgomp.c++/simd-1.C: New test.
9512 * testsuite/libgomp.c++/simd-2.C: New test.
9513 * testsuite/libgomp.c++/simd-3.C: New test.
9514 * testsuite/libgomp.c++/simd-4.C: New test.
9515 * testsuite/libgomp.c++/simd-5.C: New test.
9516 * testsuite/libgomp.c++/simd-6.C: New test.
9517 * testsuite/libgomp.c++/simd-7.C: New test.
9518 * testsuite/libgomp.c++/simd-8.C: New test.
9519 * testsuite/libgomp.c++/target-1.C: New test.
9520 * testsuite/libgomp.c++/target-2.C: New test.
9521 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9522 * testsuite/libgomp.c++/target-3.C: New test.
9523 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9524 * testsuite/libgomp.c++/udr-1.C: New test.
9525 * testsuite/libgomp.c++/udr-2.C: New test.
9526 * testsuite/libgomp.c++/udr-3.C: New test.
9527 * testsuite/libgomp.c++/udr-4.C: New test.
9528 * testsuite/libgomp.c++/udr-5.C: New test.
9529 * testsuite/libgomp.c++/udr-6.C: New test.
9530 * testsuite/libgomp.c++/udr-7.C: New test.
9531 * testsuite/libgomp.c++/udr-8.C: New test.
9532 * testsuite/libgomp.c++/udr-9.C: New test.
9534 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9537 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9540 2013-09-20 Alan Modra <amodra@gmail.com>
9542 * configure: Regenerate.
9544 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9546 * testsuite/libgomp.c/sections-2.c: New test.
9548 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9550 * testsuite/libgomp.fortran/strassen.f90:
9551 Add dg-skip-if aarch64_tiny.
9553 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9554 Cesar Philippidis <cesar@codesourcery.com>
9556 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9557 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9558 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9559 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9560 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9561 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9562 Use dg-runtest rather than gfortran-dg-runtest.
9564 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9566 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9567 Linux-based x86 systems to cover all GNU systems.
9568 * testsuite/libgomp.c/lock-3.c: Likewise.
9569 * testsuite/libgomp.c/pr48591.c: Likewise.
9571 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9573 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9574 GNU/Hurd, as done for Linux-based systems.
9576 * config/posix/ptrlock.h: Fix comment.
9578 2013-05-27 Tobias Burnus <burnus@net-b.de>
9581 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9582 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9583 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9584 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9585 omp_destroy_nest_lock): Correct arguments to match the one in
9587 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9588 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9589 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9590 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9592 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9594 * testsuite/libgomp.c/loop-13.c: New test.
9595 * testsuite/libgomp.c/loop-14.c: New test.
9596 * testsuite/libgomp.c/loop-15.c: New test.
9597 * testsuite/libgomp.c++/loop-13.C: New test.
9598 * testsuite/libgomp.c++/loop-14.C: New test.
9599 * testsuite/libgomp.c++/loop-15.C: New test.
9601 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9604 * testsuite/libgomp.c++/pr56217.C: New test.
9606 2013-02-01 Alan Modra <amodra@gmail.com>
9608 * task.c (GOMP_task, GOMP_taskwait): Comment.
9610 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9611 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9614 * config/linux/wait.h (do_spin): Use atomic load for addr.
9615 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9616 for intptr and ptrlock.
9617 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9620 2013-01-22 Alan Modra <amodra@gmail.com>
9624 * task.c (GOMP_task): Revert 2011-12-09 change.
9625 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9626 barrier to read task->children..
9627 (gomp_barrier_handle_tasks): ..and matching atomic store with
9628 release barrier here when setting parent->children to NULL.
9630 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9631 Tobias Burnus <burnus@net-b.de>
9634 * testsuite/libgomp.fortran/fortran.exp: Use
9635 -fintrinsic-modules-path= instead of
9636 -fintrinsic-modules-path.
9638 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9640 Update copyright years.
9642 2012-12-19 Tobias Burnus <burnus@net-b.de>
9644 * testsuite/libgomp.fortran/fortran.exp: Set
9645 -fintrinsic-modules-path.
9647 2012-12-19 Tobias Burnus <burnus@net-b.de>
9649 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9650 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9652 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9655 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9656 if pool had any threads_used.
9658 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9660 * testsuite/libgomp.c++/pr24455.C: Use
9661 -Wl,-undefined,dynamic_lookup on darwin.
9663 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9665 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9667 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9669 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9671 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9672 Jim MacArthur <jim.macarthur@arm.com>
9673 Marcus Shawcroft <marcus.shawcroft@arm.com>
9674 Nigel Stephens <nigel.stephens@arm.com>
9675 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9676 Richard Earnshaw <rearnsha@arm.com>
9677 Sofiane Naci <sofiane.naci@arm.com>
9678 Stephen Thomas <stephen.thomas@arm.com>
9679 Tejas Belagod <tejas.belagod@arm.com>
9680 Yufeng Zhang <yufeng.zhang@arm.com>
9682 * configure.tgt: Add AArch64.
9684 2012-10-04 Jason Merrill <jason@redhat.com>
9686 * testsuite/libgomp.c++/tls-init1.C: New.
9688 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9690 * configure: Regenerated.
9692 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9694 * config/linux/mips/futex.h (sys_futex0): Change to static
9695 function with noinline, nomips16 attributes under MIPS16. Adjust
9696 asm statement to place 'li v0,SYS_futex' immediately before
9699 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9701 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9702 conflict with index.html on case-insensitive file systems.
9704 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9706 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9707 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9709 2012-07-02 Richard Guenther <rguenther@suse.de>
9710 Michael Matz <matz@suse.de>
9711 Tobias Grosser <tobias@grosser.es>
9712 Sebastian Pop <sebpop@gmail.com>
9714 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9715 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9716 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9717 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9719 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9721 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9723 2012-06-22 Richard Guenther <rguenther@suse.de>
9725 Merge from graphite branch
9726 2012-01-13 Tobias Grosser <tobias@grosser.es>
9728 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9729 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9731 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9734 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9735 use GOMP_barrier () call instead.
9736 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9737 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9738 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9739 call GOMP_barrier instead.
9740 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9742 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9745 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9746 argument to memset call.
9748 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9750 * configure: Regenerated.
9752 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9754 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9756 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9759 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9761 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9764 * testsuite/libgomp.c/pr52547.c: New test.
9766 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9768 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9770 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9772 * configure.tgt (mips-sgi-irix6*): Remove.
9774 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9776 * configure.tgt (alpha*-dec-osf*): Remove.
9778 * config/osf/sem.h: Remove.
9779 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9781 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9783 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9785 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9788 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9789 Remove ENABLE_SYMVERS_SOL2.
9790 * configure: Regenerate.
9791 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9792 (PREPROCESS): New variable.
9793 (libgomp.ver): New target.
9794 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9795 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9796 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9798 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9799 * Makefile.in: Regenerate.
9801 2012-02-14 Walter Lee <walt@tilera.com>
9803 * configure.tgt: Handle tilegx and tilepro.
9804 * config/linux/tile/futex.h: New file.
9806 2012-02-08 Richard Guenther <rguenther@suse.de>
9808 PR tree-optimization/46886
9809 * testsuite/libgomp.c/pr46886.c: New testcase.
9811 2012-01-25 Matthias Klose <doko@ubuntu.com>
9813 * config/linux/arm: Remove empty directory.
9814 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9816 2011-12-09 Alan Modra <amodra@gmail.com>
9819 * task.c (GOMP_taskwait): Don't access task->children outside of
9820 task_lock mutex region.
9821 (GOMP_task): Likewise.
9823 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9826 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9828 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9829 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9830 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9831 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9832 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9834 2011-12-02 Alan Modra <amodra@gmail.com>
9836 * config/linux/affinity.c: Use atomic rather than sync builtin.
9837 * config/linux/lock.c: Likewise.
9838 * config/linux/ptrlock.h: Likewise.
9839 * config/linux/ptrlock.c: Likewise.
9840 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9841 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9842 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9843 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9844 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9845 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9846 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9847 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9848 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9849 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9851 2011-11-30 Alan Modra <amodra@gmail.com>
9854 * config/linux/bar.h: Use atomic rather than sync builtins.
9855 * config/linux/bar.c: Likewise. Add missing acquire
9856 synchronisation on generation field.
9857 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9860 2011-11-30 Alan Modra <amodra@gmail.com>
9862 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9863 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9864 * config/linux/mutex.h: Use atomic rather than sync builtins.
9865 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9866 * config/linux/omp-lock.h: Comment fix.
9867 * config/linux/arm/mutex.h: Delete.
9868 * config/linux/powerpc/mutex.h: Delete.
9869 * config/linux/ia64/mutex.h: Delete.
9870 * config/linux/mips/mutex.h: Delete.
9872 2011-11-30 Alan Modra <amodra@gmail.com>
9875 * config/linux/sem.h: Rewrite.
9876 * config/linux/sem.c: Rewrite.
9878 2011-11-28 Richard Henderson <rth@redhat.com>
9880 * libgomp.h (enum memmodel): New.
9882 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9884 * configure: Regenerate.
9886 2011-10-10 Matthias Klose <doko@ubuntu.com>
9888 * config/posix95: Remove empty directory.
9890 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9892 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9894 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9897 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9898 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9900 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9902 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9904 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9907 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9909 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9911 * config/linux/proc.h: New.
9912 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9913 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9914 (gomp_init_num_threads): Update call to cpuset_popcount.
9915 (get_num_procs): Ditto.
9916 * config/linux/affinity.c (gomp_init_affinity): Call
9917 gomp_cpuset_popcount.
9919 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9923 * omp.h.in (omp_in_final): New prototype.
9924 * omp_lib.f90.in (omp_in_final): New interface.
9925 (omp_integer_kind, omp_logical_kind): Remove
9926 and replace all its uses in the module with 4.
9927 (openmp_version): Change to 201107.
9928 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9929 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9930 kind for the parameters.
9931 (omp_in_final): New external.
9932 (openmp_version): Change to 201107.
9933 * task.c (omp_in_final): New function.
9934 (gomp_init_task): Initialize final_task.
9935 (GOMP_task): Remove unused attribute from flags. Handle final
9937 (GOMP_taskyield): New function.
9938 (omp_in_final): Return true if if (false) or final (true) task
9939 or descendant of final (true).
9940 * fortran.c (omp_in_final_): New function.
9941 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9942 (GOMP_3.0): Export GOMP_taskyield.
9943 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9945 (parse_unsigned_long_list): New function.
9946 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9947 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9948 even if parse_affinity returned false.
9949 * config/linux/affinity.c (gomp_init_affinity): Handle
9950 gomp_cpu_affinity_len == 0.
9951 * libgomp_g.h (GOMP_taskyield): New prototype.
9952 * libgomp.h (struct gomp_task): Add final_task field.
9953 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9954 * team.c (gomp_team_start): Override new task's nthreads_var icv
9955 if list form OMP_NUM_THREADS has been used and it has value for
9956 the new nesting level.
9958 * testsuite/libgomp.c/atomic-11.c: New test.
9959 * testsuite/libgomp.c/atomic-12.c: New test.
9960 * testsuite/libgomp.c/atomic-13.c: New test.
9961 * testsuite/libgomp.c/atomic-14.c: New test.
9962 * testsuite/libgomp.c/reduction-6.c: New test.
9963 * testsuite/libgomp.c/task-5.c: New test.
9964 * testsuite/libgomp.c++/atomic-2.C: New test.
9965 * testsuite/libgomp.c++/atomic-3.C: New test.
9966 * testsuite/libgomp.c++/atomic-4.C: New test.
9967 * testsuite/libgomp.c++/atomic-5.C: New test.
9968 * testsuite/libgomp.c++/atomic-6.C: New test.
9969 * testsuite/libgomp.c++/atomic-7.C: New test.
9970 * testsuite/libgomp.c++/atomic-8.C: New test.
9971 * testsuite/libgomp.c++/atomic-9.C: New test.
9972 * testsuite/libgomp.c++/task-8.C: New test.
9973 * testsuite/libgomp.c++/reduction-4.C: New test.
9974 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9975 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9976 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9977 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9978 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9979 * testsuite/libgomp.fortran/pointer1.f90: New test.
9980 * testsuite/libgomp.fortran/pointer2.f90: New test.
9981 * testsuite/libgomp.fortran/task4.f90: New test.
9983 2011-08-02 Tobias Burnus <burnus@net-b.de>
9985 * libgomp.texi: Update OpenMP spec references to 3.1.
9986 (omp_in_final,OMP_PROC_BIND): New sections.
9987 (OMP_NUM_THREADS): Document that the value can be now a list.
9988 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9990 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9992 * config/linux/x86/futex.h: Check __x86_64__ instead of
9995 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9999 * testsuite/libgomp.c/pr49897-1.c: New test.
10000 * testsuite/libgomp.c/pr49897-2.c: New test.
10001 * testsuite/libgomp.c/pr49898-1.c: New test.
10002 * testsuite/libgomp.c/pr49898-2.c: New test.
10004 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10006 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10007 for ia32 instead of ilp32.
10009 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10010 * testsuite/libgomp.c/atomic-6.c: Likewise.
10012 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10014 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10015 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10017 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10020 * config/osf/sem.h: New file.
10021 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10023 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10026 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10029 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10031 * config/linux/wait.h (do_spin): New inline, largely copied
10032 from do_wait, just don't do futex_wait here, instead return true if
10034 (do_wait): Implement using do_spin.
10035 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10037 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10038 __sync_bool_compare_and_swap, pass the oldval to
10039 gomp_mutex_lock_slow.
10040 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10041 If all mutex contenders are just spinning and not sleeping, don't
10042 change state to 2 unnecessarily. Optimize the loop when state has
10043 already become 2 to use just one atomic operation per loop instead
10045 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10047 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10048 __sync_bool_compare_and_swap, pass the oldval to
10049 gomp_mutex_lock_slow.
10051 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10054 * iter.c (gomp_iter_static_next): For chunk size 0
10055 only use n ceil/ nthreads size for the first
10056 n % nthreads threads in the team instead of
10057 all threads except for the last few ones which
10058 get less work or none at all.
10059 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10060 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10061 chunk argument, set run_sched_modifier to 0 for static
10062 resp. 1 for other kinds. If chunk argument is 0
10063 and not static, set value to 1.
10065 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10068 * testsuite/libgomp.c++/pr49043.C: New test.
10071 * testsuite/libgomp.c++/pr48869.C: New test.
10073 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10076 * fortran.c: Include limits.h.
10078 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10080 (omp_set_num_threads_8_, omp_set_schedule_8_,
10081 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10082 omp_get_team_size_8_): Use TO_INT macro.
10083 * testsuite/libgomp.fortran/pr48894.f90: New test.
10085 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10087 PR middle-end/48591
10088 * testsuite/libgomp.c/pr48591.c: New test.
10090 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10093 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10094 * configure: Regenerate.
10096 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10099 * testsuite/libgomp.fortran/task3.f90: New test.
10101 2011-02-24 Tobias Burnus <burnus@net-b.de>
10103 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10105 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10108 * libgomp.texi (omp_get_wtime): Don't say time in the past
10109 must be Unix Epoch.
10111 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10114 * testsuite/libgomp.fortran/fortran.exp: Check for both
10115 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10116 but $blddir != "", still append ${blddir}/${lang_library_path}
10117 to ld_library_path.
10119 2011-02-16 Tobias Burnus <burnus@net-b.de>
10122 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10123 of libquadmath.a before adding its libpath to ldflags.
10125 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10128 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10129 to FUTEX_WAIT futex syscall.
10130 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10132 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10134 * configure: Regenerate.
10136 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10139 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10141 2011-01-16 Gerald Pfeifer
10143 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10145 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10148 * libgomp.fortran/allocatable6.f90: New test.
10150 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10152 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10153 * configure: Regenerate.
10155 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10159 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10160 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10161 * aclocal.m4: Regenerate.
10162 * configure: Regenerate.
10163 * Makefile.in: Regenerate.
10164 * testsuite/Makefile.in: Regenerate.
10166 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10169 * libgomp.fortran/pr46753.f90: New test.
10172 * env.c (initialize_env): Default to spin count 300000
10173 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10177 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10178 at the end if sync builtins aren't supported.
10180 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10182 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10184 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10186 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10188 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10190 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10192 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10193 Tobias Burnus <burnus@net-b.de>
10197 * configure: Regenerate.
10199 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10201 * config/linux/futex.h: New.
10202 * config/linux/arm/mutex.h: New.
10203 * configure.tgt (arm*-*-linux*): Add config path.
10205 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10207 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10209 2010-09-23 Tobias Burnus <burnus@net-b.de>
10211 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10212 Change Fortran datatype to LOGICAL.
10213 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10214 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10216 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10218 * configure: Regenerate.
10220 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10222 * libgomp.texi: Add function keyword to a couple of Fortran
10223 interfaces, use integer instead of int for Fortran.
10225 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10227 * libgomp.texi: Fix spelling and pasto problems throughout.
10228 Adjust prototypes to match code.
10230 2010-07-24 Tobias Burnus <burnus@net-b.de>
10232 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10233 silence -fwhole-file warning.
10235 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10237 * configure.tgt (*-*-solaris2.[56]*): Removed.
10239 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10241 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10242 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10243 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10244 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10245 targetting solaris2*.
10246 * configure: Regenerate.
10247 * config.h.in: Regenerate.
10249 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10250 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10251 Add libgomp_version_dep.
10252 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10254 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10255 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10256 * Makefile.in: Regenerate.
10258 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10259 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10260 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10261 to common block, protected by
10262 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10264 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10266 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10268 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10271 * configure: Regenerate.
10273 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10276 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10277 * configure: Regenerate.
10278 * Makefile.in: Regenerate.
10279 * testsuite/Makefile.in: Regenerate.
10281 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10284 * testsuite/libgomp.c/pr43893.c: New test.
10285 * testsuite/libgomp.c++/pr43893.C: New test.
10287 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10289 PR middle-end/43570
10290 * testsuite/libgomp.fortran/vla8.f90: New test.
10292 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10295 * config/linux/affinity.c (gomp_init_affinity): Decrease
10296 gomp_available_cpus if affinity mask confines the process to fewer
10298 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10299 non-NULL, just return gomp_available_cpus.
10302 * sections.c (gomp_sections_init): Initialize ws->mode.
10304 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10306 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10307 not unused bar variable.
10308 * configure: Regenerate.
10310 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10312 * Makefile.in: Regenerate.
10313 * aclocal.m4: Regenerate.
10314 * testsuite/Makefile.in: Regenerate.
10316 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10319 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10320 (initialize_env): Adjust callers.
10321 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10322 when the argument is 0.
10324 * testsuite/libgomp.c/pr42942.c: New test.
10326 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10328 PR middle-end/42644
10329 PR middle-end/42130
10330 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10331 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10333 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10335 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10336 * testsuite/libgomp.c++/task-6.C: Likewise.
10338 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10340 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10342 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10344 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10345 * configure: Regenerate.
10347 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10350 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10352 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10354 * configure.ac: Test for executability of GFORTRAN.
10355 * configure: Regenerate.
10357 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10359 * configure: Regenerate.
10361 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10364 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10366 2010-01-03 Richard Guenther <rguenther@suse.de>
10368 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10370 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10372 * testsuite/libgomp.graphite/pr4118.c: New.
10374 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10376 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10377 for darwin, protect the test with require-effective-target tls_runtime.
10378 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10380 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10383 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10384 link spec %s substitutions for static libraries.
10386 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10389 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10391 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10393 * Makefile.in: Regenerate.
10394 * configure: Regenerate.
10395 * testsuite/Makefile.in: Regenerate.
10397 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10399 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10400 settings for LC_ALL and LANG.
10402 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10405 * testsuite/libgomp.fortran/pr42162.f90: New test.
10407 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10409 PR middle-end/42029
10410 * testsuite/libgomp.c/pr42029.c: New test.
10412 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10414 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10415 *s. Accept ld version without text in ()s.
10416 * configure: Regenerated.
10418 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10420 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10422 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10425 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10426 or a hyphen (happens with fortran language disabled).
10427 * configure: Regenerate.
10429 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10431 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10432 use sed script portable to Solaris /bin/sed for extracting ld
10434 * configure: Regenerate.
10436 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10438 * testsuite/libgomp.graphite/bounds.c: New test.
10440 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10442 * Makefile.am (libgomp_la_LINK): New.
10443 * Makefile.in: Regenerate.
10445 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10447 * configure.ac (AC_PREREQ): Bump to 2.64.
10449 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10451 * Makefile.am (install-html, install-pdf): Remove.
10452 * Makefile.in: Regenerate.
10454 * Makefile.in: Regenerate.
10455 * aclocal.m4: Regenerate.
10456 * config.h.in: Regenerate.
10457 * configure: Regenerate.
10458 * testsuite/Makefile.in: Regenerate.
10460 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10462 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10463 * Makefile.in: Regenerate.
10465 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10467 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10468 * Makefile.in: Regenerate.
10470 2009-08-19 Tobias Burnus <burnus@net-b.de>
10473 omp_lib.h.in: Fix -std=f95 errors.
10475 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10477 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10478 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10479 * testsuite/libgomp.graphite/graphite.exp: New.
10481 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10483 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10486 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10488 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10489 needed memory barrier semantics.
10490 * config/linux/mips/mutex.h: New file.
10492 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10494 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10496 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10498 * configure: Regenerate.
10500 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10505 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10506 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10507 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10509 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10511 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10512 options when choosing a multilib.
10514 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10516 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10517 ld_library_path. Use add_path. Add just find_libgcc_s to
10518 ld_library_path, not every libgcc multilib directory.
10519 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10520 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10521 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10523 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10525 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10527 * Makefile.am (LTLDFLAGS): Define.
10529 * Makefile.in: Regenerate.
10531 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10534 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10535 libgfortranbegin, check existence of libgfortran.a instead of
10536 libgfortranbegin.a.
10538 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10541 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10542 (gomp_free_pool_helper): Likewise.
10544 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10545 Jakub Jelinek <jakub@redhat.com>
10548 * testsuite/libgomp.fortran/workshare2.f90: New test.
10550 2009-04-09 Nick Clifton <nickc@redhat.com>
10552 * iter.c: Change copyright header to refer to version 3 of the
10553 GNU General Public License with version 3.1 of the GCC Runtime
10554 Library Exception and to point readers at the COPYING3 and
10555 COPYING3.RUNTIME files and the FSF's license web page.
10556 * alloc.c: Likewise.
10557 * barrier.c: Likewise.
10558 * config/bsd/proc.c: Likewise.
10559 * config/linux/affinity.c: Likewise.
10560 * config/linux/alpha/futex.h: Likewise.
10561 * config/linux/bar.c: Likewise.
10562 * config/linux/bar.h: Likewise.
10563 * config/linux/ia64/futex.h: Likewise.
10564 * config/linux/ia64/mutex.h: Likewise.
10565 * config/linux/lock.c: Likewise.
10566 * config/linux/mips/futex.h: Likewise.
10567 * config/linux/mutex.c: Likewise.
10568 * config/linux/mutex.h: Likewise.
10569 * config/linux/powerpc/futex.h: Likewise.
10570 * config/linux/proc.c: Likewise.
10571 * config/linux/ptrlock.c: Likewise.
10572 * config/linux/ptrlock.h: Likewise.
10573 * config/linux/s390/futex.h: Likewise.
10574 * config/linux/sem.c: Likewise.
10575 * config/linux/sem.h: Likewise.
10576 * config/linux/sparc/futex.h: Likewise.
10577 * config/linux/wait.h: Likewise.
10578 * config/linux/x86/futex.h: Likewise.
10579 * config/mingw32/proc.c: Likewise.
10580 * config/mingw32/time.c: Likewise.
10581 * config/posix/affinity.c: Likewise.
10582 * config/posix/bar.c: Likewise.
10583 * config/posix/bar.h: Likewise.
10584 * config/posix/lock.c: Likewise.
10585 * config/posix/mutex.h: Likewise.
10586 * config/posix/proc.c: Likewise.
10587 * config/posix/ptrlock.h: Likewise.
10588 * config/posix/sem.c: Likewise.
10589 * config/posix/sem.h: Likewise.
10590 * config/posix/time.c: Likewise.
10591 * config/posix95/lock.c: Likewise.
10592 * critical.c: Likewise.
10594 * error.c: Likewise.
10595 * fortran.c: Likewise.
10596 * iter_ull.c: Likewise.
10597 * libgomp.h: Likewise.
10598 * libgomp_f.h.in: Likewise.
10599 * libgomp_g.h: Likewise.
10600 * loop.c: Likewise.
10601 * loop_ull.c: Likewise.
10602 * omp.h.in: Likewise.
10603 * omp_lib.f90.in: Likewise.
10604 * omp_lib.h.in: Likewise.
10605 * ordered.c: Likewise.
10606 * parallel.c: Likewise.
10607 * sections.c: Likewise.
10608 * single.c: Likewise.
10609 * task.c: Likewise.
10610 * team.c: Likewise.
10611 * work.c: Likewise.
10613 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10615 * testsuite/config/default.exp: Change copyright header to refer to
10616 version 3 of the GNU General Public License and to point readers
10617 at the COPYING3 file and the FSF's license web page.
10619 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10621 PR middle-end/39573
10622 * libgomp.c++/pr39573.C: New test.
10624 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10627 * testsuite/libgomp.c/pr39591-1.c: New test.
10628 * testsuite/libgomp.c/pr39591-2.c: New test.
10629 * testsuite/libgomp.c/pr39591-3.c: New test.
10631 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10633 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10634 * testsuite/libgomp.c/atomic-6.c: Ditto.
10636 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10639 * testsuite/libgomp.c/loop-12.c: New test.
10640 * testsuite/libgomp.c/loop-11.c: New test.
10641 * testsuite/libgomp.c++/loop-11.C: New test.
10642 * testsuite/libgomp.c++/loop-12.C: New test.
10643 * testsuite/libgomp.c++/for-8.C: New test.
10645 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10647 * configure: Regenerate.
10649 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10651 PR middle-end/39154
10652 * testsuite/libgomp.c/pr39154.c: New test.
10654 2009-01-30 Ian Lance Taylor <iant@google.com>
10656 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10657 libgomp_ld_is_gold. Get gold version number.
10658 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10659 * configure: Rebuild.
10661 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10663 * testsuite/lib/libgomp.exp: Add -B option for targets that
10664 use libgfortran.a%s in their specs.
10666 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10669 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10670 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10671 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10672 * configure: Regenerated.
10673 * config.h.in: Likewise.
10675 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10678 * testsuite/libgomp.c/pr38650.c: New test.
10679 * testsuite/libgomp.c++/pr38650.C: New test.
10681 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10683 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10685 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10687 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10689 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10691 * configure: Regenerate.
10693 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10695 PR middle-end/36802
10696 * testsuite/libgomp.c/pr36802-1.c: New test.
10697 * testsuite/libgomp.c/pr36802-2.c: New test.
10698 * testsuite/libgomp.c/pr36802-3.c: New test.
10700 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10703 * config/linux/powerpc/mutex.h: New.
10705 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10708 * testsuite/libgomp.c++/for-7.C: New test.
10711 * testsuite/libgomp.c++/for-6.C: New test.
10713 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10716 * testsuite/lib/libgomp.exp: Include new timeout library files.
10717 (libgomp_target_compile): Set timeout value from new proc.
10719 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10722 * config/linux/ia64/mutex.h: New.
10724 2008-11-04 Tobias Burnus <burnus@net-b.de>
10727 * libgomp.texi (Runtime library routines, environment variables):
10728 Update for OpenMP version 3.0.
10730 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10731 Steve Ellcey <sje@cup.hp.com>
10733 * configure: Regenerate for new libtool.
10734 * Makefile.in: Ditto.
10735 * testsuite/Makefile.in: Ditto.
10737 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10738 Andreas Tobler <a.tobler@schweiz.org>
10740 * config/bsd/proc.c: New file.
10741 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10742 * configure.ac: Check for header <sys/sysctl.h>
10743 * configure: Regenerate.
10744 * config.h.in: Likewise.
10746 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10748 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10750 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10752 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10753 * Makefile.in: Regenerated.
10754 * testsuite/Makefile.in: Regenerated.
10756 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10758 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10759 depend on blddir if blddir exists.
10760 (libgomp_target_compile): Likewise.
10761 * testsuite/libgomp.c++/c++.exp: Likewise.
10762 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10764 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10766 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10767 Do not list GPL as Invariant Section.
10769 2008-07-28 Ilie Garbacea <ilie@mips.com>
10770 Chao-ying Fu <fu@mips.com>
10772 * configure.tgt: Enable futex for MIPS.
10773 * config/linux/mips/futex.h: New file.
10775 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10777 * team.c (gomp_team_end): Free team immediately if it has
10780 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10782 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10783 * testsuite/libgomp.fortran/fortran.exp: Same.
10784 * testsuite/libgomp.c/c.exp: Same.
10785 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10786 directory to library path first.
10788 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10790 * env.c (parse_stacksize): Add cast to avoid warning.
10791 (parse_spincount): Likewise.
10793 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10795 * testsuite/libgomp.c/loop-10.c: New test.
10796 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10797 * libgomp.c++/loop-6.C (main): Likewise.
10800 * testsuite/libgomp.c/debug-1.c: New test.
10802 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10804 * testsuite/libgomp.c/nqueens-1.c: New test.
10807 * testsuite/libgomp.c++/task-7.C: New function.
10809 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10811 * configure: Regenerate.
10813 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10815 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10816 mutex when HAVE_SYNC_BUILTINS isn't defined.
10818 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10820 * libgomp.texi (omp_test_lock): Fix typo.
10822 2008-06-12 Tobias Burnus <burnus@net-b.de>
10824 * omp_lib.f90.in: Add "implicit none".
10826 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10828 PR middle-end/36506
10829 * testsuite/libgomp.c/reduction-5.c: New test.
10831 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10833 * libgomp.h (struct gomp_task): Add in_tied_task field.
10834 * task.c (gomp_init_task): Initialize it.
10835 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10836 unconditionally. Don't call gomp_team_barrier_wake if
10837 current task is implicit or if(0) from implicit and number of
10838 running tasks is equal to nthreads - 1.
10841 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10842 omp_get_team_size_8): Fix pastos.
10845 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10846 * configure: Regenerated.
10847 * config.h.in: Regenerated.
10848 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10851 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10854 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10855 (GOMP_loop_ull_dynamic_start): Likewise.
10856 (GOMP_loop_ull_guided_start): Likewise.
10857 (GOMP_loop_ull_ordered_static_start): Likewise.
10858 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10859 (GOMP_loop_ull_ordered_guided_start): Likewise.
10861 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10862 Richard Henderson <rth@redhat.com>
10863 Ulrich Drepper <drepper@redhat.com>
10864 Jakob Blomer <jakob.blomer@ira.uka.de>
10866 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10867 Substitute also OMP_*LOCK_25*.
10868 * configure: Regenerated.
10869 * config.h.in: Regenerated.
10870 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10871 ptrlock.c and task.c.
10872 * Makefile.in: Regenerated.
10873 * testsuite/Makefile.in: Regenerated.
10874 * task.c: New file.
10875 * loop_ull.c: New file.
10876 * iter_ull.c: New file.
10877 * libgomp.h: Include ptrlock.h.
10878 (enum gomp_task_kind): New type.
10879 (struct gomp_team): Add task_lock, task_queue, task_count,
10880 task_running_count, single_count fields. Add
10881 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10882 Remove work_share_lock, generation_mask,
10883 oldest_live_gen, num_live_gen and init_work_shares fields, add
10884 work work_share_list_alloc, work_share_list_free and work_share_chunk
10885 fields. Change work_shares from pointer to pointers into an array.
10886 Change ordered_release field into gomp_sem_t ** from flexible array
10887 member. Add implicit_task and initial_work_shares fields.
10888 Move close to the end of the struct.
10889 (struct gomp_team_state): Add single_count, last_work_share,
10890 active_level and level fields, remove work_share_generation.
10891 (gomp_barrier_handle_tasks): New prototype.
10892 (gomp_finish_task): New inline function.
10893 (struct gomp_work_share): Move chunk_size, end, incr into
10894 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10895 next_ll fields. Reshuffle fields. Add next_alloc,
10896 next_ws, next_free and inline_ordered_team_ids fields, change
10897 ordered_team_ids into pointer from flexible array member.
10898 Add mode field. Put lock and next into a different cache line
10899 from most of the write-once fields.
10900 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10901 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10902 gomp_iter_ull_guided_next): New prototypes.
10903 (gomp_new_icv): New prototype.
10904 (struct gomp_thread): Add thread_pool and task fields.
10905 (struct gomp_thread_pool): New type.
10906 (gomp_new_team): New prototype.
10907 (gomp_team_start): Change type of last argument.
10908 (gomp_new_work_share): Removed.
10909 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10910 (gomp_work_share_init_done): New static inline.
10911 (gomp_throttled_spin_count_var, gomp_available_cpus,
10912 gomp_managed_threads): New extern decls.
10913 (gomp_init_task): New prototype.
10914 (gomp_spin_count_var): New extern var decl.
10915 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10916 or no alias support, or if not PIC.
10917 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10918 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10919 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10920 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10921 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10922 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10923 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10924 gomp_test_nest_lock_25): New prototypes.
10925 (omp_lock_symver, strong_alias): Define.
10926 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10928 (gomp_end_task): New.
10929 (struct gomp_task_icv, gomp_global_icv): New.
10930 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10931 (struct gomp_task): New.
10932 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10933 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10935 (gomp_schedule_type): Reorder enum to match
10937 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10939 (gomp_thread_start): Add gomp_team_barrier_wait call.
10940 For non-nested case remove clearing of docked thread thr fields.
10941 Use pool fields instead of global gomp_* variables. Use
10942 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10943 Create tasks for each member thread.
10944 (free_team): Only destroy team barrier, task_lock here and free it.
10945 (gomp_free_thread): Free last_team if non-NULL.
10946 (gomp_team_end): Call gomp_team_barrier_wait instead of
10947 gomp_barrier_wait. For nested case call one extra
10948 gomp_barrier_wait. Move here some destruction from free_team.
10949 Call free_team on pool->last_team if any, rather than freeing
10950 current team. Destroy work_share_list_free_lock ifndef
10951 HAVE_SYNC_BUILTINS.
10952 (gomp_new_icv): New function.
10953 (gomp_threads, gomp_threads_size, gomp_threads_used,
10954 gomp_threads_dock): Removed.
10955 (gomp_thread_destructor): New variable.
10956 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10958 (gomp_team_start): Create new pool if current thread doesn't have
10959 one. Use pool fields instead of global gomp_* variables.
10960 Initialize thread_pool field for new threads. Clear single_count.
10961 Change last argument from ws to team, don't create
10962 new team, set ts.work_share to &team->work_shares[0] and clear
10963 ts.last_work_share. Don't clear ts.work_share_generation.
10964 If number of threads changed, adjust atomically gomp_managed_threads.
10965 Use gomp_init_task instead of gomp_new_task,
10966 set thr->task to the corresponding implicit_task array entry.
10967 Create tasks for each member thread. Initialize ts.level.
10968 (initialize_team): Call pthread_key_create on
10969 gomp_thread_destructor.
10970 (team_destructor): New function.
10971 (new_team): Removed.
10972 (gomp_new_team): New function.
10973 (free_team): Free gomp_work_share blocks chained through next_alloc,
10974 instead of freeing work_shares and destroying work_share_lock.
10975 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10976 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10977 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10978 of gomp_barrier_wait.
10979 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10980 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10981 if gomp_work_share_start returned true. Don't unlock ws->lock.
10982 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10983 of gomp_barrier_wait.
10984 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10985 gomp_work_share_init_done if gomp_work_share_start returned true.
10986 Don't unlock ws->lock.
10987 * work.c: Include stddef.h.
10988 (free_work_share): Use work_share_list_free_lock instead
10989 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10990 Call gomp_fini_work_share and then either free ws if orphaned, or
10991 put it into work_share_list_free list of the current team.
10992 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10994 (gomp_work_share_start, gomp_work_share_end,
10995 gomp_work_share_end_nowait): Rewritten.
10996 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10997 (openmp_version): Set to 200805.
10998 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10999 omp_sched_guided, omp_sched_auto): New parameters.
11000 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11001 omp_set_max_active_levels, omp_get_max_active_levels,
11002 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11003 omp_get_active_level): New interfaces.
11004 * omp_lib.h.in (openmp_version): Set to 200805.
11005 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11006 omp_sched_guided, omp_sched_auto): New parameters.
11007 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11008 omp_set_max_active_levels, omp_get_max_active_levels,
11009 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11010 omp_get_active_level): New externals.
11011 * loop.c: Include limits.h.
11012 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11014 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11015 Likewise. Use gomp_icv.
11016 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11017 ts.static_trip here.
11018 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11019 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11020 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11021 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11022 don't unlock ws->lock, otherwise lock it.
11023 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11024 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11025 (gomp_parallel_loop_start): Call gomp_new_team instead of
11026 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11027 Adjust gomp_team_start caller. Pass 0 as second argument to
11028 gomp_resolve_num_threads.
11029 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11030 If adding ws->chunk_size nthreads + 1 times after end won't
11031 overflow, set ws->mode to 1.
11032 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11033 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11034 GOMP_loop_ull_ordered_static_start,
11035 GOMP_loop_ull_ordered_dynamic_start,
11036 GOMP_loop_ull_ordered_guided_start,
11037 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11038 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11039 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11040 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11041 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11043 * libgomp.map: Export lock routines also @@OMP_2.0.
11044 (GOMP_loop_ordered_dynamic_first,
11045 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11046 GOMP_loop_ordered_static_first): Remove.
11047 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11048 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11049 GOMP_loop_ull_ordered_dynamic_next,
11050 GOMP_loop_ull_ordered_dynamic_start,
11051 GOMP_loop_ull_ordered_guided_next,
11052 GOMP_loop_ull_ordered_guided_start,
11053 GOMP_loop_ull_ordered_runtime_next,
11054 GOMP_loop_ull_ordered_runtime_start,
11055 GOMP_loop_ull_ordered_static_next,
11056 GOMP_loop_ull_ordered_static_start,
11057 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11058 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11059 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11060 (omp_set_schedule, omp_get_schedule,
11061 omp_get_thread_limit, omp_set_max_active_levels,
11062 omp_get_max_active_levels, omp_get_level,
11063 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11064 omp_set_schedule_, omp_set_schedule_8_,
11065 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11066 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11067 omp_get_max_active_levels_, omp_get_level_,
11068 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11069 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11070 New exports @@OMP_3.0.
11071 * omp.h.in (omp_sched_t): New type.
11072 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11073 omp_set_max_active_levels, omp_get_max_active_levels,
11074 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11075 omp_get_active_level): New prototypes.
11076 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11077 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11078 gomp_thread_limit_var, gomp_remaining_threads_count,
11079 gomp_remaining_threads_lock): New variables.
11080 (parse_spincount): New function.
11081 (initialize_env): Call gomp_init_num_threads unconditionally.
11082 Initialize gomp_available_cpus. Call parse_spincount,
11083 initialize gomp_{,throttled_}spin_count_var
11084 depending on presence and value of OMP_WAIT_POLICY and
11085 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11086 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11087 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11088 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11089 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11090 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11091 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11092 (gomp_global_icv): New.
11093 (parse_schedule): Use it. Parse "auto".
11094 (omp_set_num_threads): Use gomp_icv.
11095 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11097 (omp_get_max_threads): Move from parallel.c.
11098 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11099 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11101 (parse_stacksize, parse_wait_policy): New functions.
11102 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11103 both wrappers for compatibility and new locks.
11104 (omp_set_schedule, omp_get_schedule,
11105 omp_get_thread_limit, omp_set_max_active_levels,
11106 omp_get_max_active_levels, omp_get_level,
11107 omp_get_ancestor_thread_num, omp_get_team_size,
11108 omp_get_active_level): New ialias_redirect.
11109 (omp_set_schedule_, omp_set_schedule_8_,
11110 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11111 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11112 omp_get_max_active_levels_, omp_get_level_,
11113 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11114 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11116 * parallel.c: Include limits.h.
11117 (gomp_resolve_num_threads): Add count argument. Rewritten.
11118 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11119 argument to gomp_team_start. Pass 0 as second argument to
11120 gomp_resolve_num_threads.
11121 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11122 if gomp_thread_limit_var != ULONG_MAX.
11123 (omp_in_parallel): Implement using ts.active_level.
11124 (omp_get_max_threads): Move to env.c.
11125 (omp_get_level, omp_get_ancestor_thread_num,
11126 omp_get_team_size, omp_get_active_level): New functions,
11128 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11129 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11130 gomp_iter_dynamic_next instead of the _locked variant and don't take
11131 lock around it, otherwise acquire it before calling
11132 gomp_iter_dynamic_next_locked.
11133 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11134 gomp_iter_dynamic_next instead of the _locked variant and don't take
11136 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11137 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11138 Adjust gomp_team_start caller. Pass count as second argument to
11139 gomp_resolve_num_threads, don't adjust num_threads after the call.
11141 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11142 ws->chunk_size by incr.
11143 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11145 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11147 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11148 (omp_check_defines): Check even the compat defines.
11149 * config/linux/ptrlock.c: New file.
11150 * config/linux/ptrlock.h: New file.
11151 * config/linux/wait.h: New file.
11152 * config/posix/ptrlock.c: New file.
11153 * config/posix/ptrlock.h: New file.
11154 * config/linux/bar.h (gomp_team_barrier_wait,
11155 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11156 (gomp_team_barrier_set_task_pending,
11157 gomp_team_barrier_clear_task_pending,
11158 gomp_team_barrier_set_waiting_for_tasks,
11159 gomp_team_barrier_waiting_for_tasks,
11160 gomp_team_barrier_done): New inlines.
11161 (gomp_barrier_t): Rewritten.
11162 (gomp_barrier_state_t): New typedef.
11163 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11164 gomp_barrier_wait_start): Rewritten.
11165 (gomp_barrier_wait_end): Change second argument to
11166 gomp_barrier_state_t.
11167 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11169 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11171 (gomp_barrier_wait_end): Rewritten.
11172 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11173 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11174 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11175 (gomp_barrier_state_t): New typedef.
11176 (gomp_team_barrier_wait,
11177 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11178 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11179 into the return value. Return gomp_barrier_state_t.
11180 (gomp_team_barrier_set_task_pending,
11181 gomp_team_barrier_clear_task_pending,
11182 gomp_team_barrier_set_waiting_for_tasks,
11183 gomp_team_barrier_waiting_for_tasks,
11184 gomp_team_barrier_done): New inlines.
11185 (gomp_barrier_wait_end): Change second argument to
11186 gomp_barrier_state_t.
11187 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11189 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11190 (gomp_barrier_wait_end): Change second argument to
11191 gomp_barrier_state_t.
11192 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11193 gomp_team_barrier_wake): New functions.
11194 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11196 (gomp_futex_wake, gomp_futex_wait): New variables.
11197 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11198 * config/linux/lock.c: Rewrite to make locks task owned,
11199 for backwards compatibility provide the old entrypoints
11200 if symbol versioning. Include wait.h instead of libgomp.h and
11202 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11203 * config/posix95/lock.c: Rewrite to make locks task owned,
11204 for backwards compatibility provide the old entrypoints
11205 if symbol versioning.
11206 * config/posix/lock.c: Rewrite to make locks task owned,
11207 for backwards compatibility provide the old entrypoints
11208 if symbol versioning.
11209 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11210 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11211 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11212 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11213 (sys_futex0): Return error code.
11214 (futex_wake, futex_wait): If ENOSYS was returned, clear
11215 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11216 (cpu_relax, atomic_write_barrier): New static inlines.
11217 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11218 (futex_wake, futex_wait): If ENOSYS was returned, clear
11219 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11220 (cpu_relax, atomic_write_barrier): New static inlines.
11221 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11222 (sys_futex0): Return error code.
11223 (futex_wake, futex_wait): If ENOSYS was returned, clear
11224 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11225 (cpu_relax, atomic_write_barrier): New static inlines.
11226 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11227 (sys_futex0): Return error code.
11228 (futex_wake, futex_wait): If ENOSYS was returned, clear
11229 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11230 (cpu_relax, atomic_write_barrier): New static inlines.
11231 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11232 (sys_futex0): Return error code.
11233 (futex_wake, futex_wait): If ENOSYS was returned, clear
11234 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11235 (cpu_relax, atomic_write_barrier): New static inlines.
11236 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11237 (sys_futex0): Return error code.
11238 (futex_wake, futex_wait): If ENOSYS was returned, clear
11239 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11240 (cpu_relax, atomic_write_barrier): New static inlines.
11241 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11243 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11244 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11245 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11247 (omp_nest_lock_t): Change owner into void *, add lock field.
11248 * config/posix95/omp-lock.h: Include semaphore.h.
11249 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11250 (omp_lock_t): Use sem_t instead of mutex if semaphores
11252 (omp_nest_lock_t): Likewise. Change owner to void *.
11253 * config/posix/omp-lock.h: Include semaphore.h.
11254 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11255 (omp_lock_t): Use sem_t instead of mutex if semaphores
11257 (omp_nest_lock_t): Likewise. Add owner field.
11259 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11261 * testsuite/libgomp.c/collapse-1.c: New test.
11262 * testsuite/libgomp.c/collapse-2.c: New test.
11263 * testsuite/libgomp.c/collapse-3.c: New test.
11264 * testsuite/libgomp.c/icv-1.c: New test.
11265 * testsuite/libgomp.c/icv-2.c: New test.
11266 * testsuite/libgomp.c/lib-2.c: New test.
11267 * testsuite/libgomp.c/lock-1.c: New test.
11268 * testsuite/libgomp.c/lock-2.c: New test.
11269 * testsuite/libgomp.c/lock-3.c: New test.
11270 * testsuite/libgomp.c/loop-4.c: New test.
11271 * testsuite/libgomp.c/loop-5.c: New test.
11272 * testsuite/libgomp.c/loop-6.c: New test.
11273 * testsuite/libgomp.c/loop-7.c: New test.
11274 * testsuite/libgomp.c/loop-8.c: New test.
11275 * testsuite/libgomp.c/loop-9.c: New test.
11276 * testsuite/libgomp.c/nested-3.c: New test.
11277 * testsuite/libgomp.c/nestedfn-6.c: New test.
11278 * testsuite/libgomp.c/sort-1.c: New test.
11279 * testsuite/libgomp.c/task-1.c: New test.
11280 * testsuite/libgomp.c/task-2.c: New test.
11281 * testsuite/libgomp.c/task-3.c: New test.
11282 * testsuite/libgomp.c/task-4.c: New test.
11283 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11284 to C++ testsuite default compiler options.
11285 * testsuite/libgomp.c++/collapse-1.C: New test.
11286 * testsuite/libgomp.c++/collapse-2.C: New test.
11287 * testsuite/libgomp.c++/ctor-10.C: New test.
11288 * testsuite/libgomp.c++/for-1.C: New test.
11289 * testsuite/libgomp.c++/for-2.C: New test.
11290 * testsuite/libgomp.c++/for-3.C: New test.
11291 * testsuite/libgomp.c++/for-4.C: New test.
11292 * testsuite/libgomp.c++/for-5.C: New test.
11293 * testsuite/libgomp.c++/loop-8.C: New test.
11294 * testsuite/libgomp.c++/loop-9.C: New test.
11295 * testsuite/libgomp.c++/loop-10.C: New test.
11296 * testsuite/libgomp.c++/task-1.C: New test.
11297 * testsuite/libgomp.c++/task-2.C: New test.
11298 * testsuite/libgomp.c++/task-3.C: New test.
11299 * testsuite/libgomp.c++/task-4.C: New test.
11300 * testsuite/libgomp.c++/task-5.C: New test.
11301 * testsuite/libgomp.c++/task-6.C: New test.
11302 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11303 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11304 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11305 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11306 * testsuite/libgomp.fortran/collapse1.f90: New test.
11307 * testsuite/libgomp.fortran/collapse2.f90: New test.
11308 * testsuite/libgomp.fortran/collapse3.f90: New test.
11309 * testsuite/libgomp.fortran/collapse4.f90: New test.
11310 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11311 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11312 * testsuite/libgomp.fortran/lib4.f90: New test.
11313 * testsuite/libgomp.fortran/lock-1.f90: New test.
11314 * testsuite/libgomp.fortran/lock-2.f90: New test.
11315 * testsuite/libgomp.fortran/nested1.f90: New test.
11316 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11317 * testsuite/libgomp.fortran/strassen.f90: New test.
11318 * testsuite/libgomp.fortran/tabs1.f90: New test.
11319 * testsuite/libgomp.fortran/tabs2.f: New test.
11320 * testsuite/libgomp.fortran/task1.f90: New test.
11321 * testsuite/libgomp.fortran/task2.f90: New test.
11322 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11323 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11324 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11325 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11326 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11328 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11331 * testsuite/libgomp.c++/ctor-11.C: New test.
11332 * testsuite/libgomp.c++/ctor-12.C: New test.
11334 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11336 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11338 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11340 PR middle-end/36106
11341 * testsuite/libgomp.c/atomic-5.c: New test.
11342 * testsuite/libgomp.c/atomic-6.c: New test.
11343 * testsuite/libgomp.c/autopar-1.c: New test.
11345 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11347 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11348 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11349 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11350 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11351 * configure: Regenerate.
11352 * Makefile.in, testsuite/Makefile.in: Likewise.
11354 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11357 * aclocal.m4: Regenerate.
11358 * configure: Regenerate.
11360 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11362 PR middle-end/35611
11363 * testsuite/libgomp.c/atomic-4.c: New test.
11366 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11367 (gomp_iter_guided_next): Likewise.
11368 * testsuite/libgomp.c/pr35625.c: New test.
11370 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11372 * aclocal.m4: Regenerate.
11373 * configure: Likewise.
11374 * Makefile.in: Likewise.
11375 * testsuite/Makefile.in: Likewise.
11377 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11379 PR middle-end/35185
11380 * testsuite/libgomp.c++/pr35185.C: New test.
11382 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11384 PR middle-end/35549
11385 * testsuite/libgomp.c/pr35549.c: New test.
11387 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11389 * testsuite/libgomp.c/atomic-3.c: New test.
11391 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11394 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11395 .F08 file suffixes.
11397 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11400 * configure.ac: Add ACX_HEADER_STRING.
11401 * env.c: Include strings.h.
11402 * aclocal.m4: Regenerate.
11403 * config.h.in: Regenerate.
11404 * configure: Regenerate.
11405 * Makefile.in: Regenerate.
11406 * testsuite/Makefile.in: Regenerate.
11408 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11410 PR middle-end/35196
11411 * testsuite/libgomp.c/pr35196.c: New test.
11413 PR middle-end/35130
11414 * testsuite/libgomp.fortran/pr35130.f90: New test.
11415 * testsuite/libgomp.c/pr35130.c: New test.
11417 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11419 PR middle-end/33880
11420 * testsuite/libgomp.c/pr33880.c: New test.
11421 * testsuite/libgomp.fortran/pr33880.f90: New test.
11423 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11425 * configure: Regenerate.
11427 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11429 * configure.ac: Move futex checking into ../config/futex.m4.
11430 * configure: Rebuilt.
11431 * aclocal.m4: Rebuilt.
11432 * Makefile.in: Rebuilt.
11434 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11435 2007-10-15 ../config/tls.m4 change.
11437 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11440 * testsuite/libgomp.c/pr34513.c: New test.
11441 * testsuite/libgomp.c++/pr34513.C: New test.
11443 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11446 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11448 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11450 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11452 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11454 * testsuite/libgomp.c/private-1.c: New test.
11456 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11457 Paolo Bonzini <bonzini@gnu.org>
11459 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11460 instead of 'VPATH ='.
11461 * Makefile.in: Regenerate.
11463 2007-11-23 Matthias Klose <doko@ubuntu.com>
11465 * configure.ac: Adjust makeinfo version check.
11466 * configure: Regenerate.
11468 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11471 * testsuite/libgomp.fortran/pr34020.f90: New test.
11473 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11476 * testsuite/libgomp.c++/atomic-1.C: New test.
11478 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11481 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11482 Make x and y integers rather than (implicit) reals. Add private (j)
11483 clause to the last omp parallel.
11485 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11487 * configure: Regenerate following changes to ../config/tls.m4.
11489 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11491 * testsuite/libgomp.fortran/stack.f90: New test.
11493 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11495 * config/mingw32/proc.c: New file.
11497 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11499 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11500 (main): Use __get_cpuid to get i386 target fetaures.
11501 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11502 (main): Use __get_cpuid to get x86_64 target fetaures.
11504 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11507 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11508 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11510 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11513 * testsuite/libgomp.fortran/pr32550.f90: New test.
11514 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11516 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11518 * aclocal.m4: Regenerated.
11520 2007-07-05 Tobias Burnus <burnus@net-b.de>
11523 * testsuite/libgomp.fortran/pr32359.f90: New.
11525 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11528 * sections.c (GOMP_parallel_sections_start): Only decrease
11529 number of threads to COUNT if dyn_var is true.
11530 * testsuite/libgomp.c/pr32468.c: New test.
11532 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11535 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11537 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11539 PR middle-end/32362
11540 * testsuite/libgomp.c/pr32362-1.c: New test.
11541 * testsuite/libgomp.c/pr32362-2.c: New test.
11542 * testsuite/libgomp.c/pr32362-3.c: New test.
11544 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11546 * team.c (gomp_team_start): Fix setting up thread_attr
11549 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11551 * configure: Regenerate.
11553 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11555 * Makefile.in: Regenerate.
11556 * configure: Regenerate.
11557 * aclocal.m4: Regenerate.
11558 * testsuite/Makefile.in: Regenerate.
11560 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11562 * config/linux/proc.c: New file.
11565 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11567 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11569 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11571 2007-04-16 Matthias Klose <doko@debian.org>
11573 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11574 flags if not building with -m64.
11575 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11576 flag for i?86-*-* targets, if current target matches -m64.
11578 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11580 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11581 * Makefile.in: Regenerate.
11583 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11586 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11588 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11590 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11592 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11594 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11595 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11596 (parse_affinity): New function.
11597 (initialize_env): Call it and gomp_init_affinity.
11598 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11599 create new pthread_attr_t and call gomp_init_thread_affinity
11600 on it for each thread before passing the attribute to pthread_create.
11601 * config/linux/affinity.c: New file.
11602 * config/posix/affinity.c: New file.
11603 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11604 * configure: Rebuilt.
11605 * config.h.in: Rebuilt.
11606 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11607 * Makefile.in: Rebuilt.
11609 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11611 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11613 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11614 and use it if found.
11616 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11618 * testsuite/config/default.exp: New file.
11619 * testsuite/lib/libgomp.exp: New file.
11620 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11621 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11622 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11623 (libgomp_load): Remove.
11624 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11625 always_ld_library_path, not ld_library_path. Set additional_flags
11626 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11627 (target_compile): Do not call libgomp_init. Append lang_library_path
11628 and lang_link_flags to options.
11629 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11630 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11632 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11633 always_ld_library_path. Set LD_LIBRARY_PATH here.
11634 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11635 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11636 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11638 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11639 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11640 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11641 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11642 * testsuite/libgomp.c/atomic-10.c: Ditto.
11644 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11646 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11647 dg-final cleanup-modules line.
11648 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11649 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11650 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11651 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11652 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11653 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11654 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11656 2007-03-18 Andreas Schwab <schwab@suse.de>
11658 * acinclude.m4: Adjust regular expression for ld version
11660 * configure: Regenerate.
11662 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11664 * Makefile.am: Add install-pdf target as copied from
11665 automake v1.10 rules.
11666 * Makefile.in: Regenerate
11668 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11671 * configure: Regenerate.
11674 * testsuite/libgomp.c++/pr30703.C: New test.
11676 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11679 2006-07-05 Eric Christopher <echristo@apple.com>
11680 * configure.ac: Depend addition of -pthread on host OS.
11681 * configure: Regenerate.
11683 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11685 * libgomp.texi: Fix spacing after abbreviations.
11687 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11690 * configure.ac: Add check for makeinfo
11691 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11692 if an appropriate version of makeinfo is found.
11693 * aclocal.m4: Regenerated.
11694 * configure: Regenerated.
11695 * Makefile.in: Regenerated.
11696 * testsuite/Makefile.in: Regenerated.
11698 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11701 * libgomp.texi: More about implementation-dependent settings.
11703 2007-01-26 Tobias Burnus <burnus@net-b.de>
11705 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11707 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11709 PR middle-end/30494
11710 * testsuite/libgomp.c/pr30494.c: New test.
11712 2007-01-15 Tom Tromey <tromey@redhat.com>
11714 * configure: Rebuilt.
11715 * configure.ac: Fixed comment.
11717 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11719 * libgomp.texi: Document implementation specific default values of
11720 environment variables.
11722 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11725 * libgomp.texi: New file.
11726 * configure.ac: Add --enable-generated-files-in-srcdir option.
11727 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11729 * Makefile.in: Regenerated.
11730 * config.h.in: Regenerated.
11731 * testsuite/Makefile.in: Regenerated.
11734 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11737 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11739 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11741 * configure: Regenerate.
11743 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11746 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11747 start if there shouldn't be any loop iterations.
11748 (gomp_loop_ordered_static_start): Remove start == end test.
11749 * testsuite/libgomp.c/pr29947-1.c: New test.
11750 * testsuite/libgomp.c/pr29947-2.c: New test.
11752 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11754 * configure.tgt: Force initial-exec TLS model on Linux only.
11756 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11758 * configure: Regenerated.
11760 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11762 * env.c (parse_schedule): Reject out of range values.
11763 (parse_unsigned_long): Reject out of range, negative or zero values.
11765 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11768 * testsuite/libgomp.fortran/pr29629.f90: New test.
11770 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11773 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11774 * config/posix95: New directory.
11775 * config/posix95/omp-lock.h: New file.
11776 * config/posix95/lock.c: Likewise.
11778 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11780 * aclocal.m4: Regenerate.
11781 * configure: Regenerate.
11783 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11785 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11788 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11790 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11792 * configure: Regenerate.
11793 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11795 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11797 PR middle-end/25261
11798 PR middle-end/28790
11799 * testsuite/libgomp.c/nestedfn-4.c: New test.
11800 * testsuite/libgomp.c/nestedfn-5.c: New test.
11801 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11804 * testsuite/libgomp.fortran/condinc1.f: New test.
11805 * testsuite/libgomp.fortran/condinc2.f: New test.
11806 * testsuite/libgomp.fortran/condinc3.f90: New test.
11807 * testsuite/libgomp.fortran/condinc4.f90: New test.
11808 * testsuite/libgomp.fortran/condinc1.inc: New file.
11810 2006-09-18 Tom Tromey <tromey@redhat.com>
11812 * configure: Rebuilt.
11814 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11817 PR preprocessor/14634
11818 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11820 * configure: Regenerate.
11822 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11824 * testsuite/libgomp.fortran/reduction3.f90: Change
11825 -2147483648 to -huge(i)-1 to avoid overflow.
11826 * testsuite/libgomp.fortran/reduction4.f90: Change
11827 Z'ffffffff' to not(0) to avoid overflow.
11829 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11832 * Makefile.am (libsubincludedir): New.
11833 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11834 * Makefile.in: Regenerate.
11836 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11839 * env.c: Include ctype.h.
11840 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11841 leading and/or trailing whitespace and compare strings case
11844 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11847 * testsuite/libgomp.fortran/pr28390.f: New test.
11849 2006-07-05 Eric Christopher <echristo@apple.com>
11851 * configure.ac: Depend addition of -pthread on host OS.
11852 * configure: Regenerate.
11854 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11856 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11857 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11860 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11864 * configure.ac: If neither --enable-linux-futex nor
11865 --disable-linux-futex is passed, determine the default by checking
11866 for compiling and/or running against NPTL. With --enable-linux-futex,
11867 check if SYS_gettid and SYS_futex are defined.
11868 * configure: Rebuilt.
11870 2006-06-14 Richard Henderson <rth@redhat.com>
11873 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11874 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11876 2006-06-09 Richard Henderson <rth@redhat.com>
11878 * env.c (gomp_nthreads_var): Change to unsigned long.
11879 (gomp_run_sched_chunk): Likewise.
11880 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11881 (initialize_env): Initialize gomp_thread_attr.
11882 * libgomp.h (gomp_nthreads_var): Update decl.
11883 (gomp_run_sched_chunk): Likewise.
11884 (gomp_thread_attr): Declare.
11885 * team.c (gomp_thread_attr): Export.
11886 (initialize_team): Don't initialize it.
11888 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11891 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11892 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11894 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11896 * config/mingw32/time.c: New file.
11897 * configure.tgt: Use it.
11899 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11901 * Makefile.am: Add install-html target. Add install-html to .PHONY
11902 * Makefile.in: Regenerate.
11904 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11907 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11908 * testsuite/libgomp.c/critical-1.c: Likewise.
11909 * testsuite/libgomp.c/loop-1.c: Likewise.
11910 * testsuite/libgomp.c/loop-2.c: Likewise.
11911 * testsuite/libgomp.c/single-1.c: Likewise.
11912 * testsuite/libgomp.c/ordered-1.c: Likewise.
11913 * testsuite/libgomp.c/ordered-2.c: Likewise.
11915 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11917 PR middle-end/27416
11918 * libgomp.fortran/pr27416-1.f90: New test.
11920 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11923 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11924 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11926 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11929 * testsuite/libgomp.c/pr26943-1.c: New test.
11930 * testsuite/libgomp.c/pr26943-2.c: New test.
11931 * testsuite/libgomp.c/pr26943-3.c: New test.
11932 * testsuite/libgomp.c/pr26943-4.c: New test.
11933 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11934 * testsuite/libgomp.c++/pr26943.C: New test.
11936 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11938 PR middle-end/27337
11939 * testsuite/libgomp.c++/pr27337.C: New test.
11941 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11944 * testsuite/libgomp.c/pr26171.c: New test.
11946 2006-04-25 Richard Henderson <rth@redhat.com>
11949 * configure.ac: Use GCC_CHECK_TLS.
11950 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11951 * Makefile.in, aclocal.m4, configure: Regenerate.
11953 2006-04-10 Matthias Klose <doko@debian.org>
11955 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11956 directory names containing underscores.
11958 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11961 * testsuite/libgomp.c++/pr26691.C: New test.
11963 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11965 * testsuite/libgomp.fortran/retval2.f90: New test.
11967 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11969 * testsuite/libgomp.c++: New directory.
11971 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11973 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11974 * config/posix/sem.c: Implement the above.
11976 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11978 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11979 define HAVE_BROKEN_POSIX_SEMAPHORES.
11980 * configure: Rebuilt.
11981 * config.h.in: Rebuilt.
11983 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11986 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11987 for the other pthread check.
11988 * configure: Regenerate.
11989 * config.h.in: Regenerate.
11991 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11995 * Makefile.am (fincludedir): New variable.
11996 (nodist_include_HEADERS): Remove Fortran files.
11997 (nodist_finclude_HEADERS): New variable.
11998 * Makefile.in: Regenerated.
12000 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12002 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12003 Remove tests for returning assumed character length arrays.
12005 2006-02-12 Roger Sayle <roger@eyesopen.com>
12006 John David Anglin <dave@hiauly1.hia.nrc.ca>
12009 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12011 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12013 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12015 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12017 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12018 part of LD_LIBRARY_PATH manually.
12020 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12023 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12026 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12029 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12030 * configure.ac (PERL): Don't set.
12031 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12032 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12033 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12034 * omp.h.in: Wrap the new configure substitutions with @ characters.
12035 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12036 * aclocal.m4, configure, Makefile.in: Regenerate.
12037 * mkomp_h.pl: Delete.
12039 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12042 * configure.ac: Use GCC_HEADER_STDINT.
12043 * libgomp.h: Include gstdint.h.
12044 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12045 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12047 2006-01-24 Richard Henderson <rth@redhat.com>
12050 * configure.ac: Add AM_MAINTAINER_MODE.
12051 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12053 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12055 * Makefile.in: Regenerate.
12056 * testsuite/Makefile.in: Regenerate.
12057 * aclocal.m4: Regenerate.
12059 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12061 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12063 * configure.ac: Add check for loadavg.h.
12064 (link_gomp): Adjust comment.
12065 * configure: Regenerate.
12066 * config.h.in: Regenerate.
12068 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12071 * configure.ac: Remove check for alloca.h.
12072 * configure: Regenerate.
12073 * config.h.in: Regenerate.
12074 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12075 * team.c: Remove use of alloca.h.
12076 Call gomp_alloca instead of alloca.
12078 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12081 * team.c: Add include of alloca.h.
12082 * configure.ac: Add check for alloca.h.
12083 * configure: Regenerate.
12084 * config.h.in: Regenerate.
12086 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12089 * testsuite/libgomp.fortran/pr25219.f90: New test.
12091 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12093 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12094 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12095 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12096 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12097 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12098 testsuite/libgomp.fortran/threadprivate1.f90,
12099 testsuite/libgomp.fortran/threadprivate2.f90,
12100 testsuite/libgomp.fortran/threadprivate3.f90,
12101 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12102 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12103 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12104 effective-target to TLS runtime.
12106 * testsuite/libgomp.fortran/pr25162.f: Require
12107 effective-target TLS runtime.
12109 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12111 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12112 * testsuite/libgomp.c/nestedfn-3.c: New test.
12114 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12117 * testsuite/libgomp.fortran/pr25162.f: New test.
12119 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12121 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12122 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12124 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12126 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12127 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12128 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12129 single.c, team.c, work.c, config/linux/alpha/futex.h,
12130 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12131 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12132 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12133 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12134 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12135 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12136 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12139 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12141 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12142 to nodist_noinst_HEADERS.
12143 * Makefile.in: Rebuilt.
12145 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12146 add integer count field.
12147 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12148 omp_nest_lock_t type change.
12149 (omp_init_nest_lock): Likewise. Initialize count to 0.
12150 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12152 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12154 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12155 Increment count if successful and return the new nesting level.
12156 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12157 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12158 * testsuite/libgomp.c/lib-1.c: New test.
12159 * testsuite/libgomp.fortran/lib1.f90: New test.
12160 * testsuite/libgomp.fortran/lib2.f: New test.
12161 * testsuite/libgomp.fortran/lib3.f: New test.
12163 2005-11-17 Richard Henderson <rth@redhat.com>
12166 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12167 * configure.ac (link_gomp): New. Substitute it.
12168 (AC_CONFIG_FILES): Add libgomp.spec.
12169 * libgomp.spec.in: New file.
12170 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12171 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12173 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12175 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12176 reduction(-:var) behaving the same as reduction(+:var).
12177 * testsuite/libgomp.c/reduction-4.c: New test.
12179 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12181 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12182 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12183 testsuite/libgomp.c/copyin-3.c,
12184 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12185 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12186 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12187 testsuite/libgomp.c++/pr24455.C,
12188 testsuite/libgomp.fortran/threadprivate1.f90,
12189 testsuite/libgomp.fortran/threadprivate2.f90,
12190 testsuite/libgomp.fortran/threadprivate3.f90,
12191 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12192 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12193 testsuite/libgomp.fortran/omp_parse3.f90: Require
12194 effective-target TLS.
12196 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12200 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12203 * team.c (initialize_team): Pass NULL rather than free as
12204 pthread_key_create destructor. Initialize thread specific data
12205 pointer in initial thread to a static local variable rather than
12208 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12210 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12211 its location to ld_library_path.
12213 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12215 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12217 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12219 * testsuite/libgomp.c: Rename from libgomp.dg.
12221 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12223 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12224 threadprivate variable 'i'.
12226 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12228 * config/linux/s390/futex.h: New file.
12229 * configure.tgt: Use it.
12231 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12232 before the parallel.
12234 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12237 * testsuite/libgomp.c++/master-1.C: New test.
12239 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12241 * testsuite/libgomp.dg/copyin-3.c: New test.
12243 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12245 * testsuite/libgomp.fortran/retval1.f90: New test.
12246 * testsuite/libgomp.fortran/vla7.f90: New test.
12248 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12250 * testsuite/libgomp.fortran/vla2.f90: New test.
12251 * testsuite/libgomp.fortran/vla3.f90: New test.
12252 * testsuite/libgomp.fortran/vla4.f90: New test.
12253 * testsuite/libgomp.fortran/vla5.f90: New test.
12254 * testsuite/libgomp.fortran/vla6.f90: New test.
12256 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12258 * config/linux/sparc/futex.h: New file.
12259 * configure.tgt: Use it.
12260 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12262 * critical.c: Include stdlib.h.
12263 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12264 ignoring return value.
12265 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12266 LIBGOMP_CHECK_SYNC_BUILTINS check.
12267 * configure: Rebuilt.
12269 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12271 * testsuite/libgomp.fortran/vla1.f90: New test.
12273 2005-10-31 Richard Henderson <rth@redhat.com>
12275 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12276 setting 's' in different threads.
12278 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12280 * libgomp.h (attribute_hidden, ialias): Define.
12281 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12282 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12283 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12284 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12285 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12286 omp_test_lock, omp_test_nest_lock): Likewise.
12287 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12288 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12289 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12290 omp_test_lock, omp_test_nest_lock): Likewise.
12291 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12292 omp_get_dynamic, omp_get_nested): Likewise.
12293 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12294 omp_get_thread_num, omp_in_parallel): Likewise.
12295 * fortran.c (ialias_redirect): Define.
12296 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12297 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12298 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12299 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12300 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12301 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12302 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12303 omp_get_wtime): Add ialias_redirect.
12305 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12307 * fortran.c: Include stdlib.h.
12309 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12311 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12312 * Makefile.in: Regenerated.
12314 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12316 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12317 * libgomp_f.h.in (omp_check_defines): New function.
12318 * env.c: Include libgomp_f.h.
12319 (initialize_env): Call omp_check_defines.
12321 * testsuite/libgomp.dg/copyin-2.c: New test.
12322 * testsuite/libgomp.c++/copyin-2.C: New test.
12323 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12325 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12326 * testsuite/libgomp.fortran/sharing2.f90: New test.
12328 * testsuite/libgomp.dg/copyin-1.c: New test.
12329 * testsuite/libgomp.c++/copyin-1.C: New test.
12331 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12333 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12335 * testsuite/libgomp.fortran/workshare1.f90: New test.
12337 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12339 * libgomp.fortran/sharing1.f90: New test.
12341 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12344 * testsuite/libgomp.c++/loop-7.C: New test.
12346 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12348 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12349 * testsuite/libgomp.fortran/reduction6.f90: New test.
12350 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12352 2005-10-23 Richard Henderson <rth@redhat.com>
12354 * testsuite/libgomp.c++/ctor-1.C: New.
12355 * testsuite/libgomp.c++/ctor-2.C: New.
12356 * testsuite/libgomp.c++/ctor-3.C: New.
12357 * testsuite/libgomp.c++/ctor-4.C: New.
12358 * testsuite/libgomp.c++/ctor-5.C: New.
12359 * testsuite/libgomp.c++/ctor-6.C: New.
12360 * testsuite/libgomp.c++/ctor-7.C: New.
12361 * testsuite/libgomp.c++/ctor-8.C: New.
12362 * testsuite/libgomp.c++/ctor-9.C: New.
12364 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12367 * testsuite/libgomp.c++/pr24455-1.C: New test.
12368 * testsuite/libgomp.c++/pr24455.C: New test.
12369 * testsuite/libgomp.dg/pr24455-1.c: New test.
12370 * testsuite/libgomp.dg/pr24455.c: New test.
12372 2005-10-20 Richard Henderson <rth@redhat.com>
12374 * testsuite/libgomp.c++/loop-6.C: New.
12375 * testsuite/libgomp.dg/loop-3.c: New.
12377 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12379 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12380 explicitly private.
12381 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12384 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12386 * testsuite/libgomp.fortran/jacobi.f: New test.
12388 2005-10-19 Richard Henderson <rth@redhat.com>
12390 * configure.tgt (i?86-linux): Default to with_arch instead of
12391 CFLAGS. Add -mtune to match target_cpu.
12392 (x86_64-linux): Tune to i686.
12394 * fortran.c (omp_test_nest_lock_): Fix typo.
12396 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12398 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12399 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12400 * testsuite/libgomp.dg/ordered-3.c: New test.
12402 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12403 Remove volatile keyword.
12405 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12406 in COMMON block to avoid warnings on 64-bit targets.
12408 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12410 * testsuite/libgomp.dg/shared-3.c: New test.
12412 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12414 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12415 * testsuite/libgomp.fortran/reduction5.f90: New test.
12417 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12419 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12421 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12422 flush loop now that __sync_synchronize has proper memory barrier.
12423 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12424 Add -ffixed-form to dg-options.
12426 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12428 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12429 from subdirectories.
12430 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12431 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12432 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12433 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12434 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12435 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12436 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12437 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12438 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12439 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12440 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12441 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12442 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12443 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12444 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12445 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12446 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12447 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12448 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12449 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12450 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12451 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12452 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12453 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12454 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12456 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12458 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12459 lang_library_path exists. Use find instead of glob to gather tests.
12460 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12462 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12464 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12465 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12466 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12467 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12468 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12469 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12470 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12471 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12472 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12473 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12474 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12475 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12476 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12478 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12480 * testsuite/libgomp.dg/vla-1.c: New test.
12482 * testsuite/libgomp.fortran/reference2.f90: New test.
12484 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12485 declaration of omp_get_thread_num.
12486 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12489 * testsuite/libgomp.fortran/reduction1.f90: New test.
12490 * testsuite/libgomp.fortran/reduction2.f90: New test.
12491 * testsuite/libgomp.fortran/reduction3.f90: New test.
12492 * testsuite/libgomp.fortran/reduction4.f90: New test.
12494 2005-10-13 Richard Henderson <rth@redhat.com>
12496 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12497 * Makefile.in: Regenerate.
12498 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12499 * libgomp.h: Include bar.h.
12500 (struct gomp_barrier): Remove.
12501 (struct gomp_team): Add barrier. Replace master_barrier with
12502 master_release. Replace threads with ordered_release.
12503 (struct gomp_thread): Replace barrier with release.
12504 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12505 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12506 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12507 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12508 (GOMP_single_copy_end): Likewise.
12509 * team.c (gomp_threads_dock): New.
12510 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12511 (gomp_thread_start): Use gomp_barrier_wait.
12512 (new_team, free_team): Update for gomp_team changes.
12513 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12514 (gomp_team_end): Use gomp_barrier_wait.
12515 (initialize_team): Update for gomp_thread changes.
12516 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12517 (gomp_work_share_end_nowait): Use atomic ops when available.
12518 * config/linux/bar.c, config/linux/bar.h: New files.
12519 * config/posix/bar.c, config/posix/bar.h: New files.
12521 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12523 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12524 * testsuite/libgomp.dg/single-2.c: New test.
12526 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12527 lang_link_flags): Unset, so that they aren't inherited from previously
12530 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12532 2005-10-12 Richard Henderson <rth@redhat.com>
12534 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12535 (libgomp_init): Use lang_test_file, lang_library_path, and
12536 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12538 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12539 (lang_test_file, lang_link_flags): New.
12540 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12542 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12543 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12544 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12545 testsuite/libgomp.c++/parallel-1.C,
12546 testsuite/libgomp.c++/reduction-1.C,
12547 testsuite/libgomp.c++/reduction-2.C,
12548 testsuite/libgomp.c++/reduction-3.C,
12549 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12550 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12551 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12552 New files, largely cribbed from the C testsuite.
12554 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12556 * testsuite/libgomp.fortran/character1.f90: New test.
12557 * testsuite/libgomp.fortran/character2.f90: New test.
12559 * testsuite/libgomp.dg/nested-1.c: New test.
12560 * testsuite/libgomp.dg/nested-2.c: New test.
12561 * testsuite/libgomp.fortran/do1.f90: New test.
12562 * testsuite/libgomp.fortran/do2.f90: New test.
12564 * testsuite/libgomp.fortran/reference1.f90: New test.
12566 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12568 * testsuite/libgomp.dg/reduction-1.c: New test.
12569 * testsuite/libgomp.dg/reduction-2.c: New test.
12570 * testsuite/libgomp.dg/reduction-3.c: New test.
12572 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12574 * testsuite/libgomp.dg/atomic-1.c: New test.
12575 * testsuite/libgomp.dg/atomic-2.c: New test.
12577 2005-10-09 Richard Henderson <rth@redhat.com>
12579 * critical.c (atomic_lock): New.
12580 (initialize_critical): Initialize it.
12581 (GOMP_atomic_start, GOMP_atomic_end): New.
12582 * libgomp.map: Export them.
12583 * libgomp_g.h: Declare them.
12585 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12587 2005-10-02 Richard Henderson <rth@redhat.com>
12589 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12590 to XCFLAGS instead of CFLAGS.
12592 2005-09-30 Richard Henderson <rth@redhat.com>
12594 * configure.ac: Determine whether -pthread or -lpthread is needed.
12595 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12596 * Makefile.in, configure: Rebuild.
12598 2005-09-28 Richard Henderson <rth@redhat.com>
12600 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12601 * testsuite/libgomp.dg/omp-single-3.c: New test.
12603 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12605 * testsuite/libgomp.dg/omp-single-2.c: New test.
12606 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12608 2005-09-27 Richard Henderson <rth@redhat.com>
12610 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12611 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12613 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12615 * testsuite/libgomp.dg/omp-loop03.c: New test.
12617 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12619 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12621 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12623 * testsuite/libgomp.dg/omp-single-1.c: New test.
12624 * testsuite/libgomp.dg/shared-1.c: Return 0.
12625 Add prototype for abort.
12626 * testsuite/libgomp.dg/shared-2.c: Likewise.
12628 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12630 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12633 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12635 * testsuite/libgomp.dg/shared-1.c: New test.
12636 * testsuite/libgomp.dg/shared-2.c: New test.
12638 2005-09-24 Richard Henderson <rth@redhat.com>
12640 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12642 2005-09-24 Richard Henderson <rth@redhat.com>
12644 * iter.c (gomp_iter_static_next): Round up when computing number
12645 of iterations. Don't bother distributing a remainder equally.
12647 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12648 Don't call srand. Zero b before testing.
12651 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12653 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12654 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12656 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12658 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12659 without !$omp end do, followed immediately by subroutine end.
12661 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12663 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12665 2005-09-22 Richard Henderson <rth@redhat.com>
12667 * critical.c (GOMP_critical_name_start): Change argument to void**.
12668 Reuse the pointer space if the mutex fits.
12669 (GOMP_critical_name_end): Likewise.
12670 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12671 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12672 (GOMP_critical_name_end): Likewise.
12673 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12674 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12676 2005-09-20 Richard Henderson <rth@redhat.com>
12678 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12679 (create_lock_lock): New.
12680 (initialize_critical): Initialize it.
12681 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12682 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12684 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12686 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12688 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12690 * testsuite/libgomp.dg/omp-loop01.c: New test.
12691 * testsuite/libgomp.dg/omp-loop02.c: New test.
12693 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12695 * configure.ac (AC_PROG_FC): Add.
12696 (USE_FORTRAN): New automake conditional.
12697 * configure: Rebuilt.
12698 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12699 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12700 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12701 Add rules to build them.
12702 * Makefile.in: Rebuilt.
12703 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12704 OMP_NEST_LOCK_KIND.
12705 * libgomp.map: Add Fortran wrappers.
12706 * libgomp_f.h.in: New file.
12707 * omp_lib.h.in: New file.
12708 * omp_lib.f90.in: New file.
12709 * fortran.c: New file.
12710 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12711 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12712 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12713 libgfortran has been built.
12714 * testsuite/libgomp.fortran/fortran.exp: New file.
12715 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12716 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12717 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12718 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12719 * testsuite/libgomp.fortran/omp_hello.f: New test.
12720 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12721 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12722 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12723 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12724 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12725 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12726 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12727 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12729 2005-08-30 Richard Henderson <rth@redhat.com>
12731 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12732 function for when aliases are not usable.
12733 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12734 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12735 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12736 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12737 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12738 GOMP_loop_ordered_guided_next): Likewise.
12739 * ordered.c (GOMP_ordered_start): Likewise.
12741 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12743 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12744 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12745 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12746 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12747 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12748 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12749 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12750 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12751 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12753 2005-07-07 Eric Christopher <echristo@redhat.com>
12754 Diego Novillo <dnovillo@redhat.com>
12756 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12757 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12759 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12760 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12761 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12762 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12763 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12764 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12765 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12767 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12769 * TOPLEVEL.patch: Remove.
12771 2005-05-16 Richard Henderson <rth@redhat.com>
12773 * configure.ac: Test for clock_gettime.
12774 * config.h.in, configure: Rebuild.
12775 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12776 (omp_get_wtime): Use clock_gettime if available.
12777 (omp_get_wtick): Use clock_getres if available.
12779 2005-05-11 Richard Henderson <rth@redhat.com>
12781 * config/linux/ia64/futex.h: New file.
12782 * configure.tgt: Use it.
12784 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12786 2005-05-07 Richard Henderson <rth@redhat.com>
12788 * config/linux/powerpc/futex.h: New file.
12789 * configure.tgt: Use it.
12791 * config/linux/i486/futex.h: Merge ...
12792 * config/linux/x86_64/futex.h: ... into ...
12793 * config/linux/x86/futex.h: ... here.
12794 * configure.tgt: Update to match.
12796 2005-05-06 Richard Henderson <rth@redhat.com>
12798 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12799 * config/linux/i486/futex.h: Likewise.
12800 * config/linux/x86_64/futex.h: Likewise.
12802 * config/linux/lock.c: New file.
12803 * config/linux/omp-lock.h: New file.
12805 * critical.c, env.h: Don't include omp.h
12806 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12807 * config/posix/time.c: Likewise.
12808 * config/posix/omp-lock.h: New file.
12809 * libgomp.h: Include omp-lock.h and omp.h.
12810 * Makefile.am (nodist_include_HEADERS): New.
12812 * configure.ac (PERL): New.
12813 * mkomp_h.pl: New file.
12814 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12816 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12818 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12819 build directory. Re-add -march=i486 hack.
12821 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12822 (libgomp_link_flags): Remove.
12823 (libgomp_initialized): Remove.
12824 (libgomp_init): Don't protect from reinitialization. Copy code
12825 from libstdc++ for getting the multilib set correctly.
12827 2005-05-05 Richard Henderson <rth@redhat.com>
12829 * config/linux/alpha/futex.h: New file.
12830 * configure.tgt (alpha*-*-linux*): Use it.
12832 * config/posix/mutex.c: New file.
12833 * config/posix/sem.c: Use libgomp.h.
12835 * configure.tgt (x86_64-linux): Also test CC for -m32.
12836 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12838 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12841 * Makefile.am (SUBDIRS): New.
12842 (libgomp_la_LDFLAGS): Add -lpthread.
12843 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12844 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12846 * libgomp_g.h: New file.
12847 * libgomp.h: Split out all public declarations to libgomp_g.h.
12848 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12849 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12850 * config/linux/sem.h: Likewise.
12851 * config/posix/sem.h: Likewise.
12853 * Makefile.am (AM_LDFLAGS): New.
12854 (libgomp_version_script): Split out from ...
12855 (libgomp_la_LDFLAGS): ... here.
12856 (libgomp_version_info): New.
12857 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12858 (LIBGOMP_ENABLE): New.
12859 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12860 (LIBGOMP_ENABLE_SYMVERS): New.
12861 * configure.ac (AC_INIT): Version 1.0.
12862 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12863 (enable-linux-futex): Likewise. Rename from enable-futex.
12864 (libtool_VERSION): New.
12865 (LIBGOMP_ENABLE_SYMVERS): Use it.
12866 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12867 * Makefile.in, aclocal.m4, configure: Rebuild.
12869 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12870 (gomp_mutex_unlock_slow): Fix typo.
12871 * config/linux/sem.c: Similarly.
12872 (gomp_sem_post_slow): Fix typo.
12873 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12874 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12875 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12877 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12878 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12879 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12880 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12881 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12882 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12883 LDFLAGS. Pull enable_futex check to top-level.
12884 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12885 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12887 First attempt at real configury.
12888 * Makefile, config.h: Remove file.
12889 * Makefile.am, Makefile.in: New file.
12890 * acinclude.m4 aclocal.m4: New file.
12891 * configure.ac, configure.tgt, configure: New file.
12893 * config/posix/lock.c: Rename from sys-lock.c.
12894 * config/posix/mutex.h: Rename from sys-mutex.h.
12895 * config/posix/sem.c: Rename from sys-sem.c.
12896 * config/posix/sem.h: Rename from sys-sem.h.
12897 * config/posix/proc.c: Rename from sys-proc.c.
12898 * config/posix/time.c: Rename from sys-proc.c.
12900 * config/linux/mutex.c: New file.
12901 * config/linux/mutex.h: New file.
12902 * config/linux/sem.c: New file.
12903 * config/linux/sem.h: New file.
12904 * config/linux/i486/futex.h: New file.
12905 * config/linux/x86_64/futex.h: New file.
12907 2005-05-04 Richard Henderson <rth@redhat.com>
12909 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12910 * libgomp.h: Declare them.
12911 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12912 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12914 2005-05-04 Richard Henderson <rth@redhat.com>
12916 * libgomp-1 code drop
12918 2005-05-04 Richard Henderson <rth@redhat.com>
12920 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12921 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12922 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12923 (gomp_iter_static_next): Update.
12924 (gomp_ordered_static_next): Update.
12925 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12926 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12927 totally empty range.
12928 (gomp_loop_ordered_static_next): Refine test for calling
12929 gomp_ordered_static_next.
12930 * testsuite/ordered-1.c: Add case for more threads than iterations.
12932 * iter.c (gomp_iter_runtime_next_locked): Remove.
12933 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12934 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12935 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12936 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12937 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12938 gomp_loop_ordered_guided_next): Downcase name, make static, add
12939 an external alias with the old name.
12940 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12941 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12942 switch and call one of the above static functions.
12943 * libgomp.h: Update.
12945 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12946 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12947 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12948 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12949 GOMP_loop_ordered_guided_start): Update to match.
12950 * sections.c (GOMP_sections_start): Likewise.
12951 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12953 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12954 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12955 Use bounds check instead of modulus.
12956 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12957 (gomp_ordered_last): Don't sync with ordered_owner here.
12958 (gomp_ordered_next): Likewise.
12959 (gomp_ordered_static_loop_next): Likewise.
12960 * loop.c, libgomp.h: Update to match.
12962 * libgomp.h (GOMP_barrier): Declare.
12964 * testsuite/barrier-1.c: New file.
12965 * testsuite/critical-1.c: New file.
12966 * testsuite/ordered-2.c: New file.
12967 * testsuite/ordered-1.c: New file.
12968 * testsuite/sections-1.c: New file.
12969 * testsuite/single-1.c: New file.
12970 * testsuite/Makefile (TESTS): Add them.
12972 2005-05-04 Richard Henderson <rth@redhat.com>
12974 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12975 * loop.c (GOMP_loop_static_start): If not the startup thread,
12976 acquire the mutex to wait for initialization complete.
12977 (GOMP_loop_ordered_static_start): Likewise.
12978 (GOMP_loop_ordered_runtime_start): Likewise.
12979 (GOMP_loop_ordered_static_first): Remove.
12980 (GOMP_loop_ordered_dynamic_first): Remove.
12981 (GOMP_loop_ordered_guided_first): Remove.
12982 (GOMP_loop_ordered_runtime_first): Remove.
12983 * ordered.c (gomp_ordered_loop_first): Post to own release when
12984 we're the first thread.
12985 (gomp_ordered_loop_last): Wait on release if not owner.
12986 (gomp_ordered_loop_next): Likewise.
12987 (gomp_ordered_static_loop_init): New.
12988 (gomp_ordered_static_loop_next): Use ordered_owner.
12989 (GOMP_ordered_start): Likewise.
12990 * work.c (gomp_new_work_share): Initialize ordered_owner.
12992 2005-05-03 Richard Henderson <rth@redhat.com>
12994 * Makefile (OPT): New.
12997 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12998 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12999 * libgomp.h, libgomp.map, NOTES: Update to match.
13001 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13002 Add initialized and thr members.
13003 (gomp_thread_start): Pause when initially spawned to wait for
13004 the whole team to be created.
13005 (gomp_team_start): Release team members at the end.
13007 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13008 (f_foo_1): Use GOMP_loop_end.
13009 (f_foo_2): Use GOMP_loop_end_nowait.
13011 * testsuite/loop-2.c: New file.
13012 * testsuite/Makefile (TESTS): Add it.
13014 2005-05-03 Richard Henderson <rth@redhat.com>
13016 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13017 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13018 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13019 initial work_share.
13021 * testsuite/Makefile: New file.
13022 * testsuite/loop-1.c: New file.
13024 2005-05-03 Richard Henderson <rth@redhat.com>
13026 Initial implementation and checkin.
13028 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13030 Copying and distribution of this file, with or without modification,
13031 are permitted in any medium without royalty provided the copyright
13032 notice and this notice are preserved.