1 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
3 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
5 (struct kernel_info): Add a field for a hsa_kernel_description.
6 (run_kernel): Reduce the number of threads/workers if the requested
7 number would require too many VGPRs.
8 (init_basic_kernel_info): Initialize description field with
9 the hsa_kernel_description entry for the kernel.
11 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
14 * plugin/configfrag.ac (enable_offload_targets): Skip
15 HSA and GCN plugin besides -m32 also for -mx32.
16 * configure: Regenerate.
18 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
20 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
22 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
24 * plugin-gcn.c (struct agent_info): Add fields "name" and
26 (GOMP_OFFLOAD_init_device): ... and init from here.
27 (struct hsa_context_info): Add field "driver_version_s" ...
28 (init_hsa_contest): ... and init from here.
29 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
31 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
32 Enable test execution for amdgcn and host offloading targets.
33 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
34 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
35 (expect_device_properties): Split function into ...
36 (expect_device_string_properties): ... this new function ...
37 (expect_device_memory): ... and this new function.
38 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
41 2020-01-28 Julian Brown <julian@codesourcery.com>
43 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
44 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
45 component/non-component variable refs in a single directive.
46 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
48 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
50 * configure.ac: Handle `--with-toolexeclibdir='.
51 * Makefile.in: Regenerate.
52 * aclocal.m4: Regenerate.
53 * configure: Regenerate.
54 * testsuite/Makefile.in: Regenerate.
56 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
58 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
59 (expect_device_properties): Remove "expected_free_mem" argument,
60 change "expected_total_mem" argument type to size_t;
61 change types of acc_get_property results to size_t,
63 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
64 Use %zu instead of %zd to print size_t values.
65 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
67 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
68 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
70 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
72 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
74 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
77 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
79 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
80 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
81 Adjust test dimensions for amdgcn.
82 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
83 gang/worker/vector expectations dynamically.
84 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
86 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
87 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
88 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
89 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
90 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
91 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
92 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
93 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
94 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
95 (acc_gang): Recognise acc_device_radeon.
96 (acc_worker): Likewise.
97 (acc_vector): Likewise.
98 (main): Set expectations for amdgcn.
99 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
100 (main): Adjust gang/worker/vector expectations dynamically.
101 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
102 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
103 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
104 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
107 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
109 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
112 * openacc.f90 (openacc_kinds): Likewise.
114 * openacc.h (acc_device_t): Likewise.
115 * openacc_lib.h: Likewise.
116 * testsuite/lib/libgomp.exp
117 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
118 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
119 (cb_compute_construct_end): Likewise.
120 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
121 (cb_enqueue_launch_start): Likewise.
122 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
123 (cb_enter_data_end): Likewise.
124 (cb_exit_data_start): Likewise.
125 (cb_exit_data_end): Likewise.
126 (cb_compute_construct_end): Likewise.
127 (cb_enqueue_launch_start): Likewise.
128 (cb_enqueue_launch_end): Likewise.
129 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
132 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
134 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
135 to use this instead of 'enum gomp_device_property'.
136 (GOMP_OFFLOAD_get_property): Rename to...
137 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
138 * libgomp.h (struct gomp_device_descr): Move
139 'GOMP_OFFLOAD_openacc_get_property'...
140 (struct acc_dispatch_t): ... here. Adjust all users.
141 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
143 * target.c (gomp_map_vars_internal)
144 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
147 2020-01-10 Jakub Jelinek <jakub@redhat.com>
150 * libgomp.h (gomp_print_string): Change return type from void to int.
151 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
152 not all characters have been written.
154 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
156 * libgomp.texi: Fix typos, use https.
158 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
160 * testsuite/libgomp.fortran/optional-map.f90: Add test for
161 unallocated/disassociated actual arguments to nonallocatable/nonpointer
162 dummy arguments; those are/shall be regarded as absent arguments.
163 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
164 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
166 2020-01-01 Jakub Jelinek <jakub@redhat.com>
168 Update copyright years.
170 * libgomp.texi: Bump @copying's copyright year.
172 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
175 * oacc-init.c (goacc_runtime_deinitialize): New function.
177 2019-12-28 Jakub Jelinek <jakub@redhat.com>
180 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
181 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
183 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
184 Frederik Harwath <frederik@codesourcery.com>
185 Thomas Schwinge <tschwinge@codesourcery.com>
187 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
188 * libgomp-plugin.h (gomp_device_property_value): New union.
189 (gomp_device_property_value): New prototype.
190 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
192 (acc_device_property_t): New enum.
193 (acc_get_property, acc_get_property_string): New prototypes.
194 * oacc-init.c (acc_get_device_type): Also assert that result
195 is not `acc_device_current'.
196 (get_property_any, acc_get_property, acc_get_property_string):
198 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
199 `acc_property_memory', `acc_property_free_memory',
200 `acc_property_name', `acc_property_vendor' and
201 `acc_property_driver' constants. Add `acc_device_property' data
203 (openacc_internal): Add `acc_get_property' and
204 `acc_get_property_string' interfaces. Add `acc_get_property_h',
205 `acc_get_property_string_h', `acc_get_property_l' and
206 `acc_get_property_string_l'.
207 * oacc-host.c (host_get_property): New function.
208 (host_dispatch): Wire it.
209 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
210 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
211 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
212 * libgomp.texi (OpenACC Runtime Library Routines): Add
214 (acc_get_property): New node.
215 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
217 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
218 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
219 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
221 (GOMP_OFFLOAD_get_property): New function.
222 (struct ptx_device): Add new field "name".
223 (cuda_driver_version_s): Add new static variable ...
224 (nvptx_init): ... and init from here.
226 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
227 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
228 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
229 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
230 with test helper functions.
232 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
234 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
236 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
239 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
241 * target.c (gomp_map_vars_internal): Restore 'omp declare target
244 2019-12-19 Julian Brown <julian@codesourcery.com>
246 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
247 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
248 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
250 2019-12-19 Julian Brown <julian@codesourcery.com>
251 Cesar Philippidis <cesar@codesourcery.com>
253 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
254 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
255 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
256 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
257 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
258 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
259 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
260 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
261 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
262 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
263 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
264 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
265 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
267 2019-12-19 Julian Brown <julian@codesourcery.com>
269 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
270 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
271 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
272 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
273 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
274 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
275 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
276 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
277 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
278 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
279 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
280 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
282 2019-12-19 Julian Brown <julian@codesourcery.com>
284 * libgomp.h (struct target_var_desc): Add do_detach flag.
285 * oacc-init.c (acc_shutdown_1): Free aux block if present.
286 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
287 struct components. Tidy up and add some new checks.
288 (goacc_enter_data_internal): Update call to find_group_last.
289 (goacc_exit_data_internal): Support detach operations and
291 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
292 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
293 attach/detach in enter/exit data detection code.
294 * target.c (gomp_map_vars_existing): Initialise do_detach field of
296 (gomp_map_vars_internal): Support attach.
297 (gomp_unmap_vars_internal): Support detach.
299 2019-12-19 Julian Brown <julian@codesourcery.com>
300 Thomas Schwinge <thomas@codesourcery.com>
302 * libgomp.h (struct splay_tree_aux): Add attach_count field.
303 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
304 * libgomp.map (OACC_2.6): New section. Add acc_attach,
305 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
306 acc_detach_finalize_async.
307 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
308 acc_detach, acc_detach_async, acc_detach_finalize,
309 acc_detach_finalize_async): New functions.
310 * openacc.h (acc_attach, acc_attach_async, acc_detach,
311 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
313 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
314 (gomp_remove_var_internal): Free attachment counts if present.
315 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
316 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
318 2019-12-19 Julian Brown <julian@codesourcery.com>
319 Cesar Philippidis <cesar@codesourcery.com>
321 * libgomp.h (gomp_map_val): Add prototype.
322 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
323 open-coding device-address calculation.
324 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
327 2019-12-19 Julian Brown <julian@codesourcery.com>
329 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
330 field for virtual_refcount.
331 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
332 (gomp_free_memmap): Remove prototype.
333 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
334 instead of calling gomp_free_memmap.
335 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
337 (acc_unmap_data): Open code instead of forcing target_mem_desc's
338 to_free field to NULL then calling gomp_unmap_vars. Handle
339 REFCOUNT_INFINITY on target blocks.
340 (goacc_enter_data): Rename to...
341 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
342 handling for mapping groups. Use virtual_refcount instead of
343 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
344 map_map_vars_async call. Re-do lookup for target pointer return value.
345 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
346 renamed goacc_enter_datum function.
347 (goacc_exit_data): Rename to...
348 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
349 (acc_delete, acc_delete_async, acc_delete_finalize,
350 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
351 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
352 goacc_exit_datum function.
353 (gomp_acc_remove_pointer, find_pointer): Remove functions.
354 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
356 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
357 goacc_exit_data_internal helper functions.
358 * target.c (gomp_map_vars_internal): Handle
359 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
361 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
362 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
363 virtual_refcount field instead of dynamic_refcount.
364 (gomp_free_memmap): Remove function.
365 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
366 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
367 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
369 2019-12-19 Julian Brown <julian@codesourcery.com>
370 Thomas Schwinge <thomas@codesourcery.com>
372 * libgomp.h (struct splay_tree_aux): New.
373 (struct splay_tree_key_s): Replace link_key field with aux pointer.
374 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
376 (gomp_remove_var_internal): Free aux block if present.
377 (gomp_load_image_to_device): Zero-initialise aux field instead of
379 (omp_target_associate_pointer): Zero-initialise aux field.
381 2019-12-18 Jakub Jelinek <jakub@redhat.com>
384 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
386 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
389 2019-12-19 Julian Brown <julian@codesourcery.com>
390 Maciej W. Rozycki <macro@codesourcery.com>
391 Tobias Burnus <tobias@codesourcery.com>
392 Thomas Schwinge <thomas@codesourcery.com>
394 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
395 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
396 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
397 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
398 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
399 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
400 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
401 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
402 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
404 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
406 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
408 (goacc_insert_pointer): ... from here, "present" case.
409 (goacc_insert_pointer): Inline function into...
410 (GOACC_enter_exit_data): ... here, and simplify.
412 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
414 (goacc_insert_pointer): ... from here, "not present" case.
416 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
419 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
420 'goacc_enter_data', 'goacc_exit_data'.
422 * oacc-mem.c (delete_copyout): Refactor into...
423 (goacc_exit_data): ... this. Adjust all users.
425 * oacc-mem.c (present_create_copy): Refactor into...
426 (goacc_enter_data): ... this. Adjust all users.
428 * target.c (gomp_unmap_vars_internal): Add a safeguard to
431 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
432 like 'GOMP_MAP_FROM'.
437 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
439 (GOACC_enter_exit_data): Simplify accordingly.
440 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
442 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
443 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
445 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
447 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
448 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
450 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
452 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
454 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
458 * oacc-mem.c (acc_map_data, present_create_copy)
459 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
460 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
461 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
462 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
463 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
464 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
465 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
466 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
469 * target.c (gomp_unmap_tgt): Make it 'static'.
470 * libgomp.h (gomp_unmap_tgt): Remove.
472 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
475 * testsuite/libgomp.c/pr86416-1.c: New.
476 * testsuite/libgomp.c/pr86416-2.c: New.
478 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
480 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
481 all symbols as public except for the 'use …, only' imported symbol,
483 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
484 all symbols from module openacc_kinds as PUBLIC
485 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
487 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
489 2019-12-13 Julian Brown <julian@codesourcery.com>
493 * libgomp.h (gomp_remove_var_async): Add prototype.
494 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
496 * target.c (gomp_unref_tgt): Change return type to bool, indicating
497 whether target_mem_desc was unmapped.
498 (gomp_unref_tgt_void): New.
499 (gomp_remove_var): Reimplement in terms of...
500 (gomp_remove_var_internal): ...this new helper function.
501 (gomp_remove_var_async): New, implemented using above helper function.
502 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
505 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
507 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
508 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
509 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
510 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
511 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
513 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
514 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
516 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
518 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
519 as public except for the 'use …, only' imported symbol, which is
521 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
522 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
523 attributes for acc_copyout_finalize and acc_delete_finalize.
525 2019-12-11 Jakub Jelinek <jakub@redhat.com>
528 * testsuite/libgomp.fortran/atomic1.f90: New test.
530 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
533 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
534 reference counting for structured 'REFCOUNT_INFINITY'. Add some
536 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
537 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
538 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
539 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
540 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
542 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
543 * oacc-mem.c: ... here.
544 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
545 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
546 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
548 * libgomp_g.h: Update.
550 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
551 * oacc-async.c: ... here.
552 * oacc-int.h (goacc_wait): Declare.
553 * libgomp_g.h: Update
556 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
558 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
560 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
562 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
564 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
566 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
569 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
570 Julian Brown <julian@codesourcery.com>
572 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
573 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
575 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
577 * omp_lib.h.in: Fix spelling of function declaration
578 omp_get_cancell(l)ation.
579 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
581 * env.c: Fix comment typos.
582 * oacc-host.c: Likewise.
583 * ordered.c: Likewise.
586 * config/gcn/task.c: Likewise.
587 * config/gcn/team.c: Likewise.
588 * config/nvptx/task.c: Likewise.
589 * config/nvptx/team.c: Likewise.
590 * plugin/plugin-gcn.c: Likewise.
591 * testsuite/libgomp.fortran/jacobi.f: Likewise.
592 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
593 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
595 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
597 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
598 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
599 unnecessary 'dg-additional-options "-w"'.
601 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
602 Julian Brown <julian@codesourcery.com>
607 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
608 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
610 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
612 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
614 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
616 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
619 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
620 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
622 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
624 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
626 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
628 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
630 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
632 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
633 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
644 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
645 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
646 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
648 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
650 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
652 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
653 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
656 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
658 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
660 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
662 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
664 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
665 ... with their content moved into, and extended in this new file.
666 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
668 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
670 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
672 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
675 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
678 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
680 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
682 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
684 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
686 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
688 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
689 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
690 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
691 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
693 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
694 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
696 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
698 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
700 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
701 Kwok Cheung Yeung <kcy@codesourcery.com>
703 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
704 if input it a NULL pointer.
705 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
706 diagnostic of NULL pointer.
707 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
708 * testsuite/libgomp.fortran/optional-map.f90: New.
709 * testsuite/libgomp.fortran/use_device_addr-1.f90
710 (test_dummy_opt_callee_1_absent): New.
711 (test_dummy_opt_call_1): Call it.
712 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
713 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
714 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
715 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
716 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
717 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
718 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
719 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
720 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
721 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
722 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
723 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
724 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
725 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
726 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
727 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
729 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
731 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
732 expect dg-output of 'Error termination.' for GCN.
733 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
734 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
736 2019-12-04 Jakub Jelinek <jakub@redhat.com>
739 * testsuite/libgomp.fortran/teams1.f90: New test.
740 * testsuite/libgomp.fortran/teams2.f90: New test.
742 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
744 * oacc-init.c (acc_known_device_type): Add function.
745 (unknown_device_type_error): Add function.
746 (name_of_acc_device_t): Change to call unknown_device_type_error
748 (resolve_device): Use acc_known_device_type.
749 (acc_init): Fail if acc_device_t argument is not valid.
750 (acc_shutdown): Likewise.
751 (acc_get_num_devices): Likewise.
752 (acc_set_device_type): Likewise.
753 (acc_get_device_num): Likewise.
754 (acc_set_device_num): Likewise.
755 (acc_on_device): Add comment that argument validity is not checked.
757 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
759 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
761 (check_effective_target_openacc_amdgcn_accel_present): New proc.
762 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
763 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
764 * testsuite/libgomp.oacc-c/c.exp: Likewise.
765 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
767 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
770 * configure.tgt: Avoid IE tls on *-*-musl*.
772 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
774 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
775 adding a common-block test case.
777 2019-11-29 Jakub Jelinek <jakub@redhat.com>
780 * testsuite/libgomp.c++/udr-20.C: New test.
781 * testsuite/libgomp.c++/udr-21.C: New test.
783 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
785 * testsuite/lib/libgomp.exp
786 (check_effective_target_offload_target_nvptx): New proc.
787 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
789 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
790 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
791 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
793 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
795 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
796 * testsuite/libgomp.c/pr39591-2.c: Likewise.
797 * testsuite/libgomp.c/pr39591-3.c: Likewise.
798 * testsuite/libgomp.c/private-1.c: Likewise.
799 * testsuite/libgomp.c/task-1.c: Likewise.
800 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
802 2019-11-20 Julian Brown <julian@codesourcery.com>
804 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
806 (queue_push_launch): Lock aq->mutex before calling
807 wait_for_queue_nonfull.
808 (queue_push_callback): Likewise.
809 (queue_push_asyncwait): Likewise.
810 (queue_push_placeholder): Likewise.
812 2019-11-20 Julian Brown <julian@codesourcery.com>
814 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
815 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
816 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
819 2019-11-20 Julian Brown <julian@codesourcery.com>
823 * oacc-mem.c (present_create_copy): Fix device pointer return value in
824 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
825 in non-present/create case.
826 (delete_copyout): Change error condition to fail only on copies outside
827 of mapped block. Adjust error message accordingly.
828 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
829 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
830 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
832 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
833 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
834 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
836 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
838 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
839 libatomic in build-tree testing.
841 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
843 * testsuite/Makefile.in: Regenerate.
845 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
847 * testsuite/libgomp.c/target-print-1.c: New file.
848 * testsuite/libgomp.fortran/target-print-1.f90: New file.
849 * testsuite/libgomp.oacc-c/print-1.c: New file.
850 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
852 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
853 Kwok Cheung Yeung <kcy@codesourcery.com>
854 Julian Brown <julian@codesourcery.com>
855 Tom de Vries <tom@codesourcery.com>
857 * plugin/Makefrag.am: Add amdgcn plugin support.
858 * plugin/configfrag.ac: Likewise.
859 * plugin/plugin-gcn.c: New file.
860 * configure: Regenerate.
861 * Makefile.in: Regenerate.
862 * testsuite/Makefile.in: Regenerate.
864 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
866 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
867 and use team_malloc variants.
868 (gomp_gcn_exit_kernel): Use team_free.
869 * libgomp.h (TEAM_ARENA_SIZE): Define.
870 (TEAM_ARENA_START): Define.
871 (TEAM_ARENA_FREE): Define.
872 (TEAM_ARENA_END): Define.
873 (team_malloc): New function.
874 (team_malloc_cleared): New function.
875 (team_free): New function.
876 * team.c (gomp_new_team): Initialize and use team_malloc.
877 (free_team): Use team_free.
878 (gomp_free_thread): Use team_free.
879 (gomp_pause_host): Use team_free.
880 * work.c (gomp_init_work_share): Use team_malloc.
881 (gomp_fini_work_share): Use team_free.
883 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
884 Kwok Cheung Yeung <kcy@codesourcery.com>
885 Julian Brown <julian@codesourcery.com>
886 Tom de Vries <tom@codesourcery.com>
888 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
889 * Makefile.in: Regenerate.
890 * config.h.in (PLUGIN_GCN): Add new undef.
891 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
892 * config/gcn/affinity-fmt.c: New file.
893 * config/gcn/bar.c: New file.
894 * config/gcn/bar.h: New file.
895 * config/gcn/doacross.h: New file.
896 * config/gcn/icv-device.c: New file.
897 * config/gcn/oacc-target.c: New file.
898 * config/gcn/simple-bar.h: New file.
899 * config/gcn/target.c: New file.
900 * config/gcn/task.c: New file.
901 * config/gcn/team.c: New file.
902 * config/gcn/time.c: New file.
903 * configure.ac: Add amdgcn*-*-*.
904 * configure: Regenerate.
905 * configure.tgt: Add amdgcn*-*-*.
906 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
907 * libgomp.h (gcn_thrs): Add amdgcn variant.
908 (set_gcn_thrs): Likewise.
909 (gomp_thread): Likewise.
910 * oacc-int.h (goacc_thread): Likewise.
911 * oacc-target.c: New file.
912 * openacc.f90 (acc_device_gcn): New parameter.
913 * openacc.h (acc_device_t): Add acc_device_gcn.
914 * team.c (gomp_free_pool_helper): Add amdgcn support.
916 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
917 Julian Brown <julian@codesourcery.com>
919 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
921 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
923 * oacc-host.c (host_openacc_async_construct): Add device parameter.
924 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
927 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
929 * configure.tgt (nvptx*-*-*): Add "accel" directory.
930 * config/nvptx/libgomp-plugin.c: Move ...
931 * config/accel/libgomp-plugin.c: ... to here.
932 * config/nvptx/lock.c: Move ...
933 * config/accel/lock.c: ... to here.
934 * config/nvptx/mutex.c: Move ...
935 * config/accel/mutex.c: ... to here.
936 * config/nvptx/mutex.h: Move ...
937 * config/accel/mutex.h: ... to here.
938 * config/nvptx/oacc-async.c: Move ...
939 * config/accel/oacc-async.c: ... to here.
940 * config/nvptx/oacc-cuda.c: Move ...
941 * config/accel/oacc-cuda.c: ... to here.
942 * config/nvptx/oacc-host.c: Move ...
943 * config/accel/oacc-host.c: ... to here.
944 * config/nvptx/oacc-init.c: Move ...
945 * config/accel/oacc-init.c: ... to here.
946 * config/nvptx/oacc-mem.c: Move ...
947 * config/accel/oacc-mem.c: ... to here.
948 * config/nvptx/oacc-plugin.c: Move ...
949 * config/accel/oacc-plugin.c: ... to here.
950 * config/nvptx/omp-lock.h: Move ...
951 * config/accel/omp-lock.h: ... to here.
952 * config/nvptx/openacc.f90: Move ...
953 * config/accel/openacc.f90: ... to here.
954 * config/nvptx/pool.h: Move ...
955 * config/accel/pool.h: ... to here.
956 * config/nvptx/proc.c: Move ...
957 * config/accel/proc.c: ... to here.
958 * config/nvptx/ptrlock.c: Move ...
959 * config/accel/ptrlock.c: ... to here.
960 * config/nvptx/ptrlock.h: Move ...
961 * config/accel/ptrlock.h: ... to here.
962 * config/nvptx/sem.c: Move ...
963 * config/accel/sem.c: ... to here.
964 * config/nvptx/sem.h: Move ...
965 * config/accel/sem.h: ... to here.
966 * config/nvptx/thread-stacksize.h: Move ...
967 * config/accel/thread-stacksize.h: ... to here.
969 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
970 Tobias Burnus <tobias@codesourcery.com>
971 Frederik Harwath <frederik@codesourcery.com>
972 Thomas Schwinge <thomas@codesourcery.com>
975 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
976 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
977 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
979 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
980 Kwok Cheung Yeung <kcy@codesourcery.com>
982 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
983 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
985 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
987 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
989 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
991 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
992 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
994 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
996 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
997 Add expected warnings about missing reduction clauses.
998 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1000 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1002 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1005 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1007 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1008 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1009 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1010 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1011 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1012 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1014 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1017 * testsuite/libgomp.fortran/allocatable2.f90: Use
1018 unique numbers with 'stop'.
1019 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1020 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1021 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1022 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1023 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1025 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1027 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1028 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1029 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1030 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1031 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1032 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1034 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1036 * testsuite/libgomp.fortran/target9.f90: New.
1038 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1040 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1041 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1042 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1043 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1044 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1045 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1046 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1047 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1048 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1049 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1050 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1051 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1052 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1053 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1054 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1055 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1056 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1057 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1058 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1059 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1060 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1061 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1062 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1063 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1064 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1065 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1066 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1067 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1068 * testsuite/libgomp.fortran/character1.f90: Ditto.
1069 * testsuite/libgomp.fortran/character2.f90: Ditto.
1070 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1071 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1072 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1073 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1074 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1075 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1076 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1077 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1078 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1079 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1080 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1081 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1082 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1083 * testsuite/libgomp.fortran/do1.f90: Ditto.
1084 * testsuite/libgomp.fortran/do2.f90: Ditto.
1085 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1086 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1087 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1088 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1089 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1090 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1091 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1092 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1093 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1094 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1095 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1096 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1097 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1098 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1099 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1100 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1101 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1102 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1103 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1104 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1105 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1106 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1107 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1108 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1109 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1110 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1111 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1112 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1113 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1114 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1115 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1116 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1117 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1118 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1119 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1120 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1121 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1122 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1123 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1124 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1125 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1126 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1127 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1128 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1129 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1130 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1131 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1132 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1133 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1134 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1135 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1136 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1137 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1138 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1139 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1140 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1141 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1142 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1143 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1144 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1145 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1146 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1147 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1148 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1149 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1150 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1151 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1152 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1153 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1154 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1155 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1156 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1157 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1158 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1159 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1160 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1161 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1162 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1163 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1164 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1165 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1166 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1167 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1168 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1169 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1170 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1171 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1172 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1173 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1174 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1175 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1176 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1177 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1178 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1179 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1180 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1181 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1182 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1183 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1184 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1185 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1186 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1187 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1188 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1189 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1190 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1191 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1192 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1193 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1194 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1195 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1196 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1197 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1198 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1199 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1200 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1201 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1202 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1203 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1204 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1205 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1206 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1207 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1208 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1209 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1210 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1211 * testsuite/libgomp.fortran/stack.f90: Ditto.
1212 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1213 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1214 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1215 * testsuite/libgomp.fortran/target1.f90: Ditto.
1216 * testsuite/libgomp.fortran/target2.f90: Ditto.
1217 * testsuite/libgomp.fortran/target3.f90: Ditto.
1218 * testsuite/libgomp.fortran/target4.f90: Ditto.
1219 * testsuite/libgomp.fortran/target5.f90: Ditto.
1220 * testsuite/libgomp.fortran/target6.f90: Ditto.
1221 * testsuite/libgomp.fortran/target7.f90: Ditto.
1222 * testsuite/libgomp.fortran/target8.f90: Ditto.
1223 * testsuite/libgomp.fortran/task1.f90: Ditto.
1224 * testsuite/libgomp.fortran/task2.f90: Ditto.
1225 * testsuite/libgomp.fortran/task3.f90: Ditto.
1226 * testsuite/libgomp.fortran/task4.f90: Ditto.
1227 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1228 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1229 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1230 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1231 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1232 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1233 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1234 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1235 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1236 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1237 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1238 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1239 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1240 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1241 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1242 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1243 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1244 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1245 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1246 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1247 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1248 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1249 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1250 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1251 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1252 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1253 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1254 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1255 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1256 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1257 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1258 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1259 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1260 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1262 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1264 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1265 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1266 Ditto; add 'dg-do run' for torture testing.
1267 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1268 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1269 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1270 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1271 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1272 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1273 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1274 * testsuite/libgomp.fortran/task2.f90: Ditto.
1275 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1276 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1277 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1278 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1279 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1280 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1282 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1284 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1285 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1286 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1287 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1288 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1289 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1290 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1291 Use 'stop' not abort().
1292 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1293 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1294 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1295 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1296 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1297 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1298 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1299 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1300 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1301 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1302 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1303 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1304 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1305 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1306 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1307 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1308 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1310 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1312 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1314 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1316 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1318 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1320 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1322 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1324 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1326 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1328 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1330 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1332 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1334 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1336 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1337 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1338 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1339 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1340 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1341 Likewise and also add 'dg-do run'.
1342 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1345 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1346 Tobias Burnus <tobias@codesourcery.com>
1348 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1349 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1350 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1352 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1355 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1358 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1360 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1361 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1363 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1366 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1369 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1372 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1374 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1376 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1379 * target.c (gomp_map_vars_internal): Readd the previous
1380 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1381 though do that just in the !not_found_cnt case.
1383 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1385 * gfortran.dg/gomp/target-simd.f90: New.
1387 2019-10-02 Julian Brown <julian@codesourcery.com>
1388 Cesar Philippidis <cesar@codesourcery.com>
1390 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1391 * target.c (FIELD_TGT_EMPTY): Define.
1392 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1393 as switch instead of list of ifs.
1394 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1396 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1398 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1399 include. Replace alloca () with __builtin_alloca ().
1400 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1402 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1404 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1405 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1406 * oacc-parallel.c: Don't include "libgomp_g.h".
1407 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1408 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1409 * aclocal.m4: Regenerated.
1410 * config.h.in: Regenerated.
1411 * configure: Regenerated.
1412 * Makefile.in: Regenerated.
1414 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1416 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1418 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1420 * configure: Regenerate.
1422 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1424 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1425 string is initialized.
1427 2019-09-06 Florian Weimer <fweimer@redhat.com>
1429 * configure: Regenerate.
1431 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1434 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1435 scanning to conform to the GNU Coding Standards.
1436 * configure: Regenerate.
1438 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1441 * testsuite/libgomp.c/scan-21.c: New test.
1442 * testsuite/libgomp.c/scan-22.c: New test.
1444 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1447 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1449 * testsuite/libgomp.c/scan-12.c: Likewise.
1450 * testsuite/libgomp.c/scan-13.c: Likewise.
1451 * testsuite/libgomp.c/scan-14.c: Likewise.
1452 * testsuite/libgomp.c/scan-15.c: Likewise.
1453 * testsuite/libgomp.c/scan-16.c: Likewise.
1454 * testsuite/libgomp.c/scan-17.c: Likewise.
1455 * testsuite/libgomp.c/scan-18.c: Likewise.
1456 * testsuite/libgomp.c/scan-19.c: Likewise.
1457 * testsuite/libgomp.c/scan-20.c: Likewise.
1458 * testsuite/libgomp.c++/scan-9.C: Likewise.
1459 * testsuite/libgomp.c++/scan-10.C: Likewise.
1460 * testsuite/libgomp.c++/scan-11.C: Likewise.
1461 * testsuite/libgomp.c++/scan-12.C: Likewise.
1462 * testsuite/libgomp.c++/scan-14.C: Likewise.
1463 * testsuite/libgomp.c++/scan-15.C: Likewise.
1464 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1465 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1466 * testsuite/libgomp.c++/scan-16.C: Likewise.
1468 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1471 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1472 -std=legacy so invalid code in the test case is accepted.
1474 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1477 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1480 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1482 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1483 perform the lookup in the first loop only if !not_found_cnt, otherwise
1484 perform lookups for it in the second loop guarded with
1485 if (not_found_cnt || has_firstprivate).
1486 * testsuite/libgomp.c/target-37.c: New test.
1487 * testsuite/libgomp.c++/target-22.C: New test.
1489 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1491 * testsuite/libgomp.c/target-18.c (struct S): New type.
1492 (foo): Use use_device_addr clause instead of use_device_ptr clause
1493 where required by OpenMP 5.0, add further tests for both use_device_ptr
1494 and use_device_addr clauses.
1495 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1496 (foo): Use use_device_addr clause instead of use_device_ptr clause
1497 where required by OpenMP 5.0, add further tests for both use_device_ptr
1498 and use_device_addr clauses. Add t and u arguments.
1499 (main): Adjust caller.
1501 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1503 * testsuite/libgomp.c++/loop-13.C: New test.
1504 * testsuite/libgomp.c++/loop-14.C: New test.
1505 * testsuite/libgomp.c++/loop-15.C: New test.
1507 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1510 * testsuite/libgomp.c++/for-27.C: New test.
1512 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1514 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1515 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1517 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1519 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1521 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1523 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1524 * testsuite/libgomp.c++/scan-16.C: Likewise.
1526 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1528 * testsuite/libgomp.c/scan-19.c: New test.
1529 * testsuite/libgomp.c/scan-20.c: New test.
1531 * testsuite/libgomp.c/scan-11.c: New test.
1532 * testsuite/libgomp.c/scan-12.c: New test.
1533 * testsuite/libgomp.c/scan-13.c: New test.
1534 * testsuite/libgomp.c/scan-14.c: New test.
1535 * testsuite/libgomp.c/scan-15.c: New test.
1536 * testsuite/libgomp.c/scan-16.c: New test.
1537 * testsuite/libgomp.c/scan-17.c: New test.
1538 * testsuite/libgomp.c/scan-18.c: New test.
1539 * testsuite/libgomp.c++/scan-9.C: New test.
1540 * testsuite/libgomp.c++/scan-10.C: New test.
1541 * testsuite/libgomp.c++/scan-11.C: New test.
1542 * testsuite/libgomp.c++/scan-12.C: New test.
1543 * testsuite/libgomp.c++/scan-13.C: New test.
1544 * testsuite/libgomp.c++/scan-14.C: New test.
1545 * testsuite/libgomp.c++/scan-15.C: New test.
1546 * testsuite/libgomp.c++/scan-16.C: New test.
1548 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1550 * testsuite/libgomp.c/scan-9.c: New test.
1551 * testsuite/libgomp.c/scan-10.c: New test.
1553 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1555 * testsuite/libgomp.c++/scan-1.C: New test.
1556 * testsuite/libgomp.c++/scan-2.C: New test.
1557 * testsuite/libgomp.c++/scan-3.C: New test.
1558 * testsuite/libgomp.c++/scan-4.C: New test.
1559 * testsuite/libgomp.c++/scan-5.C: New test.
1560 * testsuite/libgomp.c++/scan-6.C: New test.
1561 * testsuite/libgomp.c++/scan-7.C: New test.
1562 * testsuite/libgomp.c++/scan-8.C: New test.
1563 * testsuite/libgomp.c/scan-1.c: New test.
1564 * testsuite/libgomp.c/scan-2.c: New test.
1565 * testsuite/libgomp.c/scan-3.c: New test.
1566 * testsuite/libgomp.c/scan-4.c: New test.
1567 * testsuite/libgomp.c/scan-5.c: New test.
1568 * testsuite/libgomp.c/scan-6.c: New test.
1569 * testsuite/libgomp.c/scan-7.c: New test.
1570 * testsuite/libgomp.c/scan-8.c: New test.
1572 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1574 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1575 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1578 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1581 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1583 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1586 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1589 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1591 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1592 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1593 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1594 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1597 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1600 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1602 2019-06-16 Tom de Vries <tdevries@suse.de>
1604 PR tree-optimization/89376
1605 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1607 2019-06-15 Tom de Vries <tdevries@suse.de>
1609 PR tree-optimization/89713
1610 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1611 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1613 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1616 * testsuite/libgomp.c/pr90779.c: New test.
1617 * testsuite/libgomp.fortran/pr90779.f90: New test.
1619 2019-06-15 Tom de Vries <tdevries@suse.de>
1621 PR tree-optimization/90009
1622 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1624 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1626 PR tree-optimization/89713
1627 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1629 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1632 * testsuite/libgomp.c/pr90811.c: New test.
1634 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1636 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1637 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1639 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1641 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1642 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1643 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1644 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1646 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648 * configure.ac: Call AX_COUNT_CPUS.
1649 Substitute CPU_COUNT.
1650 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1652 * aclocal.m4: Regenerate.
1653 * configure: Regenerate.
1654 * Makefile.in, testsuite/Makefile.in: Regenerate.
1656 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1658 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1660 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1661 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1662 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1664 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1666 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1668 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1671 * work.c (gomp_init_work_share): Instead of aligning final ordered
1672 value to multiples of long long alignment, align to that the
1673 first part (ordered team ids) and if inline_ordered_team_ids
1674 is not on a long long alignment boundary within the structure,
1675 use __alignof__ (long long) - 1 pad size always.
1676 * loop.c (GOMP_loop_start): Fix *mem computation if
1677 inline_ordered_team_ids is not aligned on long long alignment boundary
1678 within the structure.
1679 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1680 * sections.c (GOMP_sections2_start): Likewise.
1682 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1684 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1685 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1688 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1689 HAVE_INTTYPES_H is defined.
1690 (print_uint64_t): New typedef.
1691 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1692 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1693 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1694 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1695 before casting to void *.
1696 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1697 * oacc-mem.c: Don't include config.h nor stdint.h.
1698 * target.c: Don't include config.h.
1699 * oacc-cuda.c: Likewise.
1700 * oacc-host.c: Don't include stdint.h.
1702 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1705 * alloc.c (_GNU_SOURCE): Define.
1707 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1709 * acc_prof.h: New file.
1710 * oacc-profiling.c: Likewise.
1711 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1712 Add these, respectively.
1713 * Makefile.in: Regenerate.
1714 * env.c (initialize_env): Call goacc_profiling_initialize.
1715 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1716 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1717 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1718 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1719 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1720 acc_prof_register, acc_prof_unregister, and acc_register_library.
1721 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1722 GOMP_PLUGIN_goacc_thread.
1723 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1724 prof_callbacks_enabled members.
1725 (goacc_prof_enabled, goacc_profiling_initialize)
1726 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1727 (goacc_profiling_dispatch): Declare.
1728 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1729 (GOACC_PROFILING_SETUP_P): Define.
1730 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1731 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1732 OpenACC Profiling Interface.
1733 * oacc-cuda.c (acc_get_current_cuda_device)
1734 (acc_get_current_cuda_context, acc_get_cuda_stream)
1735 (acc_set_cuda_stream): Likewise.
1736 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1737 (acc_init, acc_set_device_type, acc_get_device_type)
1738 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1739 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1740 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1741 (acc_unmap_data, present_create_copy, delete_copyout)
1742 (update_dev_host): Likewise.
1743 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1744 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1746 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1747 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1749 * libgomp.texi: Update.
1750 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1752 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1753 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1755 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1757 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1759 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1762 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1764 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1765 (struct goacc_asyncqueue_list): Likewise.
1766 (goacc_aq): Likewise.
1767 (goacc_aq_list): Likewise.
1768 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1769 (GOMP_OFFLOAD_openacc_async_test): Remove.
1770 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1771 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1772 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1773 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1774 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1775 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1776 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1777 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1778 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1779 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1780 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1781 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1782 (GOMP_OFFLOAD_openacc_async_test): Declare.
1783 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1784 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1785 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1786 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1787 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1789 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1790 (gomp_acc_insert_pointer): Adjust declaration.
1791 (gomp_copy_host2dev): New declaration.
1792 (gomp_copy_dev2host): Likewise.
1793 (gomp_map_vars_async): Likewise.
1794 (gomp_unmap_tgt): Likewise.
1795 (gomp_unmap_vars_async): Likewise.
1796 (gomp_fini_device): Likewise.
1798 * oacc-async.c (get_goacc_thread): New function.
1799 (get_goacc_thread_device): New function.
1800 (lookup_goacc_asyncqueue): New function.
1801 (get_goacc_asyncqueue): New function.
1802 (acc_async_test): Adjust code to use new async design.
1803 (acc_async_test_all): Likewise.
1804 (acc_wait): Likewise.
1805 (acc_wait_async): Likewise.
1806 (acc_wait_all): Likewise.
1807 (acc_wait_all_async): Likewise.
1808 (goacc_async_free): New function.
1809 (goacc_init_asyncqueues): Likewise.
1810 (goacc_fini_asyncqueues): Likewise.
1811 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1813 (acc_set_cuda_stream): Likewise.
1814 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1815 (host_openacc_register_async_cleanup): Remove.
1816 (host_openacc_async_exec): New function.
1817 (host_openacc_async_test): Adjust parameters.
1818 (host_openacc_async_test_all): Remove.
1819 (host_openacc_async_wait): Remove.
1820 (host_openacc_async_wait_async): Remove.
1821 (host_openacc_async_wait_all): Remove.
1822 (host_openacc_async_wait_all_async): Remove.
1823 (host_openacc_async_set_async): Remove.
1824 (host_openacc_async_synchronize): New function.
1825 (host_openacc_async_serialize): New function.
1826 (host_openacc_async_host2dev): New function.
1827 (host_openacc_async_dev2host): New function.
1828 (host_openacc_async_queue_callback): New function.
1829 (host_openacc_async_construct): New function.
1830 (host_openacc_async_destruct): New function.
1831 (struct gomp_device_descr host_dispatch): Remove initialization of old
1832 interface, add initialization of new async sub-struct.
1833 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1834 (goacc_attach_host_thread_to_device): Remove old async code usage.
1835 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1836 (goacc_fini_asyncqueues): Likewise.
1837 (goacc_async_copyout_unmap_vars): Likewise.
1838 (goacc_async_free): Likewise.
1839 (get_goacc_asyncqueue): Likewise.
1840 (lookup_goacc_asyncqueue): Likewise.
1841 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1843 (present_create_copy): Adjust code to use new async design.
1844 (delete_copyout): Likewise.
1845 (update_dev_host): Likewise.
1846 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1848 (gomp_acc_remove_pointer): Adjust code to use new async design.
1849 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1851 (GOACC_enter_exit_data): Likewise.
1852 (goacc_wait): Likewise.
1853 (GOACC_update): Likewise.
1854 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1855 when called, warn as obsolete in comment.
1856 * target.c (goacc_device_copy_async): New function.
1857 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1858 add goacc_device_copy_async case.
1859 (gomp_copy_dev2host): Likewise.
1860 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1861 (gomp_map_pointer): Likewise.
1862 (gomp_map_fields_existing): Likewise.
1863 (gomp_map_vars_internal): New always_inline function, renamed from
1865 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1866 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1867 passing goacc_asyncqueue argument.
1868 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1869 (gomp_unref_tgt): New function.
1870 (gomp_unmap_vars_internal): New always_inline function, renamed from
1872 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1873 (gomp_unmap_vars_async): Implement by calling
1874 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1875 (gomp_fini_device): New function.
1876 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1877 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1878 new async interface.
1879 (gomp_target_fini): Adjust code to call gomp_fini_device.
1881 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1882 (struct ptx_stream): Remove.
1883 (struct nvptx_thread): Remove current_stream field.
1884 (cuda_map_create): Remove.
1885 (cuda_map_destroy): Remove.
1890 (struct goacc_asyncqueue): Define.
1891 (struct nvptx_callback): Define.
1892 (struct ptx_free_block): Define.
1893 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1894 stream_lock, and next fields.
1895 (enum ptx_event_type): Remove.
1896 (struct ptx_event): Remove.
1897 (ptx_event_lock): Remove.
1898 (ptx_events): Remove.
1899 (init_streams_for_device): Remove.
1900 (fini_streams_for_device): Remove.
1901 (select_stream_for_async): Remove.
1902 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1903 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1905 (nvptx_open_device): Add free_blocks initialization, remove
1906 init_streams_for_device call.
1907 (nvptx_close_device): Remove fini_streams_for_device call, add
1908 free_blocks destruct code.
1910 (event_add): Remove.
1911 (nvptx_exec): Adjust parameters and code.
1912 (nvptx_free): Likewise.
1913 (nvptx_host2dev): Remove.
1914 (nvptx_dev2host): Remove.
1915 (nvptx_set_async): Remove.
1916 (nvptx_async_test): Remove.
1917 (nvptx_async_test_all): Remove.
1918 (nvptx_wait): Remove.
1919 (nvptx_wait_async): Remove.
1920 (nvptx_wait_all): Remove.
1921 (nvptx_wait_all_async): Remove.
1922 (nvptx_get_cuda_stream): Remove.
1923 (nvptx_set_cuda_stream): Remove.
1924 (GOMP_OFFLOAD_alloc): Adjust code.
1925 (GOMP_OFFLOAD_free): Likewise.
1926 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1927 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1928 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1929 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1930 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1931 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1932 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1933 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1934 (cuda_free_argmem): New function.
1935 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1936 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1937 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1938 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1939 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1940 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1941 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1942 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1943 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1944 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1945 (cuda_callback_wrapper): New function.
1946 (cuda_memcpy_sanity_check): New function.
1947 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1948 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1949 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1950 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1952 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1955 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1957 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1959 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1961 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1963 * team.c (gomp_team_start): Initialize pool->threads[0].
1965 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1967 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1968 "-foffload=$offload_target".
1969 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1970 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1971 * testsuite/lib/libgomp.exp
1972 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1973 as (conceptually) merged into
1974 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1977 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1978 * testsuite/libgomp-test-support.exp.in: Adjust.
1979 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1980 openacc_device_types_s.
1981 (offload_target_to_openacc_device_type): New proc.
1982 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1983 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1984 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1985 * Makefile.in: Regenerate.
1986 * configure: Likewise.
1987 * testsuite/Makefile.in: Likewise.
1989 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1990 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1991 instead of OFFLOAD_TARGETS.
1992 * target.c (gomp_target_init): Adjust.
1993 * testsuite/libgomp-test-support.exp.in: Likewise.
1994 * testsuite/lib/libgomp.exp: Likewise. Populate
1995 openacc_device_types_s instead of offload_targets_s_openacc.
1996 (check_effective_target_openacc_nvidia_accel_selected)
1997 (check_effective_target_openacc_host_selected): Adjust.
1998 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1999 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2000 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2001 * Makefile.in: Regenerate.
2002 * config.h.in: Likewise.
2003 * configure: Likewise.
2004 * testsuite/Makefile.in: Likewise.
2006 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2007 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2008 "offloading: supported, but hardware not accessible".
2009 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2010 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2012 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2015 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2017 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2018 and related adjustment.
2020 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2023 * testsuite/libgomp.c++/pr88988.C: New test.
2025 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2028 * testsuite/libgomp.c/pr89002.c: New test.
2030 2019-01-28 Richard Biener <rguenther@suse.de>
2033 PR tree-optimization/86865
2034 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2036 2019-01-24 Tom de Vries <tdevries@suse.de>
2038 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2039 once instantiated_devices drops to 0.
2041 2019-01-23 Tom de Vries <tdevries@suse.de>
2044 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2046 (nvptx_exec): Don't call map_push if mapnum == 0.
2047 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2049 2019-01-23 Tom de Vries <tdevries@suse.de>
2053 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2054 (map_fini): Remove "assert (!s->map->active)".
2055 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2057 2019-01-23 Tom de Vries <tdevries@suse.de>
2060 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2061 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2063 2019-01-15 Tom de Vries <tdevries@suse.de>
2066 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2069 2019-01-12 Tom de Vries <tdevries@suse.de>
2071 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2072 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2073 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2074 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2076 2019-01-12 Tom de Vries <tdevries@suse.de>
2078 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2080 2019-01-12 Tom de Vries <tdevries@suse.de>
2082 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2083 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2084 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2086 2019-01-12 Tom de Vries <tdevries@suse.de>
2089 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2090 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2092 2019-01-12 Tom de Vries <tdevries@suse.de>
2095 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2096 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2098 2019-01-12 Tom de Vries <tdevries@suse.de>
2100 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2101 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2102 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2104 2019-01-12 Tom de Vries <tdevries@suse.de>
2106 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2107 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2108 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2110 2019-01-12 Tom de Vries <tdevries@suse.de>
2112 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2113 resources diagnostic.
2115 2019-01-12 Tom de Vries <tdevries@suse.de>
2117 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2118 vector length to be 128.
2119 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2120 length 2097152 to be reduced to 1024 instead of 32.
2122 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2123 James Norris <jnorris@codesourcery.com>
2125 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2126 Library Routines", and "Environment Variables".
2128 2019-01-11 Tom de Vries <tdevries@suse.de>
2130 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2133 2019-01-11 Tom de Vries <tdevries@suse.de>
2135 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2137 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2138 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2139 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2140 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2142 2019-01-11 Tom de Vries <tdevries@suse.de>
2144 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2147 2019-01-10 Nathan Sidwell <nathan@acm.org>
2148 Julian Brown <julian@codesourcery.com>
2151 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2152 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2154 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2156 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2159 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2161 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2162 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2165 2019-01-09 Tom de Vries <tdevries@suse.de>
2168 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2169 #define instead of "const int".
2170 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2171 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2172 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2173 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2175 2019-01-09 Tom de Vries <tdevries@suse.de>
2177 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2180 2019-01-07 Tom de Vries <tdevries@suse.de>
2182 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2183 GOMP_OPENACC_DIM argument.
2185 2019-01-03 Tom de Vries <tdevries@suse.de>
2187 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2188 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2190 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2192 Update copyright years.
2194 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2196 * libgomp.texi: Bump @copying's copyright year.
2198 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2200 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2201 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2202 (GOACC_declare): Redefine the "device" argument to "flags".
2204 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2205 Cesar Philippidis <cesar@codesourcery.com>
2207 * target.c (struct gomp_coalesce_chunk): New structure.
2208 (struct gomp_coalesce_buf): Update the chunks member to use that
2209 type. Adjust all users.
2211 2018-12-19 Tom de Vries <tdevries@suse.de>
2213 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2214 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2215 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2217 2018-12-19 Tom de Vries <tdevries@suse.de>
2219 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2220 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2221 gcc/testsuite/gcc.dg/goacc.
2222 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2224 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2225 Chung-Lin Tang <cltang@codesourcery.com>
2227 * oacc-mem.c (acc_present_or_create): Remove definition and change
2228 to alias of acc_create.
2229 (acc_present_or_copyin): Remove definition and change to alias of
2231 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2232 of acc_present_or_create.
2233 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2234 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2235 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2236 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2237 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2238 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2239 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2240 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2241 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2242 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2243 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2244 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2245 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2246 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2247 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2248 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2250 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2253 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2254 "identical parameters".
2255 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2256 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2259 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2260 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2263 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2264 (nvptx_wait_async): Unseen async-argument is a no-op.
2265 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2266 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2267 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2268 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2269 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2270 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2271 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2272 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2273 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2275 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2276 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2278 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2280 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2281 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2282 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2284 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2287 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2288 (acc_set_cuda_stream): Clarify.
2289 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2291 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2293 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2294 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2295 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2296 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2298 2018-12-14 Tom de Vries <tdevries@suse.de>
2300 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2301 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2302 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2303 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2304 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2306 2018-12-13 Tom de Vries <tdevries@suse.de>
2308 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2309 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2310 * fortran.c (omp_display_affinity_): ... here.
2311 * libgomp.h (gomp_print_string): Declare.
2312 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2313 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2316 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2319 * testsuite/libgomp.c++/for-24.C (results): Include it in
2320 omp declare target region.
2321 (main): Use map (always, tofrom: results) instead of
2322 map (tofrom: results).
2324 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2327 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2328 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2330 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2332 2018-12-12 Andreas Schwab <schwab@suse.de>
2334 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2337 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2340 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2342 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2343 Jakub Jelinek <jakub@redhat.com>
2345 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2346 devicep->host2dev_func.
2348 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2351 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2352 tls_runtime effective target.
2353 (t): New threadprivate variable.
2354 (main): Set t in threads which execute iterations of the worksharing
2355 loop. Propagate that to the task after the loop and don't abort
2356 if the current taskgroup hasn't been cancelled.
2358 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2360 * testsuite/libgomp.c/task-reduction-3.c: New test.
2362 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2364 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2367 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2368 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2370 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2372 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2374 2018-10-19 Richard Biener <rguenther@suse.de>
2376 PR tree-optimization/88182
2377 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2379 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2381 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2382 (RUNTEST): Don't define.
2383 (RUNTESTDEFAULTFLAGS): Add.
2384 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2385 (distclean-am): Depend on distclean-DEJAGNU.
2386 (check-am): If -j% option is present in MFLAGS and if
2387 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2388 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2389 * testsuite/Makefile.in: Regenerated.
2391 2018-11-26 Richard Biener <rguenther@suse.de>
2393 PR tree-optimization/88182
2394 * testsuite/libgomp.c++/pr88182.C: New testcase.
2396 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2399 * config/mingw32/affinity-fmt.c: New file.
2401 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2403 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2404 (gomp_display_affinity): Use __builtin_choose_expr to handle
2405 properly handle argument having integral, or pointer or some other
2406 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2407 with uint64_t type instead of %llx and unsigned long long.
2409 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2410 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2412 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2414 * affinity.c: Include <string.h>, <stdio.h>.
2415 (gomp_display_affinity_place): Remove cpusetp.
2416 * teams.c: Include <limits.h>.
2418 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2420 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2421 in_reduction clause for s[0].
2423 * affinity.c (gomp_display_affinity_place): New function.
2424 * affinity-fmt.c: New file.
2425 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2426 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2427 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2428 Move these functions to ...
2429 * config/nvptx/teams.c: ... here. New file.
2430 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2432 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2434 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2435 and _aligned_malloc.
2436 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2437 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2438 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2439 gomp_affinity_format_len): New variables.
2440 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2441 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2442 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2443 modifiers. Display (non-default) chunk sizes. Print
2444 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2445 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2446 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2447 * fortran.c: Include stdio.h and string.h.
2448 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2449 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2450 (omp_set_affinity_format_, omp_get_affinity_format_,
2451 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2452 omp_pause_resource_all_): New functions.
2453 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2455 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2457 * teams.c: ... here. New file.
2458 * libgomp_g.h: Include gstdint.h.
2459 (GOMP_loop_nonmonotonic_runtime_start,
2460 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2461 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2462 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2463 GOMP_parallel_loop_nonmonotonic_runtime,
2464 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2465 GOMP_loop_ull_nonmonotonic_runtime_start,
2466 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2467 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2468 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2469 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2470 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2471 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2472 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2473 GOMP_teams_reg): Declare.
2474 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2475 gomp_aligned_alloc uses fallback implementation.
2476 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2477 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2478 (struct gomp_doacross_work_share): Add extra field.
2479 (struct gomp_work_share): Add task_reductions field.
2480 (struct gomp_taskgroup): Add workshare and reductions fields.
2481 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2482 (gomp_thread_handle): New typedef.
2483 (gomp_display_affinity_place, gomp_set_affinity_format,
2484 gomp_display_string, gomp_display_affinity,
2485 gomp_display_affinity_thread): Declare.
2486 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2487 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2488 gomp_workshare_task_reduction_register): Declare.
2489 (gomp_team_start): Add taskgroup argument.
2490 (gomp_pause_host): Declare.
2491 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2493 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2494 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2495 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2496 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2497 GOMP_loop_ull_doacross_start,
2498 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2499 GOMP_loop_maybe_nonmonotonic_runtime_next,
2500 GOMP_loop_maybe_nonmonotonic_runtime_start,
2501 GOMP_loop_nonmonotonic_runtime_next,
2502 GOMP_loop_nonmonotonic_runtime_start,
2503 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2504 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2505 GOMP_loop_ull_nonmonotonic_runtime_next,
2506 GOMP_loop_ull_nonmonotonic_runtime_start,
2507 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2508 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2509 GOMP_taskgroup_reduction_register,
2510 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2511 GOMP_teams_reg and GOMP_taskwait_depend.
2512 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2513 omp_{capture,display}_affinity{,_}, and
2514 omp_[gs]et_affinity_format{,_}.
2515 * loop.c: Include string.h.
2516 (GOMP_loop_runtime_next): Add ialias.
2517 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2518 (gomp_loop_static_start, gomp_loop_dynamic_start,
2519 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2520 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2521 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2522 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2523 or gomp_doacross_init callers.
2524 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2525 GOMP_loop_doacross_start): New functions.
2526 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2527 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2528 Mask off GFS_MONOTONIC bit.
2529 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2530 GOMP_loop_maybe_nonmonotonic_runtime_start,
2531 GOMP_loop_nonmonotonic_runtime_next,
2532 GOMP_loop_nonmonotonic_runtime_start,
2533 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2534 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2536 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2538 * loop_ull.c: Include string.h.
2539 (GOMP_loop_ull_runtime_next): Add ialias.
2540 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2541 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2542 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2543 gomp_loop_ull_ordered_dynamic_start,
2544 gomp_loop_ull_ordered_guided_start,
2545 gomp_loop_ull_doacross_static_start,
2546 gomp_loop_ull_doacross_dynamic_start,
2547 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2548 and gomp_doacross_ull_init callers.
2549 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2550 GOMP_loop_ull_doacross_start): New functions.
2551 (GOMP_loop_ull_runtime_start,
2552 GOMP_loop_ull_ordered_runtime_start,
2553 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2554 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2555 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2556 GOMP_loop_ull_nonmonotonic_runtime_next,
2557 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2558 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2559 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2560 (omp_pause_resource_t, omp_depend_t): New typedefs.
2561 (enum omp_lock_hint_t): Renamed to ...
2562 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2563 enumerators using numbers and omp_lock_hint_* as their aliases.
2564 (omp_lock_hint_t): New typedef. Rename to ...
2565 (omp_sync_hint_t): ... this.
2566 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2567 omp_sync_hint_t instead of omp_lock_hint_t.
2568 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2569 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2571 (omp_target_is_present, omp_target_disassociate_ptr):
2572 Change first argument from void * to const void *.
2573 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2574 from void * to const void *.
2575 (omp_target_associate_ptr): Change first and second arguments from
2576 void * to const void *.
2577 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2578 omp_pause_hard): New parameters.
2579 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2580 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2582 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2583 omp_pause_hard): New parameters.
2584 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2585 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2587 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2588 EXTRA argument. If not needed to prepare array, if extra is 0,
2589 clear ws->doacross, otherwise allocate just doacross structure and
2590 extra payload. If array is needed, allocate also extra payload.
2591 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2592 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2594 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2596 (GOMP_parallel): Likewise. Formatting fix.
2597 (GOMP_parallel_reductions): New function.
2598 (GOMP_cancellation_point): If taskgroup has workshare
2599 flag set, check cancelled of prev taskgroup if any.
2600 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2601 on prev taskgroup if any.
2602 * sections.c: Include string.h.
2603 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2604 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2605 (GOMP_sections2_start): New function.
2606 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2607 Pass NULL as taskgroup to gomp_team_start.
2608 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2609 gomp_work_share_start callers.
2610 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2611 If taskgroup has workshare flag set, check cancelled on prev
2612 taskgroup if any. Guard all cancellation tests with
2613 gomp_cancel_var test.
2614 (omp_target_is_present, omp_target_disassociate_ptr):
2615 Change ptr argument from void * to const void *.
2616 (omp_target_memcpy): Change src argument from void * to const void *.
2617 (omp_target_memcpy_rect): Likewise.
2618 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2619 instead of char * where needed.
2620 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2621 from void * to const void *.
2622 (omp_pause_resource, omp_pause_resource_all): New functions.
2623 * task.c (gomp_task_handle_depend): Handle new depend array format
2624 in addition to the old. Handle mutexinoutset kinds the same as
2625 inout for now, handle unspecified kinds.
2626 (gomp_create_target_task): If taskgroup has workshare flag set, check
2627 cancelled on prev taskgroup if any. Guard all cancellation tests with
2628 gomp_cancel_var test. Handle new depend array format count in
2629 addition to the old.
2630 (GOMP_task): Likewise. Adjust function comment.
2631 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2632 cancelled on prev taskgroup if any. Guard all cancellation tests with
2633 gomp_cancel_var test.
2634 (GOMP_taskwait_depend): New function.
2635 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2636 format in addition to the old. Handle mutexinoutset kinds the same as
2637 inout for now, handle unspecified kinds. Fix a function comment typo.
2638 (gomp_taskgroup_init): New function.
2639 (GOMP_taskgroup_start): Use it.
2640 (gomp_reduction_register, gomp_create_artificial_team,
2641 GOMP_taskgroup_reduction_register,
2642 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2643 gomp_parallel_reduction_register,
2644 gomp_workshare_task_reduction_register,
2645 gomp_workshare_taskgroup_start,
2646 GOMP_workshare_task_reduction_unregister): New functions.
2647 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2648 check cancelled on prev taskgroup if any. Guard all cancellation
2649 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2650 by calling GOMP_taskgroup_reduction_register.
2651 * team.c (gomp_thread_attr): Remove comment.
2652 (struct gomp_thread_start_data): Add handle field.
2653 (gomp_thread_start): Call pthread_detach.
2654 (gomp_new_team): Adjust gomp_init_work_share caller.
2655 (gomp_free_pool_helper): Call pthread_detach.
2656 (gomp_team_start): Add taskgroup argument, initialize implicit
2657 tasks' taskgroup field to that. Don't call
2658 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2659 (gomp_team_end): Determine nesting by thr->ts.level != 0
2660 rather than thr->ts.team != NULL.
2661 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2662 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2663 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2664 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2665 if more than 1 allocate also extra payload at the end of array. Never
2666 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2667 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2668 return true instead of ws.
2669 * Makefile.in: Regenerated.
2670 * configure: Regenerated.
2671 * config.h.in: Regenerated.
2672 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2674 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2675 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2676 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2677 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2678 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2679 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2680 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2681 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2682 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2683 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2684 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2685 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2686 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2687 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2688 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2689 define a different N(test), don't define N(f0) to N(f14), but instead
2690 define N(f20) to N(f34) using != comparisons.
2691 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2692 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2693 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2694 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2695 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2696 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2697 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2698 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2699 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2700 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2701 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2702 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2703 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2704 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2705 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2706 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2707 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2708 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2709 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2710 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2711 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2712 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2713 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2714 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2715 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2716 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2717 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2718 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2719 * testsuite/libgomp.c++/depend-1.C: New test.
2720 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2721 * testsuite/libgomp.c++/depobj-1.C: New test.
2722 * testsuite/libgomp.c++/for-16.C: New test.
2723 * testsuite/libgomp.c++/for-21.C: New test.
2724 * testsuite/libgomp.c++/for-22.C: New test.
2725 * testsuite/libgomp.c++/for-23.C: New test.
2726 * testsuite/libgomp.c++/for-24.C: New test.
2727 * testsuite/libgomp.c++/for-25.C: New test.
2728 * testsuite/libgomp.c++/for-26.C: New test.
2729 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2730 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2731 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2732 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2733 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2734 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2735 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2736 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2737 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2738 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2739 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2740 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2741 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2742 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2743 * testsuite/libgomp.c/task-reduction-1.c: New test.
2744 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2745 * testsuite/libgomp.c/task-reduction-2.c: New test.
2746 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2747 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2748 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2749 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2750 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2751 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2752 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2753 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2754 * testsuite/libgomp.c/teams-1.c: New test.
2755 * testsuite/libgomp.c/teams-2.c: New test.
2756 * testsuite/libgomp.c/thread-limit-4.c: New test.
2757 * testsuite/libgomp.c/thread-limit-5.c: New test.
2758 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2760 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2762 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2763 acc_memcpy_to/from_device functions, now with async parameter.
2764 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2765 (acc_memcpy_from_device): Likewise.
2766 (acc_memcpy_to_device_async): New API function.
2767 (acc_memcpy_from_device_async): Likewise.
2768 (present_create_copy): Add async parameter and async setting/unsetting.
2769 (acc_create): Adjust present_create_copy call.
2770 (acc_copyin): Likewise.
2771 (acc_present_or_create): Likewise.
2772 (acc_present_or_copyin): Likewise.
2773 (acc_create_async): New API function.
2774 (acc_copyin_async): New API function.
2775 (delete_copyout): Add async parameter and async setting/unsetting.
2776 (acc_delete): Adjust delete_copyout call.
2777 (acc_copyout): Likewise.
2778 (acc_delete_async): New API function.
2779 (acc_copyout_async): Likewise.
2780 (update_dev_host): Add async parameter and async setting/unsetting.
2781 (acc_update_device): Adjust update_dev_host call.
2782 (acc_update_self): Likewise.
2783 (acc_update_device_async): New API function.
2784 (acc_update_self_async): Likewise.
2785 * openacc.h (acc_copyin_async): Declare new API function.
2786 (acc_create_async): Likewise.
2787 (acc_copyout_async): Likewise.
2788 (acc_delete_async): Likewise.
2789 (acc_update_device_async): Likewise.
2790 (acc_update_self_async): Likewise.
2791 (acc_memcpy_to_device_async): Likewise.
2792 (acc_memcpy_from_device_async): Likewise.
2793 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2794 (acc_copyin_async_64_h): New subroutine.
2795 (acc_copyin_async_array_h): New subroutine.
2796 (acc_create_async_32_h): New subroutine.
2797 (acc_create_async_64_h): New subroutine.
2798 (acc_create_async_array_h): New subroutine.
2799 (acc_copyout_async_32_h): New subroutine.
2800 (acc_copyout_async_64_h): New subroutine.
2801 (acc_copyout_async_array_h): New subroutine.
2802 (acc_delete_async_32_h): New subroutine.
2803 (acc_delete_async_64_h): New subroutine.
2804 (acc_delete_async_array_h): New subroutine.
2805 (acc_update_device_async_32_h): New subroutine.
2806 (acc_update_device_async_64_h): New subroutine.
2807 (acc_update_device_async_array_h): New subroutine.
2808 (acc_update_self_async_32_h): New subroutine.
2809 (acc_update_self_async_64_h): New subroutine.
2810 (acc_update_self_async_array_h): New subroutine.
2811 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2812 (acc_copyin_async_64_h): New subroutine.
2813 (acc_copyin_async_array_h): New subroutine.
2814 (acc_create_async_32_h): New subroutine.
2815 (acc_create_async_64_h): New subroutine.
2816 (acc_create_async_array_h): New subroutine.
2817 (acc_copyout_async_32_h): New subroutine.
2818 (acc_copyout_async_64_h): New subroutine.
2819 (acc_copyout_async_array_h): New subroutine.
2820 (acc_delete_async_32_h): New subroutine.
2821 (acc_delete_async_64_h): New subroutine.
2822 (acc_delete_async_array_h): New subroutine.
2823 (acc_update_device_async_32_h): New subroutine.
2824 (acc_update_device_async_64_h): New subroutine.
2825 (acc_update_device_async_array_h): New subroutine.
2826 (acc_update_self_async_32_h): New subroutine.
2827 (acc_update_self_async_64_h): New subroutine.
2828 (acc_update_self_async_array_h): New subroutine.
2829 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2830 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2831 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2832 acc_memcpy_to_device_async*, acc_update_device_async*, and
2833 acc_update_self_async* entries.
2834 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2835 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2836 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2838 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2841 * Makefile.am: Include multilib.am
2842 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2843 (CLEANFILES): Remove libgomp.info.
2844 * configure.ac: Remove AC_PREREQ.
2845 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2846 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2849 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2850 Julian Brown <julian@codesourcery.com>
2852 * testsuite/libgomp.oacc-c++/this.C: New.
2854 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2856 * plugin/plugin-nvptx.c (struct cuda_map): New.
2857 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2858 h_tail with (cuda_map *) map.
2859 (cuda_map_create): New function.
2860 (cuda_map_destroy): New function.
2861 (map_init): Update to use a linked list of cuda_map objects.
2862 (map_fini): Likewise.
2863 (map_pop): Likewise.
2864 (map_push): Likewise. Return CUdeviceptr instead of void.
2865 (init_streams_for_device): Remove stales references to ptx_stream
2867 (select_stream_for_async): Likewise.
2868 (nvptx_exec): Update call to map_init.
2870 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2871 Julian Brown <julian@codesourcery.com>
2874 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2876 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2877 Thomas Koenig <tkoenig@gcc.gnu.org>
2880 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2881 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2882 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2883 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2884 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2885 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2886 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2888 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2889 Tom de Vries <tdevries@suse.de>
2892 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2893 (cuOccupancyMaxPotentialBlockSize): Declare.
2894 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2895 CUDA_ONE_CALL_MAYBE_NULL.
2896 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2897 CUoccupancyB2DSize and declare
2898 cuOccupancyMaxPotentialBlockSize.
2899 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2900 default num_gangs and num_workers when the driver supports it.
2902 2018-08-08 Tom de Vries <tdevries@suse.de>
2904 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2905 CUDA_ONE_CALL_MAYBE_NULL.
2906 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2907 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2908 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2911 2018-08-08 Tom de Vries <tdevries@suse.de>
2913 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2914 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2917 2018-08-08 Tom de Vries <tdevries@suse.de>
2919 * plugin/plugin-nvptx.c
2920 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2921 (nvptx_open_device): Use
2922 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2924 2018-08-08 Tom de Vries <tdevries@suse.de>
2926 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2927 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2929 2018-08-07 Tom de Vries <tdevries@suse.de>
2931 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2932 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2933 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2934 corresponding call in CUDA_ONE_CALL. Add def/undef of
2935 CUDA_ONE_CALL_MAYBE_NULL.
2936 (CUDA_CALL_EXISTS): Define.
2938 2018-08-07 Tom de Vries <tdevries@suse.de>
2940 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2941 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2942 corresponding undefs right after.
2944 2018-08-04 Tom de Vries <tdevries@suse.de>
2946 * plugin/configfrag.ac: For --without-cuda-driver, set
2947 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2948 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2949 * configure: Regenerate.
2951 2018-08-02 Tom de Vries <tdevries@suse.de>
2954 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2955 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2956 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2958 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2959 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2960 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2962 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2963 Thomas Schwinge <thomas@codesourcery.com>
2965 * config/nvptx/oacc-parallel.c: Truncate.
2967 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2968 James Norris <jnorris@codesourcery.com>
2970 * plugin/plugin-nvptx.c (struct map): Removed.
2971 (map_init, map_pop): Remove use of struct map.
2972 (map_push): Likewise and change argument list.
2973 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2975 2018-08-01 Tom de Vries <tdevries@suse.de>
2977 * plugin/cuda-lib.def: New file. Factor out of ...
2978 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2979 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2982 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2984 Revert 'AsyncI/O patch committed'.
2985 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2986 Thomas Koenig <tkoenig@gcc.gnu.org>
2989 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2990 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2991 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2992 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2993 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2994 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2995 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2997 2018-07-30 Tom de Vries <tdevries@suse.de>
2999 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3000 (nvptx_exec): Ensure worker and vector default dims don't exceed
3001 targ_fn->max_threads_per_block.
3003 2018-07-30 Tom de Vries <tdevries@suse.de>
3005 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3006 (nvptx_open_device): Init default_dims for device.
3007 (nvptx_exec): Use default_dims from device.
3009 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3012 * testsuite/libgomp.c++/for-15.C (results): Include it in
3013 omp declare target region.
3014 (main): Use map (always, tofrom: results) instead of
3015 map (tofrom: results).
3018 * testsuite/libgomp.c/pr86660.c: New test.
3020 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3021 Tom de Vries <tdevries@suse.de>
3023 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3024 sufficient resources to launch a kernel, and give a hint on how to fix
3027 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3028 Tom de Vries <tdevries@suse.de>
3030 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3031 max_threads_per_block and max_threads_per_multiprocessor fields.
3032 (nvptx_open_device): Initialize new fields.
3033 (nvptx_exec): Use num_sms, and new fields.
3035 2018-07-26 Tom de Vries <tdevries@suse.de>
3037 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3038 to correct locations. Remove xfail.
3040 2018-07-26 Tom de Vries <tdevries@suse.de>
3042 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3043 acc_wait. Move acc_async_test calls to correct locations. Remove
3046 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3047 Thomas Koenig <tkoenig@gcc.gnu.org>
3050 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3051 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3052 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3053 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3054 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3055 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3056 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3058 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3061 * testsuite/libgomp.c++/pr86542.C: New test.
3064 * testsuite/libgomp.c++/pr86539.C: New test.
3066 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3069 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3070 (results): Make sure the variable is not inside declare target region.
3071 (qux): Remove unused function.
3073 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3076 * testsuite/libgomp.c++/for-15.C: New test.
3078 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3081 * testsuite/libgomp.c++/pr86291.C: New test.
3083 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3085 * libgomp.texi (Top): Move www.openmp.org to https.
3086 (Enabling OpenMP): Ditto.
3087 (omp_get_active_level): Ditto.
3088 (omp_get_ancestor_thread_num): Ditto.
3089 (omp_get_cancellation): Ditto.
3090 (omp_get_default_device): Ditto.
3091 (omp_get_dynamic): Ditto.
3092 (omp_get_level): Ditto.
3093 (omp_get_max_active_levels): Ditto.
3094 (omp_get_max_task_priority): Ditto.
3095 (omp_get_max_threads): Ditto.
3096 (omp_get_nested): Ditto.
3097 (omp_get_num_devices): Ditto.
3098 (omp_get_num_procs): Ditto.
3099 (omp_get_num_teams): Ditto.
3100 (omp_get_num_threads): Ditto.
3101 (omp_get_proc_bind): Ditto.
3102 (omp_get_schedule): Ditto.
3103 (omp_get_team_num): Ditto.
3104 (omp_get_team_size): Ditto.
3105 (omp_get_thread_limit): Ditto.
3106 (omp_get_thread_num): Ditto.
3107 (omp_in_parallel): Ditto.
3108 (omp_in_final): Ditto.
3109 (omp_is_initial_device): Ditto.
3110 (omp_set_default_device): Ditto.
3111 (omp_set_dynamic): Ditto.
3112 (omp_set_max_active_levels): Ditto.
3113 (omp_set_nested): Ditto.
3114 (omp_set_num_threads): Ditto.
3115 (omp_set_schedule): Ditto.
3116 (omp_init_lock): Ditto.
3117 (omp_set_lock): Ditto.
3118 (omp_test_lock): Ditto.
3119 (omp_unset_lock): Ditto.
3120 (omp_destroy_lock): Ditto.
3121 (omp_init_nest_lock): Ditto.
3122 (omp_set_nest_lock): Ditto.
3123 (omp_test_nest_lock): Ditto.
3124 (omp_unset_nest_lock): Ditto.
3125 (omp_destroy_nest_lock): Ditto.
3126 (omp_get_wtick): Ditto.
3127 (omp_get_wtime): Ditto.
3128 (OMP_CANCELLATION): Ditto.
3129 (OMP_DISPLAY_ENV): Ditto.
3130 (OMP_DEFAULT_DEVICE): Ditto.
3131 (OMP_DYNAMIC): Ditto.
3132 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3133 (OMP_MAX_TASK_PRIORITY): Ditto.
3134 (OMP_NESTED): Ditto.
3135 (OMP_NUM_THREADS): Ditto.
3136 (OMP_PROC_BIND): Ditto.
3137 (OMP_PLACES): Ditto.
3138 (OMP_STACKSIZE): Ditto.
3139 (OMP_SCHEDULE): Ditto.
3140 (OMP_THREAD_LIMIT): Ditto.
3141 (OMP_WAIT_POLICY): Ditto.
3143 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3144 James Norris <jnorris@codesourcery.com>
3145 Julian Brown <julian@codesourcery.com>
3146 Thomas Schwinge <thomas@codesourcery.com>
3147 Tom de Vries <tom@codesourcery.com>
3149 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3150 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3151 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3152 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3153 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3154 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3155 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3156 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3157 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3158 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3160 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3162 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3164 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3166 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3168 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3170 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3172 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3174 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3176 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3178 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3180 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3182 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3184 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3190 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3192 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3194 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3196 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3210 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3212 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3213 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3214 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3215 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3216 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3217 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3218 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3219 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3220 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3222 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3224 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3225 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3226 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3228 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3229 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3230 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3234 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3238 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3252 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3254 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3256 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3258 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3260 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3261 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3262 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3263 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3264 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3265 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3266 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3268 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3269 Thomas Schwinge <thomas@codesourcery.com>
3270 Cesar Philippidis <cesar@codesourcery.com>
3272 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3273 (gomp_acc_remove_pointer): Update declaration.
3274 (gomp_acc_declare_allocate): Declare.
3275 (gomp_remove_var): Declare.
3276 * libgomp.map (OACC_2.5): Define.
3277 * oacc-mem.c (acc_map_data): Update refcount.
3278 (acc_unmap_data): Likewise.
3279 (present_create_copy): Likewise.
3280 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3281 (acc_copyin): Likewise.
3282 (FLAG_FINALIZE): Define.
3283 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3284 (acc_delete_finalize): New function.
3285 (acc_delete_finalize_async): New function.
3286 (acc_copyout_finalize): New function.
3287 (acc_copyout_finalize_async): New function.
3288 (gomp_acc_insert_pointer): Update refcounts.
3289 (gomp_acc_remove_pointer): Return if data is not present on the
3291 * oacc-parallel.c (find_pset): Rename to find_pointer.
3292 (find_pointer): Add support for GOMP_MAP_POINTER.
3293 (handle_ftn_pointers): New function.
3294 (GOACC_parallel_keyed): Update refcounts of variables.
3295 (GOACC_enter_exit_data): Add support for finalized data mappings.
3296 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3298 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3299 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3300 for GOMP_MAP_FORCE_FROM.
3301 * openacc.f90 (module openacc_internal): Add
3302 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3303 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3304 acc_copyout_finalize and acc_delete_finalize.
3305 (acc_copyout_finalize_32_h): New subroutine.
3306 (acc_copyout_finalize_64_h): New subroutine.
3307 (acc_copyout_finalize_array_h): New subroutine.
3308 (acc_delete_finalize_32_h): New subroutine.
3309 (acc_delete_finalize_64_h): New subroutine.
3310 (acc_delete_finalize_array_h): New subroutine.
3311 * openacc.h (acc_copyout_finalize): Declare.
3312 (acc_copyout_finalize_async): Declare.
3313 (acc_delete_finalize): Declare.
3314 (acc_delete_finalize_async): Declare.
3315 * openacc_lib.h (acc_copyout_finalize): New interface.
3316 (acc_delete_finalize): New interface.
3317 * target.c (gomp_map_vars): Update dynamic_refcount.
3318 (gomp_remove_var): New function.
3319 (gomp_unmap_vars): Use it.
3320 (gomp_unload_image_from_device): Likewise.
3321 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3322 case to utilize OpenACC 2.5 data clause semantics.
3323 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3324 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3325 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3326 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3327 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3328 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3329 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3330 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3331 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3332 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3333 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3334 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3335 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3336 utilize OpenACC 2.5 data clause semantics.
3337 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3338 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3339 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3340 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3341 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3342 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3343 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3344 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3345 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3347 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3351 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3352 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3353 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3354 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3355 * testsuite/libgomp.fortran/task2.f90: Ditto.
3356 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3357 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3358 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3359 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3360 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3361 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3362 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3363 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3364 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3366 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3369 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3371 2018-05-09 Tom de Vries <tom@codesourcery.com>
3374 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3375 to GOACC_enter_exit_data.
3377 2018-05-09 Tom de Vries <tom@codesourcery.com>
3380 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3381 (async_synchronous_p): New function.
3382 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3384 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3385 async_valid_stream_id_p.
3386 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3387 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3389 2018-05-07 Tom de Vries <tom@codesourcery.com>
3392 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3393 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3395 2018-05-03 Tom de Vries <tom@codesourcery.com>
3398 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3399 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3400 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3401 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3403 2018-05-02 Tom de Vries <tom@codesourcery.com>
3406 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3407 GOMP_OPENACC_DIM ...
3408 * env.c (parse_gomp_openacc_dim): ... here. New function.
3409 (initialize_env): Call parse_gomp_openacc_dim.
3410 (goacc_default_dims): Define.
3411 * libgomp.h (goacc_default_dims): Declare.
3412 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3413 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3414 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3415 GOMP_PLUGIN_acc_default_dim.
3416 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3417 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3419 2018-05-02 Tom de Vries <tom@codesourcery.com>
3422 * testsuite/libgomp.c++/udr-9.C: Update.
3423 * testsuite/libgomp.c++/atomic-16.C: Remove.
3424 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3425 * testsuite/libgomp.c++/loop-13.C: Remove.
3426 * testsuite/libgomp.c++/loop-14.C: Remove.
3427 * testsuite/libgomp.c++/loop-15.C: Remove.
3428 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3429 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3430 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3431 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3432 * testsuite/libgomp.c++/ordered-1.C: Remove.
3433 * testsuite/libgomp.c++/pr45784.C: Remove.
3434 * testsuite/libgomp.c++/pr64824.C: Remove.
3435 * testsuite/libgomp.c++/pr64868.C: Remove.
3436 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3437 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3438 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3439 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3440 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3441 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3442 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3443 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3444 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3445 * testsuite/libgomp.c++/pr69389.C: Remove.
3446 * testsuite/libgomp.c++/simd10.C: Remove.
3447 * testsuite/libgomp.c++/simd11.C: Remove.
3448 * testsuite/libgomp.c++/simd12.C: Remove.
3449 * testsuite/libgomp.c++/simd13.C: Remove.
3450 * testsuite/libgomp.c++/target-1.C: Remove.
3451 * testsuite/libgomp.c++/target-3.C: Remove.
3452 * testsuite/libgomp.c++/target-4.C: Remove.
3453 * testsuite/libgomp.c++/target-5.C: Remove.
3454 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3455 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3456 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3457 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3458 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3459 * testsuite/libgomp.c++/udr-9.C: Remove.
3460 * testsuite/libgomp.c++/for-10.C: Remove.
3461 * testsuite/libgomp.c++/for-11.C: Remove.
3462 * testsuite/libgomp.c++/for-12.C: Remove.
3463 * testsuite/libgomp.c++/for-13.C: Remove.
3464 * testsuite/libgomp.c++/for-14.C: Remove.
3465 * testsuite/libgomp.c++/for-9.C: Remove.
3466 * testsuite/libgomp.c/atomic-18.c: Move ...
3467 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3468 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3469 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3470 * testsuite/libgomp.c/loop-13.c: Move ...
3471 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3472 * testsuite/libgomp.c/loop-14.c: Move ...
3473 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3474 * testsuite/libgomp.c/loop-15.c: Remove.
3475 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3476 * testsuite/libgomp.c/monotonic-1.c: Move ...
3477 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3478 * testsuite/libgomp.c/monotonic-2.c: Move ...
3479 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3480 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3481 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3482 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3483 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3484 * testsuite/libgomp.c/ordered-4.c: Move ...
3485 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3486 * testsuite/libgomp.c/pr45784.c: Move ...
3487 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3488 * testsuite/libgomp.c/pr64824.c: Move ...
3489 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3490 * testsuite/libgomp.c/pr64868.c: Move ...
3491 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3492 * testsuite/libgomp.c/pr66199-1.c: Move ...
3493 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3494 * testsuite/libgomp.c/pr66199-2.c: Move ...
3495 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3496 * testsuite/libgomp.c/pr66199-3.c: Move ...
3497 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3498 * testsuite/libgomp.c/pr66199-4.c: Move ...
3499 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3500 * testsuite/libgomp.c/pr66199-5.c: Move ...
3501 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3502 * testsuite/libgomp.c/pr66199-6.c: Move ...
3503 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3504 * testsuite/libgomp.c/pr66199-7.c: Move ...
3505 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3506 * testsuite/libgomp.c/pr66199-8.c: Move ...
3507 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3508 * testsuite/libgomp.c/pr66199-9.c: Move ...
3509 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3510 * testsuite/libgomp.c/pr69389.c: Move ...
3511 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3512 * testsuite/libgomp.c/simd-14.c: Move ...
3513 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3514 * testsuite/libgomp.c/simd-15.c: Move ...
3515 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3516 * testsuite/libgomp.c/simd-16.c: Move ...
3517 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3518 * testsuite/libgomp.c/simd-17.c: Move ...
3519 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3520 * testsuite/libgomp.c/target-1.c: Move ...
3521 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3522 * testsuite/libgomp.c/target-10.c: Move ...
3523 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3524 * testsuite/libgomp.c/target-13.c: Move ...
3525 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3526 * testsuite/libgomp.c/target-2.c: Move ...
3527 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3528 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3529 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3530 * testsuite/libgomp.c/taskloop-1.c: Move ...
3531 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3532 * testsuite/libgomp.c/taskloop-2.c: Move ...
3533 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3534 * testsuite/libgomp.c/taskloop-3.c: Move ...
3535 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3536 * testsuite/libgomp.c/taskloop-4.c: Move ...
3537 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3538 * testsuite/libgomp.c/udr-1.c: Move ...
3539 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3540 * testsuite/libgomp.c/for-1.c: Move ...
3541 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3542 * testsuite/libgomp.c/for-1.h: Move ...
3543 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3544 * testsuite/libgomp.c/for-2.c: Move ...
3545 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3546 * testsuite/libgomp.c/for-2.h: Move ...
3547 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3548 * testsuite/libgomp.c/for-3.c: Move ...
3549 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3550 * testsuite/libgomp.c/for-4.c: Move ...
3551 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3552 * testsuite/libgomp.c/for-5.c: Move ...
3553 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3554 * testsuite/libgomp.c/for-6.c: Move ...
3555 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3557 2018-05-02 Tom de Vries <tom@codesourcery.com>
3560 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3561 __builtin_goacc_parlevel_{id,size}.
3562 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3563 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3564 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3565 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3566 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3567 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3568 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3569 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3570 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3571 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3572 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3573 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3574 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3575 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3576 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3577 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3578 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3579 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3580 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3581 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3582 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3583 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3584 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3586 2018-05-02 Tom de Vries <tom@codesourcery.com>
3589 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3591 2018-05-02 Tom de Vries <tom@codesourcery.com>
3594 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3596 2018-04-29 Julian Brown <julian@codesourcery.com>
3597 Tom de Vries <tom@codesourcery.com>
3600 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3601 arbitrary order for iterations of atomic subtract check.
3603 2018-04-28 Tom de Vries <tom@codesourcery.com>
3606 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3607 atomic capture results obtained in parallel loop to an array, instead of
3610 2018-04-26 Tom de Vries <tom@codesourcery.com>
3613 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3614 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3615 (process_GOMP_NVPTX_JIT): New function.
3616 (link_ptx): Use process_GOMP_NVPTX_JIT.
3618 2018-04-26 Richard Biener <rguenther@suse.de>
3619 Tom de Vries <tom@codesourcery.com>
3622 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3624 2018-04-26 Tom de Vries <tom@codesourcery.com>
3627 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3628 recursion depth from 25 to 23.
3629 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3631 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3633 * configure: Regenerated.
3635 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3636 Tom de Vries <tom@codesourcery.com>
3639 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3641 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3644 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3645 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3646 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3647 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3648 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3649 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3652 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3654 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3656 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3658 * configure: Regenerated.
3660 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3663 * configure: Regenerate.
3665 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3666 Tom de Vries <tom@codesourcery.com>
3669 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3670 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3672 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3676 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3677 test from gfortran.dg to here.
3679 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3681 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3682 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3684 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3687 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3688 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3690 2018-04-05 Tom de Vries <tom@codesourcery.com>
3693 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3695 2018-03-26 Tom de Vries <tom@codesourcery.com>
3697 PR tree-optimization/85063
3698 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3699 * testsuite/libgomp.c/switch-conversion.c: New test.
3700 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3701 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3703 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3706 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3707 call abort by STOP n.
3708 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3709 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3710 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3711 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3712 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3713 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3714 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3715 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3716 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3717 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3718 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3719 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3720 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3721 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3722 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3723 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3724 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3725 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3726 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3727 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3728 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3729 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3730 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3731 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3732 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3733 * testsuite/libgomp.fortran/character1.f90: Likewise.
3734 * testsuite/libgomp.fortran/character2.f90: Likewise.
3735 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3736 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3737 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3738 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3739 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3740 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3741 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3742 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3743 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3744 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3745 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3746 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3747 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3748 * testsuite/libgomp.fortran/do1.f90: Likewise.
3749 * testsuite/libgomp.fortran/do2.f90: Likewise.
3750 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3751 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3752 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3753 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3754 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3755 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3756 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3757 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3758 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3759 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3760 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3761 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3762 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3763 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3764 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3765 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3766 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3767 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3768 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3769 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3770 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3771 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3772 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3773 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3774 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3775 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3776 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3777 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3778 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3779 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3780 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3781 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3782 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3783 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3784 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3785 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3786 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3787 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3788 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3789 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3790 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3791 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3792 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3793 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3794 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3795 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3796 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3797 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3798 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3799 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3800 * testsuite/libgomp.fortran/lib2.f: Likewise.
3801 * testsuite/libgomp.fortran/lib3.f: Likewise.
3802 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3803 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3804 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3805 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3806 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3807 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3808 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3809 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3810 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3811 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3812 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3813 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3814 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3815 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3816 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3817 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3818 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3819 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3820 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3821 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3822 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3823 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3824 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3825 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3826 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3827 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3828 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3829 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3830 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3831 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3832 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3833 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3834 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3835 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3836 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3837 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3838 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3839 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3840 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3841 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3842 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3843 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3844 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3845 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3846 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3847 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3848 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3849 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3850 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3851 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3852 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3853 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3854 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3855 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3856 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3857 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3858 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3859 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3860 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3861 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3862 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3863 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3864 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3865 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3866 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3867 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3868 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3869 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3870 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3871 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3872 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3873 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3874 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3875 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3876 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3877 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3878 * testsuite/libgomp.fortran/stack.f90: Likewise.
3879 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3880 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3881 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3882 * testsuite/libgomp.fortran/target1.f90: Likewise.
3883 * testsuite/libgomp.fortran/target2.f90: Likewise.
3884 * testsuite/libgomp.fortran/target3.f90: Likewise.
3885 * testsuite/libgomp.fortran/target4.f90: Likewise.
3886 * testsuite/libgomp.fortran/target5.f90: Likewise.
3887 * testsuite/libgomp.fortran/target6.f90: Likewise.
3888 * testsuite/libgomp.fortran/target7.f90: Likewise.
3889 * testsuite/libgomp.fortran/target8.f90: Likewise.
3890 * testsuite/libgomp.fortran/task1.f90: Likewise.
3891 * testsuite/libgomp.fortran/task2.f90: Likewise.
3892 * testsuite/libgomp.fortran/task3.f90: Likewise.
3893 * testsuite/libgomp.fortran/task4.f90: Likewise.
3894 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3895 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3896 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3897 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3898 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3899 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3900 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3901 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3902 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3903 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3904 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3905 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3906 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3907 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3908 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3909 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3910 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3911 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3912 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3913 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3914 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3915 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3916 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3917 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3918 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3919 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3920 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3921 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3922 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3923 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3924 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3925 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3926 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3927 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3928 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3929 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3930 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3931 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3932 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3933 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3934 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3935 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3936 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3937 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3938 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3939 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3940 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3941 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3942 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3943 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3944 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3945 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3946 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3947 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3948 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3949 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3950 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3951 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3952 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3953 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3954 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3955 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3956 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3957 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3958 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3959 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3960 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3961 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3962 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3963 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3964 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3965 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3966 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3967 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3968 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3969 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3970 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3971 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3972 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3973 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3974 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3975 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3976 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3977 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3978 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3979 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3980 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3981 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3982 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3983 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3984 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3985 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3986 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3987 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3988 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3989 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3990 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3991 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3992 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3993 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3994 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3995 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3996 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3997 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3998 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3999 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4000 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4001 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4002 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4003 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4004 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4005 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4006 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4007 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4008 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4009 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4010 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4011 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4012 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4013 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4014 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4015 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4016 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4017 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4018 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4019 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4021 2018-03-20 Richard Biener <rguenther@suse.de>
4023 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4024 parallelizable loop.
4026 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4029 * configure: Regenerate.
4031 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4034 * libgomp.fortran/pr84418-1.f90: New test.
4035 * libgomp.fortran/pr84418-2.f90: New test.
4037 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4040 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4041 -std=f2003 -fall-intrinsics into dg-additional-options.
4043 2018-02-08 Martin Jambor <mjambor@suse.cz>
4045 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4048 2018-02-08 Martin Jambor <mjambor@suse.cz>
4050 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4052 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4054 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4055 [__cplusplus]: Declare extern "C".
4057 2018-02-07 Tom de Vries <tom@codesourcery.com>
4060 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4062 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4063 Jakub Jelinek <jakub@redhat.com>
4066 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4067 instead of omp_lock_t.
4069 2018-01-25 Tom de Vries <tom@codesourcery.com>
4072 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4074 2018-01-24 Tom de Vries <tom@codesourcery.com>
4077 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4079 2018-01-24 Tom de Vries <tom@codesourcery.com>
4082 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4084 2018-01-19 Tom de Vries <tom@codesourcery.com>
4085 Cesar Philippidis <cesar@codesourcery.com>
4088 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4089 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4091 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4093 Update copyright years.
4095 * libgomp.texi: Bump @copying's copyright year.
4097 2017-12-30 Tom de Vries <tom@codesourcery.com>
4100 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4101 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4103 2017-12-27 Tom de Vries <tom@codesourcery.com>
4106 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4107 (test_nonstatic): Fix return type to workaround PR83046.
4109 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4112 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4113 j suffix instead of i.
4114 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4117 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4119 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4120 call to acc_wait (1).
4122 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4125 * testsuite/libgomp.fortran/pr81304.f90: New test.
4127 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4130 * libgomp.fortran/pr81841.f90: New test.
4132 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4135 * target.c (gomp_target_init): Compute lengths just once and
4136 use them in both malloc size and subsequent copying.
4138 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4140 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4141 * acinclude.m4: Add cet.m4.
4142 * configure: Regenerate.
4143 * Makefile.in: Likewise.
4144 * testsuite/Makefile.in: Likewise.
4146 2017-11-15 Tom de Vries <tom@codesourcery.com>
4148 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4149 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4150 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4151 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4152 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4153 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4155 2017-11-14 Tom de Vries <tom@codesourcery.com>
4157 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4160 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4163 * testsuite/libgomp.c++/pr82835.C: New test.
4165 2017-11-06 Martin Liska <mliska@suse.cz>
4167 * testsuite/libgomp.c++/loop-2.C: Return a value
4168 for functions with non-void return type, or change type to void,
4169 or add -Wno-return-type for test.
4170 * testsuite/libgomp.c++/loop-4.C: Likewise.
4171 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4172 * testsuite/libgomp.c++/shared-1.C: Likewise.
4173 * testsuite/libgomp.c++/single-1.C: Likewise.
4174 * testsuite/libgomp.c++/single-2.C: Likewise.
4176 2017-10-31 Tom de Vries <tom@codesourcery.com>
4178 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4179 "do {} while (false)".
4180 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4181 after HSA_DEBUG call.
4183 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4185 * target.c (struct gomp_coalesce_buf): New type.
4186 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4187 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4188 (gomp_copy_host2dev): Add CBUF argument, if copying into
4189 the cached ranges, memcpy into buffer instead of copying
4191 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4192 Add CBUF argument, pass it through to other calls.
4193 (gomp_map_vars): Aggregate copies from host to device if small enough
4194 and with small enough gaps in between into memcpy into a buffer and
4195 fewer host to device copies from the buffer.
4196 (gomp_update): Adjust gomp_copy_host2dev caller.
4198 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4200 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4202 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4203 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4204 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4205 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4207 2017-10-16 Tom de Vries <tom@codesourcery.com>
4209 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4210 openacc_nvidia_accel_selected.
4211 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4212 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4213 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4214 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4215 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4216 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4217 openacc_nvidia_accel_selected. Skip for shared memory device.
4218 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4219 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4221 2017-10-09 Martin Jambor <mjambor@suse.cz>
4224 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4226 2017-10-07 Tom de Vries <tom@codesourcery.com>
4228 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4229 Remove acc_device_nvidia references.
4230 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4233 2017-10-05 Tom de Vries <tom@codesourcery.com>
4235 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4236 vector_length(32) clause from acc parallel directive.
4237 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4239 2017-10-04 Tom de Vries <tom@codesourcery.com>
4241 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4242 (main): Reduce sum of arr elements. Assert that hres is exactly
4243 representable in 32-bit floating point.
4244 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4245 (main): Reduce sum of arr elements. Assert that hres and hmres are
4246 exactly representable in 32-bit floating point.
4247 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4249 2017-09-28 Tom de Vries <tom@codesourcery.com>
4251 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4253 * testsuite/libgomp.c++/pr69393.C: Same.
4254 * testsuite/libgomp.c++/taskloop-1.C: Same.
4255 * testsuite/libgomp.c++/taskloop-3.C: Same.
4256 * testsuite/libgomp.c++/taskloop-4.C: Same.
4257 * testsuite/libgomp.c/for-4.c: Same.
4258 * testsuite/libgomp.c/pr66199-3.c: Same.
4259 * testsuite/libgomp.c/pr66199-4.c: Same.
4260 * testsuite/libgomp.c/pr66199-6.c: Same.
4261 * testsuite/libgomp.c/taskloop-1.c: Same.
4262 * testsuite/libgomp.c/taskloop-3.c: Same.
4263 * testsuite/libgomp.c/taskloop-4.c: Same.
4264 * testsuite/libgomp.fortran/aligned1.f03: Same.
4265 * testsuite/libgomp.fortran/condinc1.f: Same.
4266 * testsuite/libgomp.fortran/condinc3.f90: Same.
4267 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4268 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4269 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4270 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4271 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4272 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4273 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4274 * testsuite/libgomp.fortran/recursion1.f90: Same.
4275 * testsuite/libgomp.fortran/target2.f90: Same.
4276 * testsuite/libgomp.fortran/target5.f90: Same.
4277 * testsuite/libgomp.fortran/task3.f90: Same.
4279 2017-09-28 Tom de Vries <tom@codesourcery.com>
4281 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4282 vector_length(32) clause from acc parallel directive.
4283 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4285 2017-09-27 Tom de Vries <tom@codesourcery.com>
4287 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4288 Remove acc_device_nvidia references.
4290 2017-09-16 Tom de Vries <tom@codesourcery.com>
4293 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4295 2017-09-14 Tom de Vries <tom@codesourcery.com>
4297 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4298 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4299 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4300 * testsuite/libgomp.c/c.exp: Include test-cases from
4301 libgomp.c-c++-common.
4302 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4305 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4308 * testsuite/libgomp.c++/pr81314.C: New test.
4310 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4312 * libgomp.texi (Top): www.openacc.org now uses https.
4313 (Enabling OpenACC): Ditto.
4314 (acc_get_num_devices): Ditto.
4315 (acc_set_device_type): Ditto.
4316 (acc_get_device_type): Ditto.
4317 (acc_set_device_num): Ditto.
4318 (acc_get_device_num): Ditto.
4319 (acc_async_test): Ditto.
4320 (acc_async_test_all): Ditto.
4322 (acc_wait_all): Ditto.
4323 (acc_wait_all_async): Ditto.
4324 (acc_wait_async): Ditto.
4326 (acc_shutdown): Ditto.
4327 (acc_on_device): Ditto.
4328 (acc_malloc): Ditto.
4330 (acc_copyin): Ditto.
4331 (acc_present_or_copyin): Ditto.
4332 (acc_create): Ditto.
4333 (acc_present_or_create): Ditto.
4334 (acc_copyout): Ditto.
4335 (acc_delete): Ditto.
4336 (acc_update_device): Ditto.
4337 (acc_update_self): Ditto.
4338 (acc_map_data): Ditto.
4339 (acc_unmap_data): Ditto.
4340 (acc_deviceptr): Ditto.
4341 (acc_hostptr): Ditto.
4342 (acc_is_present): Ditto.
4343 (acc_memcpy_to_device): Ditto.
4344 (acc_memcpy_from_device): Ditto.
4345 (acc_get_current_cuda_device): Ditto.
4346 (acc_get_current_cuda_context): Ditto.
4347 (acc_get_cuda_stream): Ditto.
4348 (acc_set_cuda_stream): Ditto.
4349 (ACC_DEVICE_TYPE): Ditto.
4350 (ACC_DEVICE_NUM): Ditto.
4351 (OpenACC Library Interoperability): Ditto.
4353 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4356 * testsuite/libgomp.c/pr81687-1.c: New test.
4357 * testsuite/libgomp.c/pr81687-2.c: New test.
4359 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4362 * testsuite/libgomp.c/pr69389.c: New test.
4363 * testsuite/libgomp.c++/pr69389.C: New test.
4365 2017-08-07 Tom de Vries <tom@codesourcery.com>
4368 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4369 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4371 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4374 * testsuite/libgomp.c/pr45784.c: New test.
4375 * testsuite/libgomp.c++/pr45784.C: New test.
4377 2017-07-19 Tom de Vries <tom@codesourcery.com>
4379 * testsuite/libgomp.oacc-c/vec.c: New test.
4381 2017-07-03 Tom de Vries <tom@codesourcery.com>
4383 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4385 2017-06-27 Tom de Vries <tom@codesourcery.com>
4387 * plugin/plugin-nvptx.c (notify_var): New function.
4388 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4390 2017-06-27 Tom de Vries <tom@codesourcery.com>
4392 * env.c (parse_unsigned_long_1): Factor out of ...
4393 (parse_unsigned_long): ... here.
4394 (parse_int_1): Factor out of ...
4395 (parse_int): ... here.
4396 (parse_int_secure): New function.
4397 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4398 * secure_getenv.h: Factor out of ...
4399 * plugin/plugin-hsa.c: ... here.
4400 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4402 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4405 * testsuite/libgomp.c++/pr81130.C: New test.
4407 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4409 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4411 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4412 dg-xfail-run-if default args.
4414 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4416 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4417 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4419 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4422 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4423 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4424 sibling lists, depending on level just pick up what CPUs to put
4425 together into a place vs. whether add multiple ordered places.
4427 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4429 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4430 * libgomp.map (OACC_2.0.1): Add these.
4431 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4432 for "acc_wait", and "acc_wait_all", respectively.
4433 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4434 for "acc_wait", and "acc_wait_all", respectively.
4435 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4436 * libgomp.texi (acc_wait, acc_wait_all): Update.
4437 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4438 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4439 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4441 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4442 acc_present_or_copyin and acc_present_or_create procedures,
4444 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4445 generally different variants of OpenACC Runtime Library functions.
4446 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4448 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4449 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4451 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4452 of preprocessor definitions.
4453 * libgomp.h (strong_alias): Guard by "#ifdef
4454 HAVE_ATTRIBUTE_ALIAS".
4455 * oacc-mem.c: Provide "acc_pcreate" as alias for
4456 "acc_present_or_create", and "acc_pcopyin" as alias for
4457 "acc_present_or_copyin".
4458 * libgomp.map: New version "OACC_2.0.1".
4459 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4460 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4462 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4465 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4466 when disabling nvptx offloading.
4468 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4470 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4471 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4472 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4474 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4475 * testsuite/lib/libgomp.exp
4476 (check_effective_target_openacc_nvidia_accel_configured): New
4478 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4479 (check_effective_target_c++): New procs.
4480 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4481 (check_effective_target_c++): Likewise.
4483 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4486 * testsuite/libgomp.c/pr80809-2.c: New test.
4487 * testsuite/libgomp.c/pr80809-3.c: New test.
4490 * testsuite/libgomp.c/pr80809-1.c: New test.
4493 * testsuite/libgomp.c/pr80853.c: New test.
4495 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4497 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4498 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4499 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4500 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4501 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4503 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4504 Debug output for failure.
4506 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4508 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4510 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4513 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4514 bootstrap compare failures.
4516 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4518 * testsuite/libgomp.c/target-36.c: New testcase.
4520 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4522 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4525 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4528 * testsuite/libgomp.c/pr80394.c: New test.
4530 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4533 * config/posix/thread-stacksize.h: New file.
4534 * config/darwin/thread-stacksize.h: New file.
4535 * config/nvptx/thread-stacksize.h: New file.
4536 * env.c: Include thread-stacksize.h.
4537 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4538 instead of 0. Call pthread_attr_setstacksize even if
4539 GOMP_DEFAULT_STACKSIZE is non-zero.
4541 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4543 * env.c (initialize_env): Initialize stacksize to 0.
4545 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4548 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4550 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4553 * testsuite/libgomp.c/pr79940.c: New test.
4555 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4557 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4559 Add __float128 options.
4561 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4563 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4564 hppa*-*-* dg-skip-if directive.
4566 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4568 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4569 dg-skip-if directive into a comment.
4571 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4572 Chung-Lin Tang <cltang@codesourcery.com>
4574 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4575 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4576 add additional case.
4577 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4578 "openacc_nvidia_accel_selected".
4579 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4580 Add num_workers(8) clause.
4582 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4584 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4586 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4587 include complex.h on hppa*-*-hpux*.
4588 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4590 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4592 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4594 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4595 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4596 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4597 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4598 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4599 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4600 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4601 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4602 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4603 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4605 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4607 * libgomp-plugin.h: #include <stdbool.h>.
4608 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4609 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4610 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4611 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4612 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4613 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4614 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4615 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4616 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4617 (GOMP_OFFLOAD_openacc_async_test)
4618 (GOMP_OFFLOAD_openacc_async_test_all)
4619 (GOMP_OFFLOAD_openacc_async_wait)
4620 (GOMP_OFFLOAD_openacc_async_wait_async)
4621 (GOMP_OFFLOAD_openacc_async_wait_all)
4622 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4623 (GOMP_OFFLOAD_openacc_async_set_async)
4624 (GOMP_OFFLOAD_openacc_create_thread_data)
4625 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4626 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4627 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4628 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4629 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4630 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4632 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4633 (GOMP_OFFLOAD_unload_image): Fix argument types.
4635 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4637 * testsuite/lib/libgomp.exp
4638 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4639 check_compile invocation. Fix up removal of executable. Drop
4640 bogus "2>&1" argument.
4642 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4645 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4646 Martin Jambor <mjambor@suse.cz>
4648 * plugin/hsa.h: Moved to top level include.
4649 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4651 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4654 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4655 of cat to get version from BASE-VER file.
4656 * testsuite/Makefile.in: Regenerated.
4658 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4660 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4663 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4665 * plugin/hsa.h: Add GCC runtime library exception.
4666 * plugin/hsa_ext_finalize.h: Likewise.
4668 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4669 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4670 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4671 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4672 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4673 library to link ptx plugin against.
4674 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4675 (CUDA_CALLS): Define.
4676 (cuda_lib, cuda_lib_inited): New variables.
4677 (init_cuda_lib): New function.
4678 (CUDA_CALL_PREFIX): Define.
4679 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4680 (CUDA_CALL): Use FN instead of (FN).
4681 (CUDA_CALL_NOCHECK): Define.
4682 (cuda_error, fini_streams_for_device, select_stream_for_async,
4683 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4684 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4685 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4686 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4688 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4690 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4691 Use CUDA_CALL_NOCHECK.
4692 * plugin/cuda/cuda.h: New file.
4693 * config.h.in: Regenerated.
4694 * configure: Regenerated.
4697 * configure.ac: Add GCC_BASE_VER.
4698 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4699 get version from BASE-VER file.
4700 * testsuite/Makefile.in: Regenerated.
4701 * configure: Regenerated.
4702 * Makefile.in: Regenerated.
4704 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4707 * Makefile.am: Make fincludedir multilib-aware.
4708 * Makefile.in: Regenerate.
4710 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4712 Update copyright years.
4714 * libgomp.texi: Bump @copying's copyright year.
4716 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4718 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4719 pthread_spinlock_t instead of gomp_mutex_t lock.
4720 (gomp_get_thread_pool): Likewise.
4721 (gomp_release_thread_pool): Likewise.
4722 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4725 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4727 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4728 thread pool in case nthreads == 1.
4730 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4732 * config/nvptx/env.c: Delete.
4733 * icv.c: Move definitions of ICV variables back ...
4734 * env.c: ...here. Do not compile environment-related functionality if
4735 LIBGOMP_OFFLOADED_ONLY is set.
4737 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4739 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4740 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4741 * configure: Regenerate.
4742 * config.h.in: Likewise.
4744 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4746 * Makefile.in: Regenerate with automake-1.11.6.
4747 * aclocal.m4: Likewise.
4748 * configure: Likewise.
4749 * testsuite/Makefile.in: Likewise.
4751 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4753 * config/nvptx/critical.c: Delete to use generic implementation.
4755 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4757 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4758 ../../affinity.c as fallback.
4759 * config/nvptx/affinity.c: Delete to use fallback implementation.
4761 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4762 Jakub Jelinek <jakub@redhat.com>
4763 Dmitry Melnik <dm@ispras.ru>
4765 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4766 * Makefile.in. Regenerate.
4767 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4768 (LIBGOMP_USE_PTHREADS): ...here; new define.
4769 * configure: Regenerate.
4770 * config.h.in: Likewise.
4771 * config/posix/affinity.c: Move to...
4772 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4773 interface by LIBGOMP_USE_PTHREADS.
4774 * critical.c: Split out GOMP_atomic_{start,end} into...
4775 * atomic.c: ...here (new file).
4776 * env.c: Split out ICV definitions into...
4777 * icv.c: ...here (new file) and...
4778 * icv-device.c: ...here. New file.
4779 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4780 (gomp_destroy_lock_30): Ditto.
4781 (gomp_set_lock_30): Ditto.
4782 (gomp_unset_lock_30): Ditto.
4783 (gomp_test_lock_30): Ditto.
4784 (gomp_init_nest_lock_30): Ditto.
4785 (gomp_destroy_nest_lock_30): Ditto.
4786 (gomp_set_nest_lock_30): Ditto.
4787 (gomp_unset_nest_lock_30): Ditto.
4788 (gomp_test_nest_lock_30): Ditto.
4790 * config/nvptx/lock.c: New.
4791 * config/nvptx/bar.c: New.
4792 * config/nvptx/bar.h: New.
4793 * config/nvptx/doacross.h: New.
4794 * config/nvptx/error.c: New.
4795 * config/nvptx/icv-device.c: New.
4796 * config/nvptx/mutex.h: New.
4797 * config/nvptx/pool.h: New.
4798 * config/nvptx/proc.c: New.
4799 * config/nvptx/ptrlock.h: New.
4800 * config/nvptx/sem.h: New.
4801 * config/nvptx/simple-bar.h: New.
4802 * config/nvptx/target.c: New.
4803 * config/nvptx/task.c: New.
4804 * config/nvptx/team.c: New.
4805 * config/nvptx/time.c: New.
4806 * config/posix/simple-bar.h: New.
4807 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4808 (gomp_num_teams_var): Declare.
4809 (struct gomp_thread_pool): Change threads_dock member to
4810 gomp_simple_barrier_t.
4811 [__nvptx__] (gomp_thread): New implementation.
4812 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4813 (gomp_thread_destructor): Ditto.
4814 (gomp_init_thread_affinity): Ditto.
4815 * team.c: Guard uses of Pthreads-specific interfaces by
4816 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4817 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4818 * config/nvptx/alloc.c: Delete.
4819 * config/nvptx/barrier.c: Ditto.
4820 * config/nvptx/fortran.c: Ditto.
4821 * config/nvptx/iter.c: Ditto.
4822 * config/nvptx/iter_ull.c: Ditto.
4823 * config/nvptx/loop.c: Ditto.
4824 * config/nvptx/loop_ull.c: Ditto.
4825 * config/nvptx/ordered.c: Ditto.
4826 * config/nvptx/parallel.c: Ditto.
4827 * config/nvptx/priority_queue.c: Ditto.
4828 * config/nvptx/sections.c: Ditto.
4829 * config/nvptx/single.c: Ditto.
4830 * config/nvptx/splay-tree.c: Ditto.
4831 * config/nvptx/work.c: Ditto.
4832 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4833 -foffload=-lgfortran in addition to -lgfortran.
4834 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4835 * plugin/plugin-nvptx.c: Include <limits.h>.
4836 (struct targ_fn_descriptor): Add new fields.
4837 (struct ptx_device): Ditto. Set them...
4838 (nvptx_open_device): ...here.
4839 (nvptx_adjust_launch_bounds): New.
4840 (nvptx_host2dev): Allow NULL 'nvthd'.
4841 (nvptx_dev2host): Ditto.
4842 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4843 (link_ptx): Adjust log sizes.
4844 (nvptx_host2dev): Allow NULL 'nvthd'.
4845 (nvptx_dev2host): Ditto.
4846 (nvptx_set_clocktick): New. Use it...
4847 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4849 (GOMP_OFFLOAD_dev2dev): New.
4850 (nvptx_adjust_launch_bounds): New.
4851 (nvptx_stacks_size): New.
4852 (nvptx_stacks_alloc): New.
4853 (nvptx_stacks_free): New.
4854 (GOMP_OFFLOAD_run): New.
4855 (GOMP_OFFLOAD_async_run): New (stub).
4857 2016-11-23 Martin Jambor <mjambor@suse.cz>
4859 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4860 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4861 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4863 2016-11-23 Martin Liska <mliska@suse.cz>
4864 Martin Jambor <mjambor@suse.cz>
4866 * plugin/hsa.h: New file.
4867 * plugin/hsa_ext_finalize.h: New file.
4868 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4869 header file unistd.h, and functions secure_getenv, __secure_getenv,
4870 getuid, geteuid, getgid and getegid.
4871 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4873 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4874 Handle various cases of secure_getenv presence, add an implementation
4875 when we can test effective UID and GID.
4876 (struct hsa_runtime_fn_info): New structure.
4877 (hsa_runtime_fn_info hsa_fns): New variable.
4878 (hsa_runtime_lib): Likewise.
4879 (support_cpu_devices): Likewise.
4880 (init_enviroment_variables): Load newly introduced ENV
4882 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4883 (hsa_fatal): Likewise.
4884 (DLSYM_FN): New macro.
4885 (init_hsa_runtime_functions): New function.
4886 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4887 structure. Depending on environment, also allow CPU devices.
4888 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4889 (get_kernarg_memory_region): Likewise.
4890 (GOMP_OFFLOAD_init_device): Likewise.
4891 (destroy_hsa_program): Likewise.
4892 (init_basic_kernel_info): New function.
4893 (GOMP_OFFLOAD_load_image): Use it.
4894 (create_and_finalize_hsa_program): Call hsa run-time functions via
4896 (create_single_kernel_dispatch): Likewise.
4897 (release_kernel_dispatch): Likewise.
4898 (init_single_kernel): Likewise.
4899 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4900 (get_group_size): New function.
4901 (run_kernel): Likewise.
4902 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4903 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4905 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4906 * testsuite/libgomp-test-support.exp.in: Likewise.
4907 * Makefile.in: Regenerated.
4908 * aclocal.m4: Likewise.
4909 * config.h.in: Likewise.
4910 * configure: Likewise.
4911 * testsuite/Makefile.in: Likewise.
4913 2016-11-15 Martin Jambor <mjambor@suse.cz>
4914 Alexander Monakov <amonakov@ispras.ru>
4916 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4917 mapping clauses to target constructs.
4918 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4920 2016-11-15 Matthias Klose <doko@ubuntu.com>
4922 * configure: Regenerate.
4924 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4926 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4927 * omp_lib.h.in (openmp_version): Likewise.
4928 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4930 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4932 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4933 (fib_wrapper): Add map(from: x) clause.
4934 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4936 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4937 (accum): Add map(tmp) clause.
4938 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4939 (accum): Add map(tofrom: tmp) clause.
4940 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4941 (gramSchmidt): Likewise.
4942 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4943 map(tofrom: sum) clause.
4944 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4945 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4946 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4947 only allowed on the loop iterator.
4948 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4949 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4950 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4951 * testsuite/libgomp.fortran/doacross1.f90: New test.
4952 * testsuite/libgomp.fortran/doacross3.f90: New test.
4953 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4954 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4955 * testsuite/libgomp.fortran/doacross2.f90: New test.
4956 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4957 #pragma omp atomic read.
4958 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4959 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4961 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4962 Nathan Sidwell <nathan@acm.org>
4964 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4965 to determine default geometry.
4966 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4969 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4971 * hashtab.h: Use standard GPLv3 with runtime exception
4974 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4976 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4977 size when allocating new thread.
4979 2016-09-14 Marek Polacek <polacek@redhat.com>
4981 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4983 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4986 * testsuite/libgomp.fortran/pr71014.f90: New test.
4988 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4991 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4992 firstprivate clauses.
4993 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4995 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4996 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4997 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4998 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4999 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5000 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5001 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5002 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5003 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5004 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5005 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5006 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5008 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5011 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5013 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5016 * testsuite/libgomp.c++/pr58706.C: New test.
5018 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5020 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5021 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5022 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5024 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5025 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5027 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5029 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5030 test, and don't hardcode -O0.
5032 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5034 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5036 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5038 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5041 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5044 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5045 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5047 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5050 * testsuite/libgomp.fortran/associate3.f90: New test.
5052 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5054 * testsuite/libgomp.c++/target-21.C: New test.
5056 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5058 * testsuite/libgomp.c++/target-20.C: New test.
5060 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5061 Cesar Philippidis <cesar@codesourcery.com>
5064 * libgomp.oacc-c/nested-function-1.c: New file.
5065 * libgomp.oacc-c/nested-function-2.c: Likewise.
5066 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5067 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5068 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5070 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5073 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5074 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5075 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5077 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5079 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5080 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5082 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5085 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5087 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5089 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5090 instead of invalid schedule(static, 0).
5091 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5093 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5095 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5096 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5097 parameter, use to set async stream around call to gomp_unmap_vars,
5098 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5099 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5100 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5101 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5102 (event_add): Add int parameter, initialize 'val' field when
5103 adding new ptx_event struct.
5104 (nvptx_evec): Adjust event_add() call arguments.
5105 (nvptx_host2dev): Likewise.
5106 (nvptx_dev2host): Likewise.
5107 (nvptx_wait_async): Likewise.
5108 (nvptx_wait_all_async): Likewise.
5109 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5110 pass to event_add() call.
5111 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5113 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5114 call openacc.register_async_cleanup_func() hook.
5115 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5116 * target.c (gomp_copy_from_async): Delete function.
5117 (gomp_map_vars): Remove async_refcount.
5118 (gomp_unmap_vars): Likewise.
5119 (gomp_load_image_to_device): Likewise.
5120 (omp_target_associate_ptr): Likewise.
5121 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5122 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5123 (gomp_copy_from_async): Remove.
5125 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5127 * target.c (gomp_device_copy): New function.
5128 (gomp_copy_host2dev): Likewise.
5129 (gomp_copy_dev2host): Likewise.
5130 (gomp_free_device_memory): Likewise.
5131 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5132 (gomp_map_pointer): Likewise.
5133 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5134 NULL value from alloc_func plugin hook.
5135 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5136 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5137 (gomp_unmap_vars): Likewise.
5138 (gomp_update): Adjust to call gomp_copy_dev2host and
5139 gomp_copy_host2dev functions.
5140 (gomp_unload_image_from_device): Handle false value from
5141 unload_image_func plugin hook.
5142 (gomp_init_device): Handle false value from init_device_func
5144 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5145 (omp_target_free): Adjust to call gomp_free_device_memory.
5146 (omp_target_memcpy): Handle return values from host2dev_func,
5147 dev2host_func, and dev2dev_func plugin hooks.
5148 (omp_target_memcpy_rect_worker): Likewise.
5149 (gomp_target_fini): Handle false value from fini_device_func
5151 * libgomp.h (struct gomp_device_descr): Adjust return type of
5152 init_device_func, fini_device_func, unload_image_func, free_func,
5153 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5154 * oacc-init.c (acc_shutdown_1): Handle false value from
5155 fini_device_func plugin hook.
5156 * oacc-host.c (host_init_device): Change return type to bool.
5157 (host_fini_device): Likewise.
5158 (host_unload_image): Likewise.
5159 (host_free): Likewise.
5160 (host_dev2host): Likewise.
5161 (host_host2dev): Likewise.
5162 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5163 (acc_memcpy_to_device): Likewise.
5164 (acc_memcpy_from_device): Likewise.
5165 (delete_copyout): Add libfnname parameter, handle free_func
5166 hook fatal error case.
5167 (acc_delete): Adjust delete_copyout call.
5168 (acc_copyout): Likewise.
5169 (update_dev_host): Move gomp_mutex_unlock to after
5170 host2dev/dev2host hook calls.
5172 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5173 to 'hsa_error_msg', for clarity.
5174 (hsa_fatal): Likewise.
5175 (hsa_error): New function.
5176 (init_hsa_context): Change return type to bool, adjust to return
5178 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5180 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5181 return false on error.
5182 (get_agent_info): Adjust to return NULL on error.
5183 (destroy_hsa_program): Change return type to bool, adjust to
5184 return false on error.
5185 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5186 (destroy_module): Change return type to bool, adjust to
5187 return false on error.
5188 (GOMP_OFFLOAD_unload_image): Likewise.
5189 (GOMP_OFFLOAD_fini_device): Likewise.
5190 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5191 (GOMP_OFFLOAD_free): Change to return false when called.
5192 (GOMP_OFFLOAD_dev2host): Likewise.
5193 (GOMP_OFFLOAD_host2dev): Likewise.
5194 (GOMP_OFFLOAD_dev2dev): Likewise.
5196 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5197 (CUDA_CALL): Likewise.
5198 (CUDA_CALL_ASSERT): Likewise.
5199 (map_init): Change return type to bool, use CUDA_CALL* macros.
5200 (map_fini): Likewise.
5201 (init_streams_for_device): Change return type to bool, adjust
5203 (fini_streams_for_device): Change return type to bool, adjust
5205 (select_stream_for_async): Release stream_lock before calls to
5206 GOMP_PLUGIN_fatal, adjust call to map_init.
5207 (nvptx_init): Use CUDA_CALL* macros.
5208 (nvptx_attach_host_thread_to_device): Change return type to bool,
5209 use CUDA_CALL* macros.
5210 (nvptx_open_device): Use CUDA_CALL* macros.
5211 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5213 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5214 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5215 (nvptx_exec): Use CUDA_CALL* macros.
5216 (nvptx_alloc): Use CUDA_CALL* macros.
5217 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5218 (nvptx_host2dev): Likewise.
5219 (nvptx_dev2host): Likewise.
5220 (nvptx_wait): Use CUDA_CALL* macros.
5221 (nvptx_wait_async): Likewise.
5222 (nvptx_wait_all): Likewise.
5223 (nvptx_wait_all_async): Likewise.
5224 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5225 use CUDA_CALL* macros, adjust call to map_fini.
5226 (GOMP_OFFLOAD_init_device): Change return type to bool,
5227 adjust code accordingly.
5228 (GOMP_OFFLOAD_fini_device): Likewise.
5229 (GOMP_OFFLOAD_load_image): Adjust calls to
5230 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5231 use CUDA_CALL* macros.
5232 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5234 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5235 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5236 handle error return.
5237 (GOMP_OFFLOAD_dev2host): Likewise.
5238 (GOMP_OFFLOAD_host2dev): Likewise.
5239 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5240 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5242 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5244 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5245 (acc_free): Likewise.
5246 (acc_memcpy_to_device): Likewise.
5247 (acc_memcpy_from_device): Likewise.
5248 (acc_deviceptr): Likewise.
5249 (acc_hostptr): Likewise.
5250 (acc_is_present): Likewise.
5251 (acc_map_data): Likewise.
5252 (acc_unmap_data): Likewise.
5253 (present_create_copy): Likewise.
5254 (delete_copyout): Likewise.
5255 (update_dev_host): Likewise.
5256 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5257 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5258 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5259 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5260 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5261 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5262 it only runs on nvptx targets.
5263 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5264 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5265 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5266 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5267 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5268 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5269 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5270 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5271 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5272 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5273 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5274 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5275 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5276 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5277 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5278 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5279 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5280 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5281 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5282 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5283 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5284 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5285 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5287 2016-05-23 Martin Jambor <mjambor@suse.cz>
5289 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5291 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5293 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5294 to gomp_init_targets_once.
5295 (acc_set_device_type): Remove !cached_base_dev condition on call to
5296 gomp_init_targets_once, move call to before acc_device_lock acquire,
5298 (acc_get_device_num): Remove !cached_base_dev condition on call to
5299 gomp_init_targets_once.
5300 (acc_set_device_num): Likewise.
5302 2016-05-16 Martin Jambor <mjambor@suse.cz>
5304 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5306 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5308 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5309 expected partitioning.
5311 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5314 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5315 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5316 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5318 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5320 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5323 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5326 * testsuite/libgomp.c/pr70680-1.c: New test.
5327 * testsuite/libgomp.c/pr70680-2.c: New test.
5329 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5331 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5332 pass parameter variables to subroutines.
5334 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5337 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5339 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5342 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5343 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5345 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5347 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5348 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5349 GOACC_declare prototype.
5351 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5352 Merge this file, and...
5353 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5354 ... this file, and...
5355 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5356 ... this file, and...
5357 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5358 ... this file, and...
5359 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5360 ... this file, and...
5361 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5362 ... this file, and...
5363 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5364 ... this file, and...
5365 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5366 ... this file, and...
5367 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5368 ... this file, and...
5369 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5370 ... this file, and...
5371 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5372 ... this file, and...
5373 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5374 ... this file, and...
5375 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5376 ... this file into...
5377 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5380 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5381 Make failure observable.
5383 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5385 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5387 * target.c (gomp_target_fallback_firstprivate,
5388 gomp_target_unshare_firstprivate): Removed.
5389 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5390 before waiting for dependencies.
5391 (gomp_target_task_fn): Don't copy firstprivate vars here.
5392 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5393 firstprivate_copies here.
5394 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5395 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5396 explicit/implicit firstprivate.
5398 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5402 PR tree-optimization/70373
5406 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5408 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5410 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5412 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5414 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5416 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5418 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5420 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5422 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5424 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5425 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5426 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5427 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5429 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5431 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5433 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5435 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5437 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5439 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5440 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5441 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5442 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5444 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5445 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5446 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5447 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5448 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5449 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5450 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5451 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5452 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5453 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5454 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5455 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5456 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5457 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5458 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5460 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5461 James Norris <jnorris@codesourcery.com>
5462 Nathan Sidwell <nathan@codesourcery.com>
5463 Julian Brown <julian@codesourcery.com>
5464 Cesar Philippidis <cesar@codesourcery.com>
5465 Chung-Lin Tang <cltang@codesourcery.com>
5466 Tom de Vries <tom@codesourcery.com>
5468 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5469 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5472 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5473 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5474 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5475 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5476 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5478 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5480 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5482 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5483 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5484 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5485 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5487 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5489 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5490 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5492 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5493 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5494 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5495 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5496 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5497 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5498 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5500 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5501 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5502 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5504 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5506 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5508 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5510 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5512 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5513 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5514 ... this new file. Update.
5515 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5516 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5517 ... this new file. Update.
5518 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5519 file. Incorporate...
5520 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5522 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5524 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5526 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5528 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5530 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5531 set-torture-options.
5533 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5535 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5537 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5539 -fno-builtin-acc_on_device instead of -O0.
5540 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5542 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5543 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5545 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5546 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5547 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5553 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5559 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5561 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5564 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5566 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5569 2016-03-24 Martin Liska <mliska@suse.cz>
5571 * plugin/plugin-hsa.c (packet_store_release): New function
5572 that is taken from the HSA runtime manual.
5573 (GOMP_OFFLOAD_run): Use the function.
5575 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5578 * testsuite/libgomp.c++/pr70376.C: New test.
5580 2016-03-23 Tom de Vries <tom@codesourcery.com>
5582 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5583 initialization of lresult and lvresult.
5584 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5586 2016-03-23 James Norris <jnorris@codesourcery.com>
5587 Daichi Fukuoka <dc-fukuoka@sgi.com>
5590 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5591 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5592 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5593 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5595 2016-03-23 Martin Liska <mliska@suse.cz>
5598 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5599 argument just in case a dispatched kernel uses that argument.
5601 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5603 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5604 -ftree-parallelize-loops/-fopenacc changes.
5605 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5607 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5609 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5611 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5613 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5614 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5616 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5618 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5619 always_ld_library_path the path to libgcc_s.
5621 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5624 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5626 2016-03-09 Tom de Vries <tom@codesourcery.com>
5628 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5629 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5630 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5632 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5633 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5634 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5635 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5637 2016-03-07 Martin Jambor <mjambor@suse.cz>
5639 * testsuite/lib/libgomp.exp
5640 (check_effective_target_hsa_offloading_selected_nocache): New.
5641 (check_effective_target_hsa_offloading_selected): Likewise.
5642 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5643 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5644 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5645 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5646 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5647 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5648 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5649 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5650 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5651 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5652 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5653 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5654 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5655 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5656 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5657 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5658 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5660 2016-03-07 Martin Jambor <mjambor@suse.cz>
5662 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5663 non-shared memory accelerators.
5664 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5665 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5666 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5667 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5668 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5669 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5670 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5671 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5672 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5674 2016-03-07 Martin Jambor <mjambor@suse.cz>
5676 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5679 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5682 * testsuite/libgomp.c++/pr69555-1.C: New test.
5683 * testsuite/libgomp.c++/pr69555-2.C: New test.
5685 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5686 Martin Jambor <mjambor@suse.cz>
5688 * testsuite/lib/libgomp.exp
5689 (check_effective_target_offload_device_shared_as): New proc.
5690 * testsuite/libgomp.c++/declare_target-1.C: New test.
5692 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5695 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5697 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5699 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5700 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5702 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5703 -ftree-parallelize-loops/-fopenacc changes.
5704 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5705 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5707 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5709 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5711 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5713 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5715 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5717 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5719 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5720 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5722 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5723 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5725 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5726 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5729 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5731 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5733 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5736 * testsuite/libgomp.c/pr69805.c: New test.
5738 2016-02-16 Tom de Vries <tom@codesourcery.com>
5741 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5743 2016-02-09 Tom de Vries <tom@codesourcery.com>
5745 PR tree-optimization/69599
5746 * testsuite/libgomp.c/omp-nested-3.c: New test.
5747 * testsuite/libgomp.c/pr46032-2.c: New test.
5748 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5749 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5751 2016-02-09 Tom de Vries <tom@codesourcery.com>
5754 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5756 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5758 * testsuite/libgomp.c/target-31.c: Fix testcase.
5760 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5762 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5764 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5765 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5766 reduction and map clauses.
5767 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5769 2016-02-02 James Norris <jnorris@codesourcery.com>
5771 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5773 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5775 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5776 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5778 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5781 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5783 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5784 (hsa_kmt_lib): Set variables.
5785 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5786 always_ld_library_path.
5787 * Makefile.in: Regenerate.
5788 * configure: Likewise.
5789 * testsuite/Makefile.in: Likewise.
5791 * plugin/configfrag.ac (offload_additional_options)
5792 (offload_additional_lib_paths): Don't amend for hsa offloading.
5793 * configure: Regenerate.
5795 * plugin/configfrag.ac: Don't configure for offloading target if
5796 we don't build the corresponding plugin.
5797 * configure: Regenerate.
5799 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5801 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5802 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5804 2016-01-26 Tom de Vries <tom@codesourcery.com>
5806 PR tree-optimization/69110
5807 * testsuite/libgomp.c/pr69110.c: New test.
5809 2016-01-25 Richard Biener <rguenther@suse.de>
5812 * testsuite/libgomp.c++/pr69393.C: New testcase.
5814 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5816 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5817 function wasn't mapped to the device with non-shared memory.
5819 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5821 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5823 2016-01-19 Martin Jambor <mjambor@suse.cz>
5824 Martin Liska <mliska@suse.cz>
5826 * plugin/Makefrag.am: Add HSA plugin requirements.
5827 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5828 (HSA_RUNTIME_LIB): Likewise.
5829 (HSA_RUNTIME_CPPFLAGS): Likewise.
5830 (HSA_RUNTIME_INCLUDE): New substitution.
5831 (HSA_RUNTIME_LIB): Likewise.
5832 (HSA_RUNTIME_LDFLAGS): Likewise.
5833 (hsa-runtime): New configure option.
5834 (hsa-runtime-include): Likewise.
5835 (hsa-runtime-lib): Likewise.
5836 (PLUGIN_HSA): New substitution variable.
5837 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5839 (PLUGIN_HSA_CPPFLAGS): Likewise.
5840 (PLUGIN_HSA_LDFLAGS): Likewise.
5841 (PLUGIN_HSA_LIBS): Likewise.
5842 Check that we have access to HSA run-time.
5843 * libgomp-plugin.h (offload_target_type): New element
5844 OFFLOAD_TARGET_TYPE_HSA.
5845 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5847 (bool gomp_create_target_task): Updated.
5848 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5849 new field can_run_func.
5850 * libgomp_g.h (GOMP_target_ext): Update prototype.
5851 * oacc-host.c (host_run): Added a new parameter args.
5852 * target.c (calculate_firstprivate_requirements): New function.
5853 (copy_firstprivate_data): Likewise.
5854 (gomp_target_fallback_firstprivate): Use them.
5855 (gomp_target_unshare_firstprivate): New function.
5856 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5858 (GOMP_target): Do host fallback for all shared memory devices. Do not
5859 pass any args to plugins.
5860 (GOMP_target_ext): Introduce device-specific argument parameter args.
5861 Allow host fallback if device shares memory. Do not remap data if
5862 device has shared memory.
5863 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5864 like host fallback for mappings.
5865 (GOMP_target_data): Treat shared memory devices like host fallback.
5866 (GOMP_target_data_ext): Likewise.
5867 (GOMP_target_update): Likewise.
5868 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5869 gomp_create_target_task.
5870 (GOMP_target_enter_exit_data): Likewise.
5871 (omp_target_alloc): Treat shared memory devices like host fallback.
5872 (omp_target_free): Likewise.
5873 (omp_target_is_present): Likewise.
5874 (omp_target_memcpy): Likewise.
5875 (omp_target_memcpy_rect): Likewise.
5876 (omp_target_associate_ptr): Likewise.
5877 (gomp_load_plugin_for_device): Also load can_run.
5878 * task.c (GOMP_PLUGIN_target_task_completion): Free
5879 firstprivate_copies.
5880 (gomp_create_target_task): Accept new argument args and store it to
5882 * plugin/plugin-hsa.c: New file.
5884 2016-01-18 Tom de Vries <tom@codesourcery.com>
5886 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5887 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5888 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5889 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5890 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5891 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5892 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5893 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5894 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5895 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5896 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5898 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5900 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5901 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5902 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5903 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5904 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5905 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5906 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5907 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5909 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5911 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5913 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5915 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5917 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5919 2016-01-12 James Norris <jnorris@codesourcery.com>
5921 * libgomp.texi: Updates for OpenACC.
5923 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5925 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5927 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5930 * testsuite/libgomp.fortran/pr66680.f90: New test.
5932 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5935 * testsuite/libgomp.c/pr68960.c: New test.
5937 2016-01-06 Nathan Sidwell <nathan@acm.org>
5939 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5940 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5942 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5944 Update copyright years.
5946 * libgomp.texi: Bump @copying's copyright year.
5948 2015-12-31 Nathan Sidwell <nathan@acm.org>
5950 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5951 dg-additional-options syntax.
5952 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5953 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5954 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5955 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5956 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5957 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5958 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5959 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5960 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5961 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5962 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5963 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5964 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5965 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5966 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5967 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5968 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5969 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5971 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5973 * libgomp.h (REFCOUNT_LINK): Define.
5974 (struct splay_tree_key_s): Add link_key.
5975 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5976 Replace target address of the pointer with target address of newly
5977 mapped object in the splay tree. Set link pointer on target to the
5978 device address of the mapped object.
5979 (gomp_unmap_vars): Restore target address of the pointer in the splay
5980 tree for REFCOUNT_LINK objects after unmapping.
5981 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5982 declare target link" objects.
5983 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5984 "omp declare target link" objects, which were mapped for the image.
5985 (gomp_exit_data): Restore target address of the pointer in the splay
5986 tree for REFCOUNT_LINK objects after unmapping.
5987 * testsuite/libgomp.c/target-link-1.c: New file.
5989 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5991 * libgomp.h (gomp_device_state): New enum.
5992 (struct gomp_device_descr): Replace is_initialized with state.
5993 (gomp_fini_device): Remove declaration.
5994 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5995 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5996 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5997 (acc_set_device_type): Use state instead of is_initialized.
5998 (acc_set_device_num): Likewise.
5999 * target.c (resolve_device): Use state instead of is_initialized.
6000 Do not initialize finalized device.
6001 (gomp_map_vars): Do nothing if device is finalized.
6002 (gomp_unmap_vars): Likewise.
6003 (gomp_update): Likewise.
6004 (GOMP_offload_register_ver): Use state instead of is_initialized.
6005 (GOMP_offload_unregister_ver): Likewise.
6006 (gomp_init_device): Likewise.
6007 (gomp_unload_device): Likewise.
6008 (gomp_fini_device): Remove.
6009 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6010 (GOMP_target): Go to host fallback if device is finalized.
6011 (GOMP_target_ext): Likewise.
6012 (gomp_exit_data): Do nothing if device is finalized.
6013 (gomp_target_task_fn): Go to host fallback if device is finalized.
6014 (gomp_target_fini): New static function.
6015 (gomp_target_init): Use state instead of is_initialized.
6016 Call gomp_target_fini at exit.
6018 2015-12-09 Tom de Vries <tom@codesourcery.com>
6020 PR tree-optimization/68716
6021 * testsuite/libgomp.c/omp-nested-2.c: New test.
6023 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6025 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6026 target openacc_nvidia_accel_selected.
6027 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6028 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6029 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6030 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6032 2015-12-01 Julian Brown <julian@codesourcery.com>
6033 James Norris <James_Norris@mentor.com>
6035 * oacc-parallel.c (GOACC_host_data): New function.
6036 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6037 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6038 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6039 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6040 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6041 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6042 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6044 2015-11-30 James Norris <jnorris@codesourcery.com>
6045 Cesar Philippidis <cesar@codesourcery.com>
6048 * libgomp.oacc-fortran/routine-5.f90: New test.
6049 * libgomp.oacc-fortran/routine-7.f90: New test.
6050 * libgomp.oacc-fortran/routine-9.f90: New test.
6052 2015-11-30 Tom de Vries <tom@codesourcery.com>
6054 PR tree-optimization/46032
6055 * testsuite/libgomp.c/pr46032.c: New test.
6057 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6060 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6061 (gomp_create_target_task): Call it before freeing
6062 GOMP_TARGET_TASK_DATA tasks.
6065 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6066 in between case label and OpenMP standalone directives.
6067 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6069 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6071 * configure: Regenerate.
6073 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6075 * testsuite/libgomp.c/target-35.c: New test.
6077 2015-11-22 James Norris <jnorris@codesourcery.com>
6078 Cesar Philippidis <cesar@codesourcery.com>
6080 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6081 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6082 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6083 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6084 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6086 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6089 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6090 * testsuite/libgomp.c/reduction-12.c: Likewise.
6091 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6092 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6094 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6096 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6097 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6098 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6099 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6100 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6102 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6103 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6105 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6107 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6108 worker & gang cases.
6109 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6111 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6113 * config/nvptx/priority_queue.c: New file.
6115 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6117 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6120 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6121 Aldy Hernandez <aldyh@redhat.com>
6122 Ilya Verbin <ilya.verbin@intel.com>
6124 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6125 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6126 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6127 iterators or IV by chunk size.
6128 * parallel.c (gomp_resolve_num_threads): Don't assume that
6129 if thr->ts.team is non-NULL, then pool must be non-NULL.
6130 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6131 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6132 GOMP_PLUGIN_target_task_completion.
6133 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6134 * Makefile.in: Regenerate.
6135 * libgomp.h: Shuffle prototypes and forward definitions around so
6136 priority queues can be defined.
6137 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6138 (enum gomp_target_task_state): New enum.
6139 (struct gomp_target_task): Add state, tgt, task and team fields.
6140 (gomp_create_target_task): Change return type to bool, add
6142 (gomp_target_task_fn): Change return type to bool.
6143 (struct gomp_device_descr): Add async_run_func.
6144 (struct gomp_task): Remove children, next_child, prev_child,
6145 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6147 (struct gomp_taskgroup): Remove children.
6148 Add taskgroup_queue.
6149 (struct gomp_team): Change task_queue type to a priority queue.
6150 (splay_compare): Define inline.
6151 (priority_queue_offset): New.
6152 (priority_node_to_task): New.
6153 (task_to_priority_node): New.
6154 * oacc-mem.c: Do not include splay-tree.h.
6155 * priority_queue.c: New file.
6156 * priority_queue.h: New file.
6157 * splay-tree.c: Do not include splay-tree.h.
6158 (splay_tree_foreach_internal): New.
6159 (splay_tree_foreach): New.
6160 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6161 (splay_tree_callback): Define typedef.
6162 * target.c (splay_compare): Move to libgomp.h.
6163 (GOMP_target): Don't adjust *thr in any way around running offloaded
6165 (GOMP_target_ext): Likewise. Handle target nowait.
6166 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6167 return value from gomp_create_target_task, if false, fallthrough
6168 as if no dependencies exist.
6169 (gomp_target_task_fn): Change return type to bool, return true
6170 if the task should have another part scheduled later. Handle
6172 (gomp_load_plugin_for_device): Initialize async_run.
6173 * task.c (gomp_init_task): Initialize children_queue.
6174 (gomp_clear_parent_in_list): New.
6175 (gomp_clear_parent_in_tree): New.
6176 (gomp_clear_parent): Handle priorities.
6177 (GOMP_task): Likewise.
6178 (priority_queue_move_task_first,
6179 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6181 (gomp_create_target_task): Use priority queues. Change return type
6182 to bool, add state argument, return false if for async
6183 {{enter,exit} data,update} constructs no dependencies need to be
6184 waited for, handle target nowait. Set task->fn to NULL instead of
6185 gomp_target_task_fn.
6186 (verify_children_queue): Remove.
6187 (priority_list_upgrade_task): New.
6188 (priority_queue_upgrade_task): New.
6189 (verify_task_queue): Remove.
6190 (priority_list_downgrade_task): New.
6191 (priority_queue_downgrade_task): New.
6192 (gomp_task_run_pre): Use priority queues.
6193 Abstract code out to priority_queue_downgrade_task.
6194 (gomp_task_run_post_handle_dependers): Use priority queues.
6195 (gomp_task_run_post_remove_parent): Likewise.
6196 (gomp_task_run_post_remove_taskgroup): Likewise.
6197 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6199 (GOMP_taskwait): Likewise.
6200 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6201 priority-queue_upgrade_task.
6202 (GOMP_taskgroup_start): Use priority queues.
6203 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6204 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6206 * taskloop.c (GOMP_taskloop): Handle priorities.
6207 * team.c (gomp_new_team): Call priority_queue_init.
6208 (free_team): Call priority_queue_free.
6209 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6210 team created for target nowait in implicit parallel region.
6211 (gomp_team_start): For nested check, test thr->ts.level instead of
6212 thr->ts.team != NULL.
6213 * testsuite/libgomp.c/doacross-3.c: New test.
6214 * testsuite/libgomp.c/ordered-5.c: New test.
6215 * testsuite/libgomp.c/priority.c: New test.
6216 * testsuite/libgomp.c/target-31.c: New test.
6217 * testsuite/libgomp.c/target-32.c: New test.
6218 * testsuite/libgomp.c/target-33.c: New test.
6219 * testsuite/libgomp.c/target-34.c: New test.
6221 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6223 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6225 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6228 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6230 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6231 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6233 2015-11-12 James Norris <jnorris@codesourcery.com>
6234 Joseph Myers <joseph@codesourcery.com>
6236 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6237 * oacc-parallel.c (GOACC_declare): New function.
6238 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6239 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6241 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6242 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6244 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6246 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6248 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6250 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6251 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6253 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6255 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6258 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6260 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6261 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6262 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6263 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6264 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6266 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6268 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6269 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6271 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6272 Ilya Verbin <ilya.verbin@intel.com>
6274 * libgomp_g.h (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,
6283 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6284 (GOMP_target_41): Renamed to ...
6285 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6287 (GOMP_target_data_41): Renamed to ...
6288 (GOMP_target_data_ext): ... this.
6289 (GOMP_target_update_41): Renamed to ...
6290 (GOMP_target_update_ext): ... this.
6291 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6292 GOMP_target_data_ext and GOMP_target_update_ext instead of
6293 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6294 Export GOMP_loop_nonmonotonic_dynamic_next,
6295 GOMP_loop_nonmonotonic_dynamic_start,
6296 GOMP_loop_nonmonotonic_guided_next,
6297 GOMP_loop_nonmonotonic_guided_start,
6298 GOMP_loop_ull_nonmonotonic_dynamic_next,
6299 GOMP_loop_ull_nonmonotonic_dynamic_start,
6300 GOMP_loop_ull_nonmonotonic_guided_next,
6301 GOMP_loop_ull_nonmonotonic_guided_start,
6302 GOMP_parallel_loop_nonmonotonic_dynamic and
6303 GOMP_parallel_loop_nonmonotonic_guided.
6304 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6305 GOMP_parallel_loop_nonmonotonic_guided,
6306 GOMP_loop_nonmonotonic_dynamic_start,
6307 GOMP_loop_nonmonotonic_guided_start,
6308 GOMP_loop_nonmonotonic_dynamic_next,
6309 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6310 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6311 GOMP_loop_ull_nonmonotonic_guided_start,
6312 GOMP_loop_ull_nonmonotonic_dynamic_next,
6313 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6314 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6316 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6317 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6318 Use gomp_map_val function.
6319 (gomp_target_fallback_firstprivate): New static function.
6320 (GOMP_target_41): Renamed to ...
6321 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6322 arguments. Move firstprivate fallback handling into a new
6324 (GOMP_target_data_41): Renamed to ...
6325 (GOMP_target_data_ext): ... this.
6326 (GOMP_target_update_41): Renamed to ...
6327 (GOMP_target_update_ext): ... this.
6328 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6329 gomp_map_0len_lookup instead of gomp_map_lookup.
6330 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6332 * testsuite/libgomp.c/target-28.c: Likewise.
6333 * testsuite/libgomp.c/monotonic-1.c: New test.
6334 * testsuite/libgomp.c/monotonic-2.c: New test.
6335 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6336 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6337 * testsuite/libgomp.c/pr66199-5.c: New test.
6338 * testsuite/libgomp.c/pr66199-6.c: New test.
6339 * testsuite/libgomp.c/pr66199-7.c: New test.
6340 * testsuite/libgomp.c/pr66199-8.c: New test.
6341 * testsuite/libgomp.c/pr66199-9.c: New test.
6342 * testsuite/libgomp.c/reduction-11.c: New test.
6343 * testsuite/libgomp.c/reduction-12.c: New test.
6344 * testsuite/libgomp.c/reduction-13.c: New test.
6345 * testsuite/libgomp.c/reduction-14.c: New test.
6346 * testsuite/libgomp.c/reduction-15.c: New test.
6347 * testsuite/libgomp.c/target-12.c (main): Adjust for
6348 omp_target_is_present change for one-past-last element.
6349 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6350 the same var is both mapped and privatized.
6351 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6352 handling of zero-length array sections.
6353 * testsuite/libgomp.c/target-28.c: New test.
6354 * testsuite/libgomp.c/target-29.c: New test.
6355 * testsuite/libgomp.c/target-30.c: New test.
6356 * testsuite/libgomp.c/target-teams-1.c: New test.
6357 * testsuite/libgomp.c++/member-6.C: New test.
6358 * testsuite/libgomp.c++/member-7.C: New test.
6359 * testsuite/libgomp.c++/monotonic-1.C: New test.
6360 * testsuite/libgomp.c++/monotonic-2.C: New test.
6361 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6362 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6363 * testsuite/libgomp.c++/pr66199-3.C: New test.
6364 * testsuite/libgomp.c++/pr66199-4.C: New test.
6365 * testsuite/libgomp.c++/pr66199-5.C: New test.
6366 * testsuite/libgomp.c++/pr66199-6.C: New test.
6367 * testsuite/libgomp.c++/pr66199-7.C: New test.
6368 * testsuite/libgomp.c++/pr66199-8.C: New test.
6369 * testsuite/libgomp.c++/pr66199-9.C: New test.
6370 * testsuite/libgomp.c++/reduction-11.C: New test.
6371 * testsuite/libgomp.c++/reduction-12.C: New test.
6372 * testsuite/libgomp.c++/target-13.C: New test.
6373 * testsuite/libgomp.c++/target-14.C: New test.
6374 * testsuite/libgomp.c++/target-15.C: New test.
6375 * testsuite/libgomp.c++/target-16.C: New test.
6376 * testsuite/libgomp.c++/target-17.C: New test.
6377 * testsuite/libgomp.c++/target-18.C: New test.
6378 * testsuite/libgomp.c++/target-19.C: New test.
6380 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6382 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6384 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6385 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6386 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6387 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6388 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6389 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6390 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6391 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6392 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6393 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6394 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6396 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6399 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6401 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6402 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6403 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6404 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6405 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6406 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6407 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6408 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6410 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6412 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6413 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6414 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6415 * oacc-host.c (host_openacc_exec): Likewise.
6416 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6418 2015-11-03 Julian Brown <julian@codesourcery.com>
6419 Thomas Schwinge <thomas@codesourcery.com>
6421 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6422 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6425 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6428 2015-11-03 James Norris <jnorris@codesourcery.com>
6430 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6432 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6434 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6435 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6436 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6437 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6438 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6440 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6442 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6444 (enum acc_async_t): Reformat.
6445 (acc_on_device): Declare compatible with builtin and provide C++
6447 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6449 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6450 Cesar Philippidis <cesar@codesourcery.com>
6452 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6453 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6454 ... this. Add a description of the test at the top of the file.
6455 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6456 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6457 ... this. Add a description of the test at the top of the file.
6459 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6461 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6462 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6463 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6464 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6465 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6466 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6468 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6470 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6473 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6476 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6478 2015-10-27 James Norris <jnorris@codesourcery.com>
6480 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6481 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6483 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6485 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6486 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6489 acc_device_nvidia usage.
6490 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6491 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6494 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6495 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6498 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6502 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6503 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6505 2015-10-23 Tom de Vries <tom@codesourcery.com>
6508 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6510 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6512 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6514 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6516 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6517 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6519 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6520 to 0 when mapnum is 0.
6522 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6524 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6525 Cast to int from int32_t.
6527 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6528 Aldy Hernandez <aldyh@redhat.com>
6529 Ilya Verbin <ilya.verbin@intel.com>
6531 * config/linux/affinity.c (omp_get_place_num_procs,
6532 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6533 * config/linux/doacross.h: New file.
6534 * config/posix/affinity.c (omp_get_place_num_procs,
6535 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6536 * config/posix/doacross.h: New file.
6537 * env.c: Include gomp-constants.h.
6538 (struct gomp_task_icv): Rename run_sched_modifier to
6539 run_sched_chunk_size.
6540 (gomp_max_task_priority_var): New variable.
6541 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6542 (handle_omp_display_env): Change _OPENMP value from 201307 to
6543 201511. Print OMP_MAX_TASK_PRIORITY.
6544 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6545 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6546 chunk_size and run_sched_modifier to run_sched_chunk_size.
6547 (omp_get_max_task_priority, omp_get_initial_device,
6548 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6549 omp_get_partition_place_nums): New functions.
6550 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6551 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6553 (omp_get_num_places_, omp_get_place_num_procs_,
6554 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6555 omp_get_place_proc_ids_8_, omp_get_place_num_,
6556 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6557 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6558 omp_get_max_task_priority_): New functions.
6559 * libgomp_g.h (GOMP_loop_doacross_static_start,
6560 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6561 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6562 GOMP_loop_ull_doacross_dynamic_start,
6563 GOMP_loop_ull_doacross_guided_start,
6564 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6565 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6566 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6567 GOMP_target_data_41, GOMP_target_update_41,
6568 GOMP_target_enter_exit_data): New prototypes.
6569 (GOMP_task): Add prototype argument.
6570 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6571 (struct gomp_doacross_work_share): New type.
6572 (struct gomp_work_share): Add doacross field.
6573 (struct gomp_task_icv): Rename run_sched_modifier to
6574 run_sched_chunk_size.
6575 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6576 GOMP_TASK_UNDEFERRED. Add comments.
6577 (struct gomp_task_depend_entry): Add comments.
6578 (struct gomp_task): Likewise.
6579 (struct gomp_taskgroup): Likewise.
6580 (struct gomp_target_task): New type.
6581 (struct gomp_team): Add comment.
6582 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6583 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6584 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6585 (struct target_var_desc): New type.
6586 (struct target_mem_desc): Adjust comment. Use struct
6587 target_var_desc instead of splay_tree_key for list.
6588 (REFCOUNT_INFINITY): Define.
6589 (struct splay_tree_key_s): Remove copy_from field.
6590 (struct gomp_device_descr): Add dev2dev_func field.
6591 (enum gomp_map_vars_kind): New enum.
6592 (gomp_map_vars): Add one argument.
6593 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6594 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6595 omp_get_place_num_procs, omp_get_place_num_procs_,
6596 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6597 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6598 omp_get_place_num_, omp_get_partition_num_places,
6599 omp_get_partition_num_places_, omp_get_partition_place_nums,
6600 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6601 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6602 omp_target_free, omp_target_is_present, omp_target_memcpy,
6603 omp_target_memcpy_rect, omp_target_associate_ptr and
6604 omp_target_disassociate_ptr.
6605 (GOMP_4.0.2): Renamed to ...
6606 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6607 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6608 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6609 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6610 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6611 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6612 GOMP_loop_ull_doacross_guided_start,
6613 GOMP_loop_ull_doacross_runtime_start,
6614 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6615 GOMP_doacross_ull_wait.
6616 * libgomp.texi: Document omp_get_max_task_priority.
6617 Rename modifier argument to chunk_size for omp_set_schedule and
6618 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6619 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6620 to run_sched_chunk_size renaming.
6621 (GOMP_loop_ordered_runtime_start): Likewise.
6622 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6623 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6624 GOMP_parallel_loop_runtime_start): New functions.
6625 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6626 to run_sched_chunk_size renaming.
6627 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6628 GOMP_loop_doacross_guided_start): New functions or aliases.
6629 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6630 run_sched_modifier to run_sched_chunk_size renaming.
6631 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6632 (gomp_loop_ull_doacross_static_start,
6633 gomp_loop_ull_doacross_dynamic_start,
6634 gomp_loop_ull_doacross_guided_start,
6635 GOMP_loop_ull_doacross_runtime_start): New functions.
6636 (GOMP_loop_ull_doacross_static_start,
6637 GOMP_loop_ull_doacross_dynamic_start,
6638 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6639 * oacc-mem.c (acc_map_data, present_create_copy,
6640 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6642 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6643 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6644 instead of false to gomp_map_vars.
6645 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6646 * omp.h.in (omp_lock_hint_t): New type.
6647 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6648 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6649 omp_get_place_num, omp_get_partition_num_places,
6650 omp_get_partition_place_nums, omp_get_initial_device,
6651 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6652 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6653 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6655 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6656 (omp_lock_hint_none, omp_lock_hint_uncontended,
6657 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6658 omp_lock_hint_speculative): New parameters.
6659 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6660 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6661 omp_get_place_num, omp_get_partition_num_places,
6662 omp_get_partition_place_nums, omp_get_initial_device,
6663 omp_get_max_task_priority): New interfaces.
6664 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6666 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6667 (omp_lock_hint_none, omp_lock_hint_uncontended,
6668 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6669 omp_lock_hint_speculative): New parameters.
6670 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6671 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6672 omp_get_place_num, omp_get_partition_num_places,
6673 omp_get_partition_place_nums, omp_get_initial_device,
6674 omp_get_max_task_priority): New functions and subroutines.
6675 * ordered.c: Include stdarg.h and string.h.
6676 (MAX_COLLAPSED_BITS): Define.
6677 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6678 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6679 GOMP_doacross_ull_wait): New functions.
6680 * target.c: Include errno.h.
6681 (resolve_device): If device is not initialized, call
6682 gomp_init_device on it.
6683 (gomp_map_lookup): New function.
6684 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6685 Don't bump refcount if REFCOUNT_INFINITY. Handle
6686 GOMP_MAP_ALWAYS_TO_P.
6687 (get_kind): Rename is_openacc argument to short_mapkind.
6688 (gomp_map_pointer): Use gomp_map_lookup.
6689 (gomp_map_fields_existing): New function.
6690 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6691 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6692 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6693 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6694 Adjust for tgt->list changed type and copy_from living in there.
6695 (gomp_copy_from_async): Adjust for tgt->list changed type and
6696 copy_from living in there.
6697 (gomp_unmap_vars): Likewise.
6698 (gomp_update): Likewise. Rename is_openacc argument to
6699 short_mapkind. Don't fail if object is not mapped.
6700 (gomp_load_image_to_device): Initialize refcount to
6702 (gomp_target_fallback): New function.
6703 (gomp_get_target_fn_addr): Likewise.
6704 (GOMP_target): Adjust gomp_map_vars caller, use
6705 gomp_get_target_fn_addr and gomp_target_fallback.
6706 (GOMP_target_41): New function.
6707 (gomp_target_data_fallback): New function.
6708 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6709 (GOMP_target_data_41): New function.
6710 (GOMP_target_update): Adjust gomp_update caller.
6711 (GOMP_target_update_41): New function.
6712 (gomp_exit_data, GOMP_target_enter_exit_data,
6713 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6714 omp_target_is_present, omp_target_memcpy,
6715 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6716 omp_target_associate_ptr, omp_target_disassociate_ptr,
6717 gomp_load_plugin_for_device): New functions.
6718 * task.c: Include gomp-constants.h. Include taskloop.c
6719 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6720 (gomp_task_handle_depend): New function.
6721 (GOMP_task): Use it. Add priority argument. Use
6722 gomp-constant.h constants instead of hardcoded numbers.
6723 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6724 (gomp_create_target_task): New function.
6725 (verify_children_queue, verify_taskgroup_queue,
6726 verify_task_queue): New functions.
6727 (gomp_task_run_pre): Call verify_*_queue functions.
6728 If an upcoming tied task is about to leave the sibling or
6729 taskgroup queues in an invalid state, adjust appropriately.
6730 Remove taskgroup argument. Add comments.
6731 (gomp_task_run_post_handle_dependers): Add comments.
6732 (gomp_task_run_post_remove_parent): Likewise.
6733 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6734 (GOMP_taskwait): Likewise. Add comments.
6735 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6736 problem such that the first non parent_depends_on task does not
6737 end up at the end of the children queue.
6738 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6739 GOMP_TASK_UNDEFERRED.
6740 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6741 * taskloop.c: New file.
6742 * testsuite/lib/libgomp.exp
6743 (check_effective_target_offload_device_nonshared_as): New proc.
6744 * testsuite/libgomp.c/affinity-2.c: New test.
6745 * testsuite/libgomp.c/doacross-1.c: New test.
6746 * testsuite/libgomp.c/doacross-2.c: New test.
6747 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6748 Add map clause to target.
6749 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6750 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6751 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6752 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6753 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6755 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6756 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6757 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6758 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6759 not defined. Use those where needed.
6760 * testsuite/libgomp.c/for-4.c: New test.
6761 * testsuite/libgomp.c/for-5.c: New test.
6762 * testsuite/libgomp.c/for-6.c: New test.
6763 * testsuite/libgomp.c/linear-1.c: New test.
6764 * testsuite/libgomp.c/ordered-4.c: New test.
6765 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6766 only allowed on the loop iterator.
6767 * testsuite/libgomp.c/pr66199-3.c: New test.
6768 * testsuite/libgomp.c/pr66199-4.c: New test.
6769 * testsuite/libgomp.c/reduction-7.c: New test.
6770 * testsuite/libgomp.c/reduction-8.c: New test.
6771 * testsuite/libgomp.c/reduction-9.c: New test.
6772 * testsuite/libgomp.c/reduction-10.c: New test.
6773 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6775 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6776 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6777 * testsuite/libgomp.c/target-11.c: New test.
6778 * testsuite/libgomp.c/target-12.c: New test.
6779 * testsuite/libgomp.c/target-13.c: New test.
6780 * testsuite/libgomp.c/target-14.c: New test.
6781 * testsuite/libgomp.c/target-15.c: New test.
6782 * testsuite/libgomp.c/target-16.c: New test.
6783 * testsuite/libgomp.c/target-17.c: New test.
6784 * testsuite/libgomp.c/target-18.c: New test.
6785 * testsuite/libgomp.c/target-19.c: New test.
6786 * testsuite/libgomp.c/target-20.c: New test.
6787 * testsuite/libgomp.c/target-21.c: New test.
6788 * testsuite/libgomp.c/target-22.c: New test.
6789 * testsuite/libgomp.c/target-23.c: New test.
6790 * testsuite/libgomp.c/target-24.c: New test.
6791 * testsuite/libgomp.c/target-25.c: New test.
6792 * testsuite/libgomp.c/target-26.c: New test.
6793 * testsuite/libgomp.c/target-27.c: New test.
6794 * testsuite/libgomp.c/taskloop-1.c: New test.
6795 * testsuite/libgomp.c/taskloop-2.c: New test.
6796 * testsuite/libgomp.c/taskloop-3.c: New test.
6797 * testsuite/libgomp.c/taskloop-4.c: New test.
6798 * testsuite/libgomp.c++/ctor-13.C: New test.
6799 * testsuite/libgomp.c++/doacross-1.C: New test.
6800 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6801 Replace offload_device with offload_device_nonshared_as.
6802 * testsuite/libgomp.c++/for-12.C: New test.
6803 * testsuite/libgomp.c++/for-13.C: New test.
6804 * testsuite/libgomp.c++/for-14.C: New test.
6805 * testsuite/libgomp.c++/linear-1.C: New test.
6806 * testsuite/libgomp.c++/member-1.C: New test.
6807 * testsuite/libgomp.c++/member-2.C: New test.
6808 * testsuite/libgomp.c++/member-3.C: New test.
6809 * testsuite/libgomp.c++/member-4.C: New test.
6810 * testsuite/libgomp.c++/member-5.C: New test.
6811 * testsuite/libgomp.c++/ordered-1.C: New test.
6812 * testsuite/libgomp.c++/reduction-5.C: New test.
6813 * testsuite/libgomp.c++/reduction-6.C: New test.
6814 * testsuite/libgomp.c++/reduction-7.C: New test.
6815 * testsuite/libgomp.c++/reduction-8.C: New test.
6816 * testsuite/libgomp.c++/reduction-9.C: New test.
6817 * testsuite/libgomp.c++/reduction-10.C: New test.
6818 * testsuite/libgomp.c++/reference-1.C: New test.
6819 * testsuite/libgomp.c++/simd14.C: New test.
6820 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6821 * testsuite/libgomp.c++/target-5.C: New test.
6822 * testsuite/libgomp.c++/target-6.C: New test.
6823 * testsuite/libgomp.c++/target-7.C: New test.
6824 * testsuite/libgomp.c++/target-8.C: New test.
6825 * testsuite/libgomp.c++/target-9.C: New test.
6826 * testsuite/libgomp.c++/target-10.C: New test.
6827 * testsuite/libgomp.c++/target-11.C: New test.
6828 * testsuite/libgomp.c++/target-12.C: New test.
6829 * testsuite/libgomp.c++/taskloop-1.C: New test.
6830 * testsuite/libgomp.c++/taskloop-2.C: New test.
6831 * testsuite/libgomp.c++/taskloop-3.C: New test.
6832 * testsuite/libgomp.c++/taskloop-4.C: New test.
6833 * testsuite/libgomp.c++/taskloop-5.C: New test.
6834 * testsuite/libgomp.c++/taskloop-6.C: New test.
6835 * testsuite/libgomp.c++/taskloop-7.C: New test.
6836 * testsuite/libgomp.c++/taskloop-8.C: New test.
6837 * testsuite/libgomp.c++/taskloop-9.C: New test.
6838 * testsuite/libgomp.fortran/affinity1.f90: New test.
6839 * testsuite/libgomp.fortran/affinity2.f90: New test.
6841 2015-10-13 Tom de Vries <tom@codesourcery.com>
6843 PR tree-optimization/67476
6844 * testsuite/libgomp.c/autopar-3.c: New test.
6845 * testsuite/libgomp.c/autopar-4.c: New test.
6846 * testsuite/libgomp.c/autopar-5.c: New test.
6847 * testsuite/libgomp.c/autopar-6.c: New test.
6848 * testsuite/libgomp.c/autopar-7.c: New test.
6849 * testsuite/libgomp.c/autopar-8.c: New test.
6851 2015-10-12 James Norris <jnorris@codesourcery.com>
6853 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6856 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6858 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6861 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6863 * oacc-ptx.h: Remove file, moving its content into...
6864 * config/nvptx/fortran.c: ... here...
6865 * config/nvptx/oacc-init.c: ..., here...
6866 * config/nvptx/oacc-parallel.c: ..., and here.
6867 * config/nvptx/openacc.f90: New file.
6868 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6869 (link_ptx): Don't link in predefined bits of PTX code.
6871 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6872 Bernd Schmidt <bernds@codesourcery.com>
6874 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6875 (struct targ_ptx_obj): New.
6876 (nvptx_tdata): Move earlier, change data format.
6877 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6879 (GOMP_OFFLOAD_load_image): Adjust.
6881 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6883 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6884 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6917 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6918 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6919 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6921 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6922 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6923 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6924 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6925 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6926 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6927 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6928 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6929 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6930 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6931 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6932 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6933 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6934 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6935 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6936 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6937 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6938 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6939 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6940 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6941 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6942 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6943 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6944 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6945 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6947 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6949 * oacc-init.c (acc_on_device): Force optimization level.
6951 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6953 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6954 (cuda_errlist): Delete.
6955 (cuda_error): Reimplement.
6957 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6959 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6961 * libgomp.map (GOACC_parallel_keyed): New.
6962 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6964 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6965 and take keyed varargs list. Adjust call to exec_func.
6966 (GOACC_parallel): Force host fallback.
6967 * libgomp_g.h (GOACC_parallel): Remove.
6968 (GOACC_parallel_keyed): Declare.
6969 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6970 (struct targ_gn_descriptor): Replace name field with launch field.
6971 (nvptx_exec): Lose separate geometry args, take array. Process
6972 dynamic dimensions and adjust.
6973 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6974 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6976 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6978 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6981 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6984 * oacc-int.h (goacc_host_init): Add declaration.
6985 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6986 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6988 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6989 Sebastian Pop <s.pop@samsung.com>
6991 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6993 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6994 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6995 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6996 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6997 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6999 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7001 * configure.tgt: Add missing ;; in between nvptx and rtems
7004 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7006 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7007 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7008 (gomp_thread_pool_reservoir): Add priority member.
7009 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7011 (parse_thread_pools): Likewise.
7012 * team.c (gomp_team_start): Call configuration provided
7013 gomp_adjust_thread_attr(). Destroy thread attributes if
7015 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7017 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7019 * config/posix/pool.h: New.
7020 * config/rtems/pool.h: Likewise.
7021 * config/rtems/proc.c: Likewise.
7022 * libgomp.h (gomp_thread_destructor): Declare.
7023 * team.c: Include configuration provided "pool.h".
7024 (gomp_get_thread_pool): Define in configuration.
7025 (gomp_team_end): Call configuration defined
7026 gomp_release_thread_pool().
7028 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7030 * config/rtems/bar.c: New.
7031 * config/rtems/bar.h: Likewise.
7032 * config/rtems/mutex.c: Likewise.
7033 * config/rtems/mutex.h: Likewise.
7034 * config/rtems/sem.c: Likewise.
7035 * config/rtems/sem.h: Likewise.
7036 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7037 <sys/lock.h> header file.
7038 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7039 supported by Newlib.
7040 * configure: Regenerate.
7042 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7044 * team.c (gomp_new_thread_pool): Delete and move content to ...
7045 (gomp_get_thread_pool): ... new function. Allocate and
7046 initialize thread pool on demand.
7047 (get_last_team): Use gomp_get_thread_pool().
7048 (gomp_team_start): Delete thread pool initialization.
7050 2015-09-03 Tom de Vries <tom@codesourcery.com>
7052 PR tree-optimization/65637
7053 * testsuite/libgomp.c/autopar-2.c: New test.
7055 2015-08-29 Tom de Vries <tom@codesourcery.com>
7057 PR tree-optimization/46193
7058 * testsuite/libgomp.c/pr46193.c: New test.
7060 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7063 * libgomp.map: Add 4.0.2 version.
7064 * target.c (offload_image_descr): Add version field.
7065 (gomp_load_image_to_device): Add version argument. Adjust plugin
7066 call. Improve load mismatch diagnostic.
7067 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7069 (GOMP_offload_regster): Make stub function, move bulk to ...
7070 (GOMP_offload_register_ver): ... here. Process version argument.
7071 (GOMP_offload_unregister): Make stub function, move bulk to ...
7072 (GOMP_offload_unregister_ver): ... here. Process version argument.
7073 (gomp_init_device): Process version field.
7074 (gomp_unload_device): Process version field.
7075 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7076 macros. Check plugin version.
7077 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7078 loader and unloader types.
7079 * oacc-host.c: Include gomp-constants.h.
7080 (host_version): New.
7081 (host_load_image, host_unload_image): Adjust.
7082 (host_dispatch): Add host_version.
7083 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7084 (GOMP_OFFLOAD_version): New.
7085 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7086 (GOMP_OFFLOAD_unload_image): Likewise.
7087 * plugin/plugin-host.c: Include gomp-constants.h.
7088 (GOMP_OFFLOAD_version): New.
7089 (GOMP_OFFLOAD_load_image): Add version arg.
7090 (GOMP_OFFLOAD_unload_image): Likewise.
7092 2015-08-24 Tom de Vries <tom@codesourcery.com>
7094 PR tree-optimization/65468
7095 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7097 2015-08-24 Tom de Vries <tom@codesourcery.com>
7099 PR tree-optimization/65468
7100 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7102 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7106 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7107 (gomp_iter_guided_next): Idem.
7108 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7109 (gomp_iter_ull_guided_next): Idem.
7110 * config/linux/wait.h (do_spin): Idem.
7112 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7114 * libgomp-plugin.h (enum offload_target_type): Remove
7115 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7116 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7117 * openacc.h (enum acc_device_t): Likewise.
7118 * openacc_lib.h: Likewise.
7119 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7120 (acc_on_device): Just use __builtin_acc_on_device.
7121 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7122 of acc_on_device builtin.
7123 * plugin/plugin-host.h: Remove file.
7124 * plugin/plugin-host.c: Likewise, but salvage some content into...
7125 * oacc-host.c: ... this file.
7126 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7127 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7128 * Makefile.in: Regenerate.
7129 * configure: Likewise.
7130 * testsuite/lib/libgomp.exp
7131 (check_effective_target_openacc_host_nonshm_selected): Remove.
7132 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7133 ACC_DEVICE_TYPE=host_nonshm.
7134 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7135 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7136 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7137 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7138 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7139 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7141 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7142 Jakub Jelinek <jakub@redhat.com>
7144 * config/nvptx/affinity.c: New file.
7145 * config/nvptx/alloc.c: Likewise.
7146 * config/nvptx/bar.c: Likewise.
7147 * config/nvptx/barrier.c: Likewise.
7148 * config/nvptx/critical.c: Likewise.
7149 * config/nvptx/env.c: Likewise.
7150 * config/nvptx/error.c: Likewise.
7151 * config/nvptx/fortran.c: Likewise.
7152 * config/nvptx/iter.c: Likewise.
7153 * config/nvptx/iter_ull.c: Likewise.
7154 * config/nvptx/libgomp-plugin.c: Likewise.
7155 * config/nvptx/lock.c: Likewise.
7156 * config/nvptx/loop.c: Likewise.
7157 * config/nvptx/loop_ull.c: Likewise.
7158 * config/nvptx/mutex.c: Likewise.
7159 * config/nvptx/oacc-async.c: Likewise.
7160 * config/nvptx/oacc-cuda.c: Likewise.
7161 * config/nvptx/oacc-host.c: Likewise.
7162 * config/nvptx/oacc-init.c: Likewise.
7163 * config/nvptx/oacc-mem.c: Likewise.
7164 * config/nvptx/oacc-parallel.c: Likewise.
7165 * config/nvptx/oacc-plugin.c: Likewise.
7166 * config/nvptx/omp-lock.h: Likewise.
7167 * config/nvptx/ordered.c: Likewise.
7168 * config/nvptx/parallel.c: Likewise.
7169 * config/nvptx/proc.c: Likewise.
7170 * config/nvptx/ptrlock.c: Likewise.
7171 * config/nvptx/sections.c: Likewise.
7172 * config/nvptx/sem.c: Likewise.
7173 * config/nvptx/single.c: Likewise.
7174 * config/nvptx/splay-tree.c: Likewise.
7175 * config/nvptx/target.c: Likewise.
7176 * config/nvptx/task.c: Likewise.
7177 * config/nvptx/team.c: Likewise.
7178 * config/nvptx/time.c: Likewise.
7179 * config/nvptx/work.c: Likewise.
7180 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7181 * configure: Regenerate.
7182 * configure.tgt (config_path): Set to "nvptx" for target
7185 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7187 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7189 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7191 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7192 (cuda_errlist): Constify.
7193 (errmsg): Move into ...
7194 (cuda_error): ... here. Make smaller.
7195 (_XSTR, _STR): Delete.
7196 (cuda_synames): Delete.
7197 (verify_device_library): Delete.
7198 (nvptx_init): Don't call it.
7200 2015-07-28 Tom de Vries <tom@codesourcery.com>
7202 * testsuite/libgomp.c/uns-outer-4.c: New test.
7204 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7206 * testsuite/libgomp.c/pr66714.c: New test.
7208 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7211 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7212 (fib_ref): New function.
7213 (fib): Correct corner cases in the recursion.
7214 (main): Replace the non-simd loop with fib_ref call.
7215 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7217 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7218 for the last array element value. Replace the non-simd loop with
7219 fib_ref call. Remove redundant b_ref array. Remove the comparison
7220 of the last array element with according Fibonacci sequence element.
7221 (fib): Correct corner cases in the recursion.
7223 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7225 * target.c (gomp_offload_image_to_device): Rename to ...
7226 (gomp_load_image_to_device): ... here.
7227 (GOMP_offload_register): Adjust call.
7228 (gomp_init_device): Likewise.
7229 (gomp_unload_image_from_device): New. Broken out of ...
7230 (GOMP_offload_unregister): ... here. Call it.
7231 (gomp_unload_device): New.
7232 * libgomp.h (gomp_unload_device): Declare.
7233 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7236 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7238 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7240 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7242 (goacc_waits): Move !num_waits handling to ...
7243 (GOACC_wait): ... here, the only caller that might have zero waits.
7245 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7246 (struct ptx_image_data): Move earlier, add fns field.
7247 (struct ptx_device): Add images and image_lock fields.
7248 (ptx_images, ptx_image_lock): Delete.
7249 (nvptx_open_device): Initialize images and image_lock fields.
7250 (nvptx_close_device): Destroy image_lock.
7251 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7252 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7255 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7257 * target.c (GOMP_offload_register): Use int for device type arg.
7258 (GOMP_offload_unregister): Likewise.
7260 * target.c (struct_offload_image_descr): Constify host_table.
7261 (gomp_offload_image_to_device): Likewise.
7262 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7264 * libgomp.h (gomp_device_descr): Constify target data arguments.
7265 * target.c (struct offload_image_descr): Constify target_data.
7266 (gomp_offload_image_to_device): Likewise.
7267 (GOMP_offload_register): Likewise.
7268 (GOMP_offload_unregister): Likewise.
7269 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7270 GOMP_OFFLOAD_unload_image): Constify target data.
7271 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7272 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7274 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7276 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7277 Workaround driver library const error.
7278 (struct nvptx_tdata, nvptx_tdata_t): New.
7279 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7282 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7284 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7285 of EPS parameter from integer to real.
7286 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7287 type of EPS parameter from integer to real.
7289 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7291 * team.c (get_last_team): New.
7292 (gomp_new_team): Recycle last non-nested team if possible.
7293 (gomp_team_end): Move team work share list free lock destruction
7295 (free_team): ... here.
7297 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7299 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7300 and ref from int to double. Replaced their comparison with
7301 an inequality of their difference and EPS.
7302 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7303 comparison of pri and a reference number with an inequality of their
7305 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7306 the comparison of sum and sum_ref with an inequality of their
7308 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7309 the comparison of pri and a reference number with an inequality of
7310 their difference and EPS.
7312 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7314 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7315 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7316 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7317 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7318 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7319 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7320 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7321 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7322 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7323 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7324 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7325 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7326 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7328 (vec_mult): Likewise. Add #pragma omp taskwait.
7329 (main): Adjust caller.
7330 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7331 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7332 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7333 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7334 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7335 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7336 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7337 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7338 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7339 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7340 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7341 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7342 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7343 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7344 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7345 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7346 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7347 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7348 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7349 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7350 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7351 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7352 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7353 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7354 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7355 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7356 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7357 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7358 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7359 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7360 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7361 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7362 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7363 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7364 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7365 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7366 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7367 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7368 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7369 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7370 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7371 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7372 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7373 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7374 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7375 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7376 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7377 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7378 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7379 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7380 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7381 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7382 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7383 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7384 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7385 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7386 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7387 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7388 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7389 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7390 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7391 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7392 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7393 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7394 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7395 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7396 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7397 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7398 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7399 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7400 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7401 (vec_mult): Add !$omp taskwait.
7402 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7403 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7404 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7405 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7406 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7407 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7408 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7409 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7410 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7411 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7412 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7413 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7414 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7415 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7416 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7417 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7418 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7419 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7420 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7421 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7422 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7423 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7424 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7425 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7426 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7427 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7428 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7429 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7430 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7431 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7432 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7433 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7434 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7435 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7436 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7437 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7438 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7439 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7440 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7441 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7442 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7443 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7444 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7445 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7446 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7447 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7448 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7449 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7450 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7451 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7452 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7453 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7454 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7455 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7456 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7457 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7458 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7459 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7460 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7461 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7462 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7463 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7464 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7465 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7466 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7467 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7468 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7470 2015-07-10 Tom de Vries <tom@codesourcery.com>
7472 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7473 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7475 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7478 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7479 in a 64-bit configuration.
7480 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7481 offloading testing if no such device is available.
7482 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7483 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7485 2015-07-08 Tom de Vries <tom@codesourcery.com>
7487 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7489 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7491 2015-07-07 Tom de Vries <tom@codesourcery.com>
7493 PR tree-optimization/66642
7494 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7495 iteration count case.
7496 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7497 function, factor out of ...
7498 (main): ... here. Test low iteration count case.
7500 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7502 * libgomp.h (gomp_thread_pool): Comment last_team field.
7504 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7506 * testsuite/libgomp.c++/pr66702-1.C: Require
7507 vect_simd_clones effective target.
7508 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7510 2015-06-30 Tom de Vries <tom@codesourcery.com>
7512 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7513 already set. Use DEFAULT_CFLAGS in dg-runtest.
7514 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7517 2015-06-30 Tom de Vries <tom@codesourcery.com>
7519 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7520 already set. Use DEFAULT_CFLAGS in dg-runtest.
7521 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7522 * testsuite/libgomp.c++/pr64824.C: Same.
7523 * testsuite/libgomp.c++/pr64868.C: Same.
7524 * testsuite/libgomp.c++/pr66199-1.C: Same.
7525 * testsuite/libgomp.c++/pr66199-2.C: Same.
7526 * testsuite/libgomp.c++/target-2.C: Same.
7527 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7528 -std=<standard> option.
7529 * testsuite/libgomp.c++/udr-11.C: Same.
7530 * testsuite/libgomp.c++/udr-12.C: Same.
7531 * testsuite/libgomp.c++/udr-13.C: Same.
7532 * testsuite/libgomp.c++/udr-14.C: Same.
7533 * testsuite/libgomp.c++/udr-15.C: Same.
7534 * testsuite/libgomp.c++/udr-16.C: Same.
7535 * testsuite/libgomp.c++/udr-17.C: Same.
7536 * testsuite/libgomp.c++/udr-18.C: Same.
7537 * testsuite/libgomp.c++/udr-19.C: Same.
7538 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7539 * testsuite/libgomp.c++/simd-1.C: Same.
7540 * testsuite/libgomp.c++/simd-2.C: Same.
7541 * testsuite/libgomp.c++/simd-3.C: Same.
7542 * testsuite/libgomp.c++/simd-4.C: Same.
7543 * testsuite/libgomp.c++/simd-5.C: Same.
7544 * testsuite/libgomp.c++/simd-6.C: Same.
7545 * testsuite/libgomp.c++/simd-7.C: Same.
7546 * testsuite/libgomp.c++/simd-8.C: Same.
7547 * testsuite/libgomp.c++/simd-9.C: Same.
7548 * testsuite/libgomp.c++/simd10.C: Same.
7549 * testsuite/libgomp.c++/simd11.C: Same.
7550 * testsuite/libgomp.c++/simd12.C: Same.
7551 * testsuite/libgomp.c++/simd13.C: Same.
7553 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7556 * testsuite/libgomp.c++/pr66702-1.C: New test.
7557 * testsuite/libgomp.c++/pr66702-2.C: New test.
7559 2015-06-30 Tom de Vries <tom@codesourcery.com>
7561 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7562 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7563 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7564 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7566 2015-06-30 Tom de Vries <tom@codesourcery.com>
7568 PR tree-optimization/66652
7569 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7570 using restrict pointers.
7571 (main): Add arguments to calls to f.
7572 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7574 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7576 * configure.ac: Fix check for header <sys/sysctl.h>.
7577 * configure: Regenerate.
7578 * config.h.in: Likewise.
7580 2015-06-23 Tom de Vries <tom@codesourcery.com>
7582 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7584 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7586 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7588 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7592 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7593 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7595 2015-06-15 Tom de Vries <tom@codesourcery.com>
7597 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7598 dg-additional-options for any remaining options.
7599 * testsuite/libgomp.c/atomic-2.c: Same.
7600 * testsuite/libgomp.c/atomic-4.c: Same.
7601 * testsuite/libgomp.c/atomic-5.c: Same.
7602 * testsuite/libgomp.c/atomic-6.c: Same.
7603 * testsuite/libgomp.c/autopar-1.c: Same.
7604 * testsuite/libgomp.c/copyin-1.c: Same.
7605 * testsuite/libgomp.c/copyin-2.c: Same.
7606 * testsuite/libgomp.c/copyin-3.c: Same.
7607 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7608 * testsuite/libgomp.c/nestedfn-5.c: Same.
7609 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7610 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7611 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7612 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7613 * testsuite/libgomp.c/pr32362-1.c: Same.
7614 * testsuite/libgomp.c/pr32362-2.c: Same.
7615 * testsuite/libgomp.c/pr32362-3.c: Same.
7616 * testsuite/libgomp.c/pr39591-1.c: Same.
7617 * testsuite/libgomp.c/pr39591-2.c: Same.
7618 * testsuite/libgomp.c/pr39591-3.c: Same.
7619 * testsuite/libgomp.c/pr58392.c: Same.
7620 * testsuite/libgomp.c/pr58756.c: Same.
7621 * testsuite/libgomp.c/simd-1.c: Same.
7622 * testsuite/libgomp.c/simd-10.c: Same.
7623 * testsuite/libgomp.c/simd-11.c: Same.
7624 * testsuite/libgomp.c/simd-12.c: Same.
7625 * testsuite/libgomp.c/simd-13.c: Same.
7626 * testsuite/libgomp.c/simd-14.c: Same.
7627 * testsuite/libgomp.c/simd-15.c: Same.
7628 * testsuite/libgomp.c/simd-2.c: Same.
7629 * testsuite/libgomp.c/simd-3.c: Same.
7630 * testsuite/libgomp.c/simd-4.c: Same.
7631 * testsuite/libgomp.c/simd-5.c: Same.
7632 * testsuite/libgomp.c/simd-6.c: Same.
7633 * testsuite/libgomp.c/simd-7.c: Same.
7634 * testsuite/libgomp.c/simd-8.c: Same.
7635 * testsuite/libgomp.c/simd-9.c: Same.
7637 2015-06-15 Tom de Vries <tom@codesourcery.com>
7639 * testsuite/libgomp.c/pr35625.c: Fix typo.
7641 2015-06-15 Tom de Vries <tom@codesourcery.com>
7643 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7645 * testsuite/libgomp.c/atomic-3.c: Same.
7646 * testsuite/libgomp.c/debug-1.c: Same.
7647 * testsuite/libgomp.c/nqueens-1.c: Same.
7648 * testsuite/libgomp.c/pr26171.c: Same.
7649 * testsuite/libgomp.c/pr48591.c: Same.
7650 * testsuite/libgomp.c/pr64824.c: Same.
7651 * testsuite/libgomp.c/pr64868.c: Same.
7652 * testsuite/libgomp.c/pr66133.c: Same.
7653 * testsuite/libgomp.c/pr66199-1.c: Same.
7654 * testsuite/libgomp.c/pr66199-2.c: Same.
7655 * testsuite/libgomp.c/target-8.c: Same.
7657 2015-06-15 Tom de Vries <tom@codesourcery.com>
7659 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7661 * testsuite/libgomp.c/for-1.c: Same.
7662 * testsuite/libgomp.c/for-2.c: Same.
7663 * testsuite/libgomp.c/for-3.c: Same.
7664 * testsuite/libgomp.c/pr35625.c: Same.
7665 * testsuite/libgomp.c/pr39154.c: Same.
7666 * testsuite/libgomp.c/simd-16.c: Same.
7667 * testsuite/libgomp.c/simd-17.c: Same.
7669 2015-06-13 Tom de Vries <tom@codesourcery.com>
7671 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7673 2015-06-13 Tom de Vries <tom@codesourcery.com>
7675 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7676 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7677 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7679 (main): Use N instead of hardcoded constants.
7681 2015-06-05 Tom de Vries <tom@codesourcery.com>
7683 merge from gomp4 branch:
7684 2015-05-28 Tom de Vries <tom@codesourcery.com>
7686 PR tree-optimization/65443
7687 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7688 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7689 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7691 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7693 * testsuite/libgomp.graphite/bounds.c: Adjust for
7694 cleanup-tree-dump removal.
7695 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7696 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7697 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7698 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7699 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7700 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7701 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7702 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7703 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7704 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7706 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7708 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7709 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7710 (futex_wake) [!__x86_64__]: Ditto.
7712 2015-05-28 Julian Brown <julian@codesourcery.com>
7714 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7715 function comment. Only call gomp_fatal if new argument is true.
7716 (acc_dev_num_out_of_range): New function.
7717 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7718 acc_dev_num_out_of_range as appropriate.
7719 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7720 (acc_get_device_num, acc_set_device_num): Update calls to
7722 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7725 2015-05-28 Julian Brown <julian@codesourcery.com>
7728 * oacc-init.c (plugin/plugin-host.h): Include.
7729 (acc_on_device): Check whether we're in an offloaded region for
7731 plugin. Don't use __builtin_acc_on_device.
7732 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7733 nonshm_exec flag in thread-local data.
7734 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7735 data for host_nonshm plugin.
7736 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7737 for host_nonshm plugin.
7738 * plugin/plugin-host.h: New.
7740 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7742 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7744 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7746 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7748 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7749 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7752 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7754 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7756 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7758 * target.c (gomp_map_pointer): New function abstracting out
7759 GOMP_MAP_POINTER handling.
7760 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7763 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7766 * testsuite/libgomp.c/pr66199-1.c: New test.
7767 * testsuite/libgomp.c/pr66199-2.c: New test.
7768 * testsuite/libgomp.c++/pr66199-1.C: New test.
7769 * testsuite/libgomp.c++/pr66199-2.C: New test.
7770 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7771 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7773 2015-05-19 Julian Brown <julian@codesourcery.com>
7775 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7778 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7781 * testsuite/libgomp.c/pr66133.c: New test.
7783 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7785 * Makefile.in: Regenerated with automake-1.11.6.
7786 * aclocal.m4: Likewise.
7787 * config.h.in: Likewise.
7788 * configure: Likewise.
7789 * testsuite/Makefile.in: Likewise.
7791 2015-05-08 Jason Merrill <jason@redhat.com>
7793 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7796 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7798 2015-05-06 Julian Brown <julian@codesourcery.com>
7800 * oacc-init.c (acc_device_lock): Add explanatory comment.
7801 (resolve_device): Add comment about locking requirement.
7802 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7803 gomp_init_device and gomp_fini_device calls.
7804 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7805 (acc_get_device_num, acc_set_device_num): Add locking around
7806 resolve_device and gomp_init_device calls.
7808 2015-05-06 Julian Brown <julian@codesourcery.com>
7810 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7811 goacc_thread_lock on error paths.
7812 * oacc-mem.c (lookup_host): Remove locking from function. Note
7813 locking requirement for caller in function comment.
7814 (lookup_dev): Likewise.
7815 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7816 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7817 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7820 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7824 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7825 don't expect "0x" prefix for "%p" format specifier, don't expect
7826 "(nil)" for NULL pointer.
7827 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7828 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7829 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7830 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7831 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7832 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7833 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7834 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7835 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7836 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7837 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7839 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7840 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7841 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7842 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7843 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7844 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7845 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7846 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7847 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7848 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7849 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7850 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7851 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7852 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7853 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7854 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7855 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7856 accurately specify what we're looking for.
7857 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7858 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7859 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7860 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7861 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7863 2015-04-30 James Norris <jnorris@codesourcery.com>
7866 * testsuite/lib/libgomp.exp
7867 (check_effective_target_openacc_host_selected)
7868 (check_effective_target_openacc_host_nonshm_selected): New
7870 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7872 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7873 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7874 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7875 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7876 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7877 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7878 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7879 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7880 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7881 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7882 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7883 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7884 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7885 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7886 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7887 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7888 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7889 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7890 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7891 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7892 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7893 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7894 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7895 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7896 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7897 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7898 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7899 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7900 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7901 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7902 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7903 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7904 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7905 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7906 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7907 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7908 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7909 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7910 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7911 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7912 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7913 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7914 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7916 2015-04-08 Julian Brown <julian@codesourcery.com>
7918 * libgomp.h (target_mem_desc: Remove mem_map field.
7919 (acc_dispatch_t): Remove open_device_func, close_device_func,
7920 get_device_num_func, set_device_num_func, target_data members.
7921 Change create_thread_data_func argument to device number instead of
7923 * oacc-async.c (assert.h): Include.
7924 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7925 (acc_wait_all, acc_wait_all_async): Use current host thread's
7926 active device, not base_dev.
7927 * oacc-cuda.c (acc_get_current_cuda_device)
7928 (acc_get_current_cuda_context, acc_get_cuda_stream)
7929 (acc_set_cuda_stream): Likewise.
7930 * oacc-host.c (host_dispatch): Don't set open_device_func,
7931 close_device_func, get_device_num_func or set_device_num_func.
7932 * oacc-init.c (base_dev, init_key): Remove.
7933 (cached_base_dev): New.
7934 (name_of_acc_device_t): New.
7935 (acc_init_1): Initialise default-numbered device, not zeroth.
7936 (acc_shutdown_1): Close all devices of a given type.
7937 (goacc_destroy_thread): Don't use base_dev.
7938 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7939 (goacc_attach_host_thread_to_device): New.
7940 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7941 (acc_get_num_devices): Don't use base_dev.
7942 (acc_set_device_type): Reimplement.
7943 (acc_get_device_type): Don't use base_dev.
7944 (acc_get_device_num): Tweak logic.
7945 (acc_set_device_num): Likewise.
7946 (acc_on_device): Use acc_get_device_type.
7947 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7948 (goacc_lazy_initialize): Reimplement with acc_init and
7949 goacc_attach_host_thread_to_device.
7950 * oacc-int.h (goacc_thread): Add base_dev field.
7951 (base_dev): Remove extern declaration.
7952 (goacc_attach_host_thread_to_device): Add prototype.
7953 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7955 (acc_free): Likewise.
7956 (acc_memcpy_to_device): Likewise.
7957 (acc_memcpy_from_device): Likewise.
7958 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7959 goacc_lazy_initialize (throughout).
7960 (GOACC_parallel): Use tgt_offset to locate target functions.
7961 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7962 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7963 (gomp_load_plugin_for_device): Remove open_device, close_device,
7964 get_device_num, set_device_num openacc hook initialisation. Don't set
7965 openacc.target_data.
7966 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7967 (GOMP_OFFLOAD_openacc_close_device)
7968 (GOMP_OFFLOAD_openacc_get_device_num)
7969 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7970 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7972 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7973 (instantiated_devices, ptx_dev_lock): New.
7974 (struct ptx_image_data): New.
7975 (ptx_devices, ptx_images, ptx_image_lock): New.
7976 (fini_streams_for_device): Reorder cuStreamDestroy call.
7977 (nvptx_get_num_devices): Remove forward declaration.
7978 (nvptx_init): Change return type to bool.
7979 (nvptx_fini): Remove.
7980 (nvptx_attach_host_thread_to_device): New.
7981 (nvptx_open_device): Return struct ptx_device* instead of void*.
7982 (nvptx_close_device): Change argument type to struct ptx_device*,
7983 return type to void.
7984 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7985 (kernel_target_data, kernel_host_table): Remove static globals.
7986 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7987 (GOMP_OFFLOAD_init_device): Reimplement.
7988 (GOMP_OFFLOAD_fini_device): Likewise.
7989 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7990 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7991 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7992 (GOMP_OFFLOAD_openacc_open_device)
7993 (GOMP_OFFLOAD_openacc_close_device)
7994 (GOMP_OFFLOAD_openacc_set_device_num)
7995 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7996 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8000 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8002 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8004 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8005 * libgomp.h (struct gomp_memory_mapping): Remove.
8006 (struct target_mem_desc): Change type of mem_map from
8007 gomp_memory_mapping * to splay_tree_s *.
8008 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8009 Add load_image_func, unload_image_func.
8010 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8011 Remove offload_regions_registered.
8012 (gomp_init_tables): Remove.
8013 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8015 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8016 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8017 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8018 offload_regions_registered.
8019 Initialize load_image_func, unload_image_func, mem_map.root.
8020 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8021 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8022 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8023 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8024 gomp_memory_mapping *. Use dev's lock and splay_tree.
8025 (lookup_dev): Use dev's lock.
8026 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8027 (acc_is_present): Likewise.
8028 (acc_map_data): Likewise.
8029 (acc_unmap_data): Likewise. Use dev's lock.
8030 (present_create_copy): Likewise.
8031 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8032 (update_dev_host): Likewise.
8033 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8034 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8035 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8036 (GOMP_OFFLOAD_get_table): Remove
8037 (GOMP_OFFLOAD_load_image): New function.
8038 (GOMP_OFFLOAD_unload_image): New function.
8039 * target.c (register_lock): New mutex for offload image registration.
8040 (num_devices): Do not guard with PLUGIN_SUPPORT.
8041 (gomp_realloc_unlock): New static function.
8042 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8044 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8045 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8046 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8048 (gomp_unmap_vars): Likewise.
8049 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8050 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8051 (gomp_offload_image_to_device): New static function.
8052 (GOMP_offload_register): Add mutex lock.
8053 Call gomp_offload_image_to_device for all initialized devices.
8054 Replace gomp_realloc with gomp_realloc_unlock.
8055 (GOMP_offload_unregister): New function.
8056 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8057 get_table_func from the plugin with calls to init_device_func and
8058 gomp_offload_image_to_device.
8059 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8061 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8062 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8063 (GOMP_target_data): Do not call gomp_init_tables.
8064 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8065 (gomp_load_plugin_for_device): Replace register_image and get_table
8066 with load_image and unload_image in DLSYM ().
8067 (gomp_register_images_for_device): Remove function.
8068 (gomp_target_init): Do not initialize current_device.mem_map.*,
8069 current_device.offload_regions_registered.
8070 Remove call to gomp_register_images_for_device.
8071 Do not free offload_images and num_offload_images.
8073 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8076 * testsuite/libgomp.fortran/pr65597.f90: New test.
8078 2015-03-27 Tom de Vries <tom@codesourcery.com>
8081 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8082 (init, check): New function.
8083 (foo): Change return type to void.
8084 (main): Call init and check.
8086 2015-03-27 Tom de Vries <tom@codesourcery.com>
8089 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8090 (foo): Use M for non-inner loops to scale down test-case.
8092 2015-03-25 Kai Tietz <ktietz@redhat.com>
8095 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8096 (GOACC_data_start): Likewise.
8097 * target.c (gomp_map_vars): Likewise.
8099 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8101 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8104 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8106 * testsuite/libgomp.c/target-10.c: New test.
8107 * testsuite/libgomp.c++/target-4.C: New test.
8109 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8111 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8112 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8114 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8116 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8117 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8118 (pthread.h): Check for this header file.
8119 * configure: Regenerate.
8121 2015-02-25 Tom de Vries <tom@codesourcery.com>
8123 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8124 (check_reduction_op, check_reduction_macro, max, min):
8126 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8128 (main): Use new functions.
8130 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8132 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8133 char * for variables holding dlerror return values.
8136 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8138 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8140 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8141 Cesar Philippidis <cesar@codesourcery.com>
8143 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8144 GOACC_ctaid, and GOACC_nctaid routines.
8146 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8149 * testsuite/libgomp.c/atomic-18.c: New test.
8150 * testsuite/libgomp.c++/atomic-16.C: New test.
8152 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8156 * testsuite/libgomp.c/pr64824.c: New test.
8157 * testsuite/libgomp.c/pr64868.c: New test.
8158 * testsuite/libgomp.c++/pr64824.C: New test.
8159 * testsuite/libgomp.c++/pr64868.C: New test.
8161 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8164 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8165 Link with -lpthread.
8166 * config/aix/plugin-suffix.h: Delete.
8168 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8171 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8172 (*-*-darwin*): Use config_path "bsd darwin posix".
8173 (*-*-hpux*): Use config_path "hpux posix".
8174 * target.c: Add include of plugin-suffix.h and use
8175 SONAME_SUFFIX macro.
8176 * config/aix/plugin-suffix.h: New file.
8177 * config/darwin/plugin-suffix.h: New file.
8178 * config/hpux/plugin-suffix.h: New file.
8179 * config/posix/plugin-suffix.h: New file.
8181 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8184 * libgomp.c/pr64734.c: New test.
8186 2015-01-23 Tom de Vries <tom@codesourcery.com>
8189 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8191 2015-01-23 Tom de Vries <tom@codesourcery.com>
8194 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8197 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8200 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8201 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8202 formal parameter. Update all users.
8203 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8204 Document unused formal parameter.
8206 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8208 * oacc-parallel.c: Don't include <alloca.h>.
8209 (GOACC_parallel): Use gomp_alloca instead of alloca.
8211 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8213 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8215 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8216 James Norris <jnorris@codesourcery.com>
8217 Tom de Vries <tom@codesourcery.com>
8218 Julian Brown <julian@codesourcery.com>
8219 Cesar Philippidis <cesar@codesourcery.com>
8220 Nathan Sidwell <nathan@codesourcery.com>
8221 Tobias Burnus <burnus@net-b.de>
8223 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8224 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8225 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8226 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8227 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8228 Include $(top_srcdir)/plugin/Makefrag.am.
8229 (nodist_libsubinclude_HEADERS): Add openacc.h.
8230 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8231 openacc.f90, openacc.mod, openacc_kinds.mod.
8232 (omp_lib.mod): Generalize into...
8233 (%.mod): ... this new rule.
8234 (openacc_kinds.mod, openacc.mod): New rules.
8235 * plugin/configfrag.ac: New file.
8236 * configure.ac: Move plugin/offloading support into it. Include
8237 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8238 * plugin/Makefrag.am: New file.
8239 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8240 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8242 (libgomp-test-support.exp): New rule.
8243 (all-local): Depend on it.
8244 * Makefile.in: Regenerate.
8245 * testsuite/Makefile.in: Regenerate.
8246 * config.h.in: Likewise.
8247 * configure: Likewise.
8248 * configure.tgt: Harden shell syntax.
8249 * env.c: Include "oacc-int.h".
8250 (parse_acc_device_type): New function.
8251 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8253 (initialize_env): Initialize those. Call
8254 goacc_runtime_initialize.
8255 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8256 (gomp_fatal): Call gomp_vfatal.
8257 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8258 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8259 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8260 (splay_tree_node, splay_tree, splay_tree_key)
8261 (struct target_mem_desc, struct splay_tree_key_s)
8262 (struct gomp_memory_mapping, struct acc_dispatch_t)
8263 (struct gomp_device_descr, gomp_acc_insert_pointer)
8264 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8265 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8266 (gomp_free_memmap, gomp_fini_device): New declarations.
8267 (gomp_vdebug, gomp_debug): New macros.
8268 Include "splay-tree.h".
8269 * libgomp.map (OACC_2.0): New symbol version. Use for
8270 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8271 acc_set_device_type_h_, acc_get_device_type,
8272 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8273 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8274 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8275 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8276 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8277 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8278 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8279 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8280 acc_copyin_array_h_, acc_present_or_copyin,
8281 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8282 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8283 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8284 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8285 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8286 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8287 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8288 acc_update_device, acc_update_device_32_h_,
8289 acc_update_device_64_h_, acc_update_device_array_h_,
8290 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8291 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8292 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8293 acc_is_present_64_h_, acc_is_present_array_h_,
8294 acc_memcpy_to_device, acc_memcpy_from_device,
8295 acc_get_current_cuda_device, acc_get_current_cuda_context,
8296 acc_get_cuda_stream, acc_set_cuda_stream.
8297 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8298 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8299 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8300 GOACC_get_num_threads.
8301 (GOMP_PLUGIN_1.0): New symbol version. Use for
8302 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8303 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8304 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8305 GOMP_PLUGIN_acc_thread.
8306 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8307 environment variable.
8308 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8309 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8310 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8311 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8312 (splay_tree_remove): New declarations.
8313 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8314 (splay_tree_remove, splay_tree_lookup): Move into...
8315 * splay-tree.c: ... this new file.
8316 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8317 (splay_tree_node, splay_tree, splay_tree_key)
8318 (struct target_mem_desc, struct splay_tree_key_s)
8319 (struct gomp_device_descr): Don't declare.
8320 (num_devices_openmp): New variable.
8321 (gomp_get_num_devices ): Use it.
8322 (gomp_init_targets_once): New function.
8323 (gomp_get_num_devices ): Use it.
8324 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8325 (gomp_fini_device, gomp_register_image_for_device): New functions.
8326 (gomp_map_vars): Add devaddrs parameter.
8327 (gomp_update): Add mm parameter.
8328 (gomp_init_device): Move most of it into...
8329 (gomp_init_tables): ... this new function.
8330 (gomp_register_images_for_device): Remove function.
8331 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8332 Make them hidden instead of static.
8333 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8334 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8335 (GOMP_target_end_data, GOMP_target_update)
8336 (gomp_load_plugin_for_device, gomp_target_init): Update for
8338 * oacc-async.c: New file.
8339 * oacc-cuda.c: Likewise.
8340 * oacc-host.c: Likewise.
8341 * oacc-init.c: Likewise.
8342 * oacc-int.h: Likewise.
8343 * oacc-mem.c: Likewise.
8344 * oacc-parallel.c: Likewise.
8345 * oacc-plugin.c: Likewise.
8346 * oacc-plugin.h: Likewise.
8347 * oacc-ptx.h: Likewise.
8348 * openacc.f90: Likewise.
8349 * openacc.h: Likewise.
8350 * openacc_lib.h: Likewise.
8351 * plugin/plugin-host.c: Likewise.
8352 * plugin/plugin-nvptx.c: Likewise.
8353 * libgomp-plugin.c: Likewise.
8354 * libgomp-plugin.h: Likewise.
8355 * libgomp_target.h: Remove file after merging content into the
8356 former file. Update all users.
8357 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8358 (offload_targets_s, offload_targets_s_openacc): New variables.
8359 (check_effective_target_openacc_nvidia_accel_present)
8360 (check_effective_target_openacc_nvidia_accel_selected): New
8362 (libgomp_init): Update for OpenACC changes.
8363 * testsuite/libgomp-test-support.exp.in: New file.
8364 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8365 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8366 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8367 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8368 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8369 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8370 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8371 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8372 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8373 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8374 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8375 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8376 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8377 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8378 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8379 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8380 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8381 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8382 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8383 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8384 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8385 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8386 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8387 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8388 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8389 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8390 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8391 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8392 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8393 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8394 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8395 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8396 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8397 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8398 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8399 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8400 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8401 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8402 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8403 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8404 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8405 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8406 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8407 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8408 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8409 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8410 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8411 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8412 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8413 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8414 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8415 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8416 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8417 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8418 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8419 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8420 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8421 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8422 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8423 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8424 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8425 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8426 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8427 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8428 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8429 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8430 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8431 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8432 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8433 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8434 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8435 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8436 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8437 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8438 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8439 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8440 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8441 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8442 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8443 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8444 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8445 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8446 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8447 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8448 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8449 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8450 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8451 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8452 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8453 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8454 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8455 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8456 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8457 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8458 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8459 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8460 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8461 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8462 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8463 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8464 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8465 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8466 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8467 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8468 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8469 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8470 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8471 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8472 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8473 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8474 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8475 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8476 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8477 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8478 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8479 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8480 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8481 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8482 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8483 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8484 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8485 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8486 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8487 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8488 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8489 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8490 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8491 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8492 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8493 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8494 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8496 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8497 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8498 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8499 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8500 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8501 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8502 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8503 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8505 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8506 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8507 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8508 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8509 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8510 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8511 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8512 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8513 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8514 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8515 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8516 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8517 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8518 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8519 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8520 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8521 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8522 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8523 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8524 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8525 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8526 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8527 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8528 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8529 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8530 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8531 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8532 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8533 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8534 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8535 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8536 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8537 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8538 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8539 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8540 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8541 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8542 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8543 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8544 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8545 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8546 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8547 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8548 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8549 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8550 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8551 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8552 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8553 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8554 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8555 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8556 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8557 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8558 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8559 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8560 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8561 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8562 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8563 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8564 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8566 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8567 Julian Brown <julian@codesourcery.com>
8568 David Malcolm <dmalcolm@redhat.com>
8570 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8571 to "GNU Offloading and Multi Processing Runtime Library". Change
8573 * configure: Regenerate.
8574 * libgomp.texi: Update.
8576 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8578 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8580 * configure: Regenerate.
8582 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8583 "intelmic" in $offload_targets.
8585 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8587 Update copyright years.
8589 * libgomp.texi: Bump @copying's copyright year.
8591 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8593 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8594 Move load of target-supports.exp earlier.
8596 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8598 * testsuite/libgomp.c/target-9.c: New test.
8600 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8602 * config.h.in: Regenerate.
8603 * configure: Regenerate.
8604 * configure.ac: Add GCC_CHECK_EMUTLS.
8605 * libgomp.h: Add check for USE_EMUTLS: this case
8606 is equal to HAVE_TLS.
8609 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8611 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8613 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8614 Ilya Verbin <ilya.verbin@intel.com>
8616 * testsuite/libgomp.c/target-critical-1.c: New test.
8618 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8620 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8621 to dg-options unless expensive testing is on.
8622 (TESTITERS): Define to N if not defined.
8623 (main): Use TESTITERS instead of N.
8624 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8625 dg-additional-options depending on whether expensive testing is on.
8626 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8627 Decrease N to 100000 and CHUNKSZ to 10000.
8629 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8632 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8633 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8635 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8637 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8639 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8642 * configure: Regenerated.
8644 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8646 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8647 vect_simd_clones effective target.
8648 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8650 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8652 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8653 of 32 as block_size.
8654 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8655 instead of 32 as block_size.
8657 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8658 Ilya Verbin <ilya.verbin@intel.com>
8660 * Makefile.in: Regenerate.
8661 * configure: Regenerate.
8662 * configure.ac: Set up offload_additional_options,
8663 offload_additional_lib_paths and offload_targets.
8664 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8665 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8666 * testsuite/Makefile.in: Regenerate.
8667 * testsuite/lib/libgomp.exp (libgomp_init): Append
8668 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8669 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8670 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8672 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8673 Ilya Verbin <ilya.verbin@intel.com>
8674 Kirill Yukhin <kirill.yukhin@intel.com>
8675 Ilya Tocar <ilya.tocar@intel.com>
8677 * testsuite/lib/libgomp.exp
8678 (check_effective_target_offload_device): New.
8679 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8680 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8681 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8682 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8683 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8684 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8685 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8686 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8687 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8688 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8689 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8690 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8691 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8692 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8693 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8694 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8695 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8696 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8697 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8698 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8699 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8700 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8701 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8702 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8703 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8704 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8705 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8706 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8707 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8708 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8709 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8710 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8711 * testsuite/libgomp.c/target-7.c: Fix test.
8712 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8713 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8714 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8715 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8716 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8717 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8718 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8719 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8720 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8721 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8722 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8723 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8724 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8725 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8726 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8727 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8728 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8729 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8730 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8731 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8732 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8733 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8734 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8735 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8736 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8737 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8738 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8739 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8740 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8741 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8742 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8744 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8745 Ilya Verbin <ilya.verbin@intel.com>
8746 Thomas Schwinge <thomas@codesourcery.com>
8747 Andrey Turetskiy <andrey.turetskiy@intel.com>
8749 * libgomp.map (GOMP_4.0.1): New symbol version.
8750 Add GOMP_offload_register.
8751 * libgomp_target.h: New file.
8752 * splay-tree.h: New file.
8753 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8754 (gomp_target_init): New forward declaration.
8755 (gomp_is_initialized): New static variable.
8756 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8757 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8759 (offload_images, num_offload_images, devices, num_devices): New static
8761 (splay_compare): New static function.
8762 (struct gomp_device_descr): New structure.
8763 (gomp_get_num_devices): Call gomp_target_init.
8764 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8765 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8766 (GOMP_offload_register): New function.
8767 (GOMP_target): Arrange for host callback to be performed in a separate
8768 initial thread and contention group, inheriting ICVs from
8769 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8770 Add device initialization and lookup for target function in splay tree.
8771 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8772 (GOMP_target_end_data): Call gomp_unmap_vars.
8773 (GOMP_target_update): Add device initialization and call gomp_update.
8774 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8775 (gomp_target_init): New static functions.
8777 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8778 Thomas Schwinge <thomas@codesourcery.com>
8779 Ilya Verbin <ilya.verbin@intel.com>
8780 Andrey Turetskiy <andrey.turetskiy@intel.com>
8782 * config.h.in: Regenerate.
8783 * configure: Regenerate.
8784 * configure.ac: Check for libdl, required for plugin support.
8785 (PLUGIN_SUPPORT): Define if plugins are supported.
8786 (enable_offload_targets): Support Intel MIC targets.
8787 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8789 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8792 * configure: Regenerate.
8794 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8796 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8798 2014-10-06 Marek Polacek <polacek@redhat.com>
8800 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8801 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8802 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8803 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8805 2014-10-06 Marek Polacek <polacek@redhat.com>
8807 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8808 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8809 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8810 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8811 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8812 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8813 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8814 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8815 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8816 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8817 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8818 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8819 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8820 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8821 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8822 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8823 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8824 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8827 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8830 * testsuite/libgomp.c/pr61200.c: New test.
8832 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8835 * testsuite/libgomp.c++/pr63248.C: New test.
8837 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8839 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8840 is not zero, but taskgroup->children is NULL and there are
8841 any task->children, schedule those instead of waiting.
8842 * testsuite/libgomp.c/depend-6.c: New test.
8843 * testsuite/libgomp.c/depend-7.c: New test.
8844 * testsuite/libgomp.c/depend-8.c: New test.
8845 * testsuite/libgomp.c/depend-9.c: New test.
8846 * testsuite/libgomp.c/depend-10.c: New test.
8848 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8850 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8851 (struct gomp_taskwait): New type.
8852 (struct gomp_task): Add taskwait and parent_depends_on, remove
8853 in_taskwait and taskwait_sem fields.
8854 (gomp_finish_task): Don't destroy taskwait_sem.
8855 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8856 taskwait and parent_depends_on.
8857 (GOMP_task): For if (0) tasks with depend clause that depend on
8858 earlier tasks don't defer them, instead call
8859 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8860 Initialize redundant_out field, for redundant out entries just
8861 move them at the end of linked list instead of removing them
8862 completely, and set redundant_out flag instead of redundant.
8863 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8865 (gomp_task_run_post_handle_dependers): If parent is in
8866 gomp_task_maybe_wait_for_dependencies and newly runnable task
8867 is not parent_depends_on, queue it in parent->children linked
8868 list after all runnable tasks with parent_depends_on set.
8869 Adjust for addition of taskwait indirection.
8870 (gomp_task_run_post_remove_parent): If parent is in
8871 gomp_task_maybe_wait_for_dependencies and task to be removed
8872 is parent_depends_on, decrement n_depend and if needed awake
8873 parent. Adjust for addition of taskwait indirection.
8874 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8875 (gomp_task_maybe_wait_for_dependencies): New function.
8876 * testsuite/libgomp.c/depend-5.c: New test.
8878 2014-07-13 Tobias Burnus <burnus@net-b.de>
8880 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8881 with TS 18508/Fortran 2015.
8883 2014-07-06 Marek Polacek <polacek@redhat.com>
8886 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8888 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8890 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8891 matches regex $lang_source_re, add $lang_include_flags to options.
8892 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8893 * testsuite/libgomp.c++/c++.exp: Likewise.
8894 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8895 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8897 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8899 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8901 * testsuite/libgomp.fortran/fortran.exp: Explain
8902 gfortran-dg-runtest usage.
8904 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8906 * testsuite/libgomp.fortran/simd5.f90: New test.
8907 * testsuite/libgomp.fortran/simd6.f90: New test.
8908 * testsuite/libgomp.fortran/simd7.f90: New test.
8910 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8912 * testsuite/libgomp.c/for-2.c: Define SC to static for
8913 #pragma omp for simd testing.
8914 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8915 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8917 * testsuite/libgomp.c/simd-14.c: New test.
8918 * testsuite/libgomp.c/simd-15.c: New test.
8919 * testsuite/libgomp.c/simd-16.c: New test.
8920 * testsuite/libgomp.c/simd-17.c: New test.
8921 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8922 #pragma omp for simd testing.
8923 * testsuite/libgomp.c++/simd10.C: New test.
8924 * testsuite/libgomp.c++/simd11.C: New test.
8925 * testsuite/libgomp.c++/simd12.C: New test.
8926 * testsuite/libgomp.c++/simd13.C: New test.
8928 * testsuite/libgomp.fortran/aligned1.f03: New test.
8929 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8930 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8931 tasks with !$omp parallel !$omp single.
8932 * testsuite/libgomp.fortran/target8.f90: New test.
8933 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8934 not to use trim in the combiner, instead call elemental function.
8935 (fn): New elemental function.
8936 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8938 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8940 * testsuite/libgomp.fortran/udr12.f90: New test.
8941 * testsuite/libgomp.fortran/udr13.f90: New test.
8942 * testsuite/libgomp.fortran/udr14.f90: New test.
8943 * testsuite/libgomp.fortran/udr15.f90: New test.
8945 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8947 * omp_lib.f90.in (openmp_version): Set to 201307.
8948 * omp_lib.h.in (openmp_version): Likewise.
8949 * testsuite/libgomp.c/target-8.c: New test.
8950 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8951 and inbranch clauses.
8952 * testsuite/libgomp.fortran/depend-3.f90: New test.
8953 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8955 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8956 * testsuite/libgomp.fortran/target1.f90: New test.
8957 * testsuite/libgomp.fortran/target2.f90: New test.
8958 * testsuite/libgomp.fortran/target3.f90: New test.
8959 * testsuite/libgomp.fortran/target4.f90: New test.
8960 * testsuite/libgomp.fortran/target5.f90: New test.
8961 * testsuite/libgomp.fortran/target6.f90: New test.
8962 * testsuite/libgomp.fortran/target7.f90: New test.
8964 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8967 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8968 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8969 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8970 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8971 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8972 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8973 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8974 * testsuite/libgomp.fortran/associate1.f90: New test.
8975 * testsuite/libgomp.fortran/associate2.f90: New test.
8976 * testsuite/libgomp.fortran/procptr1.f90: New test.
8978 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8980 * testsuite/libgomp.fortran/simd1.f90: New test.
8981 * testsuite/libgomp.fortran/udr1.f90: New test.
8982 * testsuite/libgomp.fortran/udr2.f90: New test.
8983 * testsuite/libgomp.fortran/udr3.f90: New test.
8984 * testsuite/libgomp.fortran/udr4.f90: New test.
8985 * testsuite/libgomp.fortran/udr5.f90: New test.
8986 * testsuite/libgomp.fortran/udr6.f90: New test.
8987 * testsuite/libgomp.fortran/udr7.f90: New test.
8988 * testsuite/libgomp.fortran/udr8.f90: New test.
8989 * testsuite/libgomp.fortran/udr9.f90: New test.
8990 * testsuite/libgomp.fortran/udr10.f90: New test.
8991 * testsuite/libgomp.fortran/udr11.f90: New test.
8993 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8995 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8996 vect_simd_clones effective target.
8997 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8999 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9002 * testsuite/libgomp.c++/simd-9.C: New test.
9004 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9006 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9007 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9008 texts according to their @menu entry positions.
9010 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9012 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9013 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9014 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9015 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9016 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9017 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9018 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9019 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9020 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9021 * testsuite/libgomp.fortran/depend-1.f90: New test.
9022 * testsuite/libgomp.fortran/depend-2.f90: New test.
9023 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9024 * testsuite/libgomp.fortran/simd1.f90: New test.
9025 * testsuite/libgomp.fortran/simd2.f90: New test.
9026 * testsuite/libgomp.fortran/simd3.f90: New test.
9027 * testsuite/libgomp.fortran/simd4.f90: New test.
9028 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9030 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9032 * testsuite/libgomp.c/simd-10.c: New test.
9033 * testsuite/libgomp.c/simd-11.c: New test.
9034 * testsuite/libgomp.c/simd-12.c: New test.
9035 * testsuite/libgomp.c/simd-13.c: New test.
9037 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9039 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9040 atomic type clauses in any order and optional comma in between.
9041 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9042 * testsuite/libgomp.c/atomic-17.c: Likewise.
9044 * testsuite/libgomp.c/simd-7.c: New test.
9045 * testsuite/libgomp.c/simd-8.c: New test.
9046 * testsuite/libgomp.c/simd-9.c: New test.
9047 * testsuite/libgomp.c/loop-16.c: New test.
9049 2014-04-02 Richard Henderson <rth@redhat.com>
9051 * config/linux/futex.h (futex_wait): Get error value from errno.
9052 (futex_wake): Likewise.
9054 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9057 * testsuite/libgomp.c++/udr-11.C: New test.
9058 * testsuite/libgomp.c++/udr-12.C: New test.
9059 * testsuite/libgomp.c++/udr-13.C: New test.
9060 * testsuite/libgomp.c++/udr-14.C: New test.
9061 * testsuite/libgomp.c++/udr-15.C: New test.
9062 * testsuite/libgomp.c++/udr-16.C: New test.
9063 * testsuite/libgomp.c++/udr-17.C: New test.
9064 * testsuite/libgomp.c++/udr-18.C: New test.
9065 * testsuite/libgomp.c++/udr-19.C: New test.
9067 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9069 Update copyright years
9071 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9073 * hashtab.h: Use the standard form for the copyright notice.
9075 2014-01-02 Tobias Burnus <burnus@net-b.de>
9077 * libgomp.texi: Bump @copying's copyright year.
9079 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9081 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9082 alloca () with __builtin_alloca ().
9083 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9084 * testsuite/libgomp.c/lock-3.c: Likewise.
9085 * testsuite/libgomp.c/pr48591.c: Likewise.
9087 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9090 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9093 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9096 * testsuite/libgomp.c/pr58756.c: New test.
9098 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9101 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9104 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9106 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9108 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9109 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9110 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9111 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9114 * libgomp_g.h: Include <stddef.h> for size_t.
9116 * libgomp.spec.in: Update comment about libgomp's dependencies.
9117 * configure.ac: Likewise.
9118 * configure: Regenerate.
9120 2013-10-16 Tobias Burnus <burnus@net-b.de>
9122 * libgomp.texi: (Runtime Library Routines): Update references for
9123 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9124 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9125 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9126 (Environment Variables): Update references for OpenMP 4.0. Add
9127 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9128 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9131 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9133 * env.c (parse_bind_var): Initialize value to avoid
9134 (false positive) warning.
9136 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9139 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9141 (gomp_init_num_threads): Move i variable declaration into
9142 #ifdef CPU_ALLOC_SIZE block.
9143 * config/linux/affinity.c (gomp_affinity_init_level): Test
9144 gomp_places_list_len == 0 rather than gomp_places_list == 0
9145 when checking for topology reading error.
9146 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9147 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9148 gomp_places_list, only parse env var and always return false.
9149 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9150 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9151 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9152 and either of these variables were parsed correctly into a places
9155 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9156 Jakub Jelinek <jakub@redhat.com>
9158 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9159 of 5 loopfn matches.
9160 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9161 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9162 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9163 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9164 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9165 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9166 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9167 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9169 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9171 * Makefile.am (omp_lib.mod): Streamline rule.
9172 * Makefile.in: Regenerate.
9174 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9177 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9178 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9179 * testsuite/libgomp.fortran/lib2.f: Likewise.
9180 * testsuite/libgomp.fortran/lib3.f: Likewise.
9182 * configure.ac: Typo fix.
9183 * configure: Regenerate.
9185 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9186 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9188 * omp.h.in: Don't touch the user's namespace.
9190 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9191 Tobias Burnus <burnus@net-b.de>
9192 Richard Henderson <rth@redhat.com>
9194 * target.c: New file.
9195 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9196 * Makefile.in: Regenerated.
9197 * libgomp_g.h (GOMP_task): Add depend argument.
9198 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9199 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9200 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9201 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9202 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9203 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9204 GOMP_taskgroup_start, GOMP_taskgroup_end,
9205 GOMP_parallel_sections): New prototypes.
9206 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9207 (omp_is_initial_device_): New function.
9208 (ULP, STR1, STR2, ialias_redirect): Removed.
9209 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9210 omp_set_default_device_8_, omp_get_default_device_,
9211 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9213 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9214 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9215 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9217 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9218 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9219 omp_set_default_device, omp_set_default_device_,
9220 omp_set_default_device_8_, omp_get_default_device,
9221 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9222 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9223 omp_get_team_num_): Export @@OMP_4.0.
9224 * team.c (struct gomp_thread_start_data): Add place field.
9225 (gomp_thread_start): Clear thr->thread_pool and
9226 thr->task before returning. Use gomp_team_barrier_wait_final
9227 instead of gomp_team_barrier_wait. Initialize thr->place.
9228 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9229 team_cancelled and task_queued_count fields.
9230 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9231 before calling pthread_exit.
9232 (gomp_free_thread): No longer static. Use
9233 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9234 (gomp_team_start): Add flags argument. Set
9235 thr->thread_pool->threads_busy to nthreads immediately after creating
9236 new pool. Use gomp_managed_threads_lock instead of
9237 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9238 (gomp_team_end): Use gomp_managed_threads_lock instead of
9239 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9240 of gomp_team_barrier_wait. If team->team_cancelled, call
9241 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9242 rather than thr->ts.work_share.
9243 (initialize_team): Don't call gomp_sem_init here.
9244 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9246 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9247 * env.c (gomp_global_icv): Add default_device_var, target_data and
9248 bind_var initializers.
9249 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9250 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9251 gomp_places_list_len): New variables.
9252 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9253 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9255 (gomp_cancel_var): New global variable.
9256 (parse_int): New function.
9257 (handle_omp_display_env): New function.
9258 (initialize_env): Use it. Initialize default_device_var.
9259 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9260 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9261 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9262 been successfully parsed (and call gomp_init_affinity in that case).
9263 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9264 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9265 omp_get_team_num, omp_is_initial_device): New functions.
9266 * libgomp.h: Include stdlib.h.
9267 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9269 (struct target_mem_desc): Forward declare.
9270 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9271 and thread_limit_var fields.
9272 (gomp_get_num_devices): New prototype.
9273 (gomp_cancel_var): New extern decl.
9274 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9275 team_cancelled and task_queued_count fields. Add comments about
9276 task_{,queued_,running_}count.
9277 (gomp_cancel_kind): New enum.
9278 (gomp_work_share_end_cancel): New prototype.
9279 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9280 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9282 (struct gomp_taskgroup): New type.
9283 (struct gomp_task_depend_entry,
9284 struct gomp_dependers_vec): New types.
9285 (gomp_finish_task): Free depend_hash if non-NULL.
9286 (struct gomp_team_state): Add place_partition_off
9287 and place_partition_len fields.
9288 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9289 gomp_places_list_len): New extern decls.
9290 (struct gomp_thread): Add place field.
9291 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9292 (gomp_init_thread_affinity): Add place argument.
9293 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9294 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9295 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9296 gomp_affinity_init_level, gomp_affinity_print_place): New
9298 (gomp_team_start): Add flags argument.
9299 (gomp_thread_limit_var, gomp_remaining_threads_count,
9300 gomp_remaining_threads_lock): Remove.
9301 (gomp_managed_threads_lock): New variable.
9302 (struct gomp_thread_pool): Add threads_busy field.
9303 (gomp_free_thread): New prototype.
9304 * task.c: Include hashtab.h.
9305 (hash_entry_type): New typedef.
9306 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9307 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9308 copy_ctors_done and taskgroup fields.
9309 (GOMP_task): Add depend argument, handle depend clauses. If
9310 gomp_team_barrier_cancelled or if it's taskgroup has been
9311 cancelled, don't queue or start new tasks. Set copy_ctors_done
9312 field if needed. Initialize taskgroup field. If copy_ctors_done
9313 and already cancelled, don't discard the task. If taskgroup is
9314 non-NULL, enqueue the task into taskgroup queue. Increment
9315 num_children field in taskgroup. Increment task_queued_count.
9316 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9317 gomp_task_run_post_remove_taskgroup): New inline functions.
9318 (gomp_task_run_post_handle_depend_hash,
9319 gomp_task_run_post_handle_dependers,
9320 gomp_task_run_post_handle_depend): New functions.
9321 (GOMP_taskwait): Use them. If more than one new tasks
9322 have been queued, wake other threads if needed.
9323 (gomp_barrier_handle_tasks): Likewise. If
9324 gomp_team_barrier_cancelled, don't start any new tasks, just free
9326 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9328 (omp_proc_bind_kind, omp_proc_bind_false,
9329 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9330 omp_proc_bind_spread): New params.
9331 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9332 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9333 omp_get_team_num, omp_is_initial_device): New interfaces.
9334 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9335 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9336 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9337 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9338 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9339 useless use omp_lib_kinds.
9340 * omp.h.in (omp_proc_bind_t): New typedef.
9341 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9342 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9343 omp_get_team_num, omp_is_initial_device): New prototypes.
9344 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9345 through to gomp_team_start.
9346 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9347 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9348 Adjust gomp_parallel_loop_start callers.
9349 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9350 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9351 GOMP_loop_end_cancel): New functions.
9352 (GOMP_parallel_end): Add ialias_redirect.
9353 * hashtab.h: New file.
9354 * libgomp.texi (Environment Variables): Minor cleanup,
9355 update section refs to OpenMP 4.0rc2.
9356 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9357 environment variables.
9358 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9359 team->work_shares_to_free to thr->ts.work_share before calling
9361 (gomp_work_share_end_cancel): New function.
9362 * config/linux/proc.c: Include errno.h.
9363 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9364 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9365 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9366 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9367 gomp_cpuset_size is sizeof (cpu_set_t).
9368 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9369 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9370 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9371 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9372 contain any logical CPUs.
9373 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9374 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9375 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9376 pthread_getaffinity_np. Check gomp_places_list instead of
9377 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9378 * config/linux/bar.c (gomp_barrier_wait_end,
9379 gomp_barrier_wait_last): Use BAR_* defines.
9380 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9381 from state where needed. Set work_share_cancelled to 0 on last
9383 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9384 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9386 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9387 Add cpusetsize argument.
9388 (gomp_cpuset_size, gomp_cpusetp): Declare.
9389 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9390 (affinity_counter): Remove.
9391 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9392 if CPU_ALLOC_SIZE isn't defined.
9393 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9394 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9395 bind current thread to the first place.
9396 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9397 pthread_setaffinity_np to gomp_places_list[place].
9398 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9399 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9400 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9401 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9402 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9403 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9404 (gomp_barrier_t): Add awaited_final field.
9405 (gomp_barrier_init): Initialize awaited_final field.
9406 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9407 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9409 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9411 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9412 gomp_team_barrier_cancelled): New inline functions.
9413 (gomp_barrier_last_thread,
9414 gomp_team_barrier_set_task_pending,
9415 gomp_team_barrier_clear_task_pending,
9416 gomp_team_barrier_set_waiting_for_tasks,
9417 gomp_team_barrier_waiting_for_tasks,
9418 gomp_team_barrier_done): Use BAR_* defines.
9419 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9420 (gomp_barrier_wait_end): Use BAR_* defines.
9421 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9422 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9424 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9425 gomp_team_barrier_cancel): New functions.
9426 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9428 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9429 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9430 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9431 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9432 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9433 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9434 (gomp_barrier_t): Add cancellable field.
9435 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9436 gomp_team_barrier_cancel): New prototypes.
9437 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9438 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9439 gomp_team_barrier_cancelled): New inline functions.
9440 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9441 gomp_team_barrier_set_task_pending,
9442 gomp_team_barrier_clear_task_pending,
9443 gomp_team_barrier_set_waiting_for_tasks,
9444 gomp_team_barrier_waiting_for_tasks,
9445 gomp_team_barrier_done): Use BAR_* defines.
9446 * barrier.c (GOMP_barrier_cancel): New function.
9447 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9448 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9449 omp_proc_bind_spread): New params.
9450 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9451 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9452 omp_get_team_num, omp_is_initial_device): New externals.
9453 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9455 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9456 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9457 infinity. If not nested, just return minimum of max_num_threads
9458 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9459 to the returned value. Otherwise, don't update atomically
9460 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9461 (GOMP_parallel_end): Adjust for thread_limit now being in
9462 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9463 infinity. Adjust threads_busy in the pool rather than
9464 gomp_remaining_threads_count. Remember team->nthreads and call
9465 gomp_team_end before adjusting threads_busy, if not nested
9466 afterwards, just set it to 1 non-atomically. Add ialias.
9467 (GOMP_parallel_start): Adjust gomp_team_start caller.
9468 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9469 * testsuite/libgomp.c/affinity-1.c: New test.
9470 * testsuite/libgomp.c/atomic-15.c: New test.
9471 * testsuite/libgomp.c/atomic-16.c: New test.
9472 * testsuite/libgomp.c/atomic-17.c: New test.
9473 * testsuite/libgomp.c/cancel-for-1.c: New test.
9474 * testsuite/libgomp.c/cancel-for-2.c: New test.
9475 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9476 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9477 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9478 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9479 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9480 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9481 * testsuite/libgomp.c/depend-1.c: New test.
9482 * testsuite/libgomp.c/depend-2.c: New test.
9483 * testsuite/libgomp.c/depend-3.c: New test.
9484 * testsuite/libgomp.c/depend-4.c: New test.
9485 * testsuite/libgomp.c/for-1.c: New test.
9486 * testsuite/libgomp.c/for-1.h: New file.
9487 * testsuite/libgomp.c/for-2.c: New test.
9488 * testsuite/libgomp.c/for-2.h: New file.
9489 * testsuite/libgomp.c/for-3.c: New test.
9490 * testsuite/libgomp.c/pr58392.c: New test.
9491 * testsuite/libgomp.c/simd-1.c: New test.
9492 * testsuite/libgomp.c/simd-2.c: New test.
9493 * testsuite/libgomp.c/simd-3.c: New test.
9494 * testsuite/libgomp.c/simd-4.c: New test.
9495 * testsuite/libgomp.c/simd-5.c: New test.
9496 * testsuite/libgomp.c/simd-6.c: New test.
9497 * testsuite/libgomp.c/target-1.c: New test.
9498 * testsuite/libgomp.c/target-2.c: New test.
9499 * testsuite/libgomp.c/target-3.c: New test.
9500 * testsuite/libgomp.c/target-4.c: New test.
9501 * testsuite/libgomp.c/target-5.c: New test.
9502 * testsuite/libgomp.c/target-6.c: New test.
9503 * testsuite/libgomp.c/target-7.c: New test.
9504 * testsuite/libgomp.c/taskgroup-1.c: New test.
9505 * testsuite/libgomp.c/thread-limit-1.c: New test.
9506 * testsuite/libgomp.c/thread-limit-2.c: New test.
9507 * testsuite/libgomp.c/thread-limit-3.c: New test.
9508 * testsuite/libgomp.c/udr-1.c: New test.
9509 * testsuite/libgomp.c/udr-2.c: New test.
9510 * testsuite/libgomp.c/udr-3.c: New test.
9511 * testsuite/libgomp.c++/affinity-1.C: New test.
9512 * testsuite/libgomp.c++/atomic-10.C: New test.
9513 * testsuite/libgomp.c++/atomic-11.C: New test.
9514 * testsuite/libgomp.c++/atomic-12.C: New test.
9515 * testsuite/libgomp.c++/atomic-13.C: New test.
9516 * testsuite/libgomp.c++/atomic-14.C: New test.
9517 * testsuite/libgomp.c++/atomic-15.C: New test.
9518 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9519 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9520 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9521 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9522 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9523 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9524 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9525 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9526 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9527 * testsuite/libgomp.c++/cancel-test.h: New file.
9528 * testsuite/libgomp.c++/for-9.C: New test.
9529 * testsuite/libgomp.c++/for-10.C: New test.
9530 * testsuite/libgomp.c++/for-11.C: New test.
9531 * testsuite/libgomp.c++/simd-1.C: New test.
9532 * testsuite/libgomp.c++/simd-2.C: New test.
9533 * testsuite/libgomp.c++/simd-3.C: New test.
9534 * testsuite/libgomp.c++/simd-4.C: New test.
9535 * testsuite/libgomp.c++/simd-5.C: New test.
9536 * testsuite/libgomp.c++/simd-6.C: New test.
9537 * testsuite/libgomp.c++/simd-7.C: New test.
9538 * testsuite/libgomp.c++/simd-8.C: New test.
9539 * testsuite/libgomp.c++/target-1.C: New test.
9540 * testsuite/libgomp.c++/target-2.C: New test.
9541 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9542 * testsuite/libgomp.c++/target-3.C: New test.
9543 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9544 * testsuite/libgomp.c++/udr-1.C: New test.
9545 * testsuite/libgomp.c++/udr-2.C: New test.
9546 * testsuite/libgomp.c++/udr-3.C: New test.
9547 * testsuite/libgomp.c++/udr-4.C: New test.
9548 * testsuite/libgomp.c++/udr-5.C: New test.
9549 * testsuite/libgomp.c++/udr-6.C: New test.
9550 * testsuite/libgomp.c++/udr-7.C: New test.
9551 * testsuite/libgomp.c++/udr-8.C: New test.
9552 * testsuite/libgomp.c++/udr-9.C: New test.
9554 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9557 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9560 2013-09-20 Alan Modra <amodra@gmail.com>
9562 * configure: Regenerate.
9564 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9566 * testsuite/libgomp.c/sections-2.c: New test.
9568 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9570 * testsuite/libgomp.fortran/strassen.f90:
9571 Add dg-skip-if aarch64_tiny.
9573 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9574 Cesar Philippidis <cesar@codesourcery.com>
9576 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9577 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9578 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9579 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9580 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9581 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9582 Use dg-runtest rather than gfortran-dg-runtest.
9584 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9586 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9587 Linux-based x86 systems to cover all GNU systems.
9588 * testsuite/libgomp.c/lock-3.c: Likewise.
9589 * testsuite/libgomp.c/pr48591.c: Likewise.
9591 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9593 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9594 GNU/Hurd, as done for Linux-based systems.
9596 * config/posix/ptrlock.h: Fix comment.
9598 2013-05-27 Tobias Burnus <burnus@net-b.de>
9601 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9602 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9603 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9604 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9605 omp_destroy_nest_lock): Correct arguments to match the one in
9607 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9608 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9609 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9610 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9612 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9614 * testsuite/libgomp.c/loop-13.c: New test.
9615 * testsuite/libgomp.c/loop-14.c: New test.
9616 * testsuite/libgomp.c/loop-15.c: New test.
9617 * testsuite/libgomp.c++/loop-13.C: New test.
9618 * testsuite/libgomp.c++/loop-14.C: New test.
9619 * testsuite/libgomp.c++/loop-15.C: New test.
9621 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9624 * testsuite/libgomp.c++/pr56217.C: New test.
9626 2013-02-01 Alan Modra <amodra@gmail.com>
9628 * task.c (GOMP_task, GOMP_taskwait): Comment.
9630 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9631 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9634 * config/linux/wait.h (do_spin): Use atomic load for addr.
9635 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9636 for intptr and ptrlock.
9637 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9640 2013-01-22 Alan Modra <amodra@gmail.com>
9644 * task.c (GOMP_task): Revert 2011-12-09 change.
9645 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9646 barrier to read task->children..
9647 (gomp_barrier_handle_tasks): ..and matching atomic store with
9648 release barrier here when setting parent->children to NULL.
9650 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9651 Tobias Burnus <burnus@net-b.de>
9654 * testsuite/libgomp.fortran/fortran.exp: Use
9655 -fintrinsic-modules-path= instead of
9656 -fintrinsic-modules-path.
9658 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9660 Update copyright years.
9662 2012-12-19 Tobias Burnus <burnus@net-b.de>
9664 * testsuite/libgomp.fortran/fortran.exp: Set
9665 -fintrinsic-modules-path.
9667 2012-12-19 Tobias Burnus <burnus@net-b.de>
9669 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9670 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9672 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9675 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9676 if pool had any threads_used.
9678 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9680 * testsuite/libgomp.c++/pr24455.C: Use
9681 -Wl,-undefined,dynamic_lookup on darwin.
9683 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9685 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9687 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9689 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9691 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9692 Jim MacArthur <jim.macarthur@arm.com>
9693 Marcus Shawcroft <marcus.shawcroft@arm.com>
9694 Nigel Stephens <nigel.stephens@arm.com>
9695 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9696 Richard Earnshaw <rearnsha@arm.com>
9697 Sofiane Naci <sofiane.naci@arm.com>
9698 Stephen Thomas <stephen.thomas@arm.com>
9699 Tejas Belagod <tejas.belagod@arm.com>
9700 Yufeng Zhang <yufeng.zhang@arm.com>
9702 * configure.tgt: Add AArch64.
9704 2012-10-04 Jason Merrill <jason@redhat.com>
9706 * testsuite/libgomp.c++/tls-init1.C: New.
9708 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9710 * configure: Regenerated.
9712 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9714 * config/linux/mips/futex.h (sys_futex0): Change to static
9715 function with noinline, nomips16 attributes under MIPS16. Adjust
9716 asm statement to place 'li v0,SYS_futex' immediately before
9719 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9721 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9722 conflict with index.html on case-insensitive file systems.
9724 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9726 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9727 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9729 2012-07-02 Richard Guenther <rguenther@suse.de>
9730 Michael Matz <matz@suse.de>
9731 Tobias Grosser <tobias@grosser.es>
9732 Sebastian Pop <sebpop@gmail.com>
9734 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9735 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9736 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9737 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9739 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9741 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9743 2012-06-22 Richard Guenther <rguenther@suse.de>
9745 Merge from graphite branch
9746 2012-01-13 Tobias Grosser <tobias@grosser.es>
9748 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9749 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9751 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9754 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9755 use GOMP_barrier () call instead.
9756 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9757 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9758 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9759 call GOMP_barrier instead.
9760 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9762 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9765 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9766 argument to memset call.
9768 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9770 * configure: Regenerated.
9772 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9774 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9776 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9779 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9781 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9784 * testsuite/libgomp.c/pr52547.c: New test.
9786 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9788 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9790 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9792 * configure.tgt (mips-sgi-irix6*): Remove.
9794 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9796 * configure.tgt (alpha*-dec-osf*): Remove.
9798 * config/osf/sem.h: Remove.
9799 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9801 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9803 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9805 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9808 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9809 Remove ENABLE_SYMVERS_SOL2.
9810 * configure: Regenerate.
9811 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9812 (PREPROCESS): New variable.
9813 (libgomp.ver): New target.
9814 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9815 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9816 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9818 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9819 * Makefile.in: Regenerate.
9821 2012-02-14 Walter Lee <walt@tilera.com>
9823 * configure.tgt: Handle tilegx and tilepro.
9824 * config/linux/tile/futex.h: New file.
9826 2012-02-08 Richard Guenther <rguenther@suse.de>
9828 PR tree-optimization/46886
9829 * testsuite/libgomp.c/pr46886.c: New testcase.
9831 2012-01-25 Matthias Klose <doko@ubuntu.com>
9833 * config/linux/arm: Remove empty directory.
9834 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9836 2011-12-09 Alan Modra <amodra@gmail.com>
9839 * task.c (GOMP_taskwait): Don't access task->children outside of
9840 task_lock mutex region.
9841 (GOMP_task): Likewise.
9843 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9846 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9848 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9849 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9850 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9851 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9852 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9854 2011-12-02 Alan Modra <amodra@gmail.com>
9856 * config/linux/affinity.c: Use atomic rather than sync builtin.
9857 * config/linux/lock.c: Likewise.
9858 * config/linux/ptrlock.h: Likewise.
9859 * config/linux/ptrlock.c: Likewise.
9860 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9861 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9862 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9863 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9864 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9865 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9866 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9867 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9868 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9869 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9871 2011-11-30 Alan Modra <amodra@gmail.com>
9874 * config/linux/bar.h: Use atomic rather than sync builtins.
9875 * config/linux/bar.c: Likewise. Add missing acquire
9876 synchronisation on generation field.
9877 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9880 2011-11-30 Alan Modra <amodra@gmail.com>
9882 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9883 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9884 * config/linux/mutex.h: Use atomic rather than sync builtins.
9885 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9886 * config/linux/omp-lock.h: Comment fix.
9887 * config/linux/arm/mutex.h: Delete.
9888 * config/linux/powerpc/mutex.h: Delete.
9889 * config/linux/ia64/mutex.h: Delete.
9890 * config/linux/mips/mutex.h: Delete.
9892 2011-11-30 Alan Modra <amodra@gmail.com>
9895 * config/linux/sem.h: Rewrite.
9896 * config/linux/sem.c: Rewrite.
9898 2011-11-28 Richard Henderson <rth@redhat.com>
9900 * libgomp.h (enum memmodel): New.
9902 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9904 * configure: Regenerate.
9906 2011-10-10 Matthias Klose <doko@ubuntu.com>
9908 * config/posix95: Remove empty directory.
9910 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9912 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9914 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9917 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9918 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9920 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9922 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9924 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9927 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9929 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9931 * config/linux/proc.h: New.
9932 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9933 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9934 (gomp_init_num_threads): Update call to cpuset_popcount.
9935 (get_num_procs): Ditto.
9936 * config/linux/affinity.c (gomp_init_affinity): Call
9937 gomp_cpuset_popcount.
9939 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9943 * omp.h.in (omp_in_final): New prototype.
9944 * omp_lib.f90.in (omp_in_final): New interface.
9945 (omp_integer_kind, omp_logical_kind): Remove
9946 and replace all its uses in the module with 4.
9947 (openmp_version): Change to 201107.
9948 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9949 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9950 kind for the parameters.
9951 (omp_in_final): New external.
9952 (openmp_version): Change to 201107.
9953 * task.c (omp_in_final): New function.
9954 (gomp_init_task): Initialize final_task.
9955 (GOMP_task): Remove unused attribute from flags. Handle final
9957 (GOMP_taskyield): New function.
9958 (omp_in_final): Return true if if (false) or final (true) task
9959 or descendant of final (true).
9960 * fortran.c (omp_in_final_): New function.
9961 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9962 (GOMP_3.0): Export GOMP_taskyield.
9963 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9965 (parse_unsigned_long_list): New function.
9966 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9967 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9968 even if parse_affinity returned false.
9969 * config/linux/affinity.c (gomp_init_affinity): Handle
9970 gomp_cpu_affinity_len == 0.
9971 * libgomp_g.h (GOMP_taskyield): New prototype.
9972 * libgomp.h (struct gomp_task): Add final_task field.
9973 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9974 * team.c (gomp_team_start): Override new task's nthreads_var icv
9975 if list form OMP_NUM_THREADS has been used and it has value for
9976 the new nesting level.
9978 * testsuite/libgomp.c/atomic-11.c: New test.
9979 * testsuite/libgomp.c/atomic-12.c: New test.
9980 * testsuite/libgomp.c/atomic-13.c: New test.
9981 * testsuite/libgomp.c/atomic-14.c: New test.
9982 * testsuite/libgomp.c/reduction-6.c: New test.
9983 * testsuite/libgomp.c/task-5.c: New test.
9984 * testsuite/libgomp.c++/atomic-2.C: New test.
9985 * testsuite/libgomp.c++/atomic-3.C: New test.
9986 * testsuite/libgomp.c++/atomic-4.C: New test.
9987 * testsuite/libgomp.c++/atomic-5.C: New test.
9988 * testsuite/libgomp.c++/atomic-6.C: New test.
9989 * testsuite/libgomp.c++/atomic-7.C: New test.
9990 * testsuite/libgomp.c++/atomic-8.C: New test.
9991 * testsuite/libgomp.c++/atomic-9.C: New test.
9992 * testsuite/libgomp.c++/task-8.C: New test.
9993 * testsuite/libgomp.c++/reduction-4.C: New test.
9994 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9995 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9996 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9997 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9998 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9999 * testsuite/libgomp.fortran/pointer1.f90: New test.
10000 * testsuite/libgomp.fortran/pointer2.f90: New test.
10001 * testsuite/libgomp.fortran/task4.f90: New test.
10003 2011-08-02 Tobias Burnus <burnus@net-b.de>
10005 * libgomp.texi: Update OpenMP spec references to 3.1.
10006 (omp_in_final,OMP_PROC_BIND): New sections.
10007 (OMP_NUM_THREADS): Document that the value can be now a list.
10008 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10010 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10012 * config/linux/x86/futex.h: Check __x86_64__ instead of
10015 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10017 PR middle-end/49897
10018 PR middle-end/49898
10019 * testsuite/libgomp.c/pr49897-1.c: New test.
10020 * testsuite/libgomp.c/pr49897-2.c: New test.
10021 * testsuite/libgomp.c/pr49898-1.c: New test.
10022 * testsuite/libgomp.c/pr49898-2.c: New test.
10024 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10026 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10027 for ia32 instead of ilp32.
10029 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10030 * testsuite/libgomp.c/atomic-6.c: Likewise.
10032 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10034 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10035 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10037 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10040 * config/osf/sem.h: New file.
10041 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10043 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10046 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10049 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10051 * config/linux/wait.h (do_spin): New inline, largely copied
10052 from do_wait, just don't do futex_wait here, instead return true if
10054 (do_wait): Implement using do_spin.
10055 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10057 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10058 __sync_bool_compare_and_swap, pass the oldval to
10059 gomp_mutex_lock_slow.
10060 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10061 If all mutex contenders are just spinning and not sleeping, don't
10062 change state to 2 unnecessarily. Optimize the loop when state has
10063 already become 2 to use just one atomic operation per loop instead
10065 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10067 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10068 __sync_bool_compare_and_swap, pass the oldval to
10069 gomp_mutex_lock_slow.
10071 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10074 * iter.c (gomp_iter_static_next): For chunk size 0
10075 only use n ceil/ nthreads size for the first
10076 n % nthreads threads in the team instead of
10077 all threads except for the last few ones which
10078 get less work or none at all.
10079 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10080 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10081 chunk argument, set run_sched_modifier to 0 for static
10082 resp. 1 for other kinds. If chunk argument is 0
10083 and not static, set value to 1.
10085 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10088 * testsuite/libgomp.c++/pr49043.C: New test.
10091 * testsuite/libgomp.c++/pr48869.C: New test.
10093 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10096 * fortran.c: Include limits.h.
10098 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10100 (omp_set_num_threads_8_, omp_set_schedule_8_,
10101 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10102 omp_get_team_size_8_): Use TO_INT macro.
10103 * testsuite/libgomp.fortran/pr48894.f90: New test.
10105 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10107 PR middle-end/48591
10108 * testsuite/libgomp.c/pr48591.c: New test.
10110 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10113 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10114 * configure: Regenerate.
10116 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10119 * testsuite/libgomp.fortran/task3.f90: New test.
10121 2011-02-24 Tobias Burnus <burnus@net-b.de>
10123 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10125 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10128 * libgomp.texi (omp_get_wtime): Don't say time in the past
10129 must be Unix Epoch.
10131 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10134 * testsuite/libgomp.fortran/fortran.exp: Check for both
10135 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10136 but $blddir != "", still append ${blddir}/${lang_library_path}
10137 to ld_library_path.
10139 2011-02-16 Tobias Burnus <burnus@net-b.de>
10142 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10143 of libquadmath.a before adding its libpath to ldflags.
10145 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10148 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10149 to FUTEX_WAIT futex syscall.
10150 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10152 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10154 * configure: Regenerate.
10156 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10159 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10161 2011-01-16 Gerald Pfeifer
10163 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10165 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10168 * libgomp.fortran/allocatable6.f90: New test.
10170 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10172 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10173 * configure: Regenerate.
10175 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10179 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10180 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10181 * aclocal.m4: Regenerate.
10182 * configure: Regenerate.
10183 * Makefile.in: Regenerate.
10184 * testsuite/Makefile.in: Regenerate.
10186 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10189 * libgomp.fortran/pr46753.f90: New test.
10192 * env.c (initialize_env): Default to spin count 300000
10193 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10197 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10198 at the end if sync builtins aren't supported.
10200 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10202 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10204 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10206 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10208 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10210 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10212 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10213 Tobias Burnus <burnus@net-b.de>
10217 * configure: Regenerate.
10219 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10221 * config/linux/futex.h: New.
10222 * config/linux/arm/mutex.h: New.
10223 * configure.tgt (arm*-*-linux*): Add config path.
10225 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10227 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10229 2010-09-23 Tobias Burnus <burnus@net-b.de>
10231 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10232 Change Fortran datatype to LOGICAL.
10233 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10234 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10236 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10238 * configure: Regenerate.
10240 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10242 * libgomp.texi: Add function keyword to a couple of Fortran
10243 interfaces, use integer instead of int for Fortran.
10245 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10247 * libgomp.texi: Fix spelling and pasto problems throughout.
10248 Adjust prototypes to match code.
10250 2010-07-24 Tobias Burnus <burnus@net-b.de>
10252 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10253 silence -fwhole-file warning.
10255 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10257 * configure.tgt (*-*-solaris2.[56]*): Removed.
10259 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10261 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10262 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10263 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10264 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10265 targetting solaris2*.
10266 * configure: Regenerate.
10267 * config.h.in: Regenerate.
10269 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10270 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10271 Add libgomp_version_dep.
10272 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10274 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10275 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10276 * Makefile.in: Regenerate.
10278 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10279 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10280 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10281 to common block, protected by
10282 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10284 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10286 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10288 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10291 * configure: Regenerate.
10293 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10296 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10297 * configure: Regenerate.
10298 * Makefile.in: Regenerate.
10299 * testsuite/Makefile.in: Regenerate.
10301 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10304 * testsuite/libgomp.c/pr43893.c: New test.
10305 * testsuite/libgomp.c++/pr43893.C: New test.
10307 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10309 PR middle-end/43570
10310 * testsuite/libgomp.fortran/vla8.f90: New test.
10312 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10315 * config/linux/affinity.c (gomp_init_affinity): Decrease
10316 gomp_available_cpus if affinity mask confines the process to fewer
10318 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10319 non-NULL, just return gomp_available_cpus.
10322 * sections.c (gomp_sections_init): Initialize ws->mode.
10324 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10326 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10327 not unused bar variable.
10328 * configure: Regenerate.
10330 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10332 * Makefile.in: Regenerate.
10333 * aclocal.m4: Regenerate.
10334 * testsuite/Makefile.in: Regenerate.
10336 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10339 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10340 (initialize_env): Adjust callers.
10341 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10342 when the argument is 0.
10344 * testsuite/libgomp.c/pr42942.c: New test.
10346 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10348 PR middle-end/42644
10349 PR middle-end/42130
10350 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10351 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10353 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10355 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10356 * testsuite/libgomp.c++/task-6.C: Likewise.
10358 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10360 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10362 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10364 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10365 * configure: Regenerate.
10367 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10370 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10372 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10374 * configure.ac: Test for executability of GFORTRAN.
10375 * configure: Regenerate.
10377 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10379 * configure: Regenerate.
10381 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10384 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10386 2010-01-03 Richard Guenther <rguenther@suse.de>
10388 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10390 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10392 * testsuite/libgomp.graphite/pr4118.c: New.
10394 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10396 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10397 for darwin, protect the test with require-effective-target tls_runtime.
10398 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10400 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10403 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10404 link spec %s substitutions for static libraries.
10406 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10409 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10411 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10413 * Makefile.in: Regenerate.
10414 * configure: Regenerate.
10415 * testsuite/Makefile.in: Regenerate.
10417 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10419 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10420 settings for LC_ALL and LANG.
10422 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10425 * testsuite/libgomp.fortran/pr42162.f90: New test.
10427 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10429 PR middle-end/42029
10430 * testsuite/libgomp.c/pr42029.c: New test.
10432 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10434 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10435 *s. Accept ld version without text in ()s.
10436 * configure: Regenerated.
10438 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10440 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10442 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10445 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10446 or a hyphen (happens with fortran language disabled).
10447 * configure: Regenerate.
10449 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10451 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10452 use sed script portable to Solaris /bin/sed for extracting ld
10454 * configure: Regenerate.
10456 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10458 * testsuite/libgomp.graphite/bounds.c: New test.
10460 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10462 * Makefile.am (libgomp_la_LINK): New.
10463 * Makefile.in: Regenerate.
10465 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10467 * configure.ac (AC_PREREQ): Bump to 2.64.
10469 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10471 * Makefile.am (install-html, install-pdf): Remove.
10472 * Makefile.in: Regenerate.
10474 * Makefile.in: Regenerate.
10475 * aclocal.m4: Regenerate.
10476 * config.h.in: Regenerate.
10477 * configure: Regenerate.
10478 * testsuite/Makefile.in: Regenerate.
10480 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10482 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10483 * Makefile.in: Regenerate.
10485 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10487 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10488 * Makefile.in: Regenerate.
10490 2009-08-19 Tobias Burnus <burnus@net-b.de>
10493 omp_lib.h.in: Fix -std=f95 errors.
10495 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10497 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10498 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10499 * testsuite/libgomp.graphite/graphite.exp: New.
10501 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10503 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10506 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10508 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10509 needed memory barrier semantics.
10510 * config/linux/mips/mutex.h: New file.
10512 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10514 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10516 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10518 * configure: Regenerate.
10520 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10525 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10526 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10527 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10529 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10531 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10532 options when choosing a multilib.
10534 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10536 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10537 ld_library_path. Use add_path. Add just find_libgcc_s to
10538 ld_library_path, not every libgcc multilib directory.
10539 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10540 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10541 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10543 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10545 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10547 * Makefile.am (LTLDFLAGS): Define.
10549 * Makefile.in: Regenerate.
10551 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10554 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10555 libgfortranbegin, check existence of libgfortran.a instead of
10556 libgfortranbegin.a.
10558 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10561 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10562 (gomp_free_pool_helper): Likewise.
10564 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10565 Jakub Jelinek <jakub@redhat.com>
10568 * testsuite/libgomp.fortran/workshare2.f90: New test.
10570 2009-04-09 Nick Clifton <nickc@redhat.com>
10572 * iter.c: Change copyright header to refer to version 3 of the
10573 GNU General Public License with version 3.1 of the GCC Runtime
10574 Library Exception and to point readers at the COPYING3 and
10575 COPYING3.RUNTIME files and the FSF's license web page.
10576 * alloc.c: Likewise.
10577 * barrier.c: Likewise.
10578 * config/bsd/proc.c: Likewise.
10579 * config/linux/affinity.c: Likewise.
10580 * config/linux/alpha/futex.h: Likewise.
10581 * config/linux/bar.c: Likewise.
10582 * config/linux/bar.h: Likewise.
10583 * config/linux/ia64/futex.h: Likewise.
10584 * config/linux/ia64/mutex.h: Likewise.
10585 * config/linux/lock.c: Likewise.
10586 * config/linux/mips/futex.h: Likewise.
10587 * config/linux/mutex.c: Likewise.
10588 * config/linux/mutex.h: Likewise.
10589 * config/linux/powerpc/futex.h: Likewise.
10590 * config/linux/proc.c: Likewise.
10591 * config/linux/ptrlock.c: Likewise.
10592 * config/linux/ptrlock.h: Likewise.
10593 * config/linux/s390/futex.h: Likewise.
10594 * config/linux/sem.c: Likewise.
10595 * config/linux/sem.h: Likewise.
10596 * config/linux/sparc/futex.h: Likewise.
10597 * config/linux/wait.h: Likewise.
10598 * config/linux/x86/futex.h: Likewise.
10599 * config/mingw32/proc.c: Likewise.
10600 * config/mingw32/time.c: Likewise.
10601 * config/posix/affinity.c: Likewise.
10602 * config/posix/bar.c: Likewise.
10603 * config/posix/bar.h: Likewise.
10604 * config/posix/lock.c: Likewise.
10605 * config/posix/mutex.h: Likewise.
10606 * config/posix/proc.c: Likewise.
10607 * config/posix/ptrlock.h: Likewise.
10608 * config/posix/sem.c: Likewise.
10609 * config/posix/sem.h: Likewise.
10610 * config/posix/time.c: Likewise.
10611 * config/posix95/lock.c: Likewise.
10612 * critical.c: Likewise.
10614 * error.c: Likewise.
10615 * fortran.c: Likewise.
10616 * iter_ull.c: Likewise.
10617 * libgomp.h: Likewise.
10618 * libgomp_f.h.in: Likewise.
10619 * libgomp_g.h: Likewise.
10620 * loop.c: Likewise.
10621 * loop_ull.c: Likewise.
10622 * omp.h.in: Likewise.
10623 * omp_lib.f90.in: Likewise.
10624 * omp_lib.h.in: Likewise.
10625 * ordered.c: Likewise.
10626 * parallel.c: Likewise.
10627 * sections.c: Likewise.
10628 * single.c: Likewise.
10629 * task.c: Likewise.
10630 * team.c: Likewise.
10631 * work.c: Likewise.
10633 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10635 * testsuite/config/default.exp: Change copyright header to refer to
10636 version 3 of the GNU General Public License and to point readers
10637 at the COPYING3 file and the FSF's license web page.
10639 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10641 PR middle-end/39573
10642 * libgomp.c++/pr39573.C: New test.
10644 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10647 * testsuite/libgomp.c/pr39591-1.c: New test.
10648 * testsuite/libgomp.c/pr39591-2.c: New test.
10649 * testsuite/libgomp.c/pr39591-3.c: New test.
10651 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10653 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10654 * testsuite/libgomp.c/atomic-6.c: Ditto.
10656 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10659 * testsuite/libgomp.c/loop-12.c: New test.
10660 * testsuite/libgomp.c/loop-11.c: New test.
10661 * testsuite/libgomp.c++/loop-11.C: New test.
10662 * testsuite/libgomp.c++/loop-12.C: New test.
10663 * testsuite/libgomp.c++/for-8.C: New test.
10665 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10667 * configure: Regenerate.
10669 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10671 PR middle-end/39154
10672 * testsuite/libgomp.c/pr39154.c: New test.
10674 2009-01-30 Ian Lance Taylor <iant@google.com>
10676 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10677 libgomp_ld_is_gold. Get gold version number.
10678 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10679 * configure: Rebuild.
10681 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10683 * testsuite/lib/libgomp.exp: Add -B option for targets that
10684 use libgfortran.a%s in their specs.
10686 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10689 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10690 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10691 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10692 * configure: Regenerated.
10693 * config.h.in: Likewise.
10695 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10698 * testsuite/libgomp.c/pr38650.c: New test.
10699 * testsuite/libgomp.c++/pr38650.C: New test.
10701 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10703 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10705 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10707 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10709 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10711 * configure: Regenerate.
10713 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10715 PR middle-end/36802
10716 * testsuite/libgomp.c/pr36802-1.c: New test.
10717 * testsuite/libgomp.c/pr36802-2.c: New test.
10718 * testsuite/libgomp.c/pr36802-3.c: New test.
10720 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10723 * config/linux/powerpc/mutex.h: New.
10725 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10728 * testsuite/libgomp.c++/for-7.C: New test.
10731 * testsuite/libgomp.c++/for-6.C: New test.
10733 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10736 * testsuite/lib/libgomp.exp: Include new timeout library files.
10737 (libgomp_target_compile): Set timeout value from new proc.
10739 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10742 * config/linux/ia64/mutex.h: New.
10744 2008-11-04 Tobias Burnus <burnus@net-b.de>
10747 * libgomp.texi (Runtime library routines, environment variables):
10748 Update for OpenMP version 3.0.
10750 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10751 Steve Ellcey <sje@cup.hp.com>
10753 * configure: Regenerate for new libtool.
10754 * Makefile.in: Ditto.
10755 * testsuite/Makefile.in: Ditto.
10757 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10758 Andreas Tobler <a.tobler@schweiz.org>
10760 * config/bsd/proc.c: New file.
10761 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10762 * configure.ac: Check for header <sys/sysctl.h>
10763 * configure: Regenerate.
10764 * config.h.in: Likewise.
10766 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10768 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10770 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10772 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10773 * Makefile.in: Regenerated.
10774 * testsuite/Makefile.in: Regenerated.
10776 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10778 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10779 depend on blddir if blddir exists.
10780 (libgomp_target_compile): Likewise.
10781 * testsuite/libgomp.c++/c++.exp: Likewise.
10782 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10784 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10786 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10787 Do not list GPL as Invariant Section.
10789 2008-07-28 Ilie Garbacea <ilie@mips.com>
10790 Chao-ying Fu <fu@mips.com>
10792 * configure.tgt: Enable futex for MIPS.
10793 * config/linux/mips/futex.h: New file.
10795 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10797 * team.c (gomp_team_end): Free team immediately if it has
10800 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10802 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10803 * testsuite/libgomp.fortran/fortran.exp: Same.
10804 * testsuite/libgomp.c/c.exp: Same.
10805 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10806 directory to library path first.
10808 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10810 * env.c (parse_stacksize): Add cast to avoid warning.
10811 (parse_spincount): Likewise.
10813 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10815 * testsuite/libgomp.c/loop-10.c: New test.
10816 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10817 * libgomp.c++/loop-6.C (main): Likewise.
10820 * testsuite/libgomp.c/debug-1.c: New test.
10822 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10824 * testsuite/libgomp.c/nqueens-1.c: New test.
10827 * testsuite/libgomp.c++/task-7.C: New function.
10829 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10831 * configure: Regenerate.
10833 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10835 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10836 mutex when HAVE_SYNC_BUILTINS isn't defined.
10838 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10840 * libgomp.texi (omp_test_lock): Fix typo.
10842 2008-06-12 Tobias Burnus <burnus@net-b.de>
10844 * omp_lib.f90.in: Add "implicit none".
10846 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10848 PR middle-end/36506
10849 * testsuite/libgomp.c/reduction-5.c: New test.
10851 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10853 * libgomp.h (struct gomp_task): Add in_tied_task field.
10854 * task.c (gomp_init_task): Initialize it.
10855 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10856 unconditionally. Don't call gomp_team_barrier_wake if
10857 current task is implicit or if(0) from implicit and number of
10858 running tasks is equal to nthreads - 1.
10861 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10862 omp_get_team_size_8): Fix pastos.
10865 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10866 * configure: Regenerated.
10867 * config.h.in: Regenerated.
10868 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10871 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10874 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10875 (GOMP_loop_ull_dynamic_start): Likewise.
10876 (GOMP_loop_ull_guided_start): Likewise.
10877 (GOMP_loop_ull_ordered_static_start): Likewise.
10878 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10879 (GOMP_loop_ull_ordered_guided_start): Likewise.
10881 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10882 Richard Henderson <rth@redhat.com>
10883 Ulrich Drepper <drepper@redhat.com>
10884 Jakob Blomer <jakob.blomer@ira.uka.de>
10886 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10887 Substitute also OMP_*LOCK_25*.
10888 * configure: Regenerated.
10889 * config.h.in: Regenerated.
10890 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10891 ptrlock.c and task.c.
10892 * Makefile.in: Regenerated.
10893 * testsuite/Makefile.in: Regenerated.
10894 * task.c: New file.
10895 * loop_ull.c: New file.
10896 * iter_ull.c: New file.
10897 * libgomp.h: Include ptrlock.h.
10898 (enum gomp_task_kind): New type.
10899 (struct gomp_team): Add task_lock, task_queue, task_count,
10900 task_running_count, single_count fields. Add
10901 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10902 Remove work_share_lock, generation_mask,
10903 oldest_live_gen, num_live_gen and init_work_shares fields, add
10904 work work_share_list_alloc, work_share_list_free and work_share_chunk
10905 fields. Change work_shares from pointer to pointers into an array.
10906 Change ordered_release field into gomp_sem_t ** from flexible array
10907 member. Add implicit_task and initial_work_shares fields.
10908 Move close to the end of the struct.
10909 (struct gomp_team_state): Add single_count, last_work_share,
10910 active_level and level fields, remove work_share_generation.
10911 (gomp_barrier_handle_tasks): New prototype.
10912 (gomp_finish_task): New inline function.
10913 (struct gomp_work_share): Move chunk_size, end, incr into
10914 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10915 next_ll fields. Reshuffle fields. Add next_alloc,
10916 next_ws, next_free and inline_ordered_team_ids fields, change
10917 ordered_team_ids into pointer from flexible array member.
10918 Add mode field. Put lock and next into a different cache line
10919 from most of the write-once fields.
10920 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10921 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10922 gomp_iter_ull_guided_next): New prototypes.
10923 (gomp_new_icv): New prototype.
10924 (struct gomp_thread): Add thread_pool and task fields.
10925 (struct gomp_thread_pool): New type.
10926 (gomp_new_team): New prototype.
10927 (gomp_team_start): Change type of last argument.
10928 (gomp_new_work_share): Removed.
10929 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10930 (gomp_work_share_init_done): New static inline.
10931 (gomp_throttled_spin_count_var, gomp_available_cpus,
10932 gomp_managed_threads): New extern decls.
10933 (gomp_init_task): New prototype.
10934 (gomp_spin_count_var): New extern var decl.
10935 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10936 or no alias support, or if not PIC.
10937 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10938 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10939 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10940 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10941 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10942 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10943 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10944 gomp_test_nest_lock_25): New prototypes.
10945 (omp_lock_symver, strong_alias): Define.
10946 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10948 (gomp_end_task): New.
10949 (struct gomp_task_icv, gomp_global_icv): New.
10950 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10951 (struct gomp_task): New.
10952 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10953 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10955 (gomp_schedule_type): Reorder enum to match
10957 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10959 (gomp_thread_start): Add gomp_team_barrier_wait call.
10960 For non-nested case remove clearing of docked thread thr fields.
10961 Use pool fields instead of global gomp_* variables. Use
10962 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10963 Create tasks for each member thread.
10964 (free_team): Only destroy team barrier, task_lock here and free it.
10965 (gomp_free_thread): Free last_team if non-NULL.
10966 (gomp_team_end): Call gomp_team_barrier_wait instead of
10967 gomp_barrier_wait. For nested case call one extra
10968 gomp_barrier_wait. Move here some destruction from free_team.
10969 Call free_team on pool->last_team if any, rather than freeing
10970 current team. Destroy work_share_list_free_lock ifndef
10971 HAVE_SYNC_BUILTINS.
10972 (gomp_new_icv): New function.
10973 (gomp_threads, gomp_threads_size, gomp_threads_used,
10974 gomp_threads_dock): Removed.
10975 (gomp_thread_destructor): New variable.
10976 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10978 (gomp_team_start): Create new pool if current thread doesn't have
10979 one. Use pool fields instead of global gomp_* variables.
10980 Initialize thread_pool field for new threads. Clear single_count.
10981 Change last argument from ws to team, don't create
10982 new team, set ts.work_share to &team->work_shares[0] and clear
10983 ts.last_work_share. Don't clear ts.work_share_generation.
10984 If number of threads changed, adjust atomically gomp_managed_threads.
10985 Use gomp_init_task instead of gomp_new_task,
10986 set thr->task to the corresponding implicit_task array entry.
10987 Create tasks for each member thread. Initialize ts.level.
10988 (initialize_team): Call pthread_key_create on
10989 gomp_thread_destructor.
10990 (team_destructor): New function.
10991 (new_team): Removed.
10992 (gomp_new_team): New function.
10993 (free_team): Free gomp_work_share blocks chained through next_alloc,
10994 instead of freeing work_shares and destroying work_share_lock.
10995 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10996 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10997 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10998 of gomp_barrier_wait.
10999 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11000 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11001 if gomp_work_share_start returned true. Don't unlock ws->lock.
11002 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11003 of gomp_barrier_wait.
11004 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11005 gomp_work_share_init_done if gomp_work_share_start returned true.
11006 Don't unlock ws->lock.
11007 * work.c: Include stddef.h.
11008 (free_work_share): Use work_share_list_free_lock instead
11009 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11010 Call gomp_fini_work_share and then either free ws if orphaned, or
11011 put it into work_share_list_free list of the current team.
11012 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11014 (gomp_work_share_start, gomp_work_share_end,
11015 gomp_work_share_end_nowait): Rewritten.
11016 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11017 (openmp_version): Set to 200805.
11018 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11019 omp_sched_guided, omp_sched_auto): New parameters.
11020 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11021 omp_set_max_active_levels, omp_get_max_active_levels,
11022 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11023 omp_get_active_level): New interfaces.
11024 * omp_lib.h.in (openmp_version): Set to 200805.
11025 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11026 omp_sched_guided, omp_sched_auto): New parameters.
11027 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11028 omp_set_max_active_levels, omp_get_max_active_levels,
11029 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11030 omp_get_active_level): New externals.
11031 * loop.c: Include limits.h.
11032 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11034 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11035 Likewise. Use gomp_icv.
11036 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11037 ts.static_trip here.
11038 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11039 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11040 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11041 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11042 don't unlock ws->lock, otherwise lock it.
11043 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11044 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11045 (gomp_parallel_loop_start): Call gomp_new_team instead of
11046 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11047 Adjust gomp_team_start caller. Pass 0 as second argument to
11048 gomp_resolve_num_threads.
11049 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11050 If adding ws->chunk_size nthreads + 1 times after end won't
11051 overflow, set ws->mode to 1.
11052 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11053 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11054 GOMP_loop_ull_ordered_static_start,
11055 GOMP_loop_ull_ordered_dynamic_start,
11056 GOMP_loop_ull_ordered_guided_start,
11057 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11058 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11059 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11060 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11061 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11063 * libgomp.map: Export lock routines also @@OMP_2.0.
11064 (GOMP_loop_ordered_dynamic_first,
11065 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11066 GOMP_loop_ordered_static_first): Remove.
11067 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11068 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11069 GOMP_loop_ull_ordered_dynamic_next,
11070 GOMP_loop_ull_ordered_dynamic_start,
11071 GOMP_loop_ull_ordered_guided_next,
11072 GOMP_loop_ull_ordered_guided_start,
11073 GOMP_loop_ull_ordered_runtime_next,
11074 GOMP_loop_ull_ordered_runtime_start,
11075 GOMP_loop_ull_ordered_static_next,
11076 GOMP_loop_ull_ordered_static_start,
11077 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11078 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11079 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11080 (omp_set_schedule, omp_get_schedule,
11081 omp_get_thread_limit, omp_set_max_active_levels,
11082 omp_get_max_active_levels, omp_get_level,
11083 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11084 omp_set_schedule_, omp_set_schedule_8_,
11085 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11086 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11087 omp_get_max_active_levels_, omp_get_level_,
11088 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11089 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11090 New exports @@OMP_3.0.
11091 * omp.h.in (omp_sched_t): New type.
11092 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11093 omp_set_max_active_levels, omp_get_max_active_levels,
11094 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11095 omp_get_active_level): New prototypes.
11096 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11097 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11098 gomp_thread_limit_var, gomp_remaining_threads_count,
11099 gomp_remaining_threads_lock): New variables.
11100 (parse_spincount): New function.
11101 (initialize_env): Call gomp_init_num_threads unconditionally.
11102 Initialize gomp_available_cpus. Call parse_spincount,
11103 initialize gomp_{,throttled_}spin_count_var
11104 depending on presence and value of OMP_WAIT_POLICY and
11105 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11106 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11107 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11108 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11109 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11110 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11111 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11112 (gomp_global_icv): New.
11113 (parse_schedule): Use it. Parse "auto".
11114 (omp_set_num_threads): Use gomp_icv.
11115 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11117 (omp_get_max_threads): Move from parallel.c.
11118 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11119 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11121 (parse_stacksize, parse_wait_policy): New functions.
11122 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11123 both wrappers for compatibility and new locks.
11124 (omp_set_schedule, omp_get_schedule,
11125 omp_get_thread_limit, omp_set_max_active_levels,
11126 omp_get_max_active_levels, omp_get_level,
11127 omp_get_ancestor_thread_num, omp_get_team_size,
11128 omp_get_active_level): New ialias_redirect.
11129 (omp_set_schedule_, omp_set_schedule_8_,
11130 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11131 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11132 omp_get_max_active_levels_, omp_get_level_,
11133 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11134 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11136 * parallel.c: Include limits.h.
11137 (gomp_resolve_num_threads): Add count argument. Rewritten.
11138 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11139 argument to gomp_team_start. Pass 0 as second argument to
11140 gomp_resolve_num_threads.
11141 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11142 if gomp_thread_limit_var != ULONG_MAX.
11143 (omp_in_parallel): Implement using ts.active_level.
11144 (omp_get_max_threads): Move to env.c.
11145 (omp_get_level, omp_get_ancestor_thread_num,
11146 omp_get_team_size, omp_get_active_level): New functions,
11148 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11149 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11150 gomp_iter_dynamic_next instead of the _locked variant and don't take
11151 lock around it, otherwise acquire it before calling
11152 gomp_iter_dynamic_next_locked.
11153 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11154 gomp_iter_dynamic_next instead of the _locked variant and don't take
11156 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11157 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11158 Adjust gomp_team_start caller. Pass count as second argument to
11159 gomp_resolve_num_threads, don't adjust num_threads after the call.
11161 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11162 ws->chunk_size by incr.
11163 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11165 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11167 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11168 (omp_check_defines): Check even the compat defines.
11169 * config/linux/ptrlock.c: New file.
11170 * config/linux/ptrlock.h: New file.
11171 * config/linux/wait.h: New file.
11172 * config/posix/ptrlock.c: New file.
11173 * config/posix/ptrlock.h: New file.
11174 * config/linux/bar.h (gomp_team_barrier_wait,
11175 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11176 (gomp_team_barrier_set_task_pending,
11177 gomp_team_barrier_clear_task_pending,
11178 gomp_team_barrier_set_waiting_for_tasks,
11179 gomp_team_barrier_waiting_for_tasks,
11180 gomp_team_barrier_done): New inlines.
11181 (gomp_barrier_t): Rewritten.
11182 (gomp_barrier_state_t): New typedef.
11183 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11184 gomp_barrier_wait_start): Rewritten.
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/linux/bar.c: Include wait.h instead of libgomp.h and
11191 (gomp_barrier_wait_end): Rewritten.
11192 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11193 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11194 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11195 (gomp_barrier_state_t): New typedef.
11196 (gomp_team_barrier_wait,
11197 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11198 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11199 into the return value. Return gomp_barrier_state_t.
11200 (gomp_team_barrier_set_task_pending,
11201 gomp_team_barrier_clear_task_pending,
11202 gomp_team_barrier_set_waiting_for_tasks,
11203 gomp_team_barrier_waiting_for_tasks,
11204 gomp_team_barrier_done): New inlines.
11205 (gomp_barrier_wait_end): Change second argument to
11206 gomp_barrier_state_t.
11207 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11209 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11210 (gomp_barrier_wait_end): Change second argument to
11211 gomp_barrier_state_t.
11212 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11213 gomp_team_barrier_wake): New functions.
11214 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11216 (gomp_futex_wake, gomp_futex_wait): New variables.
11217 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11218 * config/linux/lock.c: Rewrite to make locks task owned,
11219 for backwards compatibility provide the old entrypoints
11220 if symbol versioning. Include wait.h instead of libgomp.h and
11222 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11223 * config/posix95/lock.c: Rewrite to make locks task owned,
11224 for backwards compatibility provide the old entrypoints
11225 if symbol versioning.
11226 * config/posix/lock.c: Rewrite to make locks task owned,
11227 for backwards compatibility provide the old entrypoints
11228 if symbol versioning.
11229 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11230 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11231 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11232 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11233 (sys_futex0): Return error code.
11234 (futex_wake, futex_wait): If ENOSYS was returned, clear
11235 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11236 (cpu_relax, atomic_write_barrier): New static inlines.
11237 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11242 (sys_futex0): Return error code.
11243 (futex_wake, futex_wait): If ENOSYS was returned, clear
11244 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11245 (cpu_relax, atomic_write_barrier): New static inlines.
11246 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11247 (sys_futex0): Return error code.
11248 (futex_wake, futex_wait): If ENOSYS was returned, clear
11249 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11250 (cpu_relax, atomic_write_barrier): New static inlines.
11251 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11252 (sys_futex0): Return error code.
11253 (futex_wake, futex_wait): If ENOSYS was returned, clear
11254 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11255 (cpu_relax, atomic_write_barrier): New static inlines.
11256 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11257 (sys_futex0): Return error code.
11258 (futex_wake, futex_wait): If ENOSYS was returned, clear
11259 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11260 (cpu_relax, atomic_write_barrier): New static inlines.
11261 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11263 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11264 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11265 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11267 (omp_nest_lock_t): Change owner into void *, add lock field.
11268 * config/posix95/omp-lock.h: Include semaphore.h.
11269 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11270 (omp_lock_t): Use sem_t instead of mutex if semaphores
11272 (omp_nest_lock_t): Likewise. Change owner to void *.
11273 * config/posix/omp-lock.h: Include semaphore.h.
11274 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11275 (omp_lock_t): Use sem_t instead of mutex if semaphores
11277 (omp_nest_lock_t): Likewise. Add owner field.
11279 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11281 * testsuite/libgomp.c/collapse-1.c: New test.
11282 * testsuite/libgomp.c/collapse-2.c: New test.
11283 * testsuite/libgomp.c/collapse-3.c: New test.
11284 * testsuite/libgomp.c/icv-1.c: New test.
11285 * testsuite/libgomp.c/icv-2.c: New test.
11286 * testsuite/libgomp.c/lib-2.c: New test.
11287 * testsuite/libgomp.c/lock-1.c: New test.
11288 * testsuite/libgomp.c/lock-2.c: New test.
11289 * testsuite/libgomp.c/lock-3.c: New test.
11290 * testsuite/libgomp.c/loop-4.c: New test.
11291 * testsuite/libgomp.c/loop-5.c: New test.
11292 * testsuite/libgomp.c/loop-6.c: New test.
11293 * testsuite/libgomp.c/loop-7.c: New test.
11294 * testsuite/libgomp.c/loop-8.c: New test.
11295 * testsuite/libgomp.c/loop-9.c: New test.
11296 * testsuite/libgomp.c/nested-3.c: New test.
11297 * testsuite/libgomp.c/nestedfn-6.c: New test.
11298 * testsuite/libgomp.c/sort-1.c: New test.
11299 * testsuite/libgomp.c/task-1.c: New test.
11300 * testsuite/libgomp.c/task-2.c: New test.
11301 * testsuite/libgomp.c/task-3.c: New test.
11302 * testsuite/libgomp.c/task-4.c: New test.
11303 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11304 to C++ testsuite default compiler options.
11305 * testsuite/libgomp.c++/collapse-1.C: New test.
11306 * testsuite/libgomp.c++/collapse-2.C: New test.
11307 * testsuite/libgomp.c++/ctor-10.C: New test.
11308 * testsuite/libgomp.c++/for-1.C: New test.
11309 * testsuite/libgomp.c++/for-2.C: New test.
11310 * testsuite/libgomp.c++/for-3.C: New test.
11311 * testsuite/libgomp.c++/for-4.C: New test.
11312 * testsuite/libgomp.c++/for-5.C: New test.
11313 * testsuite/libgomp.c++/loop-8.C: New test.
11314 * testsuite/libgomp.c++/loop-9.C: New test.
11315 * testsuite/libgomp.c++/loop-10.C: New test.
11316 * testsuite/libgomp.c++/task-1.C: New test.
11317 * testsuite/libgomp.c++/task-2.C: New test.
11318 * testsuite/libgomp.c++/task-3.C: New test.
11319 * testsuite/libgomp.c++/task-4.C: New test.
11320 * testsuite/libgomp.c++/task-5.C: New test.
11321 * testsuite/libgomp.c++/task-6.C: New test.
11322 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11323 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11324 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11325 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11326 * testsuite/libgomp.fortran/collapse1.f90: New test.
11327 * testsuite/libgomp.fortran/collapse2.f90: New test.
11328 * testsuite/libgomp.fortran/collapse3.f90: New test.
11329 * testsuite/libgomp.fortran/collapse4.f90: New test.
11330 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11331 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11332 * testsuite/libgomp.fortran/lib4.f90: New test.
11333 * testsuite/libgomp.fortran/lock-1.f90: New test.
11334 * testsuite/libgomp.fortran/lock-2.f90: New test.
11335 * testsuite/libgomp.fortran/nested1.f90: New test.
11336 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11337 * testsuite/libgomp.fortran/strassen.f90: New test.
11338 * testsuite/libgomp.fortran/tabs1.f90: New test.
11339 * testsuite/libgomp.fortran/tabs2.f: New test.
11340 * testsuite/libgomp.fortran/task1.f90: New test.
11341 * testsuite/libgomp.fortran/task2.f90: New test.
11342 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11343 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11344 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11345 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11346 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11348 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11351 * testsuite/libgomp.c++/ctor-11.C: New test.
11352 * testsuite/libgomp.c++/ctor-12.C: New test.
11354 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11356 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11358 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11360 PR middle-end/36106
11361 * testsuite/libgomp.c/atomic-5.c: New test.
11362 * testsuite/libgomp.c/atomic-6.c: New test.
11363 * testsuite/libgomp.c/autopar-1.c: New test.
11365 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11367 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11368 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11369 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11370 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11371 * configure: Regenerate.
11372 * Makefile.in, testsuite/Makefile.in: Likewise.
11374 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11377 * aclocal.m4: Regenerate.
11378 * configure: Regenerate.
11380 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11382 PR middle-end/35611
11383 * testsuite/libgomp.c/atomic-4.c: New test.
11386 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11387 (gomp_iter_guided_next): Likewise.
11388 * testsuite/libgomp.c/pr35625.c: New test.
11390 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11392 * aclocal.m4: Regenerate.
11393 * configure: Likewise.
11394 * Makefile.in: Likewise.
11395 * testsuite/Makefile.in: Likewise.
11397 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11399 PR middle-end/35185
11400 * testsuite/libgomp.c++/pr35185.C: New test.
11402 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11404 PR middle-end/35549
11405 * testsuite/libgomp.c/pr35549.c: New test.
11407 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11409 * testsuite/libgomp.c/atomic-3.c: New test.
11411 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11414 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11415 .F08 file suffixes.
11417 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11420 * configure.ac: Add ACX_HEADER_STRING.
11421 * env.c: Include strings.h.
11422 * aclocal.m4: Regenerate.
11423 * config.h.in: Regenerate.
11424 * configure: Regenerate.
11425 * Makefile.in: Regenerate.
11426 * testsuite/Makefile.in: Regenerate.
11428 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11430 PR middle-end/35196
11431 * testsuite/libgomp.c/pr35196.c: New test.
11433 PR middle-end/35130
11434 * testsuite/libgomp.fortran/pr35130.f90: New test.
11435 * testsuite/libgomp.c/pr35130.c: New test.
11437 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11439 PR middle-end/33880
11440 * testsuite/libgomp.c/pr33880.c: New test.
11441 * testsuite/libgomp.fortran/pr33880.f90: New test.
11443 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11445 * configure: Regenerate.
11447 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11449 * configure.ac: Move futex checking into ../config/futex.m4.
11450 * configure: Rebuilt.
11451 * aclocal.m4: Rebuilt.
11452 * Makefile.in: Rebuilt.
11454 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11455 2007-10-15 ../config/tls.m4 change.
11457 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11460 * testsuite/libgomp.c/pr34513.c: New test.
11461 * testsuite/libgomp.c++/pr34513.C: New test.
11463 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11466 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11468 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11470 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11472 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11474 * testsuite/libgomp.c/private-1.c: New test.
11476 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11477 Paolo Bonzini <bonzini@gnu.org>
11479 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11480 instead of 'VPATH ='.
11481 * Makefile.in: Regenerate.
11483 2007-11-23 Matthias Klose <doko@ubuntu.com>
11485 * configure.ac: Adjust makeinfo version check.
11486 * configure: Regenerate.
11488 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11491 * testsuite/libgomp.fortran/pr34020.f90: New test.
11493 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11496 * testsuite/libgomp.c++/atomic-1.C: New test.
11498 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11501 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11502 Make x and y integers rather than (implicit) reals. Add private (j)
11503 clause to the last omp parallel.
11505 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11507 * configure: Regenerate following changes to ../config/tls.m4.
11509 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11511 * testsuite/libgomp.fortran/stack.f90: New test.
11513 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11515 * config/mingw32/proc.c: New file.
11517 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11519 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11520 (main): Use __get_cpuid to get i386 target fetaures.
11521 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11522 (main): Use __get_cpuid to get x86_64 target fetaures.
11524 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11527 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11528 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11530 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11533 * testsuite/libgomp.fortran/pr32550.f90: New test.
11534 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11536 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11538 * aclocal.m4: Regenerated.
11540 2007-07-05 Tobias Burnus <burnus@net-b.de>
11543 * testsuite/libgomp.fortran/pr32359.f90: New.
11545 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11548 * sections.c (GOMP_parallel_sections_start): Only decrease
11549 number of threads to COUNT if dyn_var is true.
11550 * testsuite/libgomp.c/pr32468.c: New test.
11552 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11555 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11557 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11559 PR middle-end/32362
11560 * testsuite/libgomp.c/pr32362-1.c: New test.
11561 * testsuite/libgomp.c/pr32362-2.c: New test.
11562 * testsuite/libgomp.c/pr32362-3.c: New test.
11564 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11566 * team.c (gomp_team_start): Fix setting up thread_attr
11569 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11571 * configure: Regenerate.
11573 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11575 * Makefile.in: Regenerate.
11576 * configure: Regenerate.
11577 * aclocal.m4: Regenerate.
11578 * testsuite/Makefile.in: Regenerate.
11580 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11582 * config/linux/proc.c: New file.
11585 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11587 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11589 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11591 2007-04-16 Matthias Klose <doko@debian.org>
11593 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11594 flags if not building with -m64.
11595 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11596 flag for i?86-*-* targets, if current target matches -m64.
11598 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11600 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11601 * Makefile.in: Regenerate.
11603 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11606 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11608 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11610 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11612 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11614 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11615 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11616 (parse_affinity): New function.
11617 (initialize_env): Call it and gomp_init_affinity.
11618 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11619 create new pthread_attr_t and call gomp_init_thread_affinity
11620 on it for each thread before passing the attribute to pthread_create.
11621 * config/linux/affinity.c: New file.
11622 * config/posix/affinity.c: New file.
11623 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11624 * configure: Rebuilt.
11625 * config.h.in: Rebuilt.
11626 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11627 * Makefile.in: Rebuilt.
11629 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11631 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11633 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11634 and use it if found.
11636 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11638 * testsuite/config/default.exp: New file.
11639 * testsuite/lib/libgomp.exp: New file.
11640 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11641 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11642 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11643 (libgomp_load): Remove.
11644 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11645 always_ld_library_path, not ld_library_path. Set additional_flags
11646 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11647 (target_compile): Do not call libgomp_init. Append lang_library_path
11648 and lang_link_flags to options.
11649 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11650 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11652 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11653 always_ld_library_path. Set LD_LIBRARY_PATH here.
11654 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11655 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11656 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11658 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11659 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11660 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11661 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11662 * testsuite/libgomp.c/atomic-10.c: Ditto.
11664 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11666 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11667 dg-final cleanup-modules line.
11668 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11669 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11670 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11671 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11672 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11673 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11674 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11676 2007-03-18 Andreas Schwab <schwab@suse.de>
11678 * acinclude.m4: Adjust regular expression for ld version
11680 * configure: Regenerate.
11682 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11684 * Makefile.am: Add install-pdf target as copied from
11685 automake v1.10 rules.
11686 * Makefile.in: Regenerate
11688 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11691 * configure: Regenerate.
11694 * testsuite/libgomp.c++/pr30703.C: New test.
11696 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11699 2006-07-05 Eric Christopher <echristo@apple.com>
11700 * configure.ac: Depend addition of -pthread on host OS.
11701 * configure: Regenerate.
11703 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11705 * libgomp.texi: Fix spacing after abbreviations.
11707 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11710 * configure.ac: Add check for makeinfo
11711 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11712 if an appropriate version of makeinfo is found.
11713 * aclocal.m4: Regenerated.
11714 * configure: Regenerated.
11715 * Makefile.in: Regenerated.
11716 * testsuite/Makefile.in: Regenerated.
11718 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11721 * libgomp.texi: More about implementation-dependent settings.
11723 2007-01-26 Tobias Burnus <burnus@net-b.de>
11725 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11727 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11729 PR middle-end/30494
11730 * testsuite/libgomp.c/pr30494.c: New test.
11732 2007-01-15 Tom Tromey <tromey@redhat.com>
11734 * configure: Rebuilt.
11735 * configure.ac: Fixed comment.
11737 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11739 * libgomp.texi: Document implementation specific default values of
11740 environment variables.
11742 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11745 * libgomp.texi: New file.
11746 * configure.ac: Add --enable-generated-files-in-srcdir option.
11747 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11749 * Makefile.in: Regenerated.
11750 * config.h.in: Regenerated.
11751 * testsuite/Makefile.in: Regenerated.
11754 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11757 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11759 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11761 * configure: Regenerate.
11763 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11766 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11767 start if there shouldn't be any loop iterations.
11768 (gomp_loop_ordered_static_start): Remove start == end test.
11769 * testsuite/libgomp.c/pr29947-1.c: New test.
11770 * testsuite/libgomp.c/pr29947-2.c: New test.
11772 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11774 * configure.tgt: Force initial-exec TLS model on Linux only.
11776 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11778 * configure: Regenerated.
11780 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11782 * env.c (parse_schedule): Reject out of range values.
11783 (parse_unsigned_long): Reject out of range, negative or zero values.
11785 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11788 * testsuite/libgomp.fortran/pr29629.f90: New test.
11790 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11793 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11794 * config/posix95: New directory.
11795 * config/posix95/omp-lock.h: New file.
11796 * config/posix95/lock.c: Likewise.
11798 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11800 * aclocal.m4: Regenerate.
11801 * configure: Regenerate.
11803 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11805 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11808 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11810 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11812 * configure: Regenerate.
11813 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11815 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11817 PR middle-end/25261
11818 PR middle-end/28790
11819 * testsuite/libgomp.c/nestedfn-4.c: New test.
11820 * testsuite/libgomp.c/nestedfn-5.c: New test.
11821 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11824 * testsuite/libgomp.fortran/condinc1.f: New test.
11825 * testsuite/libgomp.fortran/condinc2.f: New test.
11826 * testsuite/libgomp.fortran/condinc3.f90: New test.
11827 * testsuite/libgomp.fortran/condinc4.f90: New test.
11828 * testsuite/libgomp.fortran/condinc1.inc: New file.
11830 2006-09-18 Tom Tromey <tromey@redhat.com>
11832 * configure: Rebuilt.
11834 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11837 PR preprocessor/14634
11838 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11840 * configure: Regenerate.
11842 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11844 * testsuite/libgomp.fortran/reduction3.f90: Change
11845 -2147483648 to -huge(i)-1 to avoid overflow.
11846 * testsuite/libgomp.fortran/reduction4.f90: Change
11847 Z'ffffffff' to not(0) to avoid overflow.
11849 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11852 * Makefile.am (libsubincludedir): New.
11853 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11854 * Makefile.in: Regenerate.
11856 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11859 * env.c: Include ctype.h.
11860 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11861 leading and/or trailing whitespace and compare strings case
11864 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11867 * testsuite/libgomp.fortran/pr28390.f: New test.
11869 2006-07-05 Eric Christopher <echristo@apple.com>
11871 * configure.ac: Depend addition of -pthread on host OS.
11872 * configure: Regenerate.
11874 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11876 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11877 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11880 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11884 * configure.ac: If neither --enable-linux-futex nor
11885 --disable-linux-futex is passed, determine the default by checking
11886 for compiling and/or running against NPTL. With --enable-linux-futex,
11887 check if SYS_gettid and SYS_futex are defined.
11888 * configure: Rebuilt.
11890 2006-06-14 Richard Henderson <rth@redhat.com>
11893 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11894 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11896 2006-06-09 Richard Henderson <rth@redhat.com>
11898 * env.c (gomp_nthreads_var): Change to unsigned long.
11899 (gomp_run_sched_chunk): Likewise.
11900 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11901 (initialize_env): Initialize gomp_thread_attr.
11902 * libgomp.h (gomp_nthreads_var): Update decl.
11903 (gomp_run_sched_chunk): Likewise.
11904 (gomp_thread_attr): Declare.
11905 * team.c (gomp_thread_attr): Export.
11906 (initialize_team): Don't initialize it.
11908 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11911 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11912 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11914 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11916 * config/mingw32/time.c: New file.
11917 * configure.tgt: Use it.
11919 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11921 * Makefile.am: Add install-html target. Add install-html to .PHONY
11922 * Makefile.in: Regenerate.
11924 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11927 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11928 * testsuite/libgomp.c/critical-1.c: Likewise.
11929 * testsuite/libgomp.c/loop-1.c: Likewise.
11930 * testsuite/libgomp.c/loop-2.c: Likewise.
11931 * testsuite/libgomp.c/single-1.c: Likewise.
11932 * testsuite/libgomp.c/ordered-1.c: Likewise.
11933 * testsuite/libgomp.c/ordered-2.c: Likewise.
11935 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11937 PR middle-end/27416
11938 * libgomp.fortran/pr27416-1.f90: New test.
11940 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11943 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11944 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11946 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11949 * testsuite/libgomp.c/pr26943-1.c: New test.
11950 * testsuite/libgomp.c/pr26943-2.c: New test.
11951 * testsuite/libgomp.c/pr26943-3.c: New test.
11952 * testsuite/libgomp.c/pr26943-4.c: New test.
11953 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11954 * testsuite/libgomp.c++/pr26943.C: New test.
11956 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11958 PR middle-end/27337
11959 * testsuite/libgomp.c++/pr27337.C: New test.
11961 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11964 * testsuite/libgomp.c/pr26171.c: New test.
11966 2006-04-25 Richard Henderson <rth@redhat.com>
11969 * configure.ac: Use GCC_CHECK_TLS.
11970 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11971 * Makefile.in, aclocal.m4, configure: Regenerate.
11973 2006-04-10 Matthias Klose <doko@debian.org>
11975 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11976 directory names containing underscores.
11978 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11981 * testsuite/libgomp.c++/pr26691.C: New test.
11983 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11985 * testsuite/libgomp.fortran/retval2.f90: New test.
11987 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11989 * testsuite/libgomp.c++: New directory.
11991 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11993 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11994 * config/posix/sem.c: Implement the above.
11996 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11998 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11999 define HAVE_BROKEN_POSIX_SEMAPHORES.
12000 * configure: Rebuilt.
12001 * config.h.in: Rebuilt.
12003 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12006 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12007 for the other pthread check.
12008 * configure: Regenerate.
12009 * config.h.in: Regenerate.
12011 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12015 * Makefile.am (fincludedir): New variable.
12016 (nodist_include_HEADERS): Remove Fortran files.
12017 (nodist_finclude_HEADERS): New variable.
12018 * Makefile.in: Regenerated.
12020 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12022 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12023 Remove tests for returning assumed character length arrays.
12025 2006-02-12 Roger Sayle <roger@eyesopen.com>
12026 John David Anglin <dave@hiauly1.hia.nrc.ca>
12029 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12031 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12033 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12035 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12037 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12038 part of LD_LIBRARY_PATH manually.
12040 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12043 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12046 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12049 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12050 * configure.ac (PERL): Don't set.
12051 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12052 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12053 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12054 * omp.h.in: Wrap the new configure substitutions with @ characters.
12055 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12056 * aclocal.m4, configure, Makefile.in: Regenerate.
12057 * mkomp_h.pl: Delete.
12059 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12062 * configure.ac: Use GCC_HEADER_STDINT.
12063 * libgomp.h: Include gstdint.h.
12064 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12065 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12067 2006-01-24 Richard Henderson <rth@redhat.com>
12070 * configure.ac: Add AM_MAINTAINER_MODE.
12071 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12073 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12075 * Makefile.in: Regenerate.
12076 * testsuite/Makefile.in: Regenerate.
12077 * aclocal.m4: Regenerate.
12079 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12081 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12083 * configure.ac: Add check for loadavg.h.
12084 (link_gomp): Adjust comment.
12085 * configure: Regenerate.
12086 * config.h.in: Regenerate.
12088 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12091 * configure.ac: Remove check for alloca.h.
12092 * configure: Regenerate.
12093 * config.h.in: Regenerate.
12094 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12095 * team.c: Remove use of alloca.h.
12096 Call gomp_alloca instead of alloca.
12098 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12101 * team.c: Add include of alloca.h.
12102 * configure.ac: Add check for alloca.h.
12103 * configure: Regenerate.
12104 * config.h.in: Regenerate.
12106 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12109 * testsuite/libgomp.fortran/pr25219.f90: New test.
12111 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12113 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12114 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12115 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12116 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12117 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12118 testsuite/libgomp.fortran/threadprivate1.f90,
12119 testsuite/libgomp.fortran/threadprivate2.f90,
12120 testsuite/libgomp.fortran/threadprivate3.f90,
12121 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12122 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12123 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12124 effective-target to TLS runtime.
12126 * testsuite/libgomp.fortran/pr25162.f: Require
12127 effective-target TLS runtime.
12129 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12131 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12132 * testsuite/libgomp.c/nestedfn-3.c: New test.
12134 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12137 * testsuite/libgomp.fortran/pr25162.f: New test.
12139 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12141 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12142 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12144 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12146 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12147 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12148 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12149 single.c, team.c, work.c, config/linux/alpha/futex.h,
12150 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12151 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12152 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12153 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12154 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12155 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12156 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12159 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12161 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12162 to nodist_noinst_HEADERS.
12163 * Makefile.in: Rebuilt.
12165 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12166 add integer count field.
12167 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12168 omp_nest_lock_t type change.
12169 (omp_init_nest_lock): Likewise. Initialize count to 0.
12170 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12172 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12174 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12175 Increment count if successful and return the new nesting level.
12176 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12177 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12178 * testsuite/libgomp.c/lib-1.c: New test.
12179 * testsuite/libgomp.fortran/lib1.f90: New test.
12180 * testsuite/libgomp.fortran/lib2.f: New test.
12181 * testsuite/libgomp.fortran/lib3.f: New test.
12183 2005-11-17 Richard Henderson <rth@redhat.com>
12186 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12187 * configure.ac (link_gomp): New. Substitute it.
12188 (AC_CONFIG_FILES): Add libgomp.spec.
12189 * libgomp.spec.in: New file.
12190 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12191 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12193 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12195 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12196 reduction(-:var) behaving the same as reduction(+:var).
12197 * testsuite/libgomp.c/reduction-4.c: New test.
12199 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12201 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12202 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12203 testsuite/libgomp.c/copyin-3.c,
12204 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12205 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12206 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12207 testsuite/libgomp.c++/pr24455.C,
12208 testsuite/libgomp.fortran/threadprivate1.f90,
12209 testsuite/libgomp.fortran/threadprivate2.f90,
12210 testsuite/libgomp.fortran/threadprivate3.f90,
12211 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12212 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12213 testsuite/libgomp.fortran/omp_parse3.f90: Require
12214 effective-target TLS.
12216 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12220 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12223 * team.c (initialize_team): Pass NULL rather than free as
12224 pthread_key_create destructor. Initialize thread specific data
12225 pointer in initial thread to a static local variable rather than
12228 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12230 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12231 its location to ld_library_path.
12233 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12235 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12237 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12239 * testsuite/libgomp.c: Rename from libgomp.dg.
12241 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12243 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12244 threadprivate variable 'i'.
12246 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12248 * config/linux/s390/futex.h: New file.
12249 * configure.tgt: Use it.
12251 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12252 before the parallel.
12254 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12257 * testsuite/libgomp.c++/master-1.C: New test.
12259 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12261 * testsuite/libgomp.dg/copyin-3.c: New test.
12263 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12265 * testsuite/libgomp.fortran/retval1.f90: New test.
12266 * testsuite/libgomp.fortran/vla7.f90: New test.
12268 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12270 * testsuite/libgomp.fortran/vla2.f90: New test.
12271 * testsuite/libgomp.fortran/vla3.f90: New test.
12272 * testsuite/libgomp.fortran/vla4.f90: New test.
12273 * testsuite/libgomp.fortran/vla5.f90: New test.
12274 * testsuite/libgomp.fortran/vla6.f90: New test.
12276 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12278 * config/linux/sparc/futex.h: New file.
12279 * configure.tgt: Use it.
12280 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12282 * critical.c: Include stdlib.h.
12283 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12284 ignoring return value.
12285 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12286 LIBGOMP_CHECK_SYNC_BUILTINS check.
12287 * configure: Rebuilt.
12289 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12291 * testsuite/libgomp.fortran/vla1.f90: New test.
12293 2005-10-31 Richard Henderson <rth@redhat.com>
12295 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12296 setting 's' in different threads.
12298 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12300 * libgomp.h (attribute_hidden, ialias): Define.
12301 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12302 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12303 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12304 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12305 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12306 omp_test_lock, omp_test_nest_lock): Likewise.
12307 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12308 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12309 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12310 omp_test_lock, omp_test_nest_lock): Likewise.
12311 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12312 omp_get_dynamic, omp_get_nested): Likewise.
12313 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12314 omp_get_thread_num, omp_in_parallel): Likewise.
12315 * fortran.c (ialias_redirect): Define.
12316 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12317 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12318 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12319 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12320 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12321 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12322 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12323 omp_get_wtime): Add ialias_redirect.
12325 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12327 * fortran.c: Include stdlib.h.
12329 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12331 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12332 * Makefile.in: Regenerated.
12334 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12336 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12337 * libgomp_f.h.in (omp_check_defines): New function.
12338 * env.c: Include libgomp_f.h.
12339 (initialize_env): Call omp_check_defines.
12341 * testsuite/libgomp.dg/copyin-2.c: New test.
12342 * testsuite/libgomp.c++/copyin-2.C: New test.
12343 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12345 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12346 * testsuite/libgomp.fortran/sharing2.f90: New test.
12348 * testsuite/libgomp.dg/copyin-1.c: New test.
12349 * testsuite/libgomp.c++/copyin-1.C: New test.
12351 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12353 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12355 * testsuite/libgomp.fortran/workshare1.f90: New test.
12357 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12359 * libgomp.fortran/sharing1.f90: New test.
12361 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12364 * testsuite/libgomp.c++/loop-7.C: New test.
12366 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12368 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12369 * testsuite/libgomp.fortran/reduction6.f90: New test.
12370 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12372 2005-10-23 Richard Henderson <rth@redhat.com>
12374 * testsuite/libgomp.c++/ctor-1.C: New.
12375 * testsuite/libgomp.c++/ctor-2.C: New.
12376 * testsuite/libgomp.c++/ctor-3.C: New.
12377 * testsuite/libgomp.c++/ctor-4.C: New.
12378 * testsuite/libgomp.c++/ctor-5.C: New.
12379 * testsuite/libgomp.c++/ctor-6.C: New.
12380 * testsuite/libgomp.c++/ctor-7.C: New.
12381 * testsuite/libgomp.c++/ctor-8.C: New.
12382 * testsuite/libgomp.c++/ctor-9.C: New.
12384 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12387 * testsuite/libgomp.c++/pr24455-1.C: New test.
12388 * testsuite/libgomp.c++/pr24455.C: New test.
12389 * testsuite/libgomp.dg/pr24455-1.c: New test.
12390 * testsuite/libgomp.dg/pr24455.c: New test.
12392 2005-10-20 Richard Henderson <rth@redhat.com>
12394 * testsuite/libgomp.c++/loop-6.C: New.
12395 * testsuite/libgomp.dg/loop-3.c: New.
12397 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12399 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12400 explicitly private.
12401 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12404 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12406 * testsuite/libgomp.fortran/jacobi.f: New test.
12408 2005-10-19 Richard Henderson <rth@redhat.com>
12410 * configure.tgt (i?86-linux): Default to with_arch instead of
12411 CFLAGS. Add -mtune to match target_cpu.
12412 (x86_64-linux): Tune to i686.
12414 * fortran.c (omp_test_nest_lock_): Fix typo.
12416 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12418 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12419 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12420 * testsuite/libgomp.dg/ordered-3.c: New test.
12422 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12423 Remove volatile keyword.
12425 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12426 in COMMON block to avoid warnings on 64-bit targets.
12428 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12430 * testsuite/libgomp.dg/shared-3.c: New test.
12432 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12434 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12435 * testsuite/libgomp.fortran/reduction5.f90: New test.
12437 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12439 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12441 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12442 flush loop now that __sync_synchronize has proper memory barrier.
12443 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12444 Add -ffixed-form to dg-options.
12446 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12448 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12449 from subdirectories.
12450 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12451 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12452 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12453 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12454 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12455 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12456 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12457 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12458 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12459 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12460 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12461 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12462 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12463 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12464 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12465 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12466 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12467 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12468 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12469 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12470 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12471 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12472 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12473 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12474 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12476 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12478 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12479 lang_library_path exists. Use find instead of glob to gather tests.
12480 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12482 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12484 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12485 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12486 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12487 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12488 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12489 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12490 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12491 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12492 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12493 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12494 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12495 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12496 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12498 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12500 * testsuite/libgomp.dg/vla-1.c: New test.
12502 * testsuite/libgomp.fortran/reference2.f90: New test.
12504 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12505 declaration of omp_get_thread_num.
12506 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12509 * testsuite/libgomp.fortran/reduction1.f90: New test.
12510 * testsuite/libgomp.fortran/reduction2.f90: New test.
12511 * testsuite/libgomp.fortran/reduction3.f90: New test.
12512 * testsuite/libgomp.fortran/reduction4.f90: New test.
12514 2005-10-13 Richard Henderson <rth@redhat.com>
12516 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12517 * Makefile.in: Regenerate.
12518 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12519 * libgomp.h: Include bar.h.
12520 (struct gomp_barrier): Remove.
12521 (struct gomp_team): Add barrier. Replace master_barrier with
12522 master_release. Replace threads with ordered_release.
12523 (struct gomp_thread): Replace barrier with release.
12524 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12525 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12526 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12527 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12528 (GOMP_single_copy_end): Likewise.
12529 * team.c (gomp_threads_dock): New.
12530 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12531 (gomp_thread_start): Use gomp_barrier_wait.
12532 (new_team, free_team): Update for gomp_team changes.
12533 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12534 (gomp_team_end): Use gomp_barrier_wait.
12535 (initialize_team): Update for gomp_thread changes.
12536 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12537 (gomp_work_share_end_nowait): Use atomic ops when available.
12538 * config/linux/bar.c, config/linux/bar.h: New files.
12539 * config/posix/bar.c, config/posix/bar.h: New files.
12541 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12543 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12544 * testsuite/libgomp.dg/single-2.c: New test.
12546 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12547 lang_link_flags): Unset, so that they aren't inherited from previously
12550 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12552 2005-10-12 Richard Henderson <rth@redhat.com>
12554 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12555 (libgomp_init): Use lang_test_file, lang_library_path, and
12556 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12558 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12559 (lang_test_file, lang_link_flags): New.
12560 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12562 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12563 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12564 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12565 testsuite/libgomp.c++/parallel-1.C,
12566 testsuite/libgomp.c++/reduction-1.C,
12567 testsuite/libgomp.c++/reduction-2.C,
12568 testsuite/libgomp.c++/reduction-3.C,
12569 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12570 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12571 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12572 New files, largely cribbed from the C testsuite.
12574 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12576 * testsuite/libgomp.fortran/character1.f90: New test.
12577 * testsuite/libgomp.fortran/character2.f90: New test.
12579 * testsuite/libgomp.dg/nested-1.c: New test.
12580 * testsuite/libgomp.dg/nested-2.c: New test.
12581 * testsuite/libgomp.fortran/do1.f90: New test.
12582 * testsuite/libgomp.fortran/do2.f90: New test.
12584 * testsuite/libgomp.fortran/reference1.f90: New test.
12586 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12588 * testsuite/libgomp.dg/reduction-1.c: New test.
12589 * testsuite/libgomp.dg/reduction-2.c: New test.
12590 * testsuite/libgomp.dg/reduction-3.c: New test.
12592 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12594 * testsuite/libgomp.dg/atomic-1.c: New test.
12595 * testsuite/libgomp.dg/atomic-2.c: New test.
12597 2005-10-09 Richard Henderson <rth@redhat.com>
12599 * critical.c (atomic_lock): New.
12600 (initialize_critical): Initialize it.
12601 (GOMP_atomic_start, GOMP_atomic_end): New.
12602 * libgomp.map: Export them.
12603 * libgomp_g.h: Declare them.
12605 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12607 2005-10-02 Richard Henderson <rth@redhat.com>
12609 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12610 to XCFLAGS instead of CFLAGS.
12612 2005-09-30 Richard Henderson <rth@redhat.com>
12614 * configure.ac: Determine whether -pthread or -lpthread is needed.
12615 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12616 * Makefile.in, configure: Rebuild.
12618 2005-09-28 Richard Henderson <rth@redhat.com>
12620 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12621 * testsuite/libgomp.dg/omp-single-3.c: New test.
12623 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12625 * testsuite/libgomp.dg/omp-single-2.c: New test.
12626 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12628 2005-09-27 Richard Henderson <rth@redhat.com>
12630 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12631 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12633 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12635 * testsuite/libgomp.dg/omp-loop03.c: New test.
12637 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12639 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12641 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12643 * testsuite/libgomp.dg/omp-single-1.c: New test.
12644 * testsuite/libgomp.dg/shared-1.c: Return 0.
12645 Add prototype for abort.
12646 * testsuite/libgomp.dg/shared-2.c: Likewise.
12648 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12650 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12653 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12655 * testsuite/libgomp.dg/shared-1.c: New test.
12656 * testsuite/libgomp.dg/shared-2.c: New test.
12658 2005-09-24 Richard Henderson <rth@redhat.com>
12660 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12662 2005-09-24 Richard Henderson <rth@redhat.com>
12664 * iter.c (gomp_iter_static_next): Round up when computing number
12665 of iterations. Don't bother distributing a remainder equally.
12667 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12668 Don't call srand. Zero b before testing.
12671 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12673 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12674 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12676 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12678 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12679 without !$omp end do, followed immediately by subroutine end.
12681 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12683 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12685 2005-09-22 Richard Henderson <rth@redhat.com>
12687 * critical.c (GOMP_critical_name_start): Change argument to void**.
12688 Reuse the pointer space if the mutex fits.
12689 (GOMP_critical_name_end): Likewise.
12690 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12691 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12692 (GOMP_critical_name_end): Likewise.
12693 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12694 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12696 2005-09-20 Richard Henderson <rth@redhat.com>
12698 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12699 (create_lock_lock): New.
12700 (initialize_critical): Initialize it.
12701 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12702 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12704 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12706 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12708 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12710 * testsuite/libgomp.dg/omp-loop01.c: New test.
12711 * testsuite/libgomp.dg/omp-loop02.c: New test.
12713 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12715 * configure.ac (AC_PROG_FC): Add.
12716 (USE_FORTRAN): New automake conditional.
12717 * configure: Rebuilt.
12718 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12719 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12720 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12721 Add rules to build them.
12722 * Makefile.in: Rebuilt.
12723 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12724 OMP_NEST_LOCK_KIND.
12725 * libgomp.map: Add Fortran wrappers.
12726 * libgomp_f.h.in: New file.
12727 * omp_lib.h.in: New file.
12728 * omp_lib.f90.in: New file.
12729 * fortran.c: New file.
12730 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12731 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12732 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12733 libgfortran has been built.
12734 * testsuite/libgomp.fortran/fortran.exp: New file.
12735 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12736 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12737 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12738 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12739 * testsuite/libgomp.fortran/omp_hello.f: New test.
12740 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12741 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12742 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12743 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12744 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12745 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12746 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12747 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12749 2005-08-30 Richard Henderson <rth@redhat.com>
12751 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12752 function for when aliases are not usable.
12753 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12754 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12755 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12756 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12757 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12758 GOMP_loop_ordered_guided_next): Likewise.
12759 * ordered.c (GOMP_ordered_start): Likewise.
12761 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12763 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12764 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12765 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12766 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12767 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12768 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12769 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12770 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12771 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12773 2005-07-07 Eric Christopher <echristo@redhat.com>
12774 Diego Novillo <dnovillo@redhat.com>
12776 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12777 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12779 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12780 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12781 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12782 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12783 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12784 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12785 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12787 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12789 * TOPLEVEL.patch: Remove.
12791 2005-05-16 Richard Henderson <rth@redhat.com>
12793 * configure.ac: Test for clock_gettime.
12794 * config.h.in, configure: Rebuild.
12795 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12796 (omp_get_wtime): Use clock_gettime if available.
12797 (omp_get_wtick): Use clock_getres if available.
12799 2005-05-11 Richard Henderson <rth@redhat.com>
12801 * config/linux/ia64/futex.h: New file.
12802 * configure.tgt: Use it.
12804 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12806 2005-05-07 Richard Henderson <rth@redhat.com>
12808 * config/linux/powerpc/futex.h: New file.
12809 * configure.tgt: Use it.
12811 * config/linux/i486/futex.h: Merge ...
12812 * config/linux/x86_64/futex.h: ... into ...
12813 * config/linux/x86/futex.h: ... here.
12814 * configure.tgt: Update to match.
12816 2005-05-06 Richard Henderson <rth@redhat.com>
12818 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12819 * config/linux/i486/futex.h: Likewise.
12820 * config/linux/x86_64/futex.h: Likewise.
12822 * config/linux/lock.c: New file.
12823 * config/linux/omp-lock.h: New file.
12825 * critical.c, env.h: Don't include omp.h
12826 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12827 * config/posix/time.c: Likewise.
12828 * config/posix/omp-lock.h: New file.
12829 * libgomp.h: Include omp-lock.h and omp.h.
12830 * Makefile.am (nodist_include_HEADERS): New.
12832 * configure.ac (PERL): New.
12833 * mkomp_h.pl: New file.
12834 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12836 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12838 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12839 build directory. Re-add -march=i486 hack.
12841 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12842 (libgomp_link_flags): Remove.
12843 (libgomp_initialized): Remove.
12844 (libgomp_init): Don't protect from reinitialization. Copy code
12845 from libstdc++ for getting the multilib set correctly.
12847 2005-05-05 Richard Henderson <rth@redhat.com>
12849 * config/linux/alpha/futex.h: New file.
12850 * configure.tgt (alpha*-*-linux*): Use it.
12852 * config/posix/mutex.c: New file.
12853 * config/posix/sem.c: Use libgomp.h.
12855 * configure.tgt (x86_64-linux): Also test CC for -m32.
12856 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12858 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12861 * Makefile.am (SUBDIRS): New.
12862 (libgomp_la_LDFLAGS): Add -lpthread.
12863 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12864 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12866 * libgomp_g.h: New file.
12867 * libgomp.h: Split out all public declarations to libgomp_g.h.
12868 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12869 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12870 * config/linux/sem.h: Likewise.
12871 * config/posix/sem.h: Likewise.
12873 * Makefile.am (AM_LDFLAGS): New.
12874 (libgomp_version_script): Split out from ...
12875 (libgomp_la_LDFLAGS): ... here.
12876 (libgomp_version_info): New.
12877 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12878 (LIBGOMP_ENABLE): New.
12879 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12880 (LIBGOMP_ENABLE_SYMVERS): New.
12881 * configure.ac (AC_INIT): Version 1.0.
12882 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12883 (enable-linux-futex): Likewise. Rename from enable-futex.
12884 (libtool_VERSION): New.
12885 (LIBGOMP_ENABLE_SYMVERS): Use it.
12886 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12887 * Makefile.in, aclocal.m4, configure: Rebuild.
12889 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12890 (gomp_mutex_unlock_slow): Fix typo.
12891 * config/linux/sem.c: Similarly.
12892 (gomp_sem_post_slow): Fix typo.
12893 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12894 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12895 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12897 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12898 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12899 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12900 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12901 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12902 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12903 LDFLAGS. Pull enable_futex check to top-level.
12904 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12905 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12907 First attempt at real configury.
12908 * Makefile, config.h: Remove file.
12909 * Makefile.am, Makefile.in: New file.
12910 * acinclude.m4 aclocal.m4: New file.
12911 * configure.ac, configure.tgt, configure: New file.
12913 * config/posix/lock.c: Rename from sys-lock.c.
12914 * config/posix/mutex.h: Rename from sys-mutex.h.
12915 * config/posix/sem.c: Rename from sys-sem.c.
12916 * config/posix/sem.h: Rename from sys-sem.h.
12917 * config/posix/proc.c: Rename from sys-proc.c.
12918 * config/posix/time.c: Rename from sys-proc.c.
12920 * config/linux/mutex.c: New file.
12921 * config/linux/mutex.h: New file.
12922 * config/linux/sem.c: New file.
12923 * config/linux/sem.h: New file.
12924 * config/linux/i486/futex.h: New file.
12925 * config/linux/x86_64/futex.h: New file.
12927 2005-05-04 Richard Henderson <rth@redhat.com>
12929 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12930 * libgomp.h: Declare them.
12931 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12932 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12934 2005-05-04 Richard Henderson <rth@redhat.com>
12936 * libgomp-1 code drop
12938 2005-05-04 Richard Henderson <rth@redhat.com>
12940 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12941 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12942 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12943 (gomp_iter_static_next): Update.
12944 (gomp_ordered_static_next): Update.
12945 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12946 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12947 totally empty range.
12948 (gomp_loop_ordered_static_next): Refine test for calling
12949 gomp_ordered_static_next.
12950 * testsuite/ordered-1.c: Add case for more threads than iterations.
12952 * iter.c (gomp_iter_runtime_next_locked): Remove.
12953 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12954 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12955 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12956 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12957 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12958 gomp_loop_ordered_guided_next): Downcase name, make static, add
12959 an external alias with the old name.
12960 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12961 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12962 switch and call one of the above static functions.
12963 * libgomp.h: Update.
12965 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12966 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12967 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12968 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12969 GOMP_loop_ordered_guided_start): Update to match.
12970 * sections.c (GOMP_sections_start): Likewise.
12971 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12973 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12974 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12975 Use bounds check instead of modulus.
12976 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12977 (gomp_ordered_last): Don't sync with ordered_owner here.
12978 (gomp_ordered_next): Likewise.
12979 (gomp_ordered_static_loop_next): Likewise.
12980 * loop.c, libgomp.h: Update to match.
12982 * libgomp.h (GOMP_barrier): Declare.
12984 * testsuite/barrier-1.c: New file.
12985 * testsuite/critical-1.c: New file.
12986 * testsuite/ordered-2.c: New file.
12987 * testsuite/ordered-1.c: New file.
12988 * testsuite/sections-1.c: New file.
12989 * testsuite/single-1.c: New file.
12990 * testsuite/Makefile (TESTS): Add them.
12992 2005-05-04 Richard Henderson <rth@redhat.com>
12994 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12995 * loop.c (GOMP_loop_static_start): If not the startup thread,
12996 acquire the mutex to wait for initialization complete.
12997 (GOMP_loop_ordered_static_start): Likewise.
12998 (GOMP_loop_ordered_runtime_start): Likewise.
12999 (GOMP_loop_ordered_static_first): Remove.
13000 (GOMP_loop_ordered_dynamic_first): Remove.
13001 (GOMP_loop_ordered_guided_first): Remove.
13002 (GOMP_loop_ordered_runtime_first): Remove.
13003 * ordered.c (gomp_ordered_loop_first): Post to own release when
13004 we're the first thread.
13005 (gomp_ordered_loop_last): Wait on release if not owner.
13006 (gomp_ordered_loop_next): Likewise.
13007 (gomp_ordered_static_loop_init): New.
13008 (gomp_ordered_static_loop_next): Use ordered_owner.
13009 (GOMP_ordered_start): Likewise.
13010 * work.c (gomp_new_work_share): Initialize ordered_owner.
13012 2005-05-03 Richard Henderson <rth@redhat.com>
13014 * Makefile (OPT): New.
13017 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13018 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13019 * libgomp.h, libgomp.map, NOTES: Update to match.
13021 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13022 Add initialized and thr members.
13023 (gomp_thread_start): Pause when initially spawned to wait for
13024 the whole team to be created.
13025 (gomp_team_start): Release team members at the end.
13027 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13028 (f_foo_1): Use GOMP_loop_end.
13029 (f_foo_2): Use GOMP_loop_end_nowait.
13031 * testsuite/loop-2.c: New file.
13032 * testsuite/Makefile (TESTS): Add it.
13034 2005-05-03 Richard Henderson <rth@redhat.com>
13036 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13037 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13038 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13039 initial work_share.
13041 * testsuite/Makefile: New file.
13042 * testsuite/loop-1.c: New file.
13044 2005-05-03 Richard Henderson <rth@redhat.com>
13046 Initial implementation and checkin.
13048 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13050 Copying and distribution of this file, with or without modification,
13051 are permitted in any medium without royalty provided the copyright
13052 notice and this notice are preserved.