1 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
3 PR tree-optimization/89713
5 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
9 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
11 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
12 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
14 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
17 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
19 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
22 * target.c (gomp_load_image_to_device): Fix link
25 2020-03-19 Jakub Jelinek <jakub@redhat.com>
28 * testsuite/libgomp.c++/pr93931.C: New test.
30 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
32 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
33 dg-allow-blank-lines-in-output.
35 2020-03-18 Julian Brown <julian@codesourcery.com>
36 Tobias Burnus <tobias@codesourcery.com>
38 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
41 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
43 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
44 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
45 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
47 2020-03-14 Jakub Jelinek <jakub@redhat.com>
50 * testsuite/libgomp.c/pr93566.c: New test.
52 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
54 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
55 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
56 integer(acc_device_property) for the type of the return value of
59 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
61 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
62 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
63 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
64 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
65 (acc_set_device_num): Fix Fortran argument name, use same name for C.
66 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
67 corrections; add note about the previous interface and named constant.
68 (OpenACC library and environment variables): Fix two typos.
69 * openacc.f90: Use for all procedures the argument names from the spec
70 as for …_h they are user visible.
71 (openacc_kinds): Rename acc_device_property to
72 acc_device_property_kinds and change value to int32 ; and update users.
73 Re-add acc_device_property for for backward compatibility.
74 (acc_get_property_string_h): Clean up as acc_device_property_kind
76 (acc_get_property_h): Likewise and return c_size_t instead of
78 (openacc): Also export acc_device_property_kinds.
79 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
80 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
81 handling; check against /= 0 instead of == 1 to match C.
82 * openacc_lib.h: Use for all procedures the argument names from the spec
83 as for …_h they are user visible. Place !GCC$ into the first column to
84 be active also for fixed-form souce form.
85 (acc_device_current, acc_device_property_kind, acc_device_property,
86 acc_property_memory, acc_property_free_memory, acc_property_name,
87 acc_property_vendor, acc_property_driver): New named constants.
88 (acc_get_property, acc_get_property_string): New generic interface.
90 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
93 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
94 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
96 (gomp_target_task_fn): Assert "devicep->async_run_func".
97 (clear_unsupported_flags): New function to remove unsupported flags
98 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
99 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
100 * testsuite/libgomp.c/target-33.c:
101 Remove xfail for offload_target_nvptx.
102 * testsuite/libgomp.c/target-34.c: Likewise.
104 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
106 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
107 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
108 * testsuite/libgomp.c/target-34.c: Likewise.
109 * testsuite/libgomp.c/target-link-1.c: Add xfail for
110 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
112 2020-02-09 Jakub Jelinek <jakub@redhat.com>
114 * testsuite/libgomp.c/target-38.c: New test.
116 2020-02-06 Jakub Jelinek <jakub@redhat.com>
119 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
121 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
123 * testsuite/lib/libgomp.exp
124 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
125 and not as 'source' argument to libgomp_target_compile.
127 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
129 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
130 (gcn_gfx801_s): Remove.
131 (isa_hsa_name): Remove gfx801.
132 (isa_gcc_name): Remove gfx801/carizzo.
133 (isa_code): Remove gfx801.
135 2020-02-03 Julian Brown <julian@codesourcery.com>
136 Tobias Burnus <tobias@codesourcery.com>
138 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
139 and *_finalize variants; document acc_attach and acc_detach; update
140 references from OpenACC 2.0 to 2.6.
141 * openacc.f90 (openacc_version): Update to 201711.
142 * openacc_lib.h (openacc_version): Update to 201711.
143 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
144 openacc_version to 201711.
145 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
147 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
149 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
150 and vgpr_count fields.
151 (struct kernel_info): Add a field for a hsa_kernel_description.
152 (run_kernel): Reduce the number of threads/workers if the requested
153 number would require too many VGPRs.
154 (init_basic_kernel_info): Initialize description field with
155 the hsa_kernel_description entry for the kernel.
157 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
160 * plugin/configfrag.ac (enable_offload_targets): Skip
161 HSA and GCN plugin besides -m32 also for -mx32.
162 * configure: Regenerate.
164 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
166 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
168 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
170 * plugin-gcn.c (struct agent_info): Add fields "name" and
172 (GOMP_OFFLOAD_init_device): ... and init from here.
173 (struct hsa_context_info): Add field "driver_version_s" ...
174 (init_hsa_contest): ... and init from here.
175 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
177 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
178 Enable test execution for amdgcn and host offloading targets.
179 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
180 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
181 (expect_device_properties): Split function into ...
182 (expect_device_string_properties): ... this new function ...
183 (expect_device_memory): ... and this new function.
184 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
187 2020-01-28 Julian Brown <julian@codesourcery.com>
189 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
190 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
191 component/non-component variable refs in a single directive.
192 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
194 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
196 * configure.ac: Handle `--with-toolexeclibdir='.
197 * Makefile.in: Regenerate.
198 * aclocal.m4: Regenerate.
199 * configure: Regenerate.
200 * testsuite/Makefile.in: Regenerate.
202 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
204 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
205 (expect_device_properties): Remove "expected_free_mem" argument,
206 change "expected_total_mem" argument type to size_t;
207 change types of acc_get_property results to size_t,
208 adapt format strings.
209 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
210 Use %zu instead of %zd to print size_t values.
211 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
213 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
214 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
216 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
218 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
220 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
223 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
225 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
226 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
227 Adjust test dimensions for amdgcn.
228 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
229 gang/worker/vector expectations dynamically.
230 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
232 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
241 (acc_gang): Recognise acc_device_radeon.
242 (acc_worker): Likewise.
243 (acc_vector): Likewise.
244 (main): Set expectations for amdgcn.
245 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
246 (main): Adjust gang/worker/vector expectations dynamically.
247 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
249 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
250 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
253 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
255 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
258 * openacc.f90 (openacc_kinds): Likewise.
260 * openacc.h (acc_device_t): Likewise.
261 * openacc_lib.h: Likewise.
262 * testsuite/lib/libgomp.exp
263 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
265 (cb_compute_construct_end): Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
267 (cb_enqueue_launch_start): Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
269 (cb_enter_data_end): Likewise.
270 (cb_exit_data_start): Likewise.
271 (cb_exit_data_end): Likewise.
272 (cb_compute_construct_end): Likewise.
273 (cb_enqueue_launch_start): Likewise.
274 (cb_enqueue_launch_end): Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
278 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
280 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
281 to use this instead of 'enum gomp_device_property'.
282 (GOMP_OFFLOAD_get_property): Rename to...
283 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
284 * libgomp.h (struct gomp_device_descr): Move
285 'GOMP_OFFLOAD_openacc_get_property'...
286 (struct acc_dispatch_t): ... here. Adjust all users.
287 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
289 * target.c (gomp_map_vars_internal)
290 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
293 2020-01-10 Jakub Jelinek <jakub@redhat.com>
296 * libgomp.h (gomp_print_string): Change return type from void to int.
297 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
298 not all characters have been written.
300 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
302 * libgomp.texi: Fix typos, use https.
304 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
306 * testsuite/libgomp.fortran/optional-map.f90: Add test for
307 unallocated/disassociated actual arguments to nonallocatable/nonpointer
308 dummy arguments; those are/shall be regarded as absent arguments.
309 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
310 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
312 2020-01-01 Jakub Jelinek <jakub@redhat.com>
314 Update copyright years.
316 * libgomp.texi: Bump @copying's copyright year.
318 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
321 * oacc-init.c (goacc_runtime_deinitialize): New function.
323 2019-12-28 Jakub Jelinek <jakub@redhat.com>
326 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
327 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
329 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
330 Frederik Harwath <frederik@codesourcery.com>
331 Thomas Schwinge <tschwinge@codesourcery.com>
333 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
334 * libgomp-plugin.h (gomp_device_property_value): New union.
335 (gomp_device_property_value): New prototype.
336 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
338 (acc_device_property_t): New enum.
339 (acc_get_property, acc_get_property_string): New prototypes.
340 * oacc-init.c (acc_get_device_type): Also assert that result
341 is not `acc_device_current'.
342 (get_property_any, acc_get_property, acc_get_property_string):
344 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
345 `acc_property_memory', `acc_property_free_memory',
346 `acc_property_name', `acc_property_vendor' and
347 `acc_property_driver' constants. Add `acc_device_property' data
349 (openacc_internal): Add `acc_get_property' and
350 `acc_get_property_string' interfaces. Add `acc_get_property_h',
351 `acc_get_property_string_h', `acc_get_property_l' and
352 `acc_get_property_string_l'.
353 * oacc-host.c (host_get_property): New function.
354 (host_dispatch): Wire it.
355 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
356 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
357 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
358 * libgomp.texi (OpenACC Runtime Library Routines): Add
360 (acc_get_property): New node.
361 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
363 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
364 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
365 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
367 (GOMP_OFFLOAD_get_property): New function.
368 (struct ptx_device): Add new field "name".
369 (cuda_driver_version_s): Add new static variable ...
370 (nvptx_init): ... and init from here.
372 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
373 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
374 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
375 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
376 with test helper functions.
378 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
380 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
382 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
385 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
387 * target.c (gomp_map_vars_internal): Restore 'omp declare target
390 2019-12-19 Julian Brown <julian@codesourcery.com>
392 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
393 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
394 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
396 2019-12-19 Julian Brown <julian@codesourcery.com>
397 Cesar Philippidis <cesar@codesourcery.com>
399 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
400 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
401 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
402 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
403 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
404 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
405 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
406 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
407 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
408 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
409 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
410 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
411 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
413 2019-12-19 Julian Brown <julian@codesourcery.com>
415 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
416 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
417 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
418 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
419 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
420 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
421 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
422 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
423 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
424 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
425 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
426 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
428 2019-12-19 Julian Brown <julian@codesourcery.com>
430 * libgomp.h (struct target_var_desc): Add do_detach flag.
431 * oacc-init.c (acc_shutdown_1): Free aux block if present.
432 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
433 struct components. Tidy up and add some new checks.
434 (goacc_enter_data_internal): Update call to find_group_last.
435 (goacc_exit_data_internal): Support detach operations and
437 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
438 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
439 attach/detach in enter/exit data detection code.
440 * target.c (gomp_map_vars_existing): Initialise do_detach field of
442 (gomp_map_vars_internal): Support attach.
443 (gomp_unmap_vars_internal): Support detach.
445 2019-12-19 Julian Brown <julian@codesourcery.com>
446 Thomas Schwinge <thomas@codesourcery.com>
448 * libgomp.h (struct splay_tree_aux): Add attach_count field.
449 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
450 * libgomp.map (OACC_2.6): New section. Add acc_attach,
451 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
452 acc_detach_finalize_async.
453 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
454 acc_detach, acc_detach_async, acc_detach_finalize,
455 acc_detach_finalize_async): New functions.
456 * openacc.h (acc_attach, acc_attach_async, acc_detach,
457 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
459 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
460 (gomp_remove_var_internal): Free attachment counts if present.
461 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
462 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
464 2019-12-19 Julian Brown <julian@codesourcery.com>
465 Cesar Philippidis <cesar@codesourcery.com>
467 * libgomp.h (gomp_map_val): Add prototype.
468 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
469 open-coding device-address calculation.
470 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
473 2019-12-19 Julian Brown <julian@codesourcery.com>
475 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
476 field for virtual_refcount.
477 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
478 (gomp_free_memmap): Remove prototype.
479 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
480 instead of calling gomp_free_memmap.
481 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
483 (acc_unmap_data): Open code instead of forcing target_mem_desc's
484 to_free field to NULL then calling gomp_unmap_vars. Handle
485 REFCOUNT_INFINITY on target blocks.
486 (goacc_enter_data): Rename to...
487 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
488 handling for mapping groups. Use virtual_refcount instead of
489 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
490 map_map_vars_async call. Re-do lookup for target pointer return value.
491 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
492 renamed goacc_enter_datum function.
493 (goacc_exit_data): Rename to...
494 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
495 (acc_delete, acc_delete_async, acc_delete_finalize,
496 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
497 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
498 goacc_exit_datum function.
499 (gomp_acc_remove_pointer, find_pointer): Remove functions.
500 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
502 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
503 goacc_exit_data_internal helper functions.
504 * target.c (gomp_map_vars_internal): Handle
505 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
507 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
508 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
509 virtual_refcount field instead of dynamic_refcount.
510 (gomp_free_memmap): Remove function.
511 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
512 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
513 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
515 2019-12-19 Julian Brown <julian@codesourcery.com>
516 Thomas Schwinge <thomas@codesourcery.com>
518 * libgomp.h (struct splay_tree_aux): New.
519 (struct splay_tree_key_s): Replace link_key field with aux pointer.
520 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
522 (gomp_remove_var_internal): Free aux block if present.
523 (gomp_load_image_to_device): Zero-initialise aux field instead of
525 (omp_target_associate_pointer): Zero-initialise aux field.
527 2019-12-18 Jakub Jelinek <jakub@redhat.com>
530 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
532 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
535 2019-12-19 Julian Brown <julian@codesourcery.com>
536 Maciej W. Rozycki <macro@codesourcery.com>
537 Tobias Burnus <tobias@codesourcery.com>
538 Thomas Schwinge <thomas@codesourcery.com>
540 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
541 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
542 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
543 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
544 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
545 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
546 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
547 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
548 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
550 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
552 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
554 (goacc_insert_pointer): ... from here, "present" case.
555 (goacc_insert_pointer): Inline function into...
556 (GOACC_enter_exit_data): ... here, and simplify.
558 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
560 (goacc_insert_pointer): ... from here, "not present" case.
562 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
565 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
566 'goacc_enter_data', 'goacc_exit_data'.
568 * oacc-mem.c (delete_copyout): Refactor into...
569 (goacc_exit_data): ... this. Adjust all users.
571 * oacc-mem.c (present_create_copy): Refactor into...
572 (goacc_enter_data): ... this. Adjust all users.
574 * target.c (gomp_unmap_vars_internal): Add a safeguard to
577 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
578 like 'GOMP_MAP_FROM'.
583 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
585 (GOACC_enter_exit_data): Simplify accordingly.
586 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
588 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
589 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
591 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
593 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
594 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
596 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
598 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
600 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
604 * oacc-mem.c (acc_map_data, present_create_copy)
605 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
606 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
607 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
608 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
609 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
610 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
611 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
612 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
615 * target.c (gomp_unmap_tgt): Make it 'static'.
616 * libgomp.h (gomp_unmap_tgt): Remove.
618 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
621 * testsuite/libgomp.c/pr86416-1.c: New.
622 * testsuite/libgomp.c/pr86416-2.c: New.
624 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
626 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
627 all symbols as public except for the 'use …, only' imported symbol,
629 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
630 all symbols from module openacc_kinds as PUBLIC
631 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
633 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
635 2019-12-13 Julian Brown <julian@codesourcery.com>
639 * libgomp.h (gomp_remove_var_async): Add prototype.
640 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
642 * target.c (gomp_unref_tgt): Change return type to bool, indicating
643 whether target_mem_desc was unmapped.
644 (gomp_unref_tgt_void): New.
645 (gomp_remove_var): Reimplement in terms of...
646 (gomp_remove_var_internal): ...this new helper function.
647 (gomp_remove_var_async): New, implemented using above helper function.
648 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
651 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
653 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
654 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
656 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
657 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
659 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
660 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
662 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
664 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
665 as public except for the 'use …, only' imported symbol, which is
667 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
668 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
669 attributes for acc_copyout_finalize and acc_delete_finalize.
671 2019-12-11 Jakub Jelinek <jakub@redhat.com>
674 * testsuite/libgomp.fortran/atomic1.f90: New test.
676 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
679 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
680 reference counting for structured 'REFCOUNT_INFINITY'. Add some
682 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
683 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
684 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
685 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
686 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
688 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
689 * oacc-mem.c: ... here.
690 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
691 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
692 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
694 * libgomp_g.h: Update.
696 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
697 * oacc-async.c: ... here.
698 * oacc-int.h (goacc_wait): Declare.
699 * libgomp_g.h: Update
702 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
704 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
706 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
708 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
710 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
712 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
715 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
716 Julian Brown <julian@codesourcery.com>
718 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
719 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
721 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
723 * omp_lib.h.in: Fix spelling of function declaration
724 omp_get_cancell(l)ation.
725 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
727 * env.c: Fix comment typos.
728 * oacc-host.c: Likewise.
729 * ordered.c: Likewise.
732 * config/gcn/task.c: Likewise.
733 * config/gcn/team.c: Likewise.
734 * config/nvptx/task.c: Likewise.
735 * config/nvptx/team.c: Likewise.
736 * plugin/plugin-gcn.c: Likewise.
737 * testsuite/libgomp.fortran/jacobi.f: Likewise.
738 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
739 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
741 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
743 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
744 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
745 unnecessary 'dg-additional-options "-w"'.
747 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
748 Julian Brown <julian@codesourcery.com>
753 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
754 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
756 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
758 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
760 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
762 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
765 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
766 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
768 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
770 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
772 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
774 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
776 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
778 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
779 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
780 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
781 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
782 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
783 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
784 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
785 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
786 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
787 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
790 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
791 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
792 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
794 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
796 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
798 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
799 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
802 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
804 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
806 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
808 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
810 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
811 ... with their content moved into, and extended in this new file.
812 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
814 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
816 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
818 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
821 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
824 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
826 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
828 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
830 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
832 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
834 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
835 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
836 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
837 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
839 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
840 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
842 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
844 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
846 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
847 Kwok Cheung Yeung <kcy@codesourcery.com>
849 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
850 if input it a NULL pointer.
851 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
852 diagnostic of NULL pointer.
853 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
854 * testsuite/libgomp.fortran/optional-map.f90: New.
855 * testsuite/libgomp.fortran/use_device_addr-1.f90
856 (test_dummy_opt_callee_1_absent): New.
857 (test_dummy_opt_call_1): Call it.
858 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
859 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
860 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
861 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
862 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
863 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
864 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
865 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
866 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
867 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
868 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
869 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
870 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
871 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
872 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
873 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
875 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
877 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
878 expect dg-output of 'Error termination.' for GCN.
879 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
880 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
882 2019-12-04 Jakub Jelinek <jakub@redhat.com>
885 * testsuite/libgomp.fortran/teams1.f90: New test.
886 * testsuite/libgomp.fortran/teams2.f90: New test.
888 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
890 * oacc-init.c (acc_known_device_type): Add function.
891 (unknown_device_type_error): Add function.
892 (name_of_acc_device_t): Change to call unknown_device_type_error
894 (resolve_device): Use acc_known_device_type.
895 (acc_init): Fail if acc_device_t argument is not valid.
896 (acc_shutdown): Likewise.
897 (acc_get_num_devices): Likewise.
898 (acc_set_device_type): Likewise.
899 (acc_get_device_num): Likewise.
900 (acc_set_device_num): Likewise.
901 (acc_on_device): Add comment that argument validity is not checked.
903 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
905 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
907 (check_effective_target_openacc_amdgcn_accel_present): New proc.
908 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
909 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
910 * testsuite/libgomp.oacc-c/c.exp: Likewise.
911 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
913 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
916 * configure.tgt: Avoid IE tls on *-*-musl*.
918 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
920 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
921 adding a common-block test case.
923 2019-11-29 Jakub Jelinek <jakub@redhat.com>
926 * testsuite/libgomp.c++/udr-20.C: New test.
927 * testsuite/libgomp.c++/udr-21.C: New test.
929 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
931 * testsuite/lib/libgomp.exp
932 (check_effective_target_offload_target_nvptx): New proc.
933 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
935 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
936 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
937 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
939 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
941 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
942 * testsuite/libgomp.c/pr39591-2.c: Likewise.
943 * testsuite/libgomp.c/pr39591-3.c: Likewise.
944 * testsuite/libgomp.c/private-1.c: Likewise.
945 * testsuite/libgomp.c/task-1.c: Likewise.
946 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
948 2019-11-20 Julian Brown <julian@codesourcery.com>
950 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
952 (queue_push_launch): Lock aq->mutex before calling
953 wait_for_queue_nonfull.
954 (queue_push_callback): Likewise.
955 (queue_push_asyncwait): Likewise.
956 (queue_push_placeholder): Likewise.
958 2019-11-20 Julian Brown <julian@codesourcery.com>
960 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
961 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
962 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
965 2019-11-20 Julian Brown <julian@codesourcery.com>
969 * oacc-mem.c (present_create_copy): Fix device pointer return value in
970 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
971 in non-present/create case.
972 (delete_copyout): Change error condition to fail only on copies outside
973 of mapped block. Adjust error message accordingly.
974 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
975 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
976 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
978 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
979 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
980 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
982 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
984 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
985 libatomic in build-tree testing.
987 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
989 * testsuite/Makefile.in: Regenerate.
991 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
993 * testsuite/libgomp.c/target-print-1.c: New file.
994 * testsuite/libgomp.fortran/target-print-1.f90: New file.
995 * testsuite/libgomp.oacc-c/print-1.c: New file.
996 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
998 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
999 Kwok Cheung Yeung <kcy@codesourcery.com>
1000 Julian Brown <julian@codesourcery.com>
1001 Tom de Vries <tom@codesourcery.com>
1003 * plugin/Makefrag.am: Add amdgcn plugin support.
1004 * plugin/configfrag.ac: Likewise.
1005 * plugin/plugin-gcn.c: New file.
1006 * configure: Regenerate.
1007 * Makefile.in: Regenerate.
1008 * testsuite/Makefile.in: Regenerate.
1010 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1012 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1013 and use team_malloc variants.
1014 (gomp_gcn_exit_kernel): Use team_free.
1015 * libgomp.h (TEAM_ARENA_SIZE): Define.
1016 (TEAM_ARENA_START): Define.
1017 (TEAM_ARENA_FREE): Define.
1018 (TEAM_ARENA_END): Define.
1019 (team_malloc): New function.
1020 (team_malloc_cleared): New function.
1021 (team_free): New function.
1022 * team.c (gomp_new_team): Initialize and use team_malloc.
1023 (free_team): Use team_free.
1024 (gomp_free_thread): Use team_free.
1025 (gomp_pause_host): Use team_free.
1026 * work.c (gomp_init_work_share): Use team_malloc.
1027 (gomp_fini_work_share): Use team_free.
1029 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1030 Kwok Cheung Yeung <kcy@codesourcery.com>
1031 Julian Brown <julian@codesourcery.com>
1032 Tom de Vries <tom@codesourcery.com>
1034 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1035 * Makefile.in: Regenerate.
1036 * config.h.in (PLUGIN_GCN): Add new undef.
1037 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1038 * config/gcn/affinity-fmt.c: New file.
1039 * config/gcn/bar.c: New file.
1040 * config/gcn/bar.h: New file.
1041 * config/gcn/doacross.h: New file.
1042 * config/gcn/icv-device.c: New file.
1043 * config/gcn/oacc-target.c: New file.
1044 * config/gcn/simple-bar.h: New file.
1045 * config/gcn/target.c: New file.
1046 * config/gcn/task.c: New file.
1047 * config/gcn/team.c: New file.
1048 * config/gcn/time.c: New file.
1049 * configure.ac: Add amdgcn*-*-*.
1050 * configure: Regenerate.
1051 * configure.tgt: Add amdgcn*-*-*.
1052 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1053 * libgomp.h (gcn_thrs): Add amdgcn variant.
1054 (set_gcn_thrs): Likewise.
1055 (gomp_thread): Likewise.
1056 * oacc-int.h (goacc_thread): Likewise.
1057 * oacc-target.c: New file.
1058 * openacc.f90 (acc_device_gcn): New parameter.
1059 * openacc.h (acc_device_t): Add acc_device_gcn.
1060 * team.c (gomp_free_pool_helper): Add amdgcn support.
1062 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1063 Julian Brown <julian@codesourcery.com>
1065 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1067 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1069 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1070 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1073 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1075 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1076 * config/nvptx/libgomp-plugin.c: Move ...
1077 * config/accel/libgomp-plugin.c: ... to here.
1078 * config/nvptx/lock.c: Move ...
1079 * config/accel/lock.c: ... to here.
1080 * config/nvptx/mutex.c: Move ...
1081 * config/accel/mutex.c: ... to here.
1082 * config/nvptx/mutex.h: Move ...
1083 * config/accel/mutex.h: ... to here.
1084 * config/nvptx/oacc-async.c: Move ...
1085 * config/accel/oacc-async.c: ... to here.
1086 * config/nvptx/oacc-cuda.c: Move ...
1087 * config/accel/oacc-cuda.c: ... to here.
1088 * config/nvptx/oacc-host.c: Move ...
1089 * config/accel/oacc-host.c: ... to here.
1090 * config/nvptx/oacc-init.c: Move ...
1091 * config/accel/oacc-init.c: ... to here.
1092 * config/nvptx/oacc-mem.c: Move ...
1093 * config/accel/oacc-mem.c: ... to here.
1094 * config/nvptx/oacc-plugin.c: Move ...
1095 * config/accel/oacc-plugin.c: ... to here.
1096 * config/nvptx/omp-lock.h: Move ...
1097 * config/accel/omp-lock.h: ... to here.
1098 * config/nvptx/openacc.f90: Move ...
1099 * config/accel/openacc.f90: ... to here.
1100 * config/nvptx/pool.h: Move ...
1101 * config/accel/pool.h: ... to here.
1102 * config/nvptx/proc.c: Move ...
1103 * config/accel/proc.c: ... to here.
1104 * config/nvptx/ptrlock.c: Move ...
1105 * config/accel/ptrlock.c: ... to here.
1106 * config/nvptx/ptrlock.h: Move ...
1107 * config/accel/ptrlock.h: ... to here.
1108 * config/nvptx/sem.c: Move ...
1109 * config/accel/sem.c: ... to here.
1110 * config/nvptx/sem.h: Move ...
1111 * config/accel/sem.h: ... to here.
1112 * config/nvptx/thread-stacksize.h: Move ...
1113 * config/accel/thread-stacksize.h: ... to here.
1115 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1116 Tobias Burnus <tobias@codesourcery.com>
1117 Frederik Harwath <frederik@codesourcery.com>
1118 Thomas Schwinge <thomas@codesourcery.com>
1121 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1122 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1123 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1125 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1126 Kwok Cheung Yeung <kcy@codesourcery.com>
1128 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1129 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1131 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1133 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1135 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1137 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1138 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1140 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1142 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1143 Add expected warnings about missing reduction clauses.
1144 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1146 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1148 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1151 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1153 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1154 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1155 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1156 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1157 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1158 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1160 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1163 * testsuite/libgomp.fortran/allocatable2.f90: Use
1164 unique numbers with 'stop'.
1165 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1166 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1167 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1168 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1169 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1171 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1173 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1174 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1175 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1176 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1177 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1178 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1180 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1182 * testsuite/libgomp.fortran/target9.f90: New.
1184 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1186 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1187 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1188 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1189 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1190 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1191 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1192 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1193 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1194 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1195 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1196 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1197 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1198 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1199 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1200 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1201 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1202 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1203 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1204 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1205 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1206 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1207 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1208 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1209 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1210 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1211 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1212 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1213 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1214 * testsuite/libgomp.fortran/character1.f90: Ditto.
1215 * testsuite/libgomp.fortran/character2.f90: Ditto.
1216 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1217 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1218 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1219 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1220 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1221 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1222 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1223 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1224 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1225 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1226 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1227 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1228 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1229 * testsuite/libgomp.fortran/do1.f90: Ditto.
1230 * testsuite/libgomp.fortran/do2.f90: Ditto.
1231 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1232 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1233 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1234 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1235 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1236 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1237 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1238 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1239 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1240 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1241 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1242 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1243 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1244 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1245 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1246 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1247 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1248 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1249 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1250 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1251 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1252 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1253 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1254 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1255 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1256 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1257 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1258 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1259 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1260 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1261 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1262 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1263 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1264 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1265 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1266 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1267 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1268 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1269 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1270 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1271 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1272 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1273 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1274 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1275 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1276 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1277 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1278 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1279 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1280 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1281 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1282 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1283 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1284 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1285 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1286 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1287 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1288 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1289 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1290 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1291 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1292 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1293 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1294 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1295 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1296 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1297 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1298 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1299 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1300 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1301 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1302 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1303 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1304 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1305 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1306 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1307 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1308 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1309 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1310 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1311 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1312 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1313 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1314 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1315 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1316 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1317 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1318 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1319 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1320 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1321 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1322 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1323 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1324 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1325 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1326 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1327 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1328 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1329 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1330 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1331 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1332 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1333 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1334 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1335 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1336 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1337 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1338 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1339 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1340 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1341 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1342 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1343 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1344 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1345 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1346 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1347 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1348 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1349 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1350 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1351 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1352 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1353 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1354 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1355 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1356 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1357 * testsuite/libgomp.fortran/stack.f90: Ditto.
1358 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1359 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1360 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1361 * testsuite/libgomp.fortran/target1.f90: Ditto.
1362 * testsuite/libgomp.fortran/target2.f90: Ditto.
1363 * testsuite/libgomp.fortran/target3.f90: Ditto.
1364 * testsuite/libgomp.fortran/target4.f90: Ditto.
1365 * testsuite/libgomp.fortran/target5.f90: Ditto.
1366 * testsuite/libgomp.fortran/target6.f90: Ditto.
1367 * testsuite/libgomp.fortran/target7.f90: Ditto.
1368 * testsuite/libgomp.fortran/target8.f90: Ditto.
1369 * testsuite/libgomp.fortran/task1.f90: Ditto.
1370 * testsuite/libgomp.fortran/task2.f90: Ditto.
1371 * testsuite/libgomp.fortran/task3.f90: Ditto.
1372 * testsuite/libgomp.fortran/task4.f90: Ditto.
1373 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1374 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1375 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1376 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1377 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1378 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1379 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1380 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1381 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1382 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1383 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1384 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1385 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1386 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1387 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1388 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1389 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1390 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1391 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1392 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1393 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1394 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1395 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1396 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1397 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1398 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1399 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1400 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1401 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1402 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1403 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1404 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1405 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1406 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1408 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1410 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1411 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1412 Ditto; add 'dg-do run' for torture testing.
1413 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1414 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1415 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1416 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1417 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1418 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1419 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1420 * testsuite/libgomp.fortran/task2.f90: Ditto.
1421 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1422 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1423 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1424 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1425 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1426 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1428 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1430 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1431 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1432 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1433 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1434 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1435 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1436 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1437 Use 'stop' not abort().
1438 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1439 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1440 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1441 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1442 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1443 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1444 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1445 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1446 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1447 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1448 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1449 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1450 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1451 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1452 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1453 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1454 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1456 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1458 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1460 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1462 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1464 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1466 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1468 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1470 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1472 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1474 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1476 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1478 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1480 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1482 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1483 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1484 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1485 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1486 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1487 Likewise and also add 'dg-do run'.
1488 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1491 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1492 Tobias Burnus <tobias@codesourcery.com>
1494 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1495 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1496 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1498 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1501 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1504 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1506 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1507 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1509 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1512 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1515 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1518 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1520 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1522 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1525 * target.c (gomp_map_vars_internal): Readd the previous
1526 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1527 though do that just in the !not_found_cnt case.
1529 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1531 * gfortran.dg/gomp/target-simd.f90: New.
1533 2019-10-02 Julian Brown <julian@codesourcery.com>
1534 Cesar Philippidis <cesar@codesourcery.com>
1536 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1537 * target.c (FIELD_TGT_EMPTY): Define.
1538 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1539 as switch instead of list of ifs.
1540 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1542 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1544 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1545 include. Replace alloca () with __builtin_alloca ().
1546 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1548 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1550 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1551 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1552 * oacc-parallel.c: Don't include "libgomp_g.h".
1553 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1554 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1555 * aclocal.m4: Regenerated.
1556 * config.h.in: Regenerated.
1557 * configure: Regenerated.
1558 * Makefile.in: Regenerated.
1560 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1562 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1564 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1566 * configure: Regenerate.
1568 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1570 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1571 string is initialized.
1573 2019-09-06 Florian Weimer <fweimer@redhat.com>
1575 * configure: Regenerate.
1577 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1580 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1581 scanning to conform to the GNU Coding Standards.
1582 * configure: Regenerate.
1584 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.c/scan-21.c: New test.
1588 * testsuite/libgomp.c/scan-22.c: New test.
1590 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1593 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1595 * testsuite/libgomp.c/scan-12.c: Likewise.
1596 * testsuite/libgomp.c/scan-13.c: Likewise.
1597 * testsuite/libgomp.c/scan-14.c: Likewise.
1598 * testsuite/libgomp.c/scan-15.c: Likewise.
1599 * testsuite/libgomp.c/scan-16.c: Likewise.
1600 * testsuite/libgomp.c/scan-17.c: Likewise.
1601 * testsuite/libgomp.c/scan-18.c: Likewise.
1602 * testsuite/libgomp.c/scan-19.c: Likewise.
1603 * testsuite/libgomp.c/scan-20.c: Likewise.
1604 * testsuite/libgomp.c++/scan-9.C: Likewise.
1605 * testsuite/libgomp.c++/scan-10.C: Likewise.
1606 * testsuite/libgomp.c++/scan-11.C: Likewise.
1607 * testsuite/libgomp.c++/scan-12.C: Likewise.
1608 * testsuite/libgomp.c++/scan-14.C: Likewise.
1609 * testsuite/libgomp.c++/scan-15.C: Likewise.
1610 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1611 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1612 * testsuite/libgomp.c++/scan-16.C: Likewise.
1614 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1617 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1618 -std=legacy so invalid code in the test case is accepted.
1620 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1623 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1626 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1628 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1629 perform the lookup in the first loop only if !not_found_cnt, otherwise
1630 perform lookups for it in the second loop guarded with
1631 if (not_found_cnt || has_firstprivate).
1632 * testsuite/libgomp.c/target-37.c: New test.
1633 * testsuite/libgomp.c++/target-22.C: New test.
1635 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1637 * testsuite/libgomp.c/target-18.c (struct S): New type.
1638 (foo): Use use_device_addr clause instead of use_device_ptr clause
1639 where required by OpenMP 5.0, add further tests for both use_device_ptr
1640 and use_device_addr clauses.
1641 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1642 (foo): Use use_device_addr clause instead of use_device_ptr clause
1643 where required by OpenMP 5.0, add further tests for both use_device_ptr
1644 and use_device_addr clauses. Add t and u arguments.
1645 (main): Adjust caller.
1647 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1649 * testsuite/libgomp.c++/loop-13.C: New test.
1650 * testsuite/libgomp.c++/loop-14.C: New test.
1651 * testsuite/libgomp.c++/loop-15.C: New test.
1653 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1656 * testsuite/libgomp.c++/for-27.C: New test.
1658 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1660 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1661 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1663 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1665 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1667 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1669 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1670 * testsuite/libgomp.c++/scan-16.C: Likewise.
1672 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1674 * testsuite/libgomp.c/scan-19.c: New test.
1675 * testsuite/libgomp.c/scan-20.c: New test.
1677 * testsuite/libgomp.c/scan-11.c: New test.
1678 * testsuite/libgomp.c/scan-12.c: New test.
1679 * testsuite/libgomp.c/scan-13.c: New test.
1680 * testsuite/libgomp.c/scan-14.c: New test.
1681 * testsuite/libgomp.c/scan-15.c: New test.
1682 * testsuite/libgomp.c/scan-16.c: New test.
1683 * testsuite/libgomp.c/scan-17.c: New test.
1684 * testsuite/libgomp.c/scan-18.c: New test.
1685 * testsuite/libgomp.c++/scan-9.C: New test.
1686 * testsuite/libgomp.c++/scan-10.C: New test.
1687 * testsuite/libgomp.c++/scan-11.C: New test.
1688 * testsuite/libgomp.c++/scan-12.C: New test.
1689 * testsuite/libgomp.c++/scan-13.C: New test.
1690 * testsuite/libgomp.c++/scan-14.C: New test.
1691 * testsuite/libgomp.c++/scan-15.C: New test.
1692 * testsuite/libgomp.c++/scan-16.C: New test.
1694 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1696 * testsuite/libgomp.c/scan-9.c: New test.
1697 * testsuite/libgomp.c/scan-10.c: New test.
1699 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1701 * testsuite/libgomp.c++/scan-1.C: New test.
1702 * testsuite/libgomp.c++/scan-2.C: New test.
1703 * testsuite/libgomp.c++/scan-3.C: New test.
1704 * testsuite/libgomp.c++/scan-4.C: New test.
1705 * testsuite/libgomp.c++/scan-5.C: New test.
1706 * testsuite/libgomp.c++/scan-6.C: New test.
1707 * testsuite/libgomp.c++/scan-7.C: New test.
1708 * testsuite/libgomp.c++/scan-8.C: New test.
1709 * testsuite/libgomp.c/scan-1.c: New test.
1710 * testsuite/libgomp.c/scan-2.c: New test.
1711 * testsuite/libgomp.c/scan-3.c: New test.
1712 * testsuite/libgomp.c/scan-4.c: New test.
1713 * testsuite/libgomp.c/scan-5.c: New test.
1714 * testsuite/libgomp.c/scan-6.c: New test.
1715 * testsuite/libgomp.c/scan-7.c: New test.
1716 * testsuite/libgomp.c/scan-8.c: New test.
1718 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1720 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1721 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1724 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1727 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1729 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1732 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1735 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1737 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1738 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1739 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1740 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1743 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1746 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1748 2019-06-16 Tom de Vries <tdevries@suse.de>
1750 PR tree-optimization/89376
1751 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1753 2019-06-15 Tom de Vries <tdevries@suse.de>
1755 PR tree-optimization/89713
1756 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1757 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1759 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1762 * testsuite/libgomp.c/pr90779.c: New test.
1763 * testsuite/libgomp.fortran/pr90779.f90: New test.
1765 2019-06-15 Tom de Vries <tdevries@suse.de>
1767 PR tree-optimization/90009
1768 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1770 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1772 PR tree-optimization/89713
1773 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1775 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1778 * testsuite/libgomp.c/pr90811.c: New test.
1780 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1782 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1783 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1785 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1787 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1788 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1789 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1790 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1792 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1794 * configure.ac: Call AX_COUNT_CPUS.
1795 Substitute CPU_COUNT.
1796 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1798 * aclocal.m4: Regenerate.
1799 * configure: Regenerate.
1800 * Makefile.in, testsuite/Makefile.in: Regenerate.
1802 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1804 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1806 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1807 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1808 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1810 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1812 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1814 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1817 * work.c (gomp_init_work_share): Instead of aligning final ordered
1818 value to multiples of long long alignment, align to that the
1819 first part (ordered team ids) and if inline_ordered_team_ids
1820 is not on a long long alignment boundary within the structure,
1821 use __alignof__ (long long) - 1 pad size always.
1822 * loop.c (GOMP_loop_start): Fix *mem computation if
1823 inline_ordered_team_ids is not aligned on long long alignment boundary
1824 within the structure.
1825 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1826 * sections.c (GOMP_sections2_start): Likewise.
1828 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1830 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1831 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1834 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1835 HAVE_INTTYPES_H is defined.
1836 (print_uint64_t): New typedef.
1837 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1838 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1839 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1840 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1841 before casting to void *.
1842 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1843 * oacc-mem.c: Don't include config.h nor stdint.h.
1844 * target.c: Don't include config.h.
1845 * oacc-cuda.c: Likewise.
1846 * oacc-host.c: Don't include stdint.h.
1848 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1851 * alloc.c (_GNU_SOURCE): Define.
1853 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1855 * acc_prof.h: New file.
1856 * oacc-profiling.c: Likewise.
1857 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1858 Add these, respectively.
1859 * Makefile.in: Regenerate.
1860 * env.c (initialize_env): Call goacc_profiling_initialize.
1861 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1862 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1863 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1864 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1865 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1866 acc_prof_register, acc_prof_unregister, and acc_register_library.
1867 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1868 GOMP_PLUGIN_goacc_thread.
1869 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1870 prof_callbacks_enabled members.
1871 (goacc_prof_enabled, goacc_profiling_initialize)
1872 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1873 (goacc_profiling_dispatch): Declare.
1874 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1875 (GOACC_PROFILING_SETUP_P): Define.
1876 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1877 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1878 OpenACC Profiling Interface.
1879 * oacc-cuda.c (acc_get_current_cuda_device)
1880 (acc_get_current_cuda_context, acc_get_cuda_stream)
1881 (acc_set_cuda_stream): Likewise.
1882 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1883 (acc_init, acc_set_device_type, acc_get_device_type)
1884 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1885 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1886 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1887 (acc_unmap_data, present_create_copy, delete_copyout)
1888 (update_dev_host): Likewise.
1889 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1890 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1892 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1893 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1895 * libgomp.texi: Update.
1896 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1898 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1899 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1901 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1903 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1905 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1908 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1910 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1911 (struct goacc_asyncqueue_list): Likewise.
1912 (goacc_aq): Likewise.
1913 (goacc_aq_list): Likewise.
1914 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1915 (GOMP_OFFLOAD_openacc_async_test): Remove.
1916 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1917 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1918 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1919 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1920 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1921 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1922 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1923 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1924 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1925 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1926 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1927 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1928 (GOMP_OFFLOAD_openacc_async_test): Declare.
1929 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1930 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1931 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1932 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1933 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1935 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1936 (gomp_acc_insert_pointer): Adjust declaration.
1937 (gomp_copy_host2dev): New declaration.
1938 (gomp_copy_dev2host): Likewise.
1939 (gomp_map_vars_async): Likewise.
1940 (gomp_unmap_tgt): Likewise.
1941 (gomp_unmap_vars_async): Likewise.
1942 (gomp_fini_device): Likewise.
1944 * oacc-async.c (get_goacc_thread): New function.
1945 (get_goacc_thread_device): New function.
1946 (lookup_goacc_asyncqueue): New function.
1947 (get_goacc_asyncqueue): New function.
1948 (acc_async_test): Adjust code to use new async design.
1949 (acc_async_test_all): Likewise.
1950 (acc_wait): Likewise.
1951 (acc_wait_async): Likewise.
1952 (acc_wait_all): Likewise.
1953 (acc_wait_all_async): Likewise.
1954 (goacc_async_free): New function.
1955 (goacc_init_asyncqueues): Likewise.
1956 (goacc_fini_asyncqueues): Likewise.
1957 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1959 (acc_set_cuda_stream): Likewise.
1960 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1961 (host_openacc_register_async_cleanup): Remove.
1962 (host_openacc_async_exec): New function.
1963 (host_openacc_async_test): Adjust parameters.
1964 (host_openacc_async_test_all): Remove.
1965 (host_openacc_async_wait): Remove.
1966 (host_openacc_async_wait_async): Remove.
1967 (host_openacc_async_wait_all): Remove.
1968 (host_openacc_async_wait_all_async): Remove.
1969 (host_openacc_async_set_async): Remove.
1970 (host_openacc_async_synchronize): New function.
1971 (host_openacc_async_serialize): New function.
1972 (host_openacc_async_host2dev): New function.
1973 (host_openacc_async_dev2host): New function.
1974 (host_openacc_async_queue_callback): New function.
1975 (host_openacc_async_construct): New function.
1976 (host_openacc_async_destruct): New function.
1977 (struct gomp_device_descr host_dispatch): Remove initialization of old
1978 interface, add initialization of new async sub-struct.
1979 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1980 (goacc_attach_host_thread_to_device): Remove old async code usage.
1981 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1982 (goacc_fini_asyncqueues): Likewise.
1983 (goacc_async_copyout_unmap_vars): Likewise.
1984 (goacc_async_free): Likewise.
1985 (get_goacc_asyncqueue): Likewise.
1986 (lookup_goacc_asyncqueue): Likewise.
1987 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1989 (present_create_copy): Adjust code to use new async design.
1990 (delete_copyout): Likewise.
1991 (update_dev_host): Likewise.
1992 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1994 (gomp_acc_remove_pointer): Adjust code to use new async design.
1995 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1997 (GOACC_enter_exit_data): Likewise.
1998 (goacc_wait): Likewise.
1999 (GOACC_update): Likewise.
2000 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2001 when called, warn as obsolete in comment.
2002 * target.c (goacc_device_copy_async): New function.
2003 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2004 add goacc_device_copy_async case.
2005 (gomp_copy_dev2host): Likewise.
2006 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2007 (gomp_map_pointer): Likewise.
2008 (gomp_map_fields_existing): Likewise.
2009 (gomp_map_vars_internal): New always_inline function, renamed from
2011 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2012 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2013 passing goacc_asyncqueue argument.
2014 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2015 (gomp_unref_tgt): New function.
2016 (gomp_unmap_vars_internal): New always_inline function, renamed from
2018 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2019 (gomp_unmap_vars_async): Implement by calling
2020 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2021 (gomp_fini_device): New function.
2022 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2023 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2024 new async interface.
2025 (gomp_target_fini): Adjust code to call gomp_fini_device.
2027 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2028 (struct ptx_stream): Remove.
2029 (struct nvptx_thread): Remove current_stream field.
2030 (cuda_map_create): Remove.
2031 (cuda_map_destroy): Remove.
2036 (struct goacc_asyncqueue): Define.
2037 (struct nvptx_callback): Define.
2038 (struct ptx_free_block): Define.
2039 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2040 stream_lock, and next fields.
2041 (enum ptx_event_type): Remove.
2042 (struct ptx_event): Remove.
2043 (ptx_event_lock): Remove.
2044 (ptx_events): Remove.
2045 (init_streams_for_device): Remove.
2046 (fini_streams_for_device): Remove.
2047 (select_stream_for_async): Remove.
2048 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2049 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2051 (nvptx_open_device): Add free_blocks initialization, remove
2052 init_streams_for_device call.
2053 (nvptx_close_device): Remove fini_streams_for_device call, add
2054 free_blocks destruct code.
2056 (event_add): Remove.
2057 (nvptx_exec): Adjust parameters and code.
2058 (nvptx_free): Likewise.
2059 (nvptx_host2dev): Remove.
2060 (nvptx_dev2host): Remove.
2061 (nvptx_set_async): Remove.
2062 (nvptx_async_test): Remove.
2063 (nvptx_async_test_all): Remove.
2064 (nvptx_wait): Remove.
2065 (nvptx_wait_async): Remove.
2066 (nvptx_wait_all): Remove.
2067 (nvptx_wait_all_async): Remove.
2068 (nvptx_get_cuda_stream): Remove.
2069 (nvptx_set_cuda_stream): Remove.
2070 (GOMP_OFFLOAD_alloc): Adjust code.
2071 (GOMP_OFFLOAD_free): Likewise.
2072 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2073 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2074 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2075 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2076 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2077 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2078 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2079 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2080 (cuda_free_argmem): New function.
2081 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2082 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2083 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2084 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2085 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2086 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2087 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2088 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2089 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2090 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2091 (cuda_callback_wrapper): New function.
2092 (cuda_memcpy_sanity_check): New function.
2093 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2094 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2095 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2096 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2098 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2101 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2103 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2105 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2107 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2109 * team.c (gomp_team_start): Initialize pool->threads[0].
2111 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2113 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2114 "-foffload=$offload_target".
2115 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2116 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2117 * testsuite/lib/libgomp.exp
2118 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2119 as (conceptually) merged into
2120 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2123 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2124 * testsuite/libgomp-test-support.exp.in: Adjust.
2125 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2126 openacc_device_types_s.
2127 (offload_target_to_openacc_device_type): New proc.
2128 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2129 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2130 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2131 * Makefile.in: Regenerate.
2132 * configure: Likewise.
2133 * testsuite/Makefile.in: Likewise.
2135 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2136 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2137 instead of OFFLOAD_TARGETS.
2138 * target.c (gomp_target_init): Adjust.
2139 * testsuite/libgomp-test-support.exp.in: Likewise.
2140 * testsuite/lib/libgomp.exp: Likewise. Populate
2141 openacc_device_types_s instead of offload_targets_s_openacc.
2142 (check_effective_target_openacc_nvidia_accel_selected)
2143 (check_effective_target_openacc_host_selected): Adjust.
2144 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2145 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2146 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2147 * Makefile.in: Regenerate.
2148 * config.h.in: Likewise.
2149 * configure: Likewise.
2150 * testsuite/Makefile.in: Likewise.
2152 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2153 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2154 "offloading: supported, but hardware not accessible".
2155 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2156 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2158 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2161 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2163 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2164 and related adjustment.
2166 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2169 * testsuite/libgomp.c++/pr88988.C: New test.
2171 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2174 * testsuite/libgomp.c/pr89002.c: New test.
2176 2019-01-28 Richard Biener <rguenther@suse.de>
2179 PR tree-optimization/86865
2180 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2182 2019-01-24 Tom de Vries <tdevries@suse.de>
2184 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2185 once instantiated_devices drops to 0.
2187 2019-01-23 Tom de Vries <tdevries@suse.de>
2190 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2192 (nvptx_exec): Don't call map_push if mapnum == 0.
2193 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2195 2019-01-23 Tom de Vries <tdevries@suse.de>
2199 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2200 (map_fini): Remove "assert (!s->map->active)".
2201 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2203 2019-01-23 Tom de Vries <tdevries@suse.de>
2206 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2207 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2209 2019-01-15 Tom de Vries <tdevries@suse.de>
2212 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2215 2019-01-12 Tom de Vries <tdevries@suse.de>
2217 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2218 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2219 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2220 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2222 2019-01-12 Tom de Vries <tdevries@suse.de>
2224 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2226 2019-01-12 Tom de Vries <tdevries@suse.de>
2228 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2229 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2230 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2232 2019-01-12 Tom de Vries <tdevries@suse.de>
2235 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2236 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2238 2019-01-12 Tom de Vries <tdevries@suse.de>
2241 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2242 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2244 2019-01-12 Tom de Vries <tdevries@suse.de>
2246 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2247 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2248 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2250 2019-01-12 Tom de Vries <tdevries@suse.de>
2252 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2253 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2254 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2256 2019-01-12 Tom de Vries <tdevries@suse.de>
2258 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2259 resources diagnostic.
2261 2019-01-12 Tom de Vries <tdevries@suse.de>
2263 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2264 vector length to be 128.
2265 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2266 length 2097152 to be reduced to 1024 instead of 32.
2268 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2269 James Norris <jnorris@codesourcery.com>
2271 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2272 Library Routines", and "Environment Variables".
2274 2019-01-11 Tom de Vries <tdevries@suse.de>
2276 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2279 2019-01-11 Tom de Vries <tdevries@suse.de>
2281 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2283 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2284 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2285 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2286 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2288 2019-01-11 Tom de Vries <tdevries@suse.de>
2290 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2293 2019-01-10 Nathan Sidwell <nathan@acm.org>
2294 Julian Brown <julian@codesourcery.com>
2297 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2298 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2300 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2302 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2305 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2307 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2308 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2311 2019-01-09 Tom de Vries <tdevries@suse.de>
2314 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2315 #define instead of "const int".
2316 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2317 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2318 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2319 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2321 2019-01-09 Tom de Vries <tdevries@suse.de>
2323 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2326 2019-01-07 Tom de Vries <tdevries@suse.de>
2328 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2329 GOMP_OPENACC_DIM argument.
2331 2019-01-03 Tom de Vries <tdevries@suse.de>
2333 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2334 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2336 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2338 Update copyright years.
2340 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2342 * libgomp.texi: Bump @copying's copyright year.
2344 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2346 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2347 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2348 (GOACC_declare): Redefine the "device" argument to "flags".
2350 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2351 Cesar Philippidis <cesar@codesourcery.com>
2353 * target.c (struct gomp_coalesce_chunk): New structure.
2354 (struct gomp_coalesce_buf): Update the chunks member to use that
2355 type. Adjust all users.
2357 2018-12-19 Tom de Vries <tdevries@suse.de>
2359 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2360 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2361 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2363 2018-12-19 Tom de Vries <tdevries@suse.de>
2365 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2366 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2367 gcc/testsuite/gcc.dg/goacc.
2368 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2370 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2371 Chung-Lin Tang <cltang@codesourcery.com>
2373 * oacc-mem.c (acc_present_or_create): Remove definition and change
2374 to alias of acc_create.
2375 (acc_present_or_copyin): Remove definition and change to alias of
2377 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2378 of acc_present_or_create.
2379 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2380 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2381 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2382 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2383 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2384 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2385 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2386 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2387 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2388 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2389 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2390 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2391 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2392 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2393 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2394 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2396 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2399 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2400 "identical parameters".
2401 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2402 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2405 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2406 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2409 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2410 (nvptx_wait_async): Unseen async-argument is a no-op.
2411 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2412 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2413 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2414 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2415 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2416 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2417 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2418 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2419 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2421 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2422 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2424 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2426 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2427 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2428 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2430 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2433 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2434 (acc_set_cuda_stream): Clarify.
2435 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2437 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2439 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2440 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2441 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2442 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2444 2018-12-14 Tom de Vries <tdevries@suse.de>
2446 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2447 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2448 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2449 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2450 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2452 2018-12-13 Tom de Vries <tdevries@suse.de>
2454 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2455 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2456 * fortran.c (omp_display_affinity_): ... here.
2457 * libgomp.h (gomp_print_string): Declare.
2458 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2459 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2462 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2465 * testsuite/libgomp.c++/for-24.C (results): Include it in
2466 omp declare target region.
2467 (main): Use map (always, tofrom: results) instead of
2468 map (tofrom: results).
2470 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2473 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2474 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2476 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2478 2018-12-12 Andreas Schwab <schwab@suse.de>
2480 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2483 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2486 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2488 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2489 Jakub Jelinek <jakub@redhat.com>
2491 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2492 devicep->host2dev_func.
2494 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2497 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2498 tls_runtime effective target.
2499 (t): New threadprivate variable.
2500 (main): Set t in threads which execute iterations of the worksharing
2501 loop. Propagate that to the task after the loop and don't abort
2502 if the current taskgroup hasn't been cancelled.
2504 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2506 * testsuite/libgomp.c/task-reduction-3.c: New test.
2508 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2510 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2513 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2514 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2516 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2518 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2520 2018-10-19 Richard Biener <rguenther@suse.de>
2522 PR tree-optimization/88182
2523 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2525 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2527 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2528 (RUNTEST): Don't define.
2529 (RUNTESTDEFAULTFLAGS): Add.
2530 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2531 (distclean-am): Depend on distclean-DEJAGNU.
2532 (check-am): If -j% option is present in MFLAGS and if
2533 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2534 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2535 * testsuite/Makefile.in: Regenerated.
2537 2018-11-26 Richard Biener <rguenther@suse.de>
2539 PR tree-optimization/88182
2540 * testsuite/libgomp.c++/pr88182.C: New testcase.
2542 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2545 * config/mingw32/affinity-fmt.c: New file.
2547 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2549 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2550 (gomp_display_affinity): Use __builtin_choose_expr to handle
2551 properly handle argument having integral, or pointer or some other
2552 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2553 with uint64_t type instead of %llx and unsigned long long.
2555 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2556 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2558 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2560 * affinity.c: Include <string.h>, <stdio.h>.
2561 (gomp_display_affinity_place): Remove cpusetp.
2562 * teams.c: Include <limits.h>.
2564 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2566 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2567 in_reduction clause for s[0].
2569 * affinity.c (gomp_display_affinity_place): New function.
2570 * affinity-fmt.c: New file.
2571 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2572 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2573 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2574 Move these functions to ...
2575 * config/nvptx/teams.c: ... here. New file.
2576 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2578 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2580 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2581 and _aligned_malloc.
2582 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2583 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2584 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2585 gomp_affinity_format_len): New variables.
2586 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2587 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2588 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2589 modifiers. Display (non-default) chunk sizes. Print
2590 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2591 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2592 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2593 * fortran.c: Include stdio.h and string.h.
2594 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2595 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2596 (omp_set_affinity_format_, omp_get_affinity_format_,
2597 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2598 omp_pause_resource_all_): New functions.
2599 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2601 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2603 * teams.c: ... here. New file.
2604 * libgomp_g.h: Include gstdint.h.
2605 (GOMP_loop_nonmonotonic_runtime_start,
2606 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2607 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2608 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2609 GOMP_parallel_loop_nonmonotonic_runtime,
2610 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2611 GOMP_loop_ull_nonmonotonic_runtime_start,
2612 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2613 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2614 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2615 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2616 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2617 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2618 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2619 GOMP_teams_reg): Declare.
2620 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2621 gomp_aligned_alloc uses fallback implementation.
2622 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2623 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2624 (struct gomp_doacross_work_share): Add extra field.
2625 (struct gomp_work_share): Add task_reductions field.
2626 (struct gomp_taskgroup): Add workshare and reductions fields.
2627 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2628 (gomp_thread_handle): New typedef.
2629 (gomp_display_affinity_place, gomp_set_affinity_format,
2630 gomp_display_string, gomp_display_affinity,
2631 gomp_display_affinity_thread): Declare.
2632 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2633 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2634 gomp_workshare_task_reduction_register): Declare.
2635 (gomp_team_start): Add taskgroup argument.
2636 (gomp_pause_host): Declare.
2637 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2639 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2640 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2641 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2642 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2643 GOMP_loop_ull_doacross_start,
2644 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2645 GOMP_loop_maybe_nonmonotonic_runtime_next,
2646 GOMP_loop_maybe_nonmonotonic_runtime_start,
2647 GOMP_loop_nonmonotonic_runtime_next,
2648 GOMP_loop_nonmonotonic_runtime_start,
2649 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2650 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2651 GOMP_loop_ull_nonmonotonic_runtime_next,
2652 GOMP_loop_ull_nonmonotonic_runtime_start,
2653 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2654 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2655 GOMP_taskgroup_reduction_register,
2656 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2657 GOMP_teams_reg and GOMP_taskwait_depend.
2658 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2659 omp_{capture,display}_affinity{,_}, and
2660 omp_[gs]et_affinity_format{,_}.
2661 * loop.c: Include string.h.
2662 (GOMP_loop_runtime_next): Add ialias.
2663 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2664 (gomp_loop_static_start, gomp_loop_dynamic_start,
2665 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2666 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2667 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2668 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2669 or gomp_doacross_init callers.
2670 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2671 GOMP_loop_doacross_start): New functions.
2672 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2673 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2674 Mask off GFS_MONOTONIC bit.
2675 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2676 GOMP_loop_maybe_nonmonotonic_runtime_start,
2677 GOMP_loop_nonmonotonic_runtime_next,
2678 GOMP_loop_nonmonotonic_runtime_start,
2679 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2680 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2682 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2684 * loop_ull.c: Include string.h.
2685 (GOMP_loop_ull_runtime_next): Add ialias.
2686 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2687 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2688 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2689 gomp_loop_ull_ordered_dynamic_start,
2690 gomp_loop_ull_ordered_guided_start,
2691 gomp_loop_ull_doacross_static_start,
2692 gomp_loop_ull_doacross_dynamic_start,
2693 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2694 and gomp_doacross_ull_init callers.
2695 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2696 GOMP_loop_ull_doacross_start): New functions.
2697 (GOMP_loop_ull_runtime_start,
2698 GOMP_loop_ull_ordered_runtime_start,
2699 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2700 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2701 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2702 GOMP_loop_ull_nonmonotonic_runtime_next,
2703 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2704 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2705 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2706 (omp_pause_resource_t, omp_depend_t): New typedefs.
2707 (enum omp_lock_hint_t): Renamed to ...
2708 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2709 enumerators using numbers and omp_lock_hint_* as their aliases.
2710 (omp_lock_hint_t): New typedef. Rename to ...
2711 (omp_sync_hint_t): ... this.
2712 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2713 omp_sync_hint_t instead of omp_lock_hint_t.
2714 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2715 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2717 (omp_target_is_present, omp_target_disassociate_ptr):
2718 Change first argument from void * to const void *.
2719 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2720 from void * to const void *.
2721 (omp_target_associate_ptr): Change first and second arguments from
2722 void * to const void *.
2723 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2724 omp_pause_hard): New parameters.
2725 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2726 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2728 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2729 omp_pause_hard): New parameters.
2730 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2731 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2733 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2734 EXTRA argument. If not needed to prepare array, if extra is 0,
2735 clear ws->doacross, otherwise allocate just doacross structure and
2736 extra payload. If array is needed, allocate also extra payload.
2737 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2738 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2740 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2742 (GOMP_parallel): Likewise. Formatting fix.
2743 (GOMP_parallel_reductions): New function.
2744 (GOMP_cancellation_point): If taskgroup has workshare
2745 flag set, check cancelled of prev taskgroup if any.
2746 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2747 on prev taskgroup if any.
2748 * sections.c: Include string.h.
2749 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2750 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2751 (GOMP_sections2_start): New function.
2752 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2753 Pass NULL as taskgroup to gomp_team_start.
2754 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2755 gomp_work_share_start callers.
2756 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2757 If taskgroup has workshare flag set, check cancelled on prev
2758 taskgroup if any. Guard all cancellation tests with
2759 gomp_cancel_var test.
2760 (omp_target_is_present, omp_target_disassociate_ptr):
2761 Change ptr argument from void * to const void *.
2762 (omp_target_memcpy): Change src argument from void * to const void *.
2763 (omp_target_memcpy_rect): Likewise.
2764 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2765 instead of char * where needed.
2766 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2767 from void * to const void *.
2768 (omp_pause_resource, omp_pause_resource_all): New functions.
2769 * task.c (gomp_task_handle_depend): Handle new depend array format
2770 in addition to the old. Handle mutexinoutset kinds the same as
2771 inout for now, handle unspecified kinds.
2772 (gomp_create_target_task): If taskgroup has workshare flag set, check
2773 cancelled on prev taskgroup if any. Guard all cancellation tests with
2774 gomp_cancel_var test. Handle new depend array format count in
2775 addition to the old.
2776 (GOMP_task): Likewise. Adjust function comment.
2777 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2778 cancelled on prev taskgroup if any. Guard all cancellation tests with
2779 gomp_cancel_var test.
2780 (GOMP_taskwait_depend): New function.
2781 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2782 format in addition to the old. Handle mutexinoutset kinds the same as
2783 inout for now, handle unspecified kinds. Fix a function comment typo.
2784 (gomp_taskgroup_init): New function.
2785 (GOMP_taskgroup_start): Use it.
2786 (gomp_reduction_register, gomp_create_artificial_team,
2787 GOMP_taskgroup_reduction_register,
2788 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2789 gomp_parallel_reduction_register,
2790 gomp_workshare_task_reduction_register,
2791 gomp_workshare_taskgroup_start,
2792 GOMP_workshare_task_reduction_unregister): New functions.
2793 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2794 check cancelled on prev taskgroup if any. Guard all cancellation
2795 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2796 by calling GOMP_taskgroup_reduction_register.
2797 * team.c (gomp_thread_attr): Remove comment.
2798 (struct gomp_thread_start_data): Add handle field.
2799 (gomp_thread_start): Call pthread_detach.
2800 (gomp_new_team): Adjust gomp_init_work_share caller.
2801 (gomp_free_pool_helper): Call pthread_detach.
2802 (gomp_team_start): Add taskgroup argument, initialize implicit
2803 tasks' taskgroup field to that. Don't call
2804 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2805 (gomp_team_end): Determine nesting by thr->ts.level != 0
2806 rather than thr->ts.team != NULL.
2807 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2808 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2809 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2810 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2811 if more than 1 allocate also extra payload at the end of array. Never
2812 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2813 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2814 return true instead of ws.
2815 * Makefile.in: Regenerated.
2816 * configure: Regenerated.
2817 * config.h.in: Regenerated.
2818 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2820 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2821 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2822 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2823 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2824 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2825 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2826 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2827 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2828 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2829 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2830 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2831 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2832 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2833 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2834 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2835 define a different N(test), don't define N(f0) to N(f14), but instead
2836 define N(f20) to N(f34) using != comparisons.
2837 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2838 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2839 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2840 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2841 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2842 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2843 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2844 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2845 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2846 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2847 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2848 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2849 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2850 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2851 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2852 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2853 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2854 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2855 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2856 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2857 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2858 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2859 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2860 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2861 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2862 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2863 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2864 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2865 * testsuite/libgomp.c++/depend-1.C: New test.
2866 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2867 * testsuite/libgomp.c++/depobj-1.C: New test.
2868 * testsuite/libgomp.c++/for-16.C: New test.
2869 * testsuite/libgomp.c++/for-21.C: New test.
2870 * testsuite/libgomp.c++/for-22.C: New test.
2871 * testsuite/libgomp.c++/for-23.C: New test.
2872 * testsuite/libgomp.c++/for-24.C: New test.
2873 * testsuite/libgomp.c++/for-25.C: New test.
2874 * testsuite/libgomp.c++/for-26.C: New test.
2875 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2876 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2877 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2878 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2879 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2880 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2881 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2882 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2883 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2884 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2885 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2886 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2887 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2888 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2889 * testsuite/libgomp.c/task-reduction-1.c: New test.
2890 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2891 * testsuite/libgomp.c/task-reduction-2.c: New test.
2892 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2893 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2894 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2895 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2896 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2897 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2898 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2899 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2900 * testsuite/libgomp.c/teams-1.c: New test.
2901 * testsuite/libgomp.c/teams-2.c: New test.
2902 * testsuite/libgomp.c/thread-limit-4.c: New test.
2903 * testsuite/libgomp.c/thread-limit-5.c: New test.
2904 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2906 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2908 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2909 acc_memcpy_to/from_device functions, now with async parameter.
2910 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2911 (acc_memcpy_from_device): Likewise.
2912 (acc_memcpy_to_device_async): New API function.
2913 (acc_memcpy_from_device_async): Likewise.
2914 (present_create_copy): Add async parameter and async setting/unsetting.
2915 (acc_create): Adjust present_create_copy call.
2916 (acc_copyin): Likewise.
2917 (acc_present_or_create): Likewise.
2918 (acc_present_or_copyin): Likewise.
2919 (acc_create_async): New API function.
2920 (acc_copyin_async): New API function.
2921 (delete_copyout): Add async parameter and async setting/unsetting.
2922 (acc_delete): Adjust delete_copyout call.
2923 (acc_copyout): Likewise.
2924 (acc_delete_async): New API function.
2925 (acc_copyout_async): Likewise.
2926 (update_dev_host): Add async parameter and async setting/unsetting.
2927 (acc_update_device): Adjust update_dev_host call.
2928 (acc_update_self): Likewise.
2929 (acc_update_device_async): New API function.
2930 (acc_update_self_async): Likewise.
2931 * openacc.h (acc_copyin_async): Declare new API function.
2932 (acc_create_async): Likewise.
2933 (acc_copyout_async): Likewise.
2934 (acc_delete_async): Likewise.
2935 (acc_update_device_async): Likewise.
2936 (acc_update_self_async): Likewise.
2937 (acc_memcpy_to_device_async): Likewise.
2938 (acc_memcpy_from_device_async): Likewise.
2939 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2940 (acc_copyin_async_64_h): New subroutine.
2941 (acc_copyin_async_array_h): New subroutine.
2942 (acc_create_async_32_h): New subroutine.
2943 (acc_create_async_64_h): New subroutine.
2944 (acc_create_async_array_h): New subroutine.
2945 (acc_copyout_async_32_h): New subroutine.
2946 (acc_copyout_async_64_h): New subroutine.
2947 (acc_copyout_async_array_h): New subroutine.
2948 (acc_delete_async_32_h): New subroutine.
2949 (acc_delete_async_64_h): New subroutine.
2950 (acc_delete_async_array_h): New subroutine.
2951 (acc_update_device_async_32_h): New subroutine.
2952 (acc_update_device_async_64_h): New subroutine.
2953 (acc_update_device_async_array_h): New subroutine.
2954 (acc_update_self_async_32_h): New subroutine.
2955 (acc_update_self_async_64_h): New subroutine.
2956 (acc_update_self_async_array_h): New subroutine.
2957 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2958 (acc_copyin_async_64_h): New subroutine.
2959 (acc_copyin_async_array_h): New subroutine.
2960 (acc_create_async_32_h): New subroutine.
2961 (acc_create_async_64_h): New subroutine.
2962 (acc_create_async_array_h): New subroutine.
2963 (acc_copyout_async_32_h): New subroutine.
2964 (acc_copyout_async_64_h): New subroutine.
2965 (acc_copyout_async_array_h): New subroutine.
2966 (acc_delete_async_32_h): New subroutine.
2967 (acc_delete_async_64_h): New subroutine.
2968 (acc_delete_async_array_h): New subroutine.
2969 (acc_update_device_async_32_h): New subroutine.
2970 (acc_update_device_async_64_h): New subroutine.
2971 (acc_update_device_async_array_h): New subroutine.
2972 (acc_update_self_async_32_h): New subroutine.
2973 (acc_update_self_async_64_h): New subroutine.
2974 (acc_update_self_async_array_h): New subroutine.
2975 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2976 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2977 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2978 acc_memcpy_to_device_async*, acc_update_device_async*, and
2979 acc_update_self_async* entries.
2980 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2981 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2982 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2984 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2987 * Makefile.am: Include multilib.am
2988 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2989 (CLEANFILES): Remove libgomp.info.
2990 * configure.ac: Remove AC_PREREQ.
2991 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2992 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2995 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2996 Julian Brown <julian@codesourcery.com>
2998 * testsuite/libgomp.oacc-c++/this.C: New.
3000 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3002 * plugin/plugin-nvptx.c (struct cuda_map): New.
3003 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3004 h_tail with (cuda_map *) map.
3005 (cuda_map_create): New function.
3006 (cuda_map_destroy): New function.
3007 (map_init): Update to use a linked list of cuda_map objects.
3008 (map_fini): Likewise.
3009 (map_pop): Likewise.
3010 (map_push): Likewise. Return CUdeviceptr instead of void.
3011 (init_streams_for_device): Remove stales references to ptx_stream
3013 (select_stream_for_async): Likewise.
3014 (nvptx_exec): Update call to map_init.
3016 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3017 Julian Brown <julian@codesourcery.com>
3020 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3022 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3023 Thomas Koenig <tkoenig@gcc.gnu.org>
3026 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3027 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3028 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3029 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3030 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3031 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3032 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3034 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3035 Tom de Vries <tdevries@suse.de>
3038 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3039 (cuOccupancyMaxPotentialBlockSize): Declare.
3040 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3041 CUDA_ONE_CALL_MAYBE_NULL.
3042 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3043 CUoccupancyB2DSize and declare
3044 cuOccupancyMaxPotentialBlockSize.
3045 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3046 default num_gangs and num_workers when the driver supports it.
3048 2018-08-08 Tom de Vries <tdevries@suse.de>
3050 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3051 CUDA_ONE_CALL_MAYBE_NULL.
3052 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3053 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3054 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3057 2018-08-08 Tom de Vries <tdevries@suse.de>
3059 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3060 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3063 2018-08-08 Tom de Vries <tdevries@suse.de>
3065 * plugin/plugin-nvptx.c
3066 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3067 (nvptx_open_device): Use
3068 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3070 2018-08-08 Tom de Vries <tdevries@suse.de>
3072 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3073 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3075 2018-08-07 Tom de Vries <tdevries@suse.de>
3077 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3078 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3079 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3080 corresponding call in CUDA_ONE_CALL. Add def/undef of
3081 CUDA_ONE_CALL_MAYBE_NULL.
3082 (CUDA_CALL_EXISTS): Define.
3084 2018-08-07 Tom de Vries <tdevries@suse.de>
3086 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3087 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3088 corresponding undefs right after.
3090 2018-08-04 Tom de Vries <tdevries@suse.de>
3092 * plugin/configfrag.ac: For --without-cuda-driver, set
3093 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3094 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3095 * configure: Regenerate.
3097 2018-08-02 Tom de Vries <tdevries@suse.de>
3100 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3101 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3102 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3104 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3105 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3106 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3108 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3109 Thomas Schwinge <thomas@codesourcery.com>
3111 * config/nvptx/oacc-parallel.c: Truncate.
3113 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3114 James Norris <jnorris@codesourcery.com>
3116 * plugin/plugin-nvptx.c (struct map): Removed.
3117 (map_init, map_pop): Remove use of struct map.
3118 (map_push): Likewise and change argument list.
3119 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3121 2018-08-01 Tom de Vries <tdevries@suse.de>
3123 * plugin/cuda-lib.def: New file. Factor out of ...
3124 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3125 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3128 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3130 Revert 'AsyncI/O patch committed'.
3131 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3132 Thomas Koenig <tkoenig@gcc.gnu.org>
3135 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3136 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3137 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3138 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3139 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3140 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3141 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3143 2018-07-30 Tom de Vries <tdevries@suse.de>
3145 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3146 (nvptx_exec): Ensure worker and vector default dims don't exceed
3147 targ_fn->max_threads_per_block.
3149 2018-07-30 Tom de Vries <tdevries@suse.de>
3151 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3152 (nvptx_open_device): Init default_dims for device.
3153 (nvptx_exec): Use default_dims from device.
3155 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3158 * testsuite/libgomp.c++/for-15.C (results): Include it in
3159 omp declare target region.
3160 (main): Use map (always, tofrom: results) instead of
3161 map (tofrom: results).
3164 * testsuite/libgomp.c/pr86660.c: New test.
3166 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3167 Tom de Vries <tdevries@suse.de>
3169 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3170 sufficient resources to launch a kernel, and give a hint on how to fix
3173 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3174 Tom de Vries <tdevries@suse.de>
3176 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3177 max_threads_per_block and max_threads_per_multiprocessor fields.
3178 (nvptx_open_device): Initialize new fields.
3179 (nvptx_exec): Use num_sms, and new fields.
3181 2018-07-26 Tom de Vries <tdevries@suse.de>
3183 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3184 to correct locations. Remove xfail.
3186 2018-07-26 Tom de Vries <tdevries@suse.de>
3188 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3189 acc_wait. Move acc_async_test calls to correct locations. Remove
3192 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3193 Thomas Koenig <tkoenig@gcc.gnu.org>
3196 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3197 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3198 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3199 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3200 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3201 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3202 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3204 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3207 * testsuite/libgomp.c++/pr86542.C: New test.
3210 * testsuite/libgomp.c++/pr86539.C: New test.
3212 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3215 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3216 (results): Make sure the variable is not inside declare target region.
3217 (qux): Remove unused function.
3219 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3222 * testsuite/libgomp.c++/for-15.C: New test.
3224 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3227 * testsuite/libgomp.c++/pr86291.C: New test.
3229 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3231 * libgomp.texi (Top): Move www.openmp.org to https.
3232 (Enabling OpenMP): Ditto.
3233 (omp_get_active_level): Ditto.
3234 (omp_get_ancestor_thread_num): Ditto.
3235 (omp_get_cancellation): Ditto.
3236 (omp_get_default_device): Ditto.
3237 (omp_get_dynamic): Ditto.
3238 (omp_get_level): Ditto.
3239 (omp_get_max_active_levels): Ditto.
3240 (omp_get_max_task_priority): Ditto.
3241 (omp_get_max_threads): Ditto.
3242 (omp_get_nested): Ditto.
3243 (omp_get_num_devices): Ditto.
3244 (omp_get_num_procs): Ditto.
3245 (omp_get_num_teams): Ditto.
3246 (omp_get_num_threads): Ditto.
3247 (omp_get_proc_bind): Ditto.
3248 (omp_get_schedule): Ditto.
3249 (omp_get_team_num): Ditto.
3250 (omp_get_team_size): Ditto.
3251 (omp_get_thread_limit): Ditto.
3252 (omp_get_thread_num): Ditto.
3253 (omp_in_parallel): Ditto.
3254 (omp_in_final): Ditto.
3255 (omp_is_initial_device): Ditto.
3256 (omp_set_default_device): Ditto.
3257 (omp_set_dynamic): Ditto.
3258 (omp_set_max_active_levels): Ditto.
3259 (omp_set_nested): Ditto.
3260 (omp_set_num_threads): Ditto.
3261 (omp_set_schedule): Ditto.
3262 (omp_init_lock): Ditto.
3263 (omp_set_lock): Ditto.
3264 (omp_test_lock): Ditto.
3265 (omp_unset_lock): Ditto.
3266 (omp_destroy_lock): Ditto.
3267 (omp_init_nest_lock): Ditto.
3268 (omp_set_nest_lock): Ditto.
3269 (omp_test_nest_lock): Ditto.
3270 (omp_unset_nest_lock): Ditto.
3271 (omp_destroy_nest_lock): Ditto.
3272 (omp_get_wtick): Ditto.
3273 (omp_get_wtime): Ditto.
3274 (OMP_CANCELLATION): Ditto.
3275 (OMP_DISPLAY_ENV): Ditto.
3276 (OMP_DEFAULT_DEVICE): Ditto.
3277 (OMP_DYNAMIC): Ditto.
3278 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3279 (OMP_MAX_TASK_PRIORITY): Ditto.
3280 (OMP_NESTED): Ditto.
3281 (OMP_NUM_THREADS): Ditto.
3282 (OMP_PROC_BIND): Ditto.
3283 (OMP_PLACES): Ditto.
3284 (OMP_STACKSIZE): Ditto.
3285 (OMP_SCHEDULE): Ditto.
3286 (OMP_THREAD_LIMIT): Ditto.
3287 (OMP_WAIT_POLICY): Ditto.
3289 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3290 James Norris <jnorris@codesourcery.com>
3291 Julian Brown <julian@codesourcery.com>
3292 Thomas Schwinge <thomas@codesourcery.com>
3293 Tom de Vries <tom@codesourcery.com>
3295 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3296 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3297 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3298 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3299 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3300 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3301 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3302 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3303 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3304 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3306 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3308 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3310 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3314 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3316 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3318 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3320 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3322 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3324 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3326 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3328 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3330 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3332 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3334 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3336 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3356 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3358 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3359 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3360 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3361 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3362 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3363 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3364 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3365 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3366 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3368 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3370 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3371 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3372 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3374 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3375 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3376 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3378 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3380 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3382 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3384 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3386 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3388 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3390 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3392 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3404 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3406 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3407 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3408 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3409 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3410 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3411 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3412 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3414 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3415 Thomas Schwinge <thomas@codesourcery.com>
3416 Cesar Philippidis <cesar@codesourcery.com>
3418 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3419 (gomp_acc_remove_pointer): Update declaration.
3420 (gomp_acc_declare_allocate): Declare.
3421 (gomp_remove_var): Declare.
3422 * libgomp.map (OACC_2.5): Define.
3423 * oacc-mem.c (acc_map_data): Update refcount.
3424 (acc_unmap_data): Likewise.
3425 (present_create_copy): Likewise.
3426 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3427 (acc_copyin): Likewise.
3428 (FLAG_FINALIZE): Define.
3429 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3430 (acc_delete_finalize): New function.
3431 (acc_delete_finalize_async): New function.
3432 (acc_copyout_finalize): New function.
3433 (acc_copyout_finalize_async): New function.
3434 (gomp_acc_insert_pointer): Update refcounts.
3435 (gomp_acc_remove_pointer): Return if data is not present on the
3437 * oacc-parallel.c (find_pset): Rename to find_pointer.
3438 (find_pointer): Add support for GOMP_MAP_POINTER.
3439 (handle_ftn_pointers): New function.
3440 (GOACC_parallel_keyed): Update refcounts of variables.
3441 (GOACC_enter_exit_data): Add support for finalized data mappings.
3442 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3444 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3445 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3446 for GOMP_MAP_FORCE_FROM.
3447 * openacc.f90 (module openacc_internal): Add
3448 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3449 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3450 acc_copyout_finalize and acc_delete_finalize.
3451 (acc_copyout_finalize_32_h): New subroutine.
3452 (acc_copyout_finalize_64_h): New subroutine.
3453 (acc_copyout_finalize_array_h): New subroutine.
3454 (acc_delete_finalize_32_h): New subroutine.
3455 (acc_delete_finalize_64_h): New subroutine.
3456 (acc_delete_finalize_array_h): New subroutine.
3457 * openacc.h (acc_copyout_finalize): Declare.
3458 (acc_copyout_finalize_async): Declare.
3459 (acc_delete_finalize): Declare.
3460 (acc_delete_finalize_async): Declare.
3461 * openacc_lib.h (acc_copyout_finalize): New interface.
3462 (acc_delete_finalize): New interface.
3463 * target.c (gomp_map_vars): Update dynamic_refcount.
3464 (gomp_remove_var): New function.
3465 (gomp_unmap_vars): Use it.
3466 (gomp_unload_image_from_device): Likewise.
3467 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3468 case to utilize OpenACC 2.5 data clause semantics.
3469 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3470 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3471 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3472 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3473 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3474 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3475 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3476 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3477 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3478 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3479 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3480 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3481 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3482 utilize OpenACC 2.5 data clause semantics.
3483 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3484 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3485 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3486 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3487 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3488 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3489 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3490 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3491 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3493 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3497 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3498 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3499 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3500 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3501 * testsuite/libgomp.fortran/task2.f90: Ditto.
3502 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3503 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3504 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3505 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3506 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3507 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3508 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3509 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3510 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3512 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3515 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3517 2018-05-09 Tom de Vries <tom@codesourcery.com>
3520 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3521 to GOACC_enter_exit_data.
3523 2018-05-09 Tom de Vries <tom@codesourcery.com>
3526 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3527 (async_synchronous_p): New function.
3528 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3530 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3531 async_valid_stream_id_p.
3532 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3533 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3535 2018-05-07 Tom de Vries <tom@codesourcery.com>
3538 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3539 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3541 2018-05-03 Tom de Vries <tom@codesourcery.com>
3544 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3545 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3546 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3547 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3549 2018-05-02 Tom de Vries <tom@codesourcery.com>
3552 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3553 GOMP_OPENACC_DIM ...
3554 * env.c (parse_gomp_openacc_dim): ... here. New function.
3555 (initialize_env): Call parse_gomp_openacc_dim.
3556 (goacc_default_dims): Define.
3557 * libgomp.h (goacc_default_dims): Declare.
3558 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3559 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3560 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3561 GOMP_PLUGIN_acc_default_dim.
3562 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3563 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3565 2018-05-02 Tom de Vries <tom@codesourcery.com>
3568 * testsuite/libgomp.c++/udr-9.C: Update.
3569 * testsuite/libgomp.c++/atomic-16.C: Remove.
3570 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3571 * testsuite/libgomp.c++/loop-13.C: Remove.
3572 * testsuite/libgomp.c++/loop-14.C: Remove.
3573 * testsuite/libgomp.c++/loop-15.C: Remove.
3574 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3575 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3576 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3577 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3578 * testsuite/libgomp.c++/ordered-1.C: Remove.
3579 * testsuite/libgomp.c++/pr45784.C: Remove.
3580 * testsuite/libgomp.c++/pr64824.C: Remove.
3581 * testsuite/libgomp.c++/pr64868.C: Remove.
3582 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3583 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3584 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3585 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3586 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3587 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3588 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3589 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3590 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3591 * testsuite/libgomp.c++/pr69389.C: Remove.
3592 * testsuite/libgomp.c++/simd10.C: Remove.
3593 * testsuite/libgomp.c++/simd11.C: Remove.
3594 * testsuite/libgomp.c++/simd12.C: Remove.
3595 * testsuite/libgomp.c++/simd13.C: Remove.
3596 * testsuite/libgomp.c++/target-1.C: Remove.
3597 * testsuite/libgomp.c++/target-3.C: Remove.
3598 * testsuite/libgomp.c++/target-4.C: Remove.
3599 * testsuite/libgomp.c++/target-5.C: Remove.
3600 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3601 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3602 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3603 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3604 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3605 * testsuite/libgomp.c++/udr-9.C: Remove.
3606 * testsuite/libgomp.c++/for-10.C: Remove.
3607 * testsuite/libgomp.c++/for-11.C: Remove.
3608 * testsuite/libgomp.c++/for-12.C: Remove.
3609 * testsuite/libgomp.c++/for-13.C: Remove.
3610 * testsuite/libgomp.c++/for-14.C: Remove.
3611 * testsuite/libgomp.c++/for-9.C: Remove.
3612 * testsuite/libgomp.c/atomic-18.c: Move ...
3613 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3614 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3615 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3616 * testsuite/libgomp.c/loop-13.c: Move ...
3617 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3618 * testsuite/libgomp.c/loop-14.c: Move ...
3619 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3620 * testsuite/libgomp.c/loop-15.c: Remove.
3621 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3622 * testsuite/libgomp.c/monotonic-1.c: Move ...
3623 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3624 * testsuite/libgomp.c/monotonic-2.c: Move ...
3625 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3626 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3627 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3628 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3629 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3630 * testsuite/libgomp.c/ordered-4.c: Move ...
3631 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3632 * testsuite/libgomp.c/pr45784.c: Move ...
3633 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3634 * testsuite/libgomp.c/pr64824.c: Move ...
3635 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3636 * testsuite/libgomp.c/pr64868.c: Move ...
3637 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3638 * testsuite/libgomp.c/pr66199-1.c: Move ...
3639 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3640 * testsuite/libgomp.c/pr66199-2.c: Move ...
3641 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3642 * testsuite/libgomp.c/pr66199-3.c: Move ...
3643 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3644 * testsuite/libgomp.c/pr66199-4.c: Move ...
3645 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3646 * testsuite/libgomp.c/pr66199-5.c: Move ...
3647 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3648 * testsuite/libgomp.c/pr66199-6.c: Move ...
3649 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3650 * testsuite/libgomp.c/pr66199-7.c: Move ...
3651 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3652 * testsuite/libgomp.c/pr66199-8.c: Move ...
3653 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3654 * testsuite/libgomp.c/pr66199-9.c: Move ...
3655 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3656 * testsuite/libgomp.c/pr69389.c: Move ...
3657 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3658 * testsuite/libgomp.c/simd-14.c: Move ...
3659 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3660 * testsuite/libgomp.c/simd-15.c: Move ...
3661 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3662 * testsuite/libgomp.c/simd-16.c: Move ...
3663 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3664 * testsuite/libgomp.c/simd-17.c: Move ...
3665 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3666 * testsuite/libgomp.c/target-1.c: Move ...
3667 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3668 * testsuite/libgomp.c/target-10.c: Move ...
3669 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3670 * testsuite/libgomp.c/target-13.c: Move ...
3671 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3672 * testsuite/libgomp.c/target-2.c: Move ...
3673 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3674 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3675 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3676 * testsuite/libgomp.c/taskloop-1.c: Move ...
3677 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3678 * testsuite/libgomp.c/taskloop-2.c: Move ...
3679 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3680 * testsuite/libgomp.c/taskloop-3.c: Move ...
3681 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3682 * testsuite/libgomp.c/taskloop-4.c: Move ...
3683 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3684 * testsuite/libgomp.c/udr-1.c: Move ...
3685 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3686 * testsuite/libgomp.c/for-1.c: Move ...
3687 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3688 * testsuite/libgomp.c/for-1.h: Move ...
3689 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3690 * testsuite/libgomp.c/for-2.c: Move ...
3691 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3692 * testsuite/libgomp.c/for-2.h: Move ...
3693 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3694 * testsuite/libgomp.c/for-3.c: Move ...
3695 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3696 * testsuite/libgomp.c/for-4.c: Move ...
3697 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3698 * testsuite/libgomp.c/for-5.c: Move ...
3699 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3700 * testsuite/libgomp.c/for-6.c: Move ...
3701 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3703 2018-05-02 Tom de Vries <tom@codesourcery.com>
3706 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3707 __builtin_goacc_parlevel_{id,size}.
3708 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3709 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3710 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3711 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3712 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3713 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3714 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3715 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3716 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3717 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3718 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3719 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3720 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3721 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3722 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3723 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3724 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3725 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3726 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3727 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3728 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3729 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3730 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3732 2018-05-02 Tom de Vries <tom@codesourcery.com>
3735 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3737 2018-05-02 Tom de Vries <tom@codesourcery.com>
3740 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3742 2018-04-29 Julian Brown <julian@codesourcery.com>
3743 Tom de Vries <tom@codesourcery.com>
3746 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3747 arbitrary order for iterations of atomic subtract check.
3749 2018-04-28 Tom de Vries <tom@codesourcery.com>
3752 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3753 atomic capture results obtained in parallel loop to an array, instead of
3756 2018-04-26 Tom de Vries <tom@codesourcery.com>
3759 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3760 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3761 (process_GOMP_NVPTX_JIT): New function.
3762 (link_ptx): Use process_GOMP_NVPTX_JIT.
3764 2018-04-26 Richard Biener <rguenther@suse.de>
3765 Tom de Vries <tom@codesourcery.com>
3768 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3770 2018-04-26 Tom de Vries <tom@codesourcery.com>
3773 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3774 recursion depth from 25 to 23.
3775 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3777 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3779 * configure: Regenerated.
3781 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3782 Tom de Vries <tom@codesourcery.com>
3785 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3787 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3790 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3791 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3792 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3793 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3794 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3795 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3798 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3800 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3802 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3804 * configure: Regenerated.
3806 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3809 * configure: Regenerate.
3811 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3812 Tom de Vries <tom@codesourcery.com>
3815 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3816 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3818 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3822 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3823 test from gfortran.dg to here.
3825 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3827 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3828 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3830 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3833 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3834 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3836 2018-04-05 Tom de Vries <tom@codesourcery.com>
3839 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3841 2018-03-26 Tom de Vries <tom@codesourcery.com>
3843 PR tree-optimization/85063
3844 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3845 * testsuite/libgomp.c/switch-conversion.c: New test.
3846 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3847 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3849 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3852 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3853 call abort by STOP n.
3854 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3855 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3856 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3857 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3858 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3859 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3860 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3861 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3862 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3863 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3864 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3865 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3866 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3867 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3868 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3869 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3870 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3871 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3872 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3873 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3874 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3875 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3876 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3877 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3878 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3879 * testsuite/libgomp.fortran/character1.f90: Likewise.
3880 * testsuite/libgomp.fortran/character2.f90: Likewise.
3881 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3882 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3883 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3884 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3885 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3886 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3887 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3888 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3889 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3890 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3891 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3892 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3893 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3894 * testsuite/libgomp.fortran/do1.f90: Likewise.
3895 * testsuite/libgomp.fortran/do2.f90: Likewise.
3896 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3897 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3898 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3899 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3900 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3901 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3902 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3903 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3904 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3905 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3906 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3907 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3908 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3909 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3910 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3911 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3912 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3913 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3914 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3915 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3916 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3917 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3918 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3919 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3920 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3921 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3922 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3923 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3924 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3925 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3926 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3927 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3928 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3929 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3930 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3931 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3932 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3933 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3934 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3935 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3936 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3937 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3938 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3939 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3940 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3941 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3942 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3943 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3944 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3945 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3946 * testsuite/libgomp.fortran/lib2.f: Likewise.
3947 * testsuite/libgomp.fortran/lib3.f: Likewise.
3948 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3949 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3950 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3951 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3952 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3953 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3954 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3955 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3956 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3957 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3958 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3959 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3960 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3961 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3962 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3963 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3964 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3965 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3966 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3967 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3968 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3969 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3970 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3971 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3972 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3973 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3974 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3975 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3976 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3977 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3978 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3979 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3980 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3981 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3982 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3983 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3984 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3985 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3986 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3987 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3988 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3989 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3990 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3991 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3992 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3993 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3994 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3995 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3996 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3997 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3998 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3999 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4000 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4001 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4002 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4003 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4004 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4005 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4006 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4007 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4008 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4009 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4010 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4011 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4012 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4013 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4014 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4015 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4016 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4017 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4018 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4019 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4020 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4021 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4022 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4023 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4024 * testsuite/libgomp.fortran/stack.f90: Likewise.
4025 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4026 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4027 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4028 * testsuite/libgomp.fortran/target1.f90: Likewise.
4029 * testsuite/libgomp.fortran/target2.f90: Likewise.
4030 * testsuite/libgomp.fortran/target3.f90: Likewise.
4031 * testsuite/libgomp.fortran/target4.f90: Likewise.
4032 * testsuite/libgomp.fortran/target5.f90: Likewise.
4033 * testsuite/libgomp.fortran/target6.f90: Likewise.
4034 * testsuite/libgomp.fortran/target7.f90: Likewise.
4035 * testsuite/libgomp.fortran/target8.f90: Likewise.
4036 * testsuite/libgomp.fortran/task1.f90: Likewise.
4037 * testsuite/libgomp.fortran/task2.f90: Likewise.
4038 * testsuite/libgomp.fortran/task3.f90: Likewise.
4039 * testsuite/libgomp.fortran/task4.f90: Likewise.
4040 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4041 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4042 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4043 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4044 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4045 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4046 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4047 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4048 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4049 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4050 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4051 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4052 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4053 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4054 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4055 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4056 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4057 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4058 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4059 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4060 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4061 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4062 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4063 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4064 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4065 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4066 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4067 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4068 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4069 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4070 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4071 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4072 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4073 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4074 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4075 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4076 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4077 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4078 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4079 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4080 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4081 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4082 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4083 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4084 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4085 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4086 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4087 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4088 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4089 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4090 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4091 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4092 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4093 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4094 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4095 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4096 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4097 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4098 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4099 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4100 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4101 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4102 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4103 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4104 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4105 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4106 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4107 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4108 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4109 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4110 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4111 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4112 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4113 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4114 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4115 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4116 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4117 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4118 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4119 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4120 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4121 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4122 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4123 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4124 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4125 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4126 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4127 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4128 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4129 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4130 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4131 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4132 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4133 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4134 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4135 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4136 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4137 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4138 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4139 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4140 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4141 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4142 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4143 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4144 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4145 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4146 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4147 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4148 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4149 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4150 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4151 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4152 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4153 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4154 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4155 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4156 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4157 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4158 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4159 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4160 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4161 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4162 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4163 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4164 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4165 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4167 2018-03-20 Richard Biener <rguenther@suse.de>
4169 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4170 parallelizable loop.
4172 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4175 * configure: Regenerate.
4177 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4180 * libgomp.fortran/pr84418-1.f90: New test.
4181 * libgomp.fortran/pr84418-2.f90: New test.
4183 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4186 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4187 -std=f2003 -fall-intrinsics into dg-additional-options.
4189 2018-02-08 Martin Jambor <mjambor@suse.cz>
4191 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4194 2018-02-08 Martin Jambor <mjambor@suse.cz>
4196 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4198 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4200 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4201 [__cplusplus]: Declare extern "C".
4203 2018-02-07 Tom de Vries <tom@codesourcery.com>
4206 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4208 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4209 Jakub Jelinek <jakub@redhat.com>
4212 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4213 instead of omp_lock_t.
4215 2018-01-25 Tom de Vries <tom@codesourcery.com>
4218 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4220 2018-01-24 Tom de Vries <tom@codesourcery.com>
4223 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4225 2018-01-24 Tom de Vries <tom@codesourcery.com>
4228 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4230 2018-01-19 Tom de Vries <tom@codesourcery.com>
4231 Cesar Philippidis <cesar@codesourcery.com>
4234 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4235 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4237 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4239 Update copyright years.
4241 * libgomp.texi: Bump @copying's copyright year.
4243 2017-12-30 Tom de Vries <tom@codesourcery.com>
4246 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4247 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4249 2017-12-27 Tom de Vries <tom@codesourcery.com>
4252 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4253 (test_nonstatic): Fix return type to workaround PR83046.
4255 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4258 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4259 j suffix instead of i.
4260 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4263 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4265 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4266 call to acc_wait (1).
4268 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4271 * testsuite/libgomp.fortran/pr81304.f90: New test.
4273 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4276 * libgomp.fortran/pr81841.f90: New test.
4278 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4281 * target.c (gomp_target_init): Compute lengths just once and
4282 use them in both malloc size and subsequent copying.
4284 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4286 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4287 * acinclude.m4: Add cet.m4.
4288 * configure: Regenerate.
4289 * Makefile.in: Likewise.
4290 * testsuite/Makefile.in: Likewise.
4292 2017-11-15 Tom de Vries <tom@codesourcery.com>
4294 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4295 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4296 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4297 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4298 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4299 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4301 2017-11-14 Tom de Vries <tom@codesourcery.com>
4303 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4306 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4309 * testsuite/libgomp.c++/pr82835.C: New test.
4311 2017-11-06 Martin Liska <mliska@suse.cz>
4313 * testsuite/libgomp.c++/loop-2.C: Return a value
4314 for functions with non-void return type, or change type to void,
4315 or add -Wno-return-type for test.
4316 * testsuite/libgomp.c++/loop-4.C: Likewise.
4317 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4318 * testsuite/libgomp.c++/shared-1.C: Likewise.
4319 * testsuite/libgomp.c++/single-1.C: Likewise.
4320 * testsuite/libgomp.c++/single-2.C: Likewise.
4322 2017-10-31 Tom de Vries <tom@codesourcery.com>
4324 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4325 "do {} while (false)".
4326 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4327 after HSA_DEBUG call.
4329 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4331 * target.c (struct gomp_coalesce_buf): New type.
4332 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4333 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4334 (gomp_copy_host2dev): Add CBUF argument, if copying into
4335 the cached ranges, memcpy into buffer instead of copying
4337 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4338 Add CBUF argument, pass it through to other calls.
4339 (gomp_map_vars): Aggregate copies from host to device if small enough
4340 and with small enough gaps in between into memcpy into a buffer and
4341 fewer host to device copies from the buffer.
4342 (gomp_update): Adjust gomp_copy_host2dev caller.
4344 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4346 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4348 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4349 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4350 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4351 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4353 2017-10-16 Tom de Vries <tom@codesourcery.com>
4355 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4356 openacc_nvidia_accel_selected.
4357 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4358 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4359 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4360 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4361 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4362 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4363 openacc_nvidia_accel_selected. Skip for shared memory device.
4364 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4365 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4367 2017-10-09 Martin Jambor <mjambor@suse.cz>
4370 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4372 2017-10-07 Tom de Vries <tom@codesourcery.com>
4374 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4375 Remove acc_device_nvidia references.
4376 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4379 2017-10-05 Tom de Vries <tom@codesourcery.com>
4381 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4382 vector_length(32) clause from acc parallel directive.
4383 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4385 2017-10-04 Tom de Vries <tom@codesourcery.com>
4387 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4388 (main): Reduce sum of arr elements. Assert that hres is exactly
4389 representable in 32-bit floating point.
4390 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4391 (main): Reduce sum of arr elements. Assert that hres and hmres are
4392 exactly representable in 32-bit floating point.
4393 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4395 2017-09-28 Tom de Vries <tom@codesourcery.com>
4397 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4399 * testsuite/libgomp.c++/pr69393.C: Same.
4400 * testsuite/libgomp.c++/taskloop-1.C: Same.
4401 * testsuite/libgomp.c++/taskloop-3.C: Same.
4402 * testsuite/libgomp.c++/taskloop-4.C: Same.
4403 * testsuite/libgomp.c/for-4.c: Same.
4404 * testsuite/libgomp.c/pr66199-3.c: Same.
4405 * testsuite/libgomp.c/pr66199-4.c: Same.
4406 * testsuite/libgomp.c/pr66199-6.c: Same.
4407 * testsuite/libgomp.c/taskloop-1.c: Same.
4408 * testsuite/libgomp.c/taskloop-3.c: Same.
4409 * testsuite/libgomp.c/taskloop-4.c: Same.
4410 * testsuite/libgomp.fortran/aligned1.f03: Same.
4411 * testsuite/libgomp.fortran/condinc1.f: Same.
4412 * testsuite/libgomp.fortran/condinc3.f90: Same.
4413 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4414 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4415 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4416 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4417 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4418 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4419 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4420 * testsuite/libgomp.fortran/recursion1.f90: Same.
4421 * testsuite/libgomp.fortran/target2.f90: Same.
4422 * testsuite/libgomp.fortran/target5.f90: Same.
4423 * testsuite/libgomp.fortran/task3.f90: Same.
4425 2017-09-28 Tom de Vries <tom@codesourcery.com>
4427 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4428 vector_length(32) clause from acc parallel directive.
4429 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4431 2017-09-27 Tom de Vries <tom@codesourcery.com>
4433 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4434 Remove acc_device_nvidia references.
4436 2017-09-16 Tom de Vries <tom@codesourcery.com>
4439 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4441 2017-09-14 Tom de Vries <tom@codesourcery.com>
4443 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4444 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4445 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4446 * testsuite/libgomp.c/c.exp: Include test-cases from
4447 libgomp.c-c++-common.
4448 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4451 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4454 * testsuite/libgomp.c++/pr81314.C: New test.
4456 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4458 * libgomp.texi (Top): www.openacc.org now uses https.
4459 (Enabling OpenACC): Ditto.
4460 (acc_get_num_devices): Ditto.
4461 (acc_set_device_type): Ditto.
4462 (acc_get_device_type): Ditto.
4463 (acc_set_device_num): Ditto.
4464 (acc_get_device_num): Ditto.
4465 (acc_async_test): Ditto.
4466 (acc_async_test_all): Ditto.
4468 (acc_wait_all): Ditto.
4469 (acc_wait_all_async): Ditto.
4470 (acc_wait_async): Ditto.
4472 (acc_shutdown): Ditto.
4473 (acc_on_device): Ditto.
4474 (acc_malloc): Ditto.
4476 (acc_copyin): Ditto.
4477 (acc_present_or_copyin): Ditto.
4478 (acc_create): Ditto.
4479 (acc_present_or_create): Ditto.
4480 (acc_copyout): Ditto.
4481 (acc_delete): Ditto.
4482 (acc_update_device): Ditto.
4483 (acc_update_self): Ditto.
4484 (acc_map_data): Ditto.
4485 (acc_unmap_data): Ditto.
4486 (acc_deviceptr): Ditto.
4487 (acc_hostptr): Ditto.
4488 (acc_is_present): Ditto.
4489 (acc_memcpy_to_device): Ditto.
4490 (acc_memcpy_from_device): Ditto.
4491 (acc_get_current_cuda_device): Ditto.
4492 (acc_get_current_cuda_context): Ditto.
4493 (acc_get_cuda_stream): Ditto.
4494 (acc_set_cuda_stream): Ditto.
4495 (ACC_DEVICE_TYPE): Ditto.
4496 (ACC_DEVICE_NUM): Ditto.
4497 (OpenACC Library Interoperability): Ditto.
4499 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4502 * testsuite/libgomp.c/pr81687-1.c: New test.
4503 * testsuite/libgomp.c/pr81687-2.c: New test.
4505 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4508 * testsuite/libgomp.c/pr69389.c: New test.
4509 * testsuite/libgomp.c++/pr69389.C: New test.
4511 2017-08-07 Tom de Vries <tom@codesourcery.com>
4514 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4515 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4517 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4520 * testsuite/libgomp.c/pr45784.c: New test.
4521 * testsuite/libgomp.c++/pr45784.C: New test.
4523 2017-07-19 Tom de Vries <tom@codesourcery.com>
4525 * testsuite/libgomp.oacc-c/vec.c: New test.
4527 2017-07-03 Tom de Vries <tom@codesourcery.com>
4529 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4531 2017-06-27 Tom de Vries <tom@codesourcery.com>
4533 * plugin/plugin-nvptx.c (notify_var): New function.
4534 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4536 2017-06-27 Tom de Vries <tom@codesourcery.com>
4538 * env.c (parse_unsigned_long_1): Factor out of ...
4539 (parse_unsigned_long): ... here.
4540 (parse_int_1): Factor out of ...
4541 (parse_int): ... here.
4542 (parse_int_secure): New function.
4543 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4544 * secure_getenv.h: Factor out of ...
4545 * plugin/plugin-hsa.c: ... here.
4546 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4548 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4551 * testsuite/libgomp.c++/pr81130.C: New test.
4553 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4555 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4557 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4558 dg-xfail-run-if default args.
4560 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4562 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4563 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4565 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4568 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4569 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4570 sibling lists, depending on level just pick up what CPUs to put
4571 together into a place vs. whether add multiple ordered places.
4573 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4575 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4576 * libgomp.map (OACC_2.0.1): Add these.
4577 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4578 for "acc_wait", and "acc_wait_all", respectively.
4579 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4580 for "acc_wait", and "acc_wait_all", respectively.
4581 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4582 * libgomp.texi (acc_wait, acc_wait_all): Update.
4583 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4584 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4585 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4587 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4588 acc_present_or_copyin and acc_present_or_create procedures,
4590 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4591 generally different variants of OpenACC Runtime Library functions.
4592 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4594 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4595 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4597 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4598 of preprocessor definitions.
4599 * libgomp.h (strong_alias): Guard by "#ifdef
4600 HAVE_ATTRIBUTE_ALIAS".
4601 * oacc-mem.c: Provide "acc_pcreate" as alias for
4602 "acc_present_or_create", and "acc_pcopyin" as alias for
4603 "acc_present_or_copyin".
4604 * libgomp.map: New version "OACC_2.0.1".
4605 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4606 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4608 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4611 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4612 when disabling nvptx offloading.
4614 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4616 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4617 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4618 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4620 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4621 * testsuite/lib/libgomp.exp
4622 (check_effective_target_openacc_nvidia_accel_configured): New
4624 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4625 (check_effective_target_c++): New procs.
4626 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4627 (check_effective_target_c++): Likewise.
4629 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4632 * testsuite/libgomp.c/pr80809-2.c: New test.
4633 * testsuite/libgomp.c/pr80809-3.c: New test.
4636 * testsuite/libgomp.c/pr80809-1.c: New test.
4639 * testsuite/libgomp.c/pr80853.c: New test.
4641 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4643 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4644 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4645 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4646 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4647 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4649 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4650 Debug output for failure.
4652 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4654 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4656 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4659 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4660 bootstrap compare failures.
4662 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4664 * testsuite/libgomp.c/target-36.c: New testcase.
4666 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4668 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4671 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4674 * testsuite/libgomp.c/pr80394.c: New test.
4676 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4679 * config/posix/thread-stacksize.h: New file.
4680 * config/darwin/thread-stacksize.h: New file.
4681 * config/nvptx/thread-stacksize.h: New file.
4682 * env.c: Include thread-stacksize.h.
4683 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4684 instead of 0. Call pthread_attr_setstacksize even if
4685 GOMP_DEFAULT_STACKSIZE is non-zero.
4687 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4689 * env.c (initialize_env): Initialize stacksize to 0.
4691 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4694 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4696 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4699 * testsuite/libgomp.c/pr79940.c: New test.
4701 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4703 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4705 Add __float128 options.
4707 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4709 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4710 hppa*-*-* dg-skip-if directive.
4712 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4714 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4715 dg-skip-if directive into a comment.
4717 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4718 Chung-Lin Tang <cltang@codesourcery.com>
4720 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4721 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4722 add additional case.
4723 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4724 "openacc_nvidia_accel_selected".
4725 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4726 Add num_workers(8) clause.
4728 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4730 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4732 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4733 include complex.h on hppa*-*-hpux*.
4734 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4736 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4738 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4740 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4741 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4742 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4743 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4744 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4745 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4746 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4747 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4748 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4749 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4751 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4753 * libgomp-plugin.h: #include <stdbool.h>.
4754 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4755 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4756 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4757 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4758 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4759 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4760 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4761 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4762 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4763 (GOMP_OFFLOAD_openacc_async_test)
4764 (GOMP_OFFLOAD_openacc_async_test_all)
4765 (GOMP_OFFLOAD_openacc_async_wait)
4766 (GOMP_OFFLOAD_openacc_async_wait_async)
4767 (GOMP_OFFLOAD_openacc_async_wait_all)
4768 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4769 (GOMP_OFFLOAD_openacc_async_set_async)
4770 (GOMP_OFFLOAD_openacc_create_thread_data)
4771 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4772 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4773 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4774 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4775 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4776 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4778 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4779 (GOMP_OFFLOAD_unload_image): Fix argument types.
4781 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4783 * testsuite/lib/libgomp.exp
4784 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4785 check_compile invocation. Fix up removal of executable. Drop
4786 bogus "2>&1" argument.
4788 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4791 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4792 Martin Jambor <mjambor@suse.cz>
4794 * plugin/hsa.h: Moved to top level include.
4795 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4797 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4800 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4801 of cat to get version from BASE-VER file.
4802 * testsuite/Makefile.in: Regenerated.
4804 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4806 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4809 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4811 * plugin/hsa.h: Add GCC runtime library exception.
4812 * plugin/hsa_ext_finalize.h: Likewise.
4814 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4815 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4816 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4817 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4818 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4819 library to link ptx plugin against.
4820 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4821 (CUDA_CALLS): Define.
4822 (cuda_lib, cuda_lib_inited): New variables.
4823 (init_cuda_lib): New function.
4824 (CUDA_CALL_PREFIX): Define.
4825 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4826 (CUDA_CALL): Use FN instead of (FN).
4827 (CUDA_CALL_NOCHECK): Define.
4828 (cuda_error, fini_streams_for_device, select_stream_for_async,
4829 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4830 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4831 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4832 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4834 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4836 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4837 Use CUDA_CALL_NOCHECK.
4838 * plugin/cuda/cuda.h: New file.
4839 * config.h.in: Regenerated.
4840 * configure: Regenerated.
4843 * configure.ac: Add GCC_BASE_VER.
4844 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4845 get version from BASE-VER file.
4846 * testsuite/Makefile.in: Regenerated.
4847 * configure: Regenerated.
4848 * Makefile.in: Regenerated.
4850 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4853 * Makefile.am: Make fincludedir multilib-aware.
4854 * Makefile.in: Regenerate.
4856 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4858 Update copyright years.
4860 * libgomp.texi: Bump @copying's copyright year.
4862 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4864 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4865 pthread_spinlock_t instead of gomp_mutex_t lock.
4866 (gomp_get_thread_pool): Likewise.
4867 (gomp_release_thread_pool): Likewise.
4868 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4871 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4873 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4874 thread pool in case nthreads == 1.
4876 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4878 * config/nvptx/env.c: Delete.
4879 * icv.c: Move definitions of ICV variables back ...
4880 * env.c: ...here. Do not compile environment-related functionality if
4881 LIBGOMP_OFFLOADED_ONLY is set.
4883 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4885 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4886 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4887 * configure: Regenerate.
4888 * config.h.in: Likewise.
4890 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4892 * Makefile.in: Regenerate with automake-1.11.6.
4893 * aclocal.m4: Likewise.
4894 * configure: Likewise.
4895 * testsuite/Makefile.in: Likewise.
4897 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4899 * config/nvptx/critical.c: Delete to use generic implementation.
4901 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4903 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4904 ../../affinity.c as fallback.
4905 * config/nvptx/affinity.c: Delete to use fallback implementation.
4907 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4908 Jakub Jelinek <jakub@redhat.com>
4909 Dmitry Melnik <dm@ispras.ru>
4911 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4912 * Makefile.in. Regenerate.
4913 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4914 (LIBGOMP_USE_PTHREADS): ...here; new define.
4915 * configure: Regenerate.
4916 * config.h.in: Likewise.
4917 * config/posix/affinity.c: Move to...
4918 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4919 interface by LIBGOMP_USE_PTHREADS.
4920 * critical.c: Split out GOMP_atomic_{start,end} into...
4921 * atomic.c: ...here (new file).
4922 * env.c: Split out ICV definitions into...
4923 * icv.c: ...here (new file) and...
4924 * icv-device.c: ...here. New file.
4925 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4926 (gomp_destroy_lock_30): Ditto.
4927 (gomp_set_lock_30): Ditto.
4928 (gomp_unset_lock_30): Ditto.
4929 (gomp_test_lock_30): Ditto.
4930 (gomp_init_nest_lock_30): Ditto.
4931 (gomp_destroy_nest_lock_30): Ditto.
4932 (gomp_set_nest_lock_30): Ditto.
4933 (gomp_unset_nest_lock_30): Ditto.
4934 (gomp_test_nest_lock_30): Ditto.
4936 * config/nvptx/lock.c: New.
4937 * config/nvptx/bar.c: New.
4938 * config/nvptx/bar.h: New.
4939 * config/nvptx/doacross.h: New.
4940 * config/nvptx/error.c: New.
4941 * config/nvptx/icv-device.c: New.
4942 * config/nvptx/mutex.h: New.
4943 * config/nvptx/pool.h: New.
4944 * config/nvptx/proc.c: New.
4945 * config/nvptx/ptrlock.h: New.
4946 * config/nvptx/sem.h: New.
4947 * config/nvptx/simple-bar.h: New.
4948 * config/nvptx/target.c: New.
4949 * config/nvptx/task.c: New.
4950 * config/nvptx/team.c: New.
4951 * config/nvptx/time.c: New.
4952 * config/posix/simple-bar.h: New.
4953 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4954 (gomp_num_teams_var): Declare.
4955 (struct gomp_thread_pool): Change threads_dock member to
4956 gomp_simple_barrier_t.
4957 [__nvptx__] (gomp_thread): New implementation.
4958 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4959 (gomp_thread_destructor): Ditto.
4960 (gomp_init_thread_affinity): Ditto.
4961 * team.c: Guard uses of Pthreads-specific interfaces by
4962 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4963 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4964 * config/nvptx/alloc.c: Delete.
4965 * config/nvptx/barrier.c: Ditto.
4966 * config/nvptx/fortran.c: Ditto.
4967 * config/nvptx/iter.c: Ditto.
4968 * config/nvptx/iter_ull.c: Ditto.
4969 * config/nvptx/loop.c: Ditto.
4970 * config/nvptx/loop_ull.c: Ditto.
4971 * config/nvptx/ordered.c: Ditto.
4972 * config/nvptx/parallel.c: Ditto.
4973 * config/nvptx/priority_queue.c: Ditto.
4974 * config/nvptx/sections.c: Ditto.
4975 * config/nvptx/single.c: Ditto.
4976 * config/nvptx/splay-tree.c: Ditto.
4977 * config/nvptx/work.c: Ditto.
4978 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4979 -foffload=-lgfortran in addition to -lgfortran.
4980 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4981 * plugin/plugin-nvptx.c: Include <limits.h>.
4982 (struct targ_fn_descriptor): Add new fields.
4983 (struct ptx_device): Ditto. Set them...
4984 (nvptx_open_device): ...here.
4985 (nvptx_adjust_launch_bounds): New.
4986 (nvptx_host2dev): Allow NULL 'nvthd'.
4987 (nvptx_dev2host): Ditto.
4988 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4989 (link_ptx): Adjust log sizes.
4990 (nvptx_host2dev): Allow NULL 'nvthd'.
4991 (nvptx_dev2host): Ditto.
4992 (nvptx_set_clocktick): New. Use it...
4993 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4995 (GOMP_OFFLOAD_dev2dev): New.
4996 (nvptx_adjust_launch_bounds): New.
4997 (nvptx_stacks_size): New.
4998 (nvptx_stacks_alloc): New.
4999 (nvptx_stacks_free): New.
5000 (GOMP_OFFLOAD_run): New.
5001 (GOMP_OFFLOAD_async_run): New (stub).
5003 2016-11-23 Martin Jambor <mjambor@suse.cz>
5005 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5006 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5007 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5009 2016-11-23 Martin Liska <mliska@suse.cz>
5010 Martin Jambor <mjambor@suse.cz>
5012 * plugin/hsa.h: New file.
5013 * plugin/hsa_ext_finalize.h: New file.
5014 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5015 header file unistd.h, and functions secure_getenv, __secure_getenv,
5016 getuid, geteuid, getgid and getegid.
5017 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5019 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5020 Handle various cases of secure_getenv presence, add an implementation
5021 when we can test effective UID and GID.
5022 (struct hsa_runtime_fn_info): New structure.
5023 (hsa_runtime_fn_info hsa_fns): New variable.
5024 (hsa_runtime_lib): Likewise.
5025 (support_cpu_devices): Likewise.
5026 (init_enviroment_variables): Load newly introduced ENV
5028 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5029 (hsa_fatal): Likewise.
5030 (DLSYM_FN): New macro.
5031 (init_hsa_runtime_functions): New function.
5032 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5033 structure. Depending on environment, also allow CPU devices.
5034 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5035 (get_kernarg_memory_region): Likewise.
5036 (GOMP_OFFLOAD_init_device): Likewise.
5037 (destroy_hsa_program): Likewise.
5038 (init_basic_kernel_info): New function.
5039 (GOMP_OFFLOAD_load_image): Use it.
5040 (create_and_finalize_hsa_program): Call hsa run-time functions via
5042 (create_single_kernel_dispatch): Likewise.
5043 (release_kernel_dispatch): Likewise.
5044 (init_single_kernel): Likewise.
5045 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5046 (get_group_size): New function.
5047 (run_kernel): Likewise.
5048 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5049 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5051 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5052 * testsuite/libgomp-test-support.exp.in: Likewise.
5053 * Makefile.in: Regenerated.
5054 * aclocal.m4: Likewise.
5055 * config.h.in: Likewise.
5056 * configure: Likewise.
5057 * testsuite/Makefile.in: Likewise.
5059 2016-11-15 Martin Jambor <mjambor@suse.cz>
5060 Alexander Monakov <amonakov@ispras.ru>
5062 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5063 mapping clauses to target constructs.
5064 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5066 2016-11-15 Matthias Klose <doko@ubuntu.com>
5068 * configure: Regenerate.
5070 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5072 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5073 * omp_lib.h.in (openmp_version): Likewise.
5074 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5076 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5078 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5079 (fib_wrapper): Add map(from: x) clause.
5080 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5082 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5083 (accum): Add map(tmp) clause.
5084 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5085 (accum): Add map(tofrom: tmp) clause.
5086 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5087 (gramSchmidt): Likewise.
5088 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5089 map(tofrom: sum) clause.
5090 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5091 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5092 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5093 only allowed on the loop iterator.
5094 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5095 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5096 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5097 * testsuite/libgomp.fortran/doacross1.f90: New test.
5098 * testsuite/libgomp.fortran/doacross3.f90: New test.
5099 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5100 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5101 * testsuite/libgomp.fortran/doacross2.f90: New test.
5102 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5103 #pragma omp atomic read.
5104 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5105 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5107 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5108 Nathan Sidwell <nathan@acm.org>
5110 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5111 to determine default geometry.
5112 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5115 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5117 * hashtab.h: Use standard GPLv3 with runtime exception
5120 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5122 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5123 size when allocating new thread.
5125 2016-09-14 Marek Polacek <polacek@redhat.com>
5127 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5129 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5132 * testsuite/libgomp.fortran/pr71014.f90: New test.
5134 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5137 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5138 firstprivate clauses.
5139 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5141 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5142 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5143 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5144 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5145 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5146 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5147 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5148 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5149 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5150 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5151 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5152 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5154 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5157 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5159 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5162 * testsuite/libgomp.c++/pr58706.C: New test.
5164 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5166 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5167 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5168 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5170 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5171 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5173 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5175 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5176 test, and don't hardcode -O0.
5178 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5180 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5182 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5184 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5187 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5190 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5191 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5193 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5196 * testsuite/libgomp.fortran/associate3.f90: New test.
5198 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5200 * testsuite/libgomp.c++/target-21.C: New test.
5202 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5204 * testsuite/libgomp.c++/target-20.C: New test.
5206 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5207 Cesar Philippidis <cesar@codesourcery.com>
5210 * libgomp.oacc-c/nested-function-1.c: New file.
5211 * libgomp.oacc-c/nested-function-2.c: Likewise.
5212 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5213 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5214 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5216 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5219 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5220 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5221 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5223 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5225 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5226 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5228 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5231 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5233 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5235 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5236 instead of invalid schedule(static, 0).
5237 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5239 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5241 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5242 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5243 parameter, use to set async stream around call to gomp_unmap_vars,
5244 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5245 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5246 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5247 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5248 (event_add): Add int parameter, initialize 'val' field when
5249 adding new ptx_event struct.
5250 (nvptx_evec): Adjust event_add() call arguments.
5251 (nvptx_host2dev): Likewise.
5252 (nvptx_dev2host): Likewise.
5253 (nvptx_wait_async): Likewise.
5254 (nvptx_wait_all_async): Likewise.
5255 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5256 pass to event_add() call.
5257 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5259 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5260 call openacc.register_async_cleanup_func() hook.
5261 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5262 * target.c (gomp_copy_from_async): Delete function.
5263 (gomp_map_vars): Remove async_refcount.
5264 (gomp_unmap_vars): Likewise.
5265 (gomp_load_image_to_device): Likewise.
5266 (omp_target_associate_ptr): Likewise.
5267 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5268 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5269 (gomp_copy_from_async): Remove.
5271 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5273 * target.c (gomp_device_copy): New function.
5274 (gomp_copy_host2dev): Likewise.
5275 (gomp_copy_dev2host): Likewise.
5276 (gomp_free_device_memory): Likewise.
5277 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5278 (gomp_map_pointer): Likewise.
5279 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5280 NULL value from alloc_func plugin hook.
5281 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5282 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5283 (gomp_unmap_vars): Likewise.
5284 (gomp_update): Adjust to call gomp_copy_dev2host and
5285 gomp_copy_host2dev functions.
5286 (gomp_unload_image_from_device): Handle false value from
5287 unload_image_func plugin hook.
5288 (gomp_init_device): Handle false value from init_device_func
5290 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5291 (omp_target_free): Adjust to call gomp_free_device_memory.
5292 (omp_target_memcpy): Handle return values from host2dev_func,
5293 dev2host_func, and dev2dev_func plugin hooks.
5294 (omp_target_memcpy_rect_worker): Likewise.
5295 (gomp_target_fini): Handle false value from fini_device_func
5297 * libgomp.h (struct gomp_device_descr): Adjust return type of
5298 init_device_func, fini_device_func, unload_image_func, free_func,
5299 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5300 * oacc-init.c (acc_shutdown_1): Handle false value from
5301 fini_device_func plugin hook.
5302 * oacc-host.c (host_init_device): Change return type to bool.
5303 (host_fini_device): Likewise.
5304 (host_unload_image): Likewise.
5305 (host_free): Likewise.
5306 (host_dev2host): Likewise.
5307 (host_host2dev): Likewise.
5308 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5309 (acc_memcpy_to_device): Likewise.
5310 (acc_memcpy_from_device): Likewise.
5311 (delete_copyout): Add libfnname parameter, handle free_func
5312 hook fatal error case.
5313 (acc_delete): Adjust delete_copyout call.
5314 (acc_copyout): Likewise.
5315 (update_dev_host): Move gomp_mutex_unlock to after
5316 host2dev/dev2host hook calls.
5318 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5319 to 'hsa_error_msg', for clarity.
5320 (hsa_fatal): Likewise.
5321 (hsa_error): New function.
5322 (init_hsa_context): Change return type to bool, adjust to return
5324 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5326 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5327 return false on error.
5328 (get_agent_info): Adjust to return NULL on error.
5329 (destroy_hsa_program): Change return type to bool, adjust to
5330 return false on error.
5331 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5332 (destroy_module): Change return type to bool, adjust to
5333 return false on error.
5334 (GOMP_OFFLOAD_unload_image): Likewise.
5335 (GOMP_OFFLOAD_fini_device): Likewise.
5336 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5337 (GOMP_OFFLOAD_free): Change to return false when called.
5338 (GOMP_OFFLOAD_dev2host): Likewise.
5339 (GOMP_OFFLOAD_host2dev): Likewise.
5340 (GOMP_OFFLOAD_dev2dev): Likewise.
5342 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5343 (CUDA_CALL): Likewise.
5344 (CUDA_CALL_ASSERT): Likewise.
5345 (map_init): Change return type to bool, use CUDA_CALL* macros.
5346 (map_fini): Likewise.
5347 (init_streams_for_device): Change return type to bool, adjust
5349 (fini_streams_for_device): Change return type to bool, adjust
5351 (select_stream_for_async): Release stream_lock before calls to
5352 GOMP_PLUGIN_fatal, adjust call to map_init.
5353 (nvptx_init): Use CUDA_CALL* macros.
5354 (nvptx_attach_host_thread_to_device): Change return type to bool,
5355 use CUDA_CALL* macros.
5356 (nvptx_open_device): Use CUDA_CALL* macros.
5357 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5359 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5360 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5361 (nvptx_exec): Use CUDA_CALL* macros.
5362 (nvptx_alloc): Use CUDA_CALL* macros.
5363 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5364 (nvptx_host2dev): Likewise.
5365 (nvptx_dev2host): Likewise.
5366 (nvptx_wait): Use CUDA_CALL* macros.
5367 (nvptx_wait_async): Likewise.
5368 (nvptx_wait_all): Likewise.
5369 (nvptx_wait_all_async): Likewise.
5370 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5371 use CUDA_CALL* macros, adjust call to map_fini.
5372 (GOMP_OFFLOAD_init_device): Change return type to bool,
5373 adjust code accordingly.
5374 (GOMP_OFFLOAD_fini_device): Likewise.
5375 (GOMP_OFFLOAD_load_image): Adjust calls to
5376 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5377 use CUDA_CALL* macros.
5378 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5380 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5381 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5382 handle error return.
5383 (GOMP_OFFLOAD_dev2host): Likewise.
5384 (GOMP_OFFLOAD_host2dev): Likewise.
5385 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5386 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5388 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5390 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5391 (acc_free): Likewise.
5392 (acc_memcpy_to_device): Likewise.
5393 (acc_memcpy_from_device): Likewise.
5394 (acc_deviceptr): Likewise.
5395 (acc_hostptr): Likewise.
5396 (acc_is_present): Likewise.
5397 (acc_map_data): Likewise.
5398 (acc_unmap_data): Likewise.
5399 (present_create_copy): Likewise.
5400 (delete_copyout): Likewise.
5401 (update_dev_host): Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5403 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5404 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5405 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5407 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5408 it only runs on nvptx targets.
5409 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5412 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5413 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5414 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5415 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5417 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5423 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5424 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5429 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5431 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5433 2016-05-23 Martin Jambor <mjambor@suse.cz>
5435 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5437 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5439 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5440 to gomp_init_targets_once.
5441 (acc_set_device_type): Remove !cached_base_dev condition on call to
5442 gomp_init_targets_once, move call to before acc_device_lock acquire,
5444 (acc_get_device_num): Remove !cached_base_dev condition on call to
5445 gomp_init_targets_once.
5446 (acc_set_device_num): Likewise.
5448 2016-05-16 Martin Jambor <mjambor@suse.cz>
5450 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5452 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5454 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5455 expected partitioning.
5457 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5460 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5461 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5462 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5464 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5466 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5469 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5472 * testsuite/libgomp.c/pr70680-1.c: New test.
5473 * testsuite/libgomp.c/pr70680-2.c: New test.
5475 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5477 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5478 pass parameter variables to subroutines.
5480 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5483 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5485 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5488 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5489 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5491 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5493 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5494 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5495 GOACC_declare prototype.
5497 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5498 Merge this file, and...
5499 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5500 ... this file, and...
5501 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5502 ... this file, and...
5503 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5504 ... this file, and...
5505 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5506 ... this file, and...
5507 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5508 ... this file, and...
5509 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5510 ... this file, and...
5511 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5512 ... this file, and...
5513 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5514 ... this file, and...
5515 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5516 ... this file, and...
5517 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5518 ... this file, and...
5519 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5520 ... this file, and...
5521 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5522 ... this file into...
5523 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5526 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5527 Make failure observable.
5529 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5531 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5533 * target.c (gomp_target_fallback_firstprivate,
5534 gomp_target_unshare_firstprivate): Removed.
5535 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5536 before waiting for dependencies.
5537 (gomp_target_task_fn): Don't copy firstprivate vars here.
5538 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5539 firstprivate_copies here.
5540 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5541 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5542 explicit/implicit firstprivate.
5544 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5548 PR tree-optimization/70373
5552 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5554 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5556 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5558 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5560 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5562 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5564 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5566 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5568 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5570 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5571 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5572 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5573 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5575 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5577 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5579 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5581 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5583 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5584 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5586 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5587 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5588 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5590 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5591 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5592 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5593 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5594 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5595 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5596 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5597 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5598 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5599 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5600 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5601 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5602 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5603 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5604 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5606 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5607 James Norris <jnorris@codesourcery.com>
5608 Nathan Sidwell <nathan@codesourcery.com>
5609 Julian Brown <julian@codesourcery.com>
5610 Cesar Philippidis <cesar@codesourcery.com>
5611 Chung-Lin Tang <cltang@codesourcery.com>
5612 Tom de Vries <tom@codesourcery.com>
5614 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5615 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5616 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5617 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5618 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5619 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5620 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5621 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5622 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5624 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5626 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5628 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5629 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5630 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5631 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5633 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5635 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5636 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5637 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5638 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5639 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5640 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5641 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5642 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5643 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5644 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5646 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5647 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5650 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5652 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5654 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5656 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5658 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5659 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5660 ... this new file. Update.
5661 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5662 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5663 ... this new file. Update.
5664 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5665 file. Incorporate...
5666 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5668 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5670 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5672 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5674 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5676 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5677 set-torture-options.
5679 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5681 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5683 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5684 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5685 -fno-builtin-acc_on_device instead of -O0.
5686 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5688 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5689 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5691 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5692 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5693 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5694 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5695 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5696 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5697 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5698 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5699 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5700 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5701 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5702 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5703 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5704 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5705 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5706 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5707 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5708 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5710 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5712 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5715 2016-03-24 Martin Liska <mliska@suse.cz>
5717 * plugin/plugin-hsa.c (packet_store_release): New function
5718 that is taken from the HSA runtime manual.
5719 (GOMP_OFFLOAD_run): Use the function.
5721 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5724 * testsuite/libgomp.c++/pr70376.C: New test.
5726 2016-03-23 Tom de Vries <tom@codesourcery.com>
5728 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5729 initialization of lresult and lvresult.
5730 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5732 2016-03-23 James Norris <jnorris@codesourcery.com>
5733 Daichi Fukuoka <dc-fukuoka@sgi.com>
5736 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5737 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5738 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5739 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5741 2016-03-23 Martin Liska <mliska@suse.cz>
5744 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5745 argument just in case a dispatched kernel uses that argument.
5747 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5749 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5750 -ftree-parallelize-loops/-fopenacc changes.
5751 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5753 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5755 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5757 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5759 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5760 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5762 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5764 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5765 always_ld_library_path the path to libgcc_s.
5767 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5770 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5772 2016-03-09 Tom de Vries <tom@codesourcery.com>
5774 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5775 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5776 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5778 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5779 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5780 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5781 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5783 2016-03-07 Martin Jambor <mjambor@suse.cz>
5785 * testsuite/lib/libgomp.exp
5786 (check_effective_target_hsa_offloading_selected_nocache): New.
5787 (check_effective_target_hsa_offloading_selected): Likewise.
5788 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5789 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5790 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5791 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5792 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5793 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5794 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5795 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5796 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5797 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5798 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5799 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5800 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5801 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5802 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5803 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5804 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5806 2016-03-07 Martin Jambor <mjambor@suse.cz>
5808 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5809 non-shared memory accelerators.
5810 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5811 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5812 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5813 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5814 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5815 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5816 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5817 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5818 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5820 2016-03-07 Martin Jambor <mjambor@suse.cz>
5822 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5825 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5828 * testsuite/libgomp.c++/pr69555-1.C: New test.
5829 * testsuite/libgomp.c++/pr69555-2.C: New test.
5831 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5832 Martin Jambor <mjambor@suse.cz>
5834 * testsuite/lib/libgomp.exp
5835 (check_effective_target_offload_device_shared_as): New proc.
5836 * testsuite/libgomp.c++/declare_target-1.C: New test.
5838 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5841 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5843 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5845 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5846 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5848 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5849 -ftree-parallelize-loops/-fopenacc changes.
5850 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5851 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5853 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5855 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5857 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5859 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5861 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5863 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5865 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5866 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5868 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5871 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5872 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5875 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5877 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5879 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5882 * testsuite/libgomp.c/pr69805.c: New test.
5884 2016-02-16 Tom de Vries <tom@codesourcery.com>
5887 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5889 2016-02-09 Tom de Vries <tom@codesourcery.com>
5891 PR tree-optimization/69599
5892 * testsuite/libgomp.c/omp-nested-3.c: New test.
5893 * testsuite/libgomp.c/pr46032-2.c: New test.
5894 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5895 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5897 2016-02-09 Tom de Vries <tom@codesourcery.com>
5900 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5902 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5904 * testsuite/libgomp.c/target-31.c: Fix testcase.
5906 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5908 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5910 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5911 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5912 reduction and map clauses.
5913 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5915 2016-02-02 James Norris <jnorris@codesourcery.com>
5917 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5919 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5921 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5922 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5924 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5927 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5929 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5930 (hsa_kmt_lib): Set variables.
5931 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5932 always_ld_library_path.
5933 * Makefile.in: Regenerate.
5934 * configure: Likewise.
5935 * testsuite/Makefile.in: Likewise.
5937 * plugin/configfrag.ac (offload_additional_options)
5938 (offload_additional_lib_paths): Don't amend for hsa offloading.
5939 * configure: Regenerate.
5941 * plugin/configfrag.ac: Don't configure for offloading target if
5942 we don't build the corresponding plugin.
5943 * configure: Regenerate.
5945 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5947 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5948 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5950 2016-01-26 Tom de Vries <tom@codesourcery.com>
5952 PR tree-optimization/69110
5953 * testsuite/libgomp.c/pr69110.c: New test.
5955 2016-01-25 Richard Biener <rguenther@suse.de>
5958 * testsuite/libgomp.c++/pr69393.C: New testcase.
5960 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5962 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5963 function wasn't mapped to the device with non-shared memory.
5965 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5967 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5969 2016-01-19 Martin Jambor <mjambor@suse.cz>
5970 Martin Liska <mliska@suse.cz>
5972 * plugin/Makefrag.am: Add HSA plugin requirements.
5973 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5974 (HSA_RUNTIME_LIB): Likewise.
5975 (HSA_RUNTIME_CPPFLAGS): Likewise.
5976 (HSA_RUNTIME_INCLUDE): New substitution.
5977 (HSA_RUNTIME_LIB): Likewise.
5978 (HSA_RUNTIME_LDFLAGS): Likewise.
5979 (hsa-runtime): New configure option.
5980 (hsa-runtime-include): Likewise.
5981 (hsa-runtime-lib): Likewise.
5982 (PLUGIN_HSA): New substitution variable.
5983 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5985 (PLUGIN_HSA_CPPFLAGS): Likewise.
5986 (PLUGIN_HSA_LDFLAGS): Likewise.
5987 (PLUGIN_HSA_LIBS): Likewise.
5988 Check that we have access to HSA run-time.
5989 * libgomp-plugin.h (offload_target_type): New element
5990 OFFLOAD_TARGET_TYPE_HSA.
5991 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5993 (bool gomp_create_target_task): Updated.
5994 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5995 new field can_run_func.
5996 * libgomp_g.h (GOMP_target_ext): Update prototype.
5997 * oacc-host.c (host_run): Added a new parameter args.
5998 * target.c (calculate_firstprivate_requirements): New function.
5999 (copy_firstprivate_data): Likewise.
6000 (gomp_target_fallback_firstprivate): Use them.
6001 (gomp_target_unshare_firstprivate): New function.
6002 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6004 (GOMP_target): Do host fallback for all shared memory devices. Do not
6005 pass any args to plugins.
6006 (GOMP_target_ext): Introduce device-specific argument parameter args.
6007 Allow host fallback if device shares memory. Do not remap data if
6008 device has shared memory.
6009 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6010 like host fallback for mappings.
6011 (GOMP_target_data): Treat shared memory devices like host fallback.
6012 (GOMP_target_data_ext): Likewise.
6013 (GOMP_target_update): Likewise.
6014 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6015 gomp_create_target_task.
6016 (GOMP_target_enter_exit_data): Likewise.
6017 (omp_target_alloc): Treat shared memory devices like host fallback.
6018 (omp_target_free): Likewise.
6019 (omp_target_is_present): Likewise.
6020 (omp_target_memcpy): Likewise.
6021 (omp_target_memcpy_rect): Likewise.
6022 (omp_target_associate_ptr): Likewise.
6023 (gomp_load_plugin_for_device): Also load can_run.
6024 * task.c (GOMP_PLUGIN_target_task_completion): Free
6025 firstprivate_copies.
6026 (gomp_create_target_task): Accept new argument args and store it to
6028 * plugin/plugin-hsa.c: New file.
6030 2016-01-18 Tom de Vries <tom@codesourcery.com>
6032 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6033 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6034 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6035 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6036 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6037 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6038 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6039 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6040 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6041 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6042 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6044 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6046 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6047 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6048 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6051 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6053 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6055 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6057 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6059 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6061 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6063 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6065 2016-01-12 James Norris <jnorris@codesourcery.com>
6067 * libgomp.texi: Updates for OpenACC.
6069 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6071 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6073 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6076 * testsuite/libgomp.fortran/pr66680.f90: New test.
6078 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6081 * testsuite/libgomp.c/pr68960.c: New test.
6083 2016-01-06 Nathan Sidwell <nathan@acm.org>
6085 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6086 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6088 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6090 Update copyright years.
6092 * libgomp.texi: Bump @copying's copyright year.
6094 2015-12-31 Nathan Sidwell <nathan@acm.org>
6096 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6097 dg-additional-options syntax.
6098 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6099 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6100 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6101 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6102 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6103 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6104 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6105 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6106 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6107 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6108 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6109 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6110 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6111 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6112 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6113 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6114 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6115 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6117 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6119 * libgomp.h (REFCOUNT_LINK): Define.
6120 (struct splay_tree_key_s): Add link_key.
6121 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6122 Replace target address of the pointer with target address of newly
6123 mapped object in the splay tree. Set link pointer on target to the
6124 device address of the mapped object.
6125 (gomp_unmap_vars): Restore target address of the pointer in the splay
6126 tree for REFCOUNT_LINK objects after unmapping.
6127 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6128 declare target link" objects.
6129 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6130 "omp declare target link" objects, which were mapped for the image.
6131 (gomp_exit_data): Restore target address of the pointer in the splay
6132 tree for REFCOUNT_LINK objects after unmapping.
6133 * testsuite/libgomp.c/target-link-1.c: New file.
6135 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6137 * libgomp.h (gomp_device_state): New enum.
6138 (struct gomp_device_descr): Replace is_initialized with state.
6139 (gomp_fini_device): Remove declaration.
6140 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6141 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6142 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6143 (acc_set_device_type): Use state instead of is_initialized.
6144 (acc_set_device_num): Likewise.
6145 * target.c (resolve_device): Use state instead of is_initialized.
6146 Do not initialize finalized device.
6147 (gomp_map_vars): Do nothing if device is finalized.
6148 (gomp_unmap_vars): Likewise.
6149 (gomp_update): Likewise.
6150 (GOMP_offload_register_ver): Use state instead of is_initialized.
6151 (GOMP_offload_unregister_ver): Likewise.
6152 (gomp_init_device): Likewise.
6153 (gomp_unload_device): Likewise.
6154 (gomp_fini_device): Remove.
6155 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6156 (GOMP_target): Go to host fallback if device is finalized.
6157 (GOMP_target_ext): Likewise.
6158 (gomp_exit_data): Do nothing if device is finalized.
6159 (gomp_target_task_fn): Go to host fallback if device is finalized.
6160 (gomp_target_fini): New static function.
6161 (gomp_target_init): Use state instead of is_initialized.
6162 Call gomp_target_fini at exit.
6164 2015-12-09 Tom de Vries <tom@codesourcery.com>
6166 PR tree-optimization/68716
6167 * testsuite/libgomp.c/omp-nested-2.c: New test.
6169 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6171 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6172 target openacc_nvidia_accel_selected.
6173 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6174 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6175 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6176 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6178 2015-12-01 Julian Brown <julian@codesourcery.com>
6179 James Norris <James_Norris@mentor.com>
6181 * oacc-parallel.c (GOACC_host_data): New function.
6182 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6183 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6184 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6185 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6186 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6187 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6188 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6190 2015-11-30 James Norris <jnorris@codesourcery.com>
6191 Cesar Philippidis <cesar@codesourcery.com>
6194 * libgomp.oacc-fortran/routine-5.f90: New test.
6195 * libgomp.oacc-fortran/routine-7.f90: New test.
6196 * libgomp.oacc-fortran/routine-9.f90: New test.
6198 2015-11-30 Tom de Vries <tom@codesourcery.com>
6200 PR tree-optimization/46032
6201 * testsuite/libgomp.c/pr46032.c: New test.
6203 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6206 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6207 (gomp_create_target_task): Call it before freeing
6208 GOMP_TARGET_TASK_DATA tasks.
6211 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6212 in between case label and OpenMP standalone directives.
6213 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6215 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6217 * configure: Regenerate.
6219 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6221 * testsuite/libgomp.c/target-35.c: New test.
6223 2015-11-22 James Norris <jnorris@codesourcery.com>
6224 Cesar Philippidis <cesar@codesourcery.com>
6226 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6227 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6228 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6229 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6230 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6232 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6235 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6236 * testsuite/libgomp.c/reduction-12.c: Likewise.
6237 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6238 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6240 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6242 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6243 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6244 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6245 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6246 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6248 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6249 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6251 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6253 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6254 worker & gang cases.
6255 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6257 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6259 * config/nvptx/priority_queue.c: New file.
6261 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6263 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6266 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6267 Aldy Hernandez <aldyh@redhat.com>
6268 Ilya Verbin <ilya.verbin@intel.com>
6270 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6271 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6272 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6273 iterators or IV by chunk size.
6274 * parallel.c (gomp_resolve_num_threads): Don't assume that
6275 if thr->ts.team is non-NULL, then pool must be non-NULL.
6276 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6277 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6278 GOMP_PLUGIN_target_task_completion.
6279 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6280 * Makefile.in: Regenerate.
6281 * libgomp.h: Shuffle prototypes and forward definitions around so
6282 priority queues can be defined.
6283 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6284 (enum gomp_target_task_state): New enum.
6285 (struct gomp_target_task): Add state, tgt, task and team fields.
6286 (gomp_create_target_task): Change return type to bool, add
6288 (gomp_target_task_fn): Change return type to bool.
6289 (struct gomp_device_descr): Add async_run_func.
6290 (struct gomp_task): Remove children, next_child, prev_child,
6291 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6293 (struct gomp_taskgroup): Remove children.
6294 Add taskgroup_queue.
6295 (struct gomp_team): Change task_queue type to a priority queue.
6296 (splay_compare): Define inline.
6297 (priority_queue_offset): New.
6298 (priority_node_to_task): New.
6299 (task_to_priority_node): New.
6300 * oacc-mem.c: Do not include splay-tree.h.
6301 * priority_queue.c: New file.
6302 * priority_queue.h: New file.
6303 * splay-tree.c: Do not include splay-tree.h.
6304 (splay_tree_foreach_internal): New.
6305 (splay_tree_foreach): New.
6306 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6307 (splay_tree_callback): Define typedef.
6308 * target.c (splay_compare): Move to libgomp.h.
6309 (GOMP_target): Don't adjust *thr in any way around running offloaded
6311 (GOMP_target_ext): Likewise. Handle target nowait.
6312 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6313 return value from gomp_create_target_task, if false, fallthrough
6314 as if no dependencies exist.
6315 (gomp_target_task_fn): Change return type to bool, return true
6316 if the task should have another part scheduled later. Handle
6318 (gomp_load_plugin_for_device): Initialize async_run.
6319 * task.c (gomp_init_task): Initialize children_queue.
6320 (gomp_clear_parent_in_list): New.
6321 (gomp_clear_parent_in_tree): New.
6322 (gomp_clear_parent): Handle priorities.
6323 (GOMP_task): Likewise.
6324 (priority_queue_move_task_first,
6325 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6327 (gomp_create_target_task): Use priority queues. Change return type
6328 to bool, add state argument, return false if for async
6329 {{enter,exit} data,update} constructs no dependencies need to be
6330 waited for, handle target nowait. Set task->fn to NULL instead of
6331 gomp_target_task_fn.
6332 (verify_children_queue): Remove.
6333 (priority_list_upgrade_task): New.
6334 (priority_queue_upgrade_task): New.
6335 (verify_task_queue): Remove.
6336 (priority_list_downgrade_task): New.
6337 (priority_queue_downgrade_task): New.
6338 (gomp_task_run_pre): Use priority queues.
6339 Abstract code out to priority_queue_downgrade_task.
6340 (gomp_task_run_post_handle_dependers): Use priority queues.
6341 (gomp_task_run_post_remove_parent): Likewise.
6342 (gomp_task_run_post_remove_taskgroup): Likewise.
6343 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6345 (GOMP_taskwait): Likewise.
6346 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6347 priority-queue_upgrade_task.
6348 (GOMP_taskgroup_start): Use priority queues.
6349 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6350 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6352 * taskloop.c (GOMP_taskloop): Handle priorities.
6353 * team.c (gomp_new_team): Call priority_queue_init.
6354 (free_team): Call priority_queue_free.
6355 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6356 team created for target nowait in implicit parallel region.
6357 (gomp_team_start): For nested check, test thr->ts.level instead of
6358 thr->ts.team != NULL.
6359 * testsuite/libgomp.c/doacross-3.c: New test.
6360 * testsuite/libgomp.c/ordered-5.c: New test.
6361 * testsuite/libgomp.c/priority.c: New test.
6362 * testsuite/libgomp.c/target-31.c: New test.
6363 * testsuite/libgomp.c/target-32.c: New test.
6364 * testsuite/libgomp.c/target-33.c: New test.
6365 * testsuite/libgomp.c/target-34.c: New test.
6367 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6369 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6371 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6374 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6376 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6377 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6379 2015-11-12 James Norris <jnorris@codesourcery.com>
6380 Joseph Myers <joseph@codesourcery.com>
6382 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6383 * oacc-parallel.c (GOACC_declare): New function.
6384 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6385 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6386 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6388 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6390 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6392 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6394 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6396 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6397 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6399 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6401 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6404 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6406 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6407 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6408 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6409 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6410 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6412 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6414 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6415 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6417 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6418 Ilya Verbin <ilya.verbin@intel.com>
6420 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6421 GOMP_loop_nonmonotonic_dynamic_start,
6422 GOMP_loop_nonmonotonic_guided_next,
6423 GOMP_loop_nonmonotonic_guided_start,
6424 GOMP_loop_ull_nonmonotonic_dynamic_next,
6425 GOMP_loop_ull_nonmonotonic_dynamic_start,
6426 GOMP_loop_ull_nonmonotonic_guided_next,
6427 GOMP_loop_ull_nonmonotonic_guided_start,
6428 GOMP_parallel_loop_nonmonotonic_dynamic,
6429 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6430 (GOMP_target_41): Renamed to ...
6431 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6433 (GOMP_target_data_41): Renamed to ...
6434 (GOMP_target_data_ext): ... this.
6435 (GOMP_target_update_41): Renamed to ...
6436 (GOMP_target_update_ext): ... this.
6437 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6438 GOMP_target_data_ext and GOMP_target_update_ext instead of
6439 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6440 Export GOMP_loop_nonmonotonic_dynamic_next,
6441 GOMP_loop_nonmonotonic_dynamic_start,
6442 GOMP_loop_nonmonotonic_guided_next,
6443 GOMP_loop_nonmonotonic_guided_start,
6444 GOMP_loop_ull_nonmonotonic_dynamic_next,
6445 GOMP_loop_ull_nonmonotonic_dynamic_start,
6446 GOMP_loop_ull_nonmonotonic_guided_next,
6447 GOMP_loop_ull_nonmonotonic_guided_start,
6448 GOMP_parallel_loop_nonmonotonic_dynamic and
6449 GOMP_parallel_loop_nonmonotonic_guided.
6450 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6451 GOMP_parallel_loop_nonmonotonic_guided,
6452 GOMP_loop_nonmonotonic_dynamic_start,
6453 GOMP_loop_nonmonotonic_guided_start,
6454 GOMP_loop_nonmonotonic_dynamic_next,
6455 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6456 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6457 GOMP_loop_ull_nonmonotonic_guided_start,
6458 GOMP_loop_ull_nonmonotonic_dynamic_next,
6459 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6460 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6462 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6463 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6464 Use gomp_map_val function.
6465 (gomp_target_fallback_firstprivate): New static function.
6466 (GOMP_target_41): Renamed to ...
6467 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6468 arguments. Move firstprivate fallback handling into a new
6470 (GOMP_target_data_41): Renamed to ...
6471 (GOMP_target_data_ext): ... this.
6472 (GOMP_target_update_41): Renamed to ...
6473 (GOMP_target_update_ext): ... this.
6474 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6475 gomp_map_0len_lookup instead of gomp_map_lookup.
6476 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6478 * testsuite/libgomp.c/target-28.c: Likewise.
6479 * testsuite/libgomp.c/monotonic-1.c: New test.
6480 * testsuite/libgomp.c/monotonic-2.c: New test.
6481 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6482 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6483 * testsuite/libgomp.c/pr66199-5.c: New test.
6484 * testsuite/libgomp.c/pr66199-6.c: New test.
6485 * testsuite/libgomp.c/pr66199-7.c: New test.
6486 * testsuite/libgomp.c/pr66199-8.c: New test.
6487 * testsuite/libgomp.c/pr66199-9.c: New test.
6488 * testsuite/libgomp.c/reduction-11.c: New test.
6489 * testsuite/libgomp.c/reduction-12.c: New test.
6490 * testsuite/libgomp.c/reduction-13.c: New test.
6491 * testsuite/libgomp.c/reduction-14.c: New test.
6492 * testsuite/libgomp.c/reduction-15.c: New test.
6493 * testsuite/libgomp.c/target-12.c (main): Adjust for
6494 omp_target_is_present change for one-past-last element.
6495 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6496 the same var is both mapped and privatized.
6497 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6498 handling of zero-length array sections.
6499 * testsuite/libgomp.c/target-28.c: New test.
6500 * testsuite/libgomp.c/target-29.c: New test.
6501 * testsuite/libgomp.c/target-30.c: New test.
6502 * testsuite/libgomp.c/target-teams-1.c: New test.
6503 * testsuite/libgomp.c++/member-6.C: New test.
6504 * testsuite/libgomp.c++/member-7.C: New test.
6505 * testsuite/libgomp.c++/monotonic-1.C: New test.
6506 * testsuite/libgomp.c++/monotonic-2.C: New test.
6507 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6508 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6509 * testsuite/libgomp.c++/pr66199-3.C: New test.
6510 * testsuite/libgomp.c++/pr66199-4.C: New test.
6511 * testsuite/libgomp.c++/pr66199-5.C: New test.
6512 * testsuite/libgomp.c++/pr66199-6.C: New test.
6513 * testsuite/libgomp.c++/pr66199-7.C: New test.
6514 * testsuite/libgomp.c++/pr66199-8.C: New test.
6515 * testsuite/libgomp.c++/pr66199-9.C: New test.
6516 * testsuite/libgomp.c++/reduction-11.C: New test.
6517 * testsuite/libgomp.c++/reduction-12.C: New test.
6518 * testsuite/libgomp.c++/target-13.C: New test.
6519 * testsuite/libgomp.c++/target-14.C: New test.
6520 * testsuite/libgomp.c++/target-15.C: New test.
6521 * testsuite/libgomp.c++/target-16.C: New test.
6522 * testsuite/libgomp.c++/target-17.C: New test.
6523 * testsuite/libgomp.c++/target-18.C: New test.
6524 * testsuite/libgomp.c++/target-19.C: New test.
6526 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6528 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6530 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6531 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6532 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6533 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6534 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6535 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6536 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6537 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6538 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6539 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6540 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6541 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6542 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6543 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6545 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6547 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6548 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6549 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6550 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6551 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6552 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6553 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6554 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6556 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6558 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6559 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6560 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6561 * oacc-host.c (host_openacc_exec): Likewise.
6562 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6564 2015-11-03 Julian Brown <julian@codesourcery.com>
6565 Thomas Schwinge <thomas@codesourcery.com>
6567 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6568 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6569 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6571 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6572 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6574 2015-11-03 James Norris <jnorris@codesourcery.com>
6576 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6578 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6580 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6581 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6582 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6583 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6584 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6586 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6588 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6590 (enum acc_async_t): Reformat.
6591 (acc_on_device): Declare compatible with builtin and provide C++
6593 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6595 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6596 Cesar Philippidis <cesar@codesourcery.com>
6598 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6599 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6600 ... this. Add a description of the test at the top of the file.
6601 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6602 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6603 ... this. Add a description of the test at the top of the file.
6605 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6607 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6608 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6609 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6610 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6611 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6612 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6614 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6616 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6619 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6622 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6624 2015-10-27 James Norris <jnorris@codesourcery.com>
6626 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6627 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6629 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6631 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6632 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6634 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6635 acc_device_nvidia usage.
6636 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6637 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6638 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6640 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6641 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6644 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6648 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6649 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6651 2015-10-23 Tom de Vries <tom@codesourcery.com>
6654 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6656 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6658 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6660 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6662 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6663 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6665 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6666 to 0 when mapnum is 0.
6668 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6670 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6671 Cast to int from int32_t.
6673 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6674 Aldy Hernandez <aldyh@redhat.com>
6675 Ilya Verbin <ilya.verbin@intel.com>
6677 * config/linux/affinity.c (omp_get_place_num_procs,
6678 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6679 * config/linux/doacross.h: New file.
6680 * config/posix/affinity.c (omp_get_place_num_procs,
6681 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6682 * config/posix/doacross.h: New file.
6683 * env.c: Include gomp-constants.h.
6684 (struct gomp_task_icv): Rename run_sched_modifier to
6685 run_sched_chunk_size.
6686 (gomp_max_task_priority_var): New variable.
6687 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6688 (handle_omp_display_env): Change _OPENMP value from 201307 to
6689 201511. Print OMP_MAX_TASK_PRIORITY.
6690 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6691 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6692 chunk_size and run_sched_modifier to run_sched_chunk_size.
6693 (omp_get_max_task_priority, omp_get_initial_device,
6694 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6695 omp_get_partition_place_nums): New functions.
6696 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6697 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6699 (omp_get_num_places_, omp_get_place_num_procs_,
6700 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6701 omp_get_place_proc_ids_8_, omp_get_place_num_,
6702 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6703 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6704 omp_get_max_task_priority_): New functions.
6705 * libgomp_g.h (GOMP_loop_doacross_static_start,
6706 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6707 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6708 GOMP_loop_ull_doacross_dynamic_start,
6709 GOMP_loop_ull_doacross_guided_start,
6710 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6711 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6712 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6713 GOMP_target_data_41, GOMP_target_update_41,
6714 GOMP_target_enter_exit_data): New prototypes.
6715 (GOMP_task): Add prototype argument.
6716 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6717 (struct gomp_doacross_work_share): New type.
6718 (struct gomp_work_share): Add doacross field.
6719 (struct gomp_task_icv): Rename run_sched_modifier to
6720 run_sched_chunk_size.
6721 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6722 GOMP_TASK_UNDEFERRED. Add comments.
6723 (struct gomp_task_depend_entry): Add comments.
6724 (struct gomp_task): Likewise.
6725 (struct gomp_taskgroup): Likewise.
6726 (struct gomp_target_task): New type.
6727 (struct gomp_team): Add comment.
6728 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6729 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6730 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6731 (struct target_var_desc): New type.
6732 (struct target_mem_desc): Adjust comment. Use struct
6733 target_var_desc instead of splay_tree_key for list.
6734 (REFCOUNT_INFINITY): Define.
6735 (struct splay_tree_key_s): Remove copy_from field.
6736 (struct gomp_device_descr): Add dev2dev_func field.
6737 (enum gomp_map_vars_kind): New enum.
6738 (gomp_map_vars): Add one argument.
6739 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6740 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6741 omp_get_place_num_procs, omp_get_place_num_procs_,
6742 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6743 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6744 omp_get_place_num_, omp_get_partition_num_places,
6745 omp_get_partition_num_places_, omp_get_partition_place_nums,
6746 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6747 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6748 omp_target_free, omp_target_is_present, omp_target_memcpy,
6749 omp_target_memcpy_rect, omp_target_associate_ptr and
6750 omp_target_disassociate_ptr.
6751 (GOMP_4.0.2): Renamed to ...
6752 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6753 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6754 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6755 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6756 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6757 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6758 GOMP_loop_ull_doacross_guided_start,
6759 GOMP_loop_ull_doacross_runtime_start,
6760 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6761 GOMP_doacross_ull_wait.
6762 * libgomp.texi: Document omp_get_max_task_priority.
6763 Rename modifier argument to chunk_size for omp_set_schedule and
6764 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6765 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6766 to run_sched_chunk_size renaming.
6767 (GOMP_loop_ordered_runtime_start): Likewise.
6768 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6769 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6770 GOMP_parallel_loop_runtime_start): New functions.
6771 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6772 to run_sched_chunk_size renaming.
6773 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6774 GOMP_loop_doacross_guided_start): New functions or aliases.
6775 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6776 run_sched_modifier to run_sched_chunk_size renaming.
6777 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6778 (gomp_loop_ull_doacross_static_start,
6779 gomp_loop_ull_doacross_dynamic_start,
6780 gomp_loop_ull_doacross_guided_start,
6781 GOMP_loop_ull_doacross_runtime_start): New functions.
6782 (GOMP_loop_ull_doacross_static_start,
6783 GOMP_loop_ull_doacross_dynamic_start,
6784 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6785 * oacc-mem.c (acc_map_data, present_create_copy,
6786 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6788 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6789 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6790 instead of false to gomp_map_vars.
6791 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6792 * omp.h.in (omp_lock_hint_t): New type.
6793 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6794 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6795 omp_get_place_num, omp_get_partition_num_places,
6796 omp_get_partition_place_nums, omp_get_initial_device,
6797 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6798 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6799 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6801 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6802 (omp_lock_hint_none, omp_lock_hint_uncontended,
6803 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6804 omp_lock_hint_speculative): New parameters.
6805 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6806 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6807 omp_get_place_num, omp_get_partition_num_places,
6808 omp_get_partition_place_nums, omp_get_initial_device,
6809 omp_get_max_task_priority): New interfaces.
6810 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6812 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6813 (omp_lock_hint_none, omp_lock_hint_uncontended,
6814 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6815 omp_lock_hint_speculative): New parameters.
6816 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6817 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6818 omp_get_place_num, omp_get_partition_num_places,
6819 omp_get_partition_place_nums, omp_get_initial_device,
6820 omp_get_max_task_priority): New functions and subroutines.
6821 * ordered.c: Include stdarg.h and string.h.
6822 (MAX_COLLAPSED_BITS): Define.
6823 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6824 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6825 GOMP_doacross_ull_wait): New functions.
6826 * target.c: Include errno.h.
6827 (resolve_device): If device is not initialized, call
6828 gomp_init_device on it.
6829 (gomp_map_lookup): New function.
6830 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6831 Don't bump refcount if REFCOUNT_INFINITY. Handle
6832 GOMP_MAP_ALWAYS_TO_P.
6833 (get_kind): Rename is_openacc argument to short_mapkind.
6834 (gomp_map_pointer): Use gomp_map_lookup.
6835 (gomp_map_fields_existing): New function.
6836 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6837 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6838 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6839 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6840 Adjust for tgt->list changed type and copy_from living in there.
6841 (gomp_copy_from_async): Adjust for tgt->list changed type and
6842 copy_from living in there.
6843 (gomp_unmap_vars): Likewise.
6844 (gomp_update): Likewise. Rename is_openacc argument to
6845 short_mapkind. Don't fail if object is not mapped.
6846 (gomp_load_image_to_device): Initialize refcount to
6848 (gomp_target_fallback): New function.
6849 (gomp_get_target_fn_addr): Likewise.
6850 (GOMP_target): Adjust gomp_map_vars caller, use
6851 gomp_get_target_fn_addr and gomp_target_fallback.
6852 (GOMP_target_41): New function.
6853 (gomp_target_data_fallback): New function.
6854 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6855 (GOMP_target_data_41): New function.
6856 (GOMP_target_update): Adjust gomp_update caller.
6857 (GOMP_target_update_41): New function.
6858 (gomp_exit_data, GOMP_target_enter_exit_data,
6859 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6860 omp_target_is_present, omp_target_memcpy,
6861 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6862 omp_target_associate_ptr, omp_target_disassociate_ptr,
6863 gomp_load_plugin_for_device): New functions.
6864 * task.c: Include gomp-constants.h. Include taskloop.c
6865 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6866 (gomp_task_handle_depend): New function.
6867 (GOMP_task): Use it. Add priority argument. Use
6868 gomp-constant.h constants instead of hardcoded numbers.
6869 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6870 (gomp_create_target_task): New function.
6871 (verify_children_queue, verify_taskgroup_queue,
6872 verify_task_queue): New functions.
6873 (gomp_task_run_pre): Call verify_*_queue functions.
6874 If an upcoming tied task is about to leave the sibling or
6875 taskgroup queues in an invalid state, adjust appropriately.
6876 Remove taskgroup argument. Add comments.
6877 (gomp_task_run_post_handle_dependers): Add comments.
6878 (gomp_task_run_post_remove_parent): Likewise.
6879 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6880 (GOMP_taskwait): Likewise. Add comments.
6881 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6882 problem such that the first non parent_depends_on task does not
6883 end up at the end of the children queue.
6884 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6885 GOMP_TASK_UNDEFERRED.
6886 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6887 * taskloop.c: New file.
6888 * testsuite/lib/libgomp.exp
6889 (check_effective_target_offload_device_nonshared_as): New proc.
6890 * testsuite/libgomp.c/affinity-2.c: New test.
6891 * testsuite/libgomp.c/doacross-1.c: New test.
6892 * testsuite/libgomp.c/doacross-2.c: New test.
6893 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6894 Add map clause to target.
6895 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6896 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6897 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6898 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6899 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6901 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6902 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6903 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6904 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6905 not defined. Use those where needed.
6906 * testsuite/libgomp.c/for-4.c: New test.
6907 * testsuite/libgomp.c/for-5.c: New test.
6908 * testsuite/libgomp.c/for-6.c: New test.
6909 * testsuite/libgomp.c/linear-1.c: New test.
6910 * testsuite/libgomp.c/ordered-4.c: New test.
6911 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6912 only allowed on the loop iterator.
6913 * testsuite/libgomp.c/pr66199-3.c: New test.
6914 * testsuite/libgomp.c/pr66199-4.c: New test.
6915 * testsuite/libgomp.c/reduction-7.c: New test.
6916 * testsuite/libgomp.c/reduction-8.c: New test.
6917 * testsuite/libgomp.c/reduction-9.c: New test.
6918 * testsuite/libgomp.c/reduction-10.c: New test.
6919 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6921 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6922 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6923 * testsuite/libgomp.c/target-11.c: New test.
6924 * testsuite/libgomp.c/target-12.c: New test.
6925 * testsuite/libgomp.c/target-13.c: New test.
6926 * testsuite/libgomp.c/target-14.c: New test.
6927 * testsuite/libgomp.c/target-15.c: New test.
6928 * testsuite/libgomp.c/target-16.c: New test.
6929 * testsuite/libgomp.c/target-17.c: New test.
6930 * testsuite/libgomp.c/target-18.c: New test.
6931 * testsuite/libgomp.c/target-19.c: New test.
6932 * testsuite/libgomp.c/target-20.c: New test.
6933 * testsuite/libgomp.c/target-21.c: New test.
6934 * testsuite/libgomp.c/target-22.c: New test.
6935 * testsuite/libgomp.c/target-23.c: New test.
6936 * testsuite/libgomp.c/target-24.c: New test.
6937 * testsuite/libgomp.c/target-25.c: New test.
6938 * testsuite/libgomp.c/target-26.c: New test.
6939 * testsuite/libgomp.c/target-27.c: New test.
6940 * testsuite/libgomp.c/taskloop-1.c: New test.
6941 * testsuite/libgomp.c/taskloop-2.c: New test.
6942 * testsuite/libgomp.c/taskloop-3.c: New test.
6943 * testsuite/libgomp.c/taskloop-4.c: New test.
6944 * testsuite/libgomp.c++/ctor-13.C: New test.
6945 * testsuite/libgomp.c++/doacross-1.C: New test.
6946 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6947 Replace offload_device with offload_device_nonshared_as.
6948 * testsuite/libgomp.c++/for-12.C: New test.
6949 * testsuite/libgomp.c++/for-13.C: New test.
6950 * testsuite/libgomp.c++/for-14.C: New test.
6951 * testsuite/libgomp.c++/linear-1.C: New test.
6952 * testsuite/libgomp.c++/member-1.C: New test.
6953 * testsuite/libgomp.c++/member-2.C: New test.
6954 * testsuite/libgomp.c++/member-3.C: New test.
6955 * testsuite/libgomp.c++/member-4.C: New test.
6956 * testsuite/libgomp.c++/member-5.C: New test.
6957 * testsuite/libgomp.c++/ordered-1.C: New test.
6958 * testsuite/libgomp.c++/reduction-5.C: New test.
6959 * testsuite/libgomp.c++/reduction-6.C: New test.
6960 * testsuite/libgomp.c++/reduction-7.C: New test.
6961 * testsuite/libgomp.c++/reduction-8.C: New test.
6962 * testsuite/libgomp.c++/reduction-9.C: New test.
6963 * testsuite/libgomp.c++/reduction-10.C: New test.
6964 * testsuite/libgomp.c++/reference-1.C: New test.
6965 * testsuite/libgomp.c++/simd14.C: New test.
6966 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6967 * testsuite/libgomp.c++/target-5.C: New test.
6968 * testsuite/libgomp.c++/target-6.C: New test.
6969 * testsuite/libgomp.c++/target-7.C: New test.
6970 * testsuite/libgomp.c++/target-8.C: New test.
6971 * testsuite/libgomp.c++/target-9.C: New test.
6972 * testsuite/libgomp.c++/target-10.C: New test.
6973 * testsuite/libgomp.c++/target-11.C: New test.
6974 * testsuite/libgomp.c++/target-12.C: New test.
6975 * testsuite/libgomp.c++/taskloop-1.C: New test.
6976 * testsuite/libgomp.c++/taskloop-2.C: New test.
6977 * testsuite/libgomp.c++/taskloop-3.C: New test.
6978 * testsuite/libgomp.c++/taskloop-4.C: New test.
6979 * testsuite/libgomp.c++/taskloop-5.C: New test.
6980 * testsuite/libgomp.c++/taskloop-6.C: New test.
6981 * testsuite/libgomp.c++/taskloop-7.C: New test.
6982 * testsuite/libgomp.c++/taskloop-8.C: New test.
6983 * testsuite/libgomp.c++/taskloop-9.C: New test.
6984 * testsuite/libgomp.fortran/affinity1.f90: New test.
6985 * testsuite/libgomp.fortran/affinity2.f90: New test.
6987 2015-10-13 Tom de Vries <tom@codesourcery.com>
6989 PR tree-optimization/67476
6990 * testsuite/libgomp.c/autopar-3.c: New test.
6991 * testsuite/libgomp.c/autopar-4.c: New test.
6992 * testsuite/libgomp.c/autopar-5.c: New test.
6993 * testsuite/libgomp.c/autopar-6.c: New test.
6994 * testsuite/libgomp.c/autopar-7.c: New test.
6995 * testsuite/libgomp.c/autopar-8.c: New test.
6997 2015-10-12 James Norris <jnorris@codesourcery.com>
6999 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7002 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7004 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7007 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7009 * oacc-ptx.h: Remove file, moving its content into...
7010 * config/nvptx/fortran.c: ... here...
7011 * config/nvptx/oacc-init.c: ..., here...
7012 * config/nvptx/oacc-parallel.c: ..., and here.
7013 * config/nvptx/openacc.f90: New file.
7014 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7015 (link_ptx): Don't link in predefined bits of PTX code.
7017 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7018 Bernd Schmidt <bernds@codesourcery.com>
7020 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7021 (struct targ_ptx_obj): New.
7022 (nvptx_tdata): Move earlier, change data format.
7023 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7025 (GOMP_OFFLOAD_load_image): Adjust.
7027 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7029 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7030 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7032 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7037 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7038 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7039 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7041 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7043 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7044 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7045 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7046 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7047 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7048 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7049 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7050 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7051 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7052 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7053 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7054 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7055 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7056 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7057 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7058 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7059 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7060 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7061 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7062 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7063 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7064 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7065 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7066 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7067 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7068 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7069 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7071 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7072 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7073 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7074 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7075 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7076 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7077 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7078 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7079 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7080 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7081 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7082 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7083 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7084 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7085 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7086 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7087 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7088 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7089 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7090 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7091 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7093 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7095 * oacc-init.c (acc_on_device): Force optimization level.
7097 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7099 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7100 (cuda_errlist): Delete.
7101 (cuda_error): Reimplement.
7103 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7105 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7107 * libgomp.map (GOACC_parallel_keyed): New.
7108 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7110 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7111 and take keyed varargs list. Adjust call to exec_func.
7112 (GOACC_parallel): Force host fallback.
7113 * libgomp_g.h (GOACC_parallel): Remove.
7114 (GOACC_parallel_keyed): Declare.
7115 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7116 (struct targ_gn_descriptor): Replace name field with launch field.
7117 (nvptx_exec): Lose separate geometry args, take array. Process
7118 dynamic dimensions and adjust.
7119 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7120 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7122 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7124 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7127 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7130 * oacc-int.h (goacc_host_init): Add declaration.
7131 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7132 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7134 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7135 Sebastian Pop <s.pop@samsung.com>
7137 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7139 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7140 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7141 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7142 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7143 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7145 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7147 * configure.tgt: Add missing ;; in between nvptx and rtems
7150 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7152 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7153 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7154 (gomp_thread_pool_reservoir): Add priority member.
7155 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7157 (parse_thread_pools): Likewise.
7158 * team.c (gomp_team_start): Call configuration provided
7159 gomp_adjust_thread_attr(). Destroy thread attributes if
7161 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7163 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7165 * config/posix/pool.h: New.
7166 * config/rtems/pool.h: Likewise.
7167 * config/rtems/proc.c: Likewise.
7168 * libgomp.h (gomp_thread_destructor): Declare.
7169 * team.c: Include configuration provided "pool.h".
7170 (gomp_get_thread_pool): Define in configuration.
7171 (gomp_team_end): Call configuration defined
7172 gomp_release_thread_pool().
7174 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7176 * config/rtems/bar.c: New.
7177 * config/rtems/bar.h: Likewise.
7178 * config/rtems/mutex.c: Likewise.
7179 * config/rtems/mutex.h: Likewise.
7180 * config/rtems/sem.c: Likewise.
7181 * config/rtems/sem.h: Likewise.
7182 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7183 <sys/lock.h> header file.
7184 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7185 supported by Newlib.
7186 * configure: Regenerate.
7188 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7190 * team.c (gomp_new_thread_pool): Delete and move content to ...
7191 (gomp_get_thread_pool): ... new function. Allocate and
7192 initialize thread pool on demand.
7193 (get_last_team): Use gomp_get_thread_pool().
7194 (gomp_team_start): Delete thread pool initialization.
7196 2015-09-03 Tom de Vries <tom@codesourcery.com>
7198 PR tree-optimization/65637
7199 * testsuite/libgomp.c/autopar-2.c: New test.
7201 2015-08-29 Tom de Vries <tom@codesourcery.com>
7203 PR tree-optimization/46193
7204 * testsuite/libgomp.c/pr46193.c: New test.
7206 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7209 * libgomp.map: Add 4.0.2 version.
7210 * target.c (offload_image_descr): Add version field.
7211 (gomp_load_image_to_device): Add version argument. Adjust plugin
7212 call. Improve load mismatch diagnostic.
7213 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7215 (GOMP_offload_regster): Make stub function, move bulk to ...
7216 (GOMP_offload_register_ver): ... here. Process version argument.
7217 (GOMP_offload_unregister): Make stub function, move bulk to ...
7218 (GOMP_offload_unregister_ver): ... here. Process version argument.
7219 (gomp_init_device): Process version field.
7220 (gomp_unload_device): Process version field.
7221 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7222 macros. Check plugin version.
7223 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7224 loader and unloader types.
7225 * oacc-host.c: Include gomp-constants.h.
7226 (host_version): New.
7227 (host_load_image, host_unload_image): Adjust.
7228 (host_dispatch): Add host_version.
7229 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7230 (GOMP_OFFLOAD_version): New.
7231 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7232 (GOMP_OFFLOAD_unload_image): Likewise.
7233 * plugin/plugin-host.c: Include gomp-constants.h.
7234 (GOMP_OFFLOAD_version): New.
7235 (GOMP_OFFLOAD_load_image): Add version arg.
7236 (GOMP_OFFLOAD_unload_image): Likewise.
7238 2015-08-24 Tom de Vries <tom@codesourcery.com>
7240 PR tree-optimization/65468
7241 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7243 2015-08-24 Tom de Vries <tom@codesourcery.com>
7245 PR tree-optimization/65468
7246 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7248 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7252 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7253 (gomp_iter_guided_next): Idem.
7254 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7255 (gomp_iter_ull_guided_next): Idem.
7256 * config/linux/wait.h (do_spin): Idem.
7258 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7260 * libgomp-plugin.h (enum offload_target_type): Remove
7261 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7262 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7263 * openacc.h (enum acc_device_t): Likewise.
7264 * openacc_lib.h: Likewise.
7265 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7266 (acc_on_device): Just use __builtin_acc_on_device.
7267 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7268 of acc_on_device builtin.
7269 * plugin/plugin-host.h: Remove file.
7270 * plugin/plugin-host.c: Likewise, but salvage some content into...
7271 * oacc-host.c: ... this file.
7272 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7273 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7274 * Makefile.in: Regenerate.
7275 * configure: Likewise.
7276 * testsuite/lib/libgomp.exp
7277 (check_effective_target_openacc_host_nonshm_selected): Remove.
7278 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7279 ACC_DEVICE_TYPE=host_nonshm.
7280 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7281 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7282 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7283 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7284 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7285 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7287 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7288 Jakub Jelinek <jakub@redhat.com>
7290 * config/nvptx/affinity.c: New file.
7291 * config/nvptx/alloc.c: Likewise.
7292 * config/nvptx/bar.c: Likewise.
7293 * config/nvptx/barrier.c: Likewise.
7294 * config/nvptx/critical.c: Likewise.
7295 * config/nvptx/env.c: Likewise.
7296 * config/nvptx/error.c: Likewise.
7297 * config/nvptx/fortran.c: Likewise.
7298 * config/nvptx/iter.c: Likewise.
7299 * config/nvptx/iter_ull.c: Likewise.
7300 * config/nvptx/libgomp-plugin.c: Likewise.
7301 * config/nvptx/lock.c: Likewise.
7302 * config/nvptx/loop.c: Likewise.
7303 * config/nvptx/loop_ull.c: Likewise.
7304 * config/nvptx/mutex.c: Likewise.
7305 * config/nvptx/oacc-async.c: Likewise.
7306 * config/nvptx/oacc-cuda.c: Likewise.
7307 * config/nvptx/oacc-host.c: Likewise.
7308 * config/nvptx/oacc-init.c: Likewise.
7309 * config/nvptx/oacc-mem.c: Likewise.
7310 * config/nvptx/oacc-parallel.c: Likewise.
7311 * config/nvptx/oacc-plugin.c: Likewise.
7312 * config/nvptx/omp-lock.h: Likewise.
7313 * config/nvptx/ordered.c: Likewise.
7314 * config/nvptx/parallel.c: Likewise.
7315 * config/nvptx/proc.c: Likewise.
7316 * config/nvptx/ptrlock.c: Likewise.
7317 * config/nvptx/sections.c: Likewise.
7318 * config/nvptx/sem.c: Likewise.
7319 * config/nvptx/single.c: Likewise.
7320 * config/nvptx/splay-tree.c: Likewise.
7321 * config/nvptx/target.c: Likewise.
7322 * config/nvptx/task.c: Likewise.
7323 * config/nvptx/team.c: Likewise.
7324 * config/nvptx/time.c: Likewise.
7325 * config/nvptx/work.c: Likewise.
7326 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7327 * configure: Regenerate.
7328 * configure.tgt (config_path): Set to "nvptx" for target
7331 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7333 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7335 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7337 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7338 (cuda_errlist): Constify.
7339 (errmsg): Move into ...
7340 (cuda_error): ... here. Make smaller.
7341 (_XSTR, _STR): Delete.
7342 (cuda_synames): Delete.
7343 (verify_device_library): Delete.
7344 (nvptx_init): Don't call it.
7346 2015-07-28 Tom de Vries <tom@codesourcery.com>
7348 * testsuite/libgomp.c/uns-outer-4.c: New test.
7350 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7352 * testsuite/libgomp.c/pr66714.c: New test.
7354 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7357 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7358 (fib_ref): New function.
7359 (fib): Correct corner cases in the recursion.
7360 (main): Replace the non-simd loop with fib_ref call.
7361 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7363 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7364 for the last array element value. Replace the non-simd loop with
7365 fib_ref call. Remove redundant b_ref array. Remove the comparison
7366 of the last array element with according Fibonacci sequence element.
7367 (fib): Correct corner cases in the recursion.
7369 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7371 * target.c (gomp_offload_image_to_device): Rename to ...
7372 (gomp_load_image_to_device): ... here.
7373 (GOMP_offload_register): Adjust call.
7374 (gomp_init_device): Likewise.
7375 (gomp_unload_image_from_device): New. Broken out of ...
7376 (GOMP_offload_unregister): ... here. Call it.
7377 (gomp_unload_device): New.
7378 * libgomp.h (gomp_unload_device): Declare.
7379 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7382 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7384 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7386 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7388 (goacc_waits): Move !num_waits handling to ...
7389 (GOACC_wait): ... here, the only caller that might have zero waits.
7391 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7392 (struct ptx_image_data): Move earlier, add fns field.
7393 (struct ptx_device): Add images and image_lock fields.
7394 (ptx_images, ptx_image_lock): Delete.
7395 (nvptx_open_device): Initialize images and image_lock fields.
7396 (nvptx_close_device): Destroy image_lock.
7397 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7398 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7401 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7403 * target.c (GOMP_offload_register): Use int for device type arg.
7404 (GOMP_offload_unregister): Likewise.
7406 * target.c (struct_offload_image_descr): Constify host_table.
7407 (gomp_offload_image_to_device): Likewise.
7408 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7410 * libgomp.h (gomp_device_descr): Constify target data arguments.
7411 * target.c (struct offload_image_descr): Constify target_data.
7412 (gomp_offload_image_to_device): Likewise.
7413 (GOMP_offload_register): Likewise.
7414 (GOMP_offload_unregister): Likewise.
7415 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7416 GOMP_OFFLOAD_unload_image): Constify target data.
7417 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7418 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7420 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7422 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7423 Workaround driver library const error.
7424 (struct nvptx_tdata, nvptx_tdata_t): New.
7425 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7428 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7430 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7431 of EPS parameter from integer to real.
7432 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7433 type of EPS parameter from integer to real.
7435 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7437 * team.c (get_last_team): New.
7438 (gomp_new_team): Recycle last non-nested team if possible.
7439 (gomp_team_end): Move team work share list free lock destruction
7441 (free_team): ... here.
7443 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7445 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7446 and ref from int to double. Replaced their comparison with
7447 an inequality of their difference and EPS.
7448 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7449 comparison of pri and a reference number with an inequality of their
7451 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7452 the comparison of sum and sum_ref with an inequality of their
7454 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7455 the comparison of pri and a reference number with an inequality of
7456 their difference and EPS.
7458 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7460 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7461 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7462 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7463 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7464 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7465 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7466 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7467 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7468 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7469 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7470 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7471 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7472 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7474 (vec_mult): Likewise. Add #pragma omp taskwait.
7475 (main): Adjust caller.
7476 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7477 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7478 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7479 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7480 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7481 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7482 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7483 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7484 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7485 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7486 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7487 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7488 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7489 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7490 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7491 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7492 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7493 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7494 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7495 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7496 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7497 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7498 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7499 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7500 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7501 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7502 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7503 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7504 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7505 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7506 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7507 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7508 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7509 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7510 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7511 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7512 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7513 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7514 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7515 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7516 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7517 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7518 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7519 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7520 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7521 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7522 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7523 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7524 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7525 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7526 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7527 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7528 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7529 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7530 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7531 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7532 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7533 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7534 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7535 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7536 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7537 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7538 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7539 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7540 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7541 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7542 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7543 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7544 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7545 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7546 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7547 (vec_mult): Add !$omp taskwait.
7548 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7549 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7550 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7551 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7552 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7553 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7554 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7555 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7556 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7557 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7558 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7559 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7560 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7561 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7562 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7563 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7564 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7565 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7566 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7567 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7568 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7569 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7570 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7571 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7572 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7573 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7574 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7575 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7576 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7577 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7578 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7579 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7580 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7581 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7582 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7583 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7584 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7585 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7586 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7587 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7588 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7589 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7590 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7591 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7592 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7593 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7594 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7595 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7596 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7597 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7598 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7599 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7600 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7601 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7602 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7603 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7604 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7605 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7606 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7607 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7608 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7609 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7610 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7611 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7612 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7613 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7614 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7616 2015-07-10 Tom de Vries <tom@codesourcery.com>
7618 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7619 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7621 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7624 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7625 in a 64-bit configuration.
7626 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7627 offloading testing if no such device is available.
7628 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7629 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7631 2015-07-08 Tom de Vries <tom@codesourcery.com>
7633 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7635 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7637 2015-07-07 Tom de Vries <tom@codesourcery.com>
7639 PR tree-optimization/66642
7640 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7641 iteration count case.
7642 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7643 function, factor out of ...
7644 (main): ... here. Test low iteration count case.
7646 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7648 * libgomp.h (gomp_thread_pool): Comment last_team field.
7650 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7652 * testsuite/libgomp.c++/pr66702-1.C: Require
7653 vect_simd_clones effective target.
7654 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7656 2015-06-30 Tom de Vries <tom@codesourcery.com>
7658 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7659 already set. Use DEFAULT_CFLAGS in dg-runtest.
7660 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7663 2015-06-30 Tom de Vries <tom@codesourcery.com>
7665 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7666 already set. Use DEFAULT_CFLAGS in dg-runtest.
7667 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7668 * testsuite/libgomp.c++/pr64824.C: Same.
7669 * testsuite/libgomp.c++/pr64868.C: Same.
7670 * testsuite/libgomp.c++/pr66199-1.C: Same.
7671 * testsuite/libgomp.c++/pr66199-2.C: Same.
7672 * testsuite/libgomp.c++/target-2.C: Same.
7673 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7674 -std=<standard> option.
7675 * testsuite/libgomp.c++/udr-11.C: Same.
7676 * testsuite/libgomp.c++/udr-12.C: Same.
7677 * testsuite/libgomp.c++/udr-13.C: Same.
7678 * testsuite/libgomp.c++/udr-14.C: Same.
7679 * testsuite/libgomp.c++/udr-15.C: Same.
7680 * testsuite/libgomp.c++/udr-16.C: Same.
7681 * testsuite/libgomp.c++/udr-17.C: Same.
7682 * testsuite/libgomp.c++/udr-18.C: Same.
7683 * testsuite/libgomp.c++/udr-19.C: Same.
7684 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7685 * testsuite/libgomp.c++/simd-1.C: Same.
7686 * testsuite/libgomp.c++/simd-2.C: Same.
7687 * testsuite/libgomp.c++/simd-3.C: Same.
7688 * testsuite/libgomp.c++/simd-4.C: Same.
7689 * testsuite/libgomp.c++/simd-5.C: Same.
7690 * testsuite/libgomp.c++/simd-6.C: Same.
7691 * testsuite/libgomp.c++/simd-7.C: Same.
7692 * testsuite/libgomp.c++/simd-8.C: Same.
7693 * testsuite/libgomp.c++/simd-9.C: Same.
7694 * testsuite/libgomp.c++/simd10.C: Same.
7695 * testsuite/libgomp.c++/simd11.C: Same.
7696 * testsuite/libgomp.c++/simd12.C: Same.
7697 * testsuite/libgomp.c++/simd13.C: Same.
7699 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7702 * testsuite/libgomp.c++/pr66702-1.C: New test.
7703 * testsuite/libgomp.c++/pr66702-2.C: New test.
7705 2015-06-30 Tom de Vries <tom@codesourcery.com>
7707 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7708 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7709 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7710 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7712 2015-06-30 Tom de Vries <tom@codesourcery.com>
7714 PR tree-optimization/66652
7715 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7716 using restrict pointers.
7717 (main): Add arguments to calls to f.
7718 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7720 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7722 * configure.ac: Fix check for header <sys/sysctl.h>.
7723 * configure: Regenerate.
7724 * config.h.in: Likewise.
7726 2015-06-23 Tom de Vries <tom@codesourcery.com>
7728 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7730 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7732 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7734 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7738 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7739 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7741 2015-06-15 Tom de Vries <tom@codesourcery.com>
7743 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7744 dg-additional-options for any remaining options.
7745 * testsuite/libgomp.c/atomic-2.c: Same.
7746 * testsuite/libgomp.c/atomic-4.c: Same.
7747 * testsuite/libgomp.c/atomic-5.c: Same.
7748 * testsuite/libgomp.c/atomic-6.c: Same.
7749 * testsuite/libgomp.c/autopar-1.c: Same.
7750 * testsuite/libgomp.c/copyin-1.c: Same.
7751 * testsuite/libgomp.c/copyin-2.c: Same.
7752 * testsuite/libgomp.c/copyin-3.c: Same.
7753 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7754 * testsuite/libgomp.c/nestedfn-5.c: Same.
7755 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7756 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7757 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7758 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7759 * testsuite/libgomp.c/pr32362-1.c: Same.
7760 * testsuite/libgomp.c/pr32362-2.c: Same.
7761 * testsuite/libgomp.c/pr32362-3.c: Same.
7762 * testsuite/libgomp.c/pr39591-1.c: Same.
7763 * testsuite/libgomp.c/pr39591-2.c: Same.
7764 * testsuite/libgomp.c/pr39591-3.c: Same.
7765 * testsuite/libgomp.c/pr58392.c: Same.
7766 * testsuite/libgomp.c/pr58756.c: Same.
7767 * testsuite/libgomp.c/simd-1.c: Same.
7768 * testsuite/libgomp.c/simd-10.c: Same.
7769 * testsuite/libgomp.c/simd-11.c: Same.
7770 * testsuite/libgomp.c/simd-12.c: Same.
7771 * testsuite/libgomp.c/simd-13.c: Same.
7772 * testsuite/libgomp.c/simd-14.c: Same.
7773 * testsuite/libgomp.c/simd-15.c: Same.
7774 * testsuite/libgomp.c/simd-2.c: Same.
7775 * testsuite/libgomp.c/simd-3.c: Same.
7776 * testsuite/libgomp.c/simd-4.c: Same.
7777 * testsuite/libgomp.c/simd-5.c: Same.
7778 * testsuite/libgomp.c/simd-6.c: Same.
7779 * testsuite/libgomp.c/simd-7.c: Same.
7780 * testsuite/libgomp.c/simd-8.c: Same.
7781 * testsuite/libgomp.c/simd-9.c: Same.
7783 2015-06-15 Tom de Vries <tom@codesourcery.com>
7785 * testsuite/libgomp.c/pr35625.c: Fix typo.
7787 2015-06-15 Tom de Vries <tom@codesourcery.com>
7789 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7791 * testsuite/libgomp.c/atomic-3.c: Same.
7792 * testsuite/libgomp.c/debug-1.c: Same.
7793 * testsuite/libgomp.c/nqueens-1.c: Same.
7794 * testsuite/libgomp.c/pr26171.c: Same.
7795 * testsuite/libgomp.c/pr48591.c: Same.
7796 * testsuite/libgomp.c/pr64824.c: Same.
7797 * testsuite/libgomp.c/pr64868.c: Same.
7798 * testsuite/libgomp.c/pr66133.c: Same.
7799 * testsuite/libgomp.c/pr66199-1.c: Same.
7800 * testsuite/libgomp.c/pr66199-2.c: Same.
7801 * testsuite/libgomp.c/target-8.c: Same.
7803 2015-06-15 Tom de Vries <tom@codesourcery.com>
7805 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7807 * testsuite/libgomp.c/for-1.c: Same.
7808 * testsuite/libgomp.c/for-2.c: Same.
7809 * testsuite/libgomp.c/for-3.c: Same.
7810 * testsuite/libgomp.c/pr35625.c: Same.
7811 * testsuite/libgomp.c/pr39154.c: Same.
7812 * testsuite/libgomp.c/simd-16.c: Same.
7813 * testsuite/libgomp.c/simd-17.c: Same.
7815 2015-06-13 Tom de Vries <tom@codesourcery.com>
7817 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7819 2015-06-13 Tom de Vries <tom@codesourcery.com>
7821 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7822 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7823 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7825 (main): Use N instead of hardcoded constants.
7827 2015-06-05 Tom de Vries <tom@codesourcery.com>
7829 merge from gomp4 branch:
7830 2015-05-28 Tom de Vries <tom@codesourcery.com>
7832 PR tree-optimization/65443
7833 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7834 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7835 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7837 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7839 * testsuite/libgomp.graphite/bounds.c: Adjust for
7840 cleanup-tree-dump removal.
7841 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7842 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7843 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7844 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7845 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7846 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7847 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7848 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7849 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7850 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7852 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7854 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7855 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7856 (futex_wake) [!__x86_64__]: Ditto.
7858 2015-05-28 Julian Brown <julian@codesourcery.com>
7860 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7861 function comment. Only call gomp_fatal if new argument is true.
7862 (acc_dev_num_out_of_range): New function.
7863 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7864 acc_dev_num_out_of_range as appropriate.
7865 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7866 (acc_get_device_num, acc_set_device_num): Update calls to
7868 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7871 2015-05-28 Julian Brown <julian@codesourcery.com>
7874 * oacc-init.c (plugin/plugin-host.h): Include.
7875 (acc_on_device): Check whether we're in an offloaded region for
7877 plugin. Don't use __builtin_acc_on_device.
7878 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7879 nonshm_exec flag in thread-local data.
7880 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7881 data for host_nonshm plugin.
7882 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7883 for host_nonshm plugin.
7884 * plugin/plugin-host.h: New.
7886 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7888 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7890 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7892 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7894 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7895 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7898 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7900 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7902 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7904 * target.c (gomp_map_pointer): New function abstracting out
7905 GOMP_MAP_POINTER handling.
7906 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7909 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7912 * testsuite/libgomp.c/pr66199-1.c: New test.
7913 * testsuite/libgomp.c/pr66199-2.c: New test.
7914 * testsuite/libgomp.c++/pr66199-1.C: New test.
7915 * testsuite/libgomp.c++/pr66199-2.C: New test.
7916 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7917 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7919 2015-05-19 Julian Brown <julian@codesourcery.com>
7921 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7924 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7927 * testsuite/libgomp.c/pr66133.c: New test.
7929 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7931 * Makefile.in: Regenerated with automake-1.11.6.
7932 * aclocal.m4: Likewise.
7933 * config.h.in: Likewise.
7934 * configure: Likewise.
7935 * testsuite/Makefile.in: Likewise.
7937 2015-05-08 Jason Merrill <jason@redhat.com>
7939 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7942 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7944 2015-05-06 Julian Brown <julian@codesourcery.com>
7946 * oacc-init.c (acc_device_lock): Add explanatory comment.
7947 (resolve_device): Add comment about locking requirement.
7948 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7949 gomp_init_device and gomp_fini_device calls.
7950 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7951 (acc_get_device_num, acc_set_device_num): Add locking around
7952 resolve_device and gomp_init_device calls.
7954 2015-05-06 Julian Brown <julian@codesourcery.com>
7956 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7957 goacc_thread_lock on error paths.
7958 * oacc-mem.c (lookup_host): Remove locking from function. Note
7959 locking requirement for caller in function comment.
7960 (lookup_dev): Likewise.
7961 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7962 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7963 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7966 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7970 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7971 don't expect "0x" prefix for "%p" format specifier, don't expect
7972 "(nil)" for NULL pointer.
7973 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7976 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7977 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7978 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7979 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7980 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7981 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7982 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7983 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7984 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7990 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7991 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7992 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7994 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7995 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7997 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8002 accurately specify what we're looking for.
8003 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8005 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8006 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8007 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8009 2015-04-30 James Norris <jnorris@codesourcery.com>
8012 * testsuite/lib/libgomp.exp
8013 (check_effective_target_openacc_host_selected)
8014 (check_effective_target_openacc_host_nonshm_selected): New
8016 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8018 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8020 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8021 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8022 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8023 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8024 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8025 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8026 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8027 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8028 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8029 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8030 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8031 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8035 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8036 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8037 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8038 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8039 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8040 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8041 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8042 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8043 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8044 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8045 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8046 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8047 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8048 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8049 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8050 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8051 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8052 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8053 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8054 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8055 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8056 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8057 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8058 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8059 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8060 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8062 2015-04-08 Julian Brown <julian@codesourcery.com>
8064 * libgomp.h (target_mem_desc: Remove mem_map field.
8065 (acc_dispatch_t): Remove open_device_func, close_device_func,
8066 get_device_num_func, set_device_num_func, target_data members.
8067 Change create_thread_data_func argument to device number instead of
8069 * oacc-async.c (assert.h): Include.
8070 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8071 (acc_wait_all, acc_wait_all_async): Use current host thread's
8072 active device, not base_dev.
8073 * oacc-cuda.c (acc_get_current_cuda_device)
8074 (acc_get_current_cuda_context, acc_get_cuda_stream)
8075 (acc_set_cuda_stream): Likewise.
8076 * oacc-host.c (host_dispatch): Don't set open_device_func,
8077 close_device_func, get_device_num_func or set_device_num_func.
8078 * oacc-init.c (base_dev, init_key): Remove.
8079 (cached_base_dev): New.
8080 (name_of_acc_device_t): New.
8081 (acc_init_1): Initialise default-numbered device, not zeroth.
8082 (acc_shutdown_1): Close all devices of a given type.
8083 (goacc_destroy_thread): Don't use base_dev.
8084 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8085 (goacc_attach_host_thread_to_device): New.
8086 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8087 (acc_get_num_devices): Don't use base_dev.
8088 (acc_set_device_type): Reimplement.
8089 (acc_get_device_type): Don't use base_dev.
8090 (acc_get_device_num): Tweak logic.
8091 (acc_set_device_num): Likewise.
8092 (acc_on_device): Use acc_get_device_type.
8093 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8094 (goacc_lazy_initialize): Reimplement with acc_init and
8095 goacc_attach_host_thread_to_device.
8096 * oacc-int.h (goacc_thread): Add base_dev field.
8097 (base_dev): Remove extern declaration.
8098 (goacc_attach_host_thread_to_device): Add prototype.
8099 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8101 (acc_free): Likewise.
8102 (acc_memcpy_to_device): Likewise.
8103 (acc_memcpy_from_device): Likewise.
8104 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8105 goacc_lazy_initialize (throughout).
8106 (GOACC_parallel): Use tgt_offset to locate target functions.
8107 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8108 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8109 (gomp_load_plugin_for_device): Remove open_device, close_device,
8110 get_device_num, set_device_num openacc hook initialisation. Don't set
8111 openacc.target_data.
8112 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8113 (GOMP_OFFLOAD_openacc_close_device)
8114 (GOMP_OFFLOAD_openacc_get_device_num)
8115 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8116 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8118 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8119 (instantiated_devices, ptx_dev_lock): New.
8120 (struct ptx_image_data): New.
8121 (ptx_devices, ptx_images, ptx_image_lock): New.
8122 (fini_streams_for_device): Reorder cuStreamDestroy call.
8123 (nvptx_get_num_devices): Remove forward declaration.
8124 (nvptx_init): Change return type to bool.
8125 (nvptx_fini): Remove.
8126 (nvptx_attach_host_thread_to_device): New.
8127 (nvptx_open_device): Return struct ptx_device* instead of void*.
8128 (nvptx_close_device): Change argument type to struct ptx_device*,
8129 return type to void.
8130 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8131 (kernel_target_data, kernel_host_table): Remove static globals.
8132 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8133 (GOMP_OFFLOAD_init_device): Reimplement.
8134 (GOMP_OFFLOAD_fini_device): Likewise.
8135 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8136 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8137 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8138 (GOMP_OFFLOAD_openacc_open_device)
8139 (GOMP_OFFLOAD_openacc_close_device)
8140 (GOMP_OFFLOAD_openacc_set_device_num)
8141 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8142 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8146 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8148 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8150 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8151 * libgomp.h (struct gomp_memory_mapping): Remove.
8152 (struct target_mem_desc): Change type of mem_map from
8153 gomp_memory_mapping * to splay_tree_s *.
8154 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8155 Add load_image_func, unload_image_func.
8156 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8157 Remove offload_regions_registered.
8158 (gomp_init_tables): Remove.
8159 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8161 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8162 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8163 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8164 offload_regions_registered.
8165 Initialize load_image_func, unload_image_func, mem_map.root.
8166 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8167 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8168 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8169 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8170 gomp_memory_mapping *. Use dev's lock and splay_tree.
8171 (lookup_dev): Use dev's lock.
8172 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8173 (acc_is_present): Likewise.
8174 (acc_map_data): Likewise.
8175 (acc_unmap_data): Likewise. Use dev's lock.
8176 (present_create_copy): Likewise.
8177 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8178 (update_dev_host): Likewise.
8179 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8180 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8181 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8182 (GOMP_OFFLOAD_get_table): Remove
8183 (GOMP_OFFLOAD_load_image): New function.
8184 (GOMP_OFFLOAD_unload_image): New function.
8185 * target.c (register_lock): New mutex for offload image registration.
8186 (num_devices): Do not guard with PLUGIN_SUPPORT.
8187 (gomp_realloc_unlock): New static function.
8188 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8190 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8191 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8192 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8194 (gomp_unmap_vars): Likewise.
8195 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8196 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8197 (gomp_offload_image_to_device): New static function.
8198 (GOMP_offload_register): Add mutex lock.
8199 Call gomp_offload_image_to_device for all initialized devices.
8200 Replace gomp_realloc with gomp_realloc_unlock.
8201 (GOMP_offload_unregister): New function.
8202 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8203 get_table_func from the plugin with calls to init_device_func and
8204 gomp_offload_image_to_device.
8205 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8207 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8208 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8209 (GOMP_target_data): Do not call gomp_init_tables.
8210 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8211 (gomp_load_plugin_for_device): Replace register_image and get_table
8212 with load_image and unload_image in DLSYM ().
8213 (gomp_register_images_for_device): Remove function.
8214 (gomp_target_init): Do not initialize current_device.mem_map.*,
8215 current_device.offload_regions_registered.
8216 Remove call to gomp_register_images_for_device.
8217 Do not free offload_images and num_offload_images.
8219 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8222 * testsuite/libgomp.fortran/pr65597.f90: New test.
8224 2015-03-27 Tom de Vries <tom@codesourcery.com>
8227 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8228 (init, check): New function.
8229 (foo): Change return type to void.
8230 (main): Call init and check.
8232 2015-03-27 Tom de Vries <tom@codesourcery.com>
8235 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8236 (foo): Use M for non-inner loops to scale down test-case.
8238 2015-03-25 Kai Tietz <ktietz@redhat.com>
8241 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8242 (GOACC_data_start): Likewise.
8243 * target.c (gomp_map_vars): Likewise.
8245 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8247 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8250 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8252 * testsuite/libgomp.c/target-10.c: New test.
8253 * testsuite/libgomp.c++/target-4.C: New test.
8255 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8257 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8258 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8260 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8262 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8263 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8264 (pthread.h): Check for this header file.
8265 * configure: Regenerate.
8267 2015-02-25 Tom de Vries <tom@codesourcery.com>
8269 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8270 (check_reduction_op, check_reduction_macro, max, min):
8272 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8274 (main): Use new functions.
8276 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8278 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8279 char * for variables holding dlerror return values.
8282 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8284 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8286 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8287 Cesar Philippidis <cesar@codesourcery.com>
8289 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8290 GOACC_ctaid, and GOACC_nctaid routines.
8292 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8295 * testsuite/libgomp.c/atomic-18.c: New test.
8296 * testsuite/libgomp.c++/atomic-16.C: New test.
8298 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8302 * testsuite/libgomp.c/pr64824.c: New test.
8303 * testsuite/libgomp.c/pr64868.c: New test.
8304 * testsuite/libgomp.c++/pr64824.C: New test.
8305 * testsuite/libgomp.c++/pr64868.C: New test.
8307 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8310 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8311 Link with -lpthread.
8312 * config/aix/plugin-suffix.h: Delete.
8314 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8317 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8318 (*-*-darwin*): Use config_path "bsd darwin posix".
8319 (*-*-hpux*): Use config_path "hpux posix".
8320 * target.c: Add include of plugin-suffix.h and use
8321 SONAME_SUFFIX macro.
8322 * config/aix/plugin-suffix.h: New file.
8323 * config/darwin/plugin-suffix.h: New file.
8324 * config/hpux/plugin-suffix.h: New file.
8325 * config/posix/plugin-suffix.h: New file.
8327 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8330 * libgomp.c/pr64734.c: New test.
8332 2015-01-23 Tom de Vries <tom@codesourcery.com>
8335 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8337 2015-01-23 Tom de Vries <tom@codesourcery.com>
8340 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8343 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8346 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8347 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8348 formal parameter. Update all users.
8349 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8350 Document unused formal parameter.
8352 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8354 * oacc-parallel.c: Don't include <alloca.h>.
8355 (GOACC_parallel): Use gomp_alloca instead of alloca.
8357 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8359 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8361 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8362 James Norris <jnorris@codesourcery.com>
8363 Tom de Vries <tom@codesourcery.com>
8364 Julian Brown <julian@codesourcery.com>
8365 Cesar Philippidis <cesar@codesourcery.com>
8366 Nathan Sidwell <nathan@codesourcery.com>
8367 Tobias Burnus <burnus@net-b.de>
8369 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8370 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8371 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8372 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8373 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8374 Include $(top_srcdir)/plugin/Makefrag.am.
8375 (nodist_libsubinclude_HEADERS): Add openacc.h.
8376 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8377 openacc.f90, openacc.mod, openacc_kinds.mod.
8378 (omp_lib.mod): Generalize into...
8379 (%.mod): ... this new rule.
8380 (openacc_kinds.mod, openacc.mod): New rules.
8381 * plugin/configfrag.ac: New file.
8382 * configure.ac: Move plugin/offloading support into it. Include
8383 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8384 * plugin/Makefrag.am: New file.
8385 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8386 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8388 (libgomp-test-support.exp): New rule.
8389 (all-local): Depend on it.
8390 * Makefile.in: Regenerate.
8391 * testsuite/Makefile.in: Regenerate.
8392 * config.h.in: Likewise.
8393 * configure: Likewise.
8394 * configure.tgt: Harden shell syntax.
8395 * env.c: Include "oacc-int.h".
8396 (parse_acc_device_type): New function.
8397 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8399 (initialize_env): Initialize those. Call
8400 goacc_runtime_initialize.
8401 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8402 (gomp_fatal): Call gomp_vfatal.
8403 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8404 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8405 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8406 (splay_tree_node, splay_tree, splay_tree_key)
8407 (struct target_mem_desc, struct splay_tree_key_s)
8408 (struct gomp_memory_mapping, struct acc_dispatch_t)
8409 (struct gomp_device_descr, gomp_acc_insert_pointer)
8410 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8411 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8412 (gomp_free_memmap, gomp_fini_device): New declarations.
8413 (gomp_vdebug, gomp_debug): New macros.
8414 Include "splay-tree.h".
8415 * libgomp.map (OACC_2.0): New symbol version. Use for
8416 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8417 acc_set_device_type_h_, acc_get_device_type,
8418 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8419 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8420 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8421 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8422 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8423 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8424 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8425 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8426 acc_copyin_array_h_, acc_present_or_copyin,
8427 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8428 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8429 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8430 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8431 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8432 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8433 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8434 acc_update_device, acc_update_device_32_h_,
8435 acc_update_device_64_h_, acc_update_device_array_h_,
8436 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8437 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8438 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8439 acc_is_present_64_h_, acc_is_present_array_h_,
8440 acc_memcpy_to_device, acc_memcpy_from_device,
8441 acc_get_current_cuda_device, acc_get_current_cuda_context,
8442 acc_get_cuda_stream, acc_set_cuda_stream.
8443 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8444 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8445 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8446 GOACC_get_num_threads.
8447 (GOMP_PLUGIN_1.0): New symbol version. Use for
8448 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8449 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8450 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8451 GOMP_PLUGIN_acc_thread.
8452 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8453 environment variable.
8454 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8455 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8456 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8457 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8458 (splay_tree_remove): New declarations.
8459 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8460 (splay_tree_remove, splay_tree_lookup): Move into...
8461 * splay-tree.c: ... this new file.
8462 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8463 (splay_tree_node, splay_tree, splay_tree_key)
8464 (struct target_mem_desc, struct splay_tree_key_s)
8465 (struct gomp_device_descr): Don't declare.
8466 (num_devices_openmp): New variable.
8467 (gomp_get_num_devices ): Use it.
8468 (gomp_init_targets_once): New function.
8469 (gomp_get_num_devices ): Use it.
8470 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8471 (gomp_fini_device, gomp_register_image_for_device): New functions.
8472 (gomp_map_vars): Add devaddrs parameter.
8473 (gomp_update): Add mm parameter.
8474 (gomp_init_device): Move most of it into...
8475 (gomp_init_tables): ... this new function.
8476 (gomp_register_images_for_device): Remove function.
8477 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8478 Make them hidden instead of static.
8479 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8480 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8481 (GOMP_target_end_data, GOMP_target_update)
8482 (gomp_load_plugin_for_device, gomp_target_init): Update for
8484 * oacc-async.c: New file.
8485 * oacc-cuda.c: Likewise.
8486 * oacc-host.c: Likewise.
8487 * oacc-init.c: Likewise.
8488 * oacc-int.h: Likewise.
8489 * oacc-mem.c: Likewise.
8490 * oacc-parallel.c: Likewise.
8491 * oacc-plugin.c: Likewise.
8492 * oacc-plugin.h: Likewise.
8493 * oacc-ptx.h: Likewise.
8494 * openacc.f90: Likewise.
8495 * openacc.h: Likewise.
8496 * openacc_lib.h: Likewise.
8497 * plugin/plugin-host.c: Likewise.
8498 * plugin/plugin-nvptx.c: Likewise.
8499 * libgomp-plugin.c: Likewise.
8500 * libgomp-plugin.h: Likewise.
8501 * libgomp_target.h: Remove file after merging content into the
8502 former file. Update all users.
8503 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8504 (offload_targets_s, offload_targets_s_openacc): New variables.
8505 (check_effective_target_openacc_nvidia_accel_present)
8506 (check_effective_target_openacc_nvidia_accel_selected): New
8508 (libgomp_init): Update for OpenACC changes.
8509 * testsuite/libgomp-test-support.exp.in: New file.
8510 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8511 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8512 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8516 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8521 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8522 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8524 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8525 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8526 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8527 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8528 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8529 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8530 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8531 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8532 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8533 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8534 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8535 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8536 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8537 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8538 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8539 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8540 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8541 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8542 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8543 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8544 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8545 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8546 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8547 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8548 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8549 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8550 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8551 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8552 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8553 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8554 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8555 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8556 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8557 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8558 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8559 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8560 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8561 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8562 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8563 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8564 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8565 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8566 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8567 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8568 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8569 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8570 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8571 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8572 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8573 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8574 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8575 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8576 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8577 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8578 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8579 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8580 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8581 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8582 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8583 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8584 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8585 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8586 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8587 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8588 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8589 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8590 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8591 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8592 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8593 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8594 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8595 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8596 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8597 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8598 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8599 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8600 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8601 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8602 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8603 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8604 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8605 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8606 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8607 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8608 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8609 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8610 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8611 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8612 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8613 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8614 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8615 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8616 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8617 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8618 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8619 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8620 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8621 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8622 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8623 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8624 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8625 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8626 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8627 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8628 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8629 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8630 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8631 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8632 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8633 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8634 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8635 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8636 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8637 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8638 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8639 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8640 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8641 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8642 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8643 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8644 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8645 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8646 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8647 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8648 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8649 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8651 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8652 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8653 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8654 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8655 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8656 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8657 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8658 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8659 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8660 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8661 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8662 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8663 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8664 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8665 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8666 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8667 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8668 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8669 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8670 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8671 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8672 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8673 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8674 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8675 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8676 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8677 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8678 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8679 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8680 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8681 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8682 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8683 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8684 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8685 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8686 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8687 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8688 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8689 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8690 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8691 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8692 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8693 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8694 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8695 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8696 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8697 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8698 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8699 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8700 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8701 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8702 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8703 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8704 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8705 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8706 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8707 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8708 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8709 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8710 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8712 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8713 Julian Brown <julian@codesourcery.com>
8714 David Malcolm <dmalcolm@redhat.com>
8716 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8717 to "GNU Offloading and Multi Processing Runtime Library". Change
8719 * configure: Regenerate.
8720 * libgomp.texi: Update.
8722 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8724 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8726 * configure: Regenerate.
8728 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8729 "intelmic" in $offload_targets.
8731 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8733 Update copyright years.
8735 * libgomp.texi: Bump @copying's copyright year.
8737 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8739 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8740 Move load of target-supports.exp earlier.
8742 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8744 * testsuite/libgomp.c/target-9.c: New test.
8746 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8748 * config.h.in: Regenerate.
8749 * configure: Regenerate.
8750 * configure.ac: Add GCC_CHECK_EMUTLS.
8751 * libgomp.h: Add check for USE_EMUTLS: this case
8752 is equal to HAVE_TLS.
8755 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8757 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8759 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8760 Ilya Verbin <ilya.verbin@intel.com>
8762 * testsuite/libgomp.c/target-critical-1.c: New test.
8764 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8766 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8767 to dg-options unless expensive testing is on.
8768 (TESTITERS): Define to N if not defined.
8769 (main): Use TESTITERS instead of N.
8770 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8771 dg-additional-options depending on whether expensive testing is on.
8772 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8773 Decrease N to 100000 and CHUNKSZ to 10000.
8775 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8778 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8779 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8781 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8783 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8785 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8788 * configure: Regenerated.
8790 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8792 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8793 vect_simd_clones effective target.
8794 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8796 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8798 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8799 of 32 as block_size.
8800 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8801 instead of 32 as block_size.
8803 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8804 Ilya Verbin <ilya.verbin@intel.com>
8806 * Makefile.in: Regenerate.
8807 * configure: Regenerate.
8808 * configure.ac: Set up offload_additional_options,
8809 offload_additional_lib_paths and offload_targets.
8810 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8811 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8812 * testsuite/Makefile.in: Regenerate.
8813 * testsuite/lib/libgomp.exp (libgomp_init): Append
8814 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8815 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8816 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8818 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8819 Ilya Verbin <ilya.verbin@intel.com>
8820 Kirill Yukhin <kirill.yukhin@intel.com>
8821 Ilya Tocar <ilya.tocar@intel.com>
8823 * testsuite/lib/libgomp.exp
8824 (check_effective_target_offload_device): New.
8825 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8826 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8827 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8828 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8829 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8830 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8831 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8832 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8833 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8834 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8835 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8836 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8837 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8838 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8839 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8840 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8841 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8842 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8843 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8844 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8845 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8846 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8847 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8848 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8849 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8850 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8851 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8852 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8853 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8854 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8855 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8856 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8857 * testsuite/libgomp.c/target-7.c: Fix test.
8858 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8859 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8860 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8861 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8862 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8863 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8864 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8865 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8866 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8867 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8868 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8869 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8870 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8871 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8872 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8873 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8874 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8875 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8876 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8877 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8878 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8879 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8880 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8881 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8882 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8883 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8884 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8885 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8886 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8887 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8888 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8890 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8891 Ilya Verbin <ilya.verbin@intel.com>
8892 Thomas Schwinge <thomas@codesourcery.com>
8893 Andrey Turetskiy <andrey.turetskiy@intel.com>
8895 * libgomp.map (GOMP_4.0.1): New symbol version.
8896 Add GOMP_offload_register.
8897 * libgomp_target.h: New file.
8898 * splay-tree.h: New file.
8899 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8900 (gomp_target_init): New forward declaration.
8901 (gomp_is_initialized): New static variable.
8902 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8903 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8905 (offload_images, num_offload_images, devices, num_devices): New static
8907 (splay_compare): New static function.
8908 (struct gomp_device_descr): New structure.
8909 (gomp_get_num_devices): Call gomp_target_init.
8910 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8911 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8912 (GOMP_offload_register): New function.
8913 (GOMP_target): Arrange for host callback to be performed in a separate
8914 initial thread and contention group, inheriting ICVs from
8915 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8916 Add device initialization and lookup for target function in splay tree.
8917 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8918 (GOMP_target_end_data): Call gomp_unmap_vars.
8919 (GOMP_target_update): Add device initialization and call gomp_update.
8920 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8921 (gomp_target_init): New static functions.
8923 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8924 Thomas Schwinge <thomas@codesourcery.com>
8925 Ilya Verbin <ilya.verbin@intel.com>
8926 Andrey Turetskiy <andrey.turetskiy@intel.com>
8928 * config.h.in: Regenerate.
8929 * configure: Regenerate.
8930 * configure.ac: Check for libdl, required for plugin support.
8931 (PLUGIN_SUPPORT): Define if plugins are supported.
8932 (enable_offload_targets): Support Intel MIC targets.
8933 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8935 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8938 * configure: Regenerate.
8940 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8942 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8944 2014-10-06 Marek Polacek <polacek@redhat.com>
8946 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8947 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8948 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8949 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8951 2014-10-06 Marek Polacek <polacek@redhat.com>
8953 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8954 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8955 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8956 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8957 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8958 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8959 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8960 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8961 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8962 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8963 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8964 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8965 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8966 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8967 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8968 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8969 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8970 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8973 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8976 * testsuite/libgomp.c/pr61200.c: New test.
8978 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8981 * testsuite/libgomp.c++/pr63248.C: New test.
8983 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8985 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8986 is not zero, but taskgroup->children is NULL and there are
8987 any task->children, schedule those instead of waiting.
8988 * testsuite/libgomp.c/depend-6.c: New test.
8989 * testsuite/libgomp.c/depend-7.c: New test.
8990 * testsuite/libgomp.c/depend-8.c: New test.
8991 * testsuite/libgomp.c/depend-9.c: New test.
8992 * testsuite/libgomp.c/depend-10.c: New test.
8994 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8996 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8997 (struct gomp_taskwait): New type.
8998 (struct gomp_task): Add taskwait and parent_depends_on, remove
8999 in_taskwait and taskwait_sem fields.
9000 (gomp_finish_task): Don't destroy taskwait_sem.
9001 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9002 taskwait and parent_depends_on.
9003 (GOMP_task): For if (0) tasks with depend clause that depend on
9004 earlier tasks don't defer them, instead call
9005 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9006 Initialize redundant_out field, for redundant out entries just
9007 move them at the end of linked list instead of removing them
9008 completely, and set redundant_out flag instead of redundant.
9009 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9011 (gomp_task_run_post_handle_dependers): If parent is in
9012 gomp_task_maybe_wait_for_dependencies and newly runnable task
9013 is not parent_depends_on, queue it in parent->children linked
9014 list after all runnable tasks with parent_depends_on set.
9015 Adjust for addition of taskwait indirection.
9016 (gomp_task_run_post_remove_parent): If parent is in
9017 gomp_task_maybe_wait_for_dependencies and task to be removed
9018 is parent_depends_on, decrement n_depend and if needed awake
9019 parent. Adjust for addition of taskwait indirection.
9020 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9021 (gomp_task_maybe_wait_for_dependencies): New function.
9022 * testsuite/libgomp.c/depend-5.c: New test.
9024 2014-07-13 Tobias Burnus <burnus@net-b.de>
9026 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9027 with TS 18508/Fortran 2015.
9029 2014-07-06 Marek Polacek <polacek@redhat.com>
9032 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9034 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9036 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9037 matches regex $lang_source_re, add $lang_include_flags to options.
9038 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9039 * testsuite/libgomp.c++/c++.exp: Likewise.
9040 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9041 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9043 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9045 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9047 * testsuite/libgomp.fortran/fortran.exp: Explain
9048 gfortran-dg-runtest usage.
9050 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9052 * testsuite/libgomp.fortran/simd5.f90: New test.
9053 * testsuite/libgomp.fortran/simd6.f90: New test.
9054 * testsuite/libgomp.fortran/simd7.f90: New test.
9056 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9058 * testsuite/libgomp.c/for-2.c: Define SC to static for
9059 #pragma omp for simd testing.
9060 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9061 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9063 * testsuite/libgomp.c/simd-14.c: New test.
9064 * testsuite/libgomp.c/simd-15.c: New test.
9065 * testsuite/libgomp.c/simd-16.c: New test.
9066 * testsuite/libgomp.c/simd-17.c: New test.
9067 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9068 #pragma omp for simd testing.
9069 * testsuite/libgomp.c++/simd10.C: New test.
9070 * testsuite/libgomp.c++/simd11.C: New test.
9071 * testsuite/libgomp.c++/simd12.C: New test.
9072 * testsuite/libgomp.c++/simd13.C: New test.
9074 * testsuite/libgomp.fortran/aligned1.f03: New test.
9075 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9076 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9077 tasks with !$omp parallel !$omp single.
9078 * testsuite/libgomp.fortran/target8.f90: New test.
9079 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9080 not to use trim in the combiner, instead call elemental function.
9081 (fn): New elemental function.
9082 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9084 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9086 * testsuite/libgomp.fortran/udr12.f90: New test.
9087 * testsuite/libgomp.fortran/udr13.f90: New test.
9088 * testsuite/libgomp.fortran/udr14.f90: New test.
9089 * testsuite/libgomp.fortran/udr15.f90: New test.
9091 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9093 * omp_lib.f90.in (openmp_version): Set to 201307.
9094 * omp_lib.h.in (openmp_version): Likewise.
9095 * testsuite/libgomp.c/target-8.c: New test.
9096 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9097 and inbranch clauses.
9098 * testsuite/libgomp.fortran/depend-3.f90: New test.
9099 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9101 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9102 * testsuite/libgomp.fortran/target1.f90: New test.
9103 * testsuite/libgomp.fortran/target2.f90: New test.
9104 * testsuite/libgomp.fortran/target3.f90: New test.
9105 * testsuite/libgomp.fortran/target4.f90: New test.
9106 * testsuite/libgomp.fortran/target5.f90: New test.
9107 * testsuite/libgomp.fortran/target6.f90: New test.
9108 * testsuite/libgomp.fortran/target7.f90: New test.
9110 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9113 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9114 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9115 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9116 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9117 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9118 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9119 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9120 * testsuite/libgomp.fortran/associate1.f90: New test.
9121 * testsuite/libgomp.fortran/associate2.f90: New test.
9122 * testsuite/libgomp.fortran/procptr1.f90: New test.
9124 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9126 * testsuite/libgomp.fortran/simd1.f90: New test.
9127 * testsuite/libgomp.fortran/udr1.f90: New test.
9128 * testsuite/libgomp.fortran/udr2.f90: New test.
9129 * testsuite/libgomp.fortran/udr3.f90: New test.
9130 * testsuite/libgomp.fortran/udr4.f90: New test.
9131 * testsuite/libgomp.fortran/udr5.f90: New test.
9132 * testsuite/libgomp.fortran/udr6.f90: New test.
9133 * testsuite/libgomp.fortran/udr7.f90: New test.
9134 * testsuite/libgomp.fortran/udr8.f90: New test.
9135 * testsuite/libgomp.fortran/udr9.f90: New test.
9136 * testsuite/libgomp.fortran/udr10.f90: New test.
9137 * testsuite/libgomp.fortran/udr11.f90: New test.
9139 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9141 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9142 vect_simd_clones effective target.
9143 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9145 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9148 * testsuite/libgomp.c++/simd-9.C: New test.
9150 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9152 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9153 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9154 texts according to their @menu entry positions.
9156 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9158 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9159 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9160 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9161 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9162 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9163 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9164 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9165 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9166 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9167 * testsuite/libgomp.fortran/depend-1.f90: New test.
9168 * testsuite/libgomp.fortran/depend-2.f90: New test.
9169 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9170 * testsuite/libgomp.fortran/simd1.f90: New test.
9171 * testsuite/libgomp.fortran/simd2.f90: New test.
9172 * testsuite/libgomp.fortran/simd3.f90: New test.
9173 * testsuite/libgomp.fortran/simd4.f90: New test.
9174 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9176 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9178 * testsuite/libgomp.c/simd-10.c: New test.
9179 * testsuite/libgomp.c/simd-11.c: New test.
9180 * testsuite/libgomp.c/simd-12.c: New test.
9181 * testsuite/libgomp.c/simd-13.c: New test.
9183 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9185 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9186 atomic type clauses in any order and optional comma in between.
9187 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9188 * testsuite/libgomp.c/atomic-17.c: Likewise.
9190 * testsuite/libgomp.c/simd-7.c: New test.
9191 * testsuite/libgomp.c/simd-8.c: New test.
9192 * testsuite/libgomp.c/simd-9.c: New test.
9193 * testsuite/libgomp.c/loop-16.c: New test.
9195 2014-04-02 Richard Henderson <rth@redhat.com>
9197 * config/linux/futex.h (futex_wait): Get error value from errno.
9198 (futex_wake): Likewise.
9200 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9203 * testsuite/libgomp.c++/udr-11.C: New test.
9204 * testsuite/libgomp.c++/udr-12.C: New test.
9205 * testsuite/libgomp.c++/udr-13.C: New test.
9206 * testsuite/libgomp.c++/udr-14.C: New test.
9207 * testsuite/libgomp.c++/udr-15.C: New test.
9208 * testsuite/libgomp.c++/udr-16.C: New test.
9209 * testsuite/libgomp.c++/udr-17.C: New test.
9210 * testsuite/libgomp.c++/udr-18.C: New test.
9211 * testsuite/libgomp.c++/udr-19.C: New test.
9213 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9215 Update copyright years
9217 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9219 * hashtab.h: Use the standard form for the copyright notice.
9221 2014-01-02 Tobias Burnus <burnus@net-b.de>
9223 * libgomp.texi: Bump @copying's copyright year.
9225 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9227 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9228 alloca () with __builtin_alloca ().
9229 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9230 * testsuite/libgomp.c/lock-3.c: Likewise.
9231 * testsuite/libgomp.c/pr48591.c: Likewise.
9233 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9236 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9239 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9242 * testsuite/libgomp.c/pr58756.c: New test.
9244 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9247 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9250 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9252 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9254 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9255 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9256 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9257 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9260 * libgomp_g.h: Include <stddef.h> for size_t.
9262 * libgomp.spec.in: Update comment about libgomp's dependencies.
9263 * configure.ac: Likewise.
9264 * configure: Regenerate.
9266 2013-10-16 Tobias Burnus <burnus@net-b.de>
9268 * libgomp.texi: (Runtime Library Routines): Update references for
9269 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9270 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9271 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9272 (Environment Variables): Update references for OpenMP 4.0. Add
9273 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9274 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9277 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9279 * env.c (parse_bind_var): Initialize value to avoid
9280 (false positive) warning.
9282 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9285 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9287 (gomp_init_num_threads): Move i variable declaration into
9288 #ifdef CPU_ALLOC_SIZE block.
9289 * config/linux/affinity.c (gomp_affinity_init_level): Test
9290 gomp_places_list_len == 0 rather than gomp_places_list == 0
9291 when checking for topology reading error.
9292 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9293 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9294 gomp_places_list, only parse env var and always return false.
9295 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9296 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9297 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9298 and either of these variables were parsed correctly into a places
9301 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9302 Jakub Jelinek <jakub@redhat.com>
9304 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9305 of 5 loopfn matches.
9306 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9307 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9308 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9309 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9310 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9311 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9312 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9313 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9315 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9317 * Makefile.am (omp_lib.mod): Streamline rule.
9318 * Makefile.in: Regenerate.
9320 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9323 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9324 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9325 * testsuite/libgomp.fortran/lib2.f: Likewise.
9326 * testsuite/libgomp.fortran/lib3.f: Likewise.
9328 * configure.ac: Typo fix.
9329 * configure: Regenerate.
9331 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9332 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9334 * omp.h.in: Don't touch the user's namespace.
9336 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9337 Tobias Burnus <burnus@net-b.de>
9338 Richard Henderson <rth@redhat.com>
9340 * target.c: New file.
9341 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9342 * Makefile.in: Regenerated.
9343 * libgomp_g.h (GOMP_task): Add depend argument.
9344 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9345 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9346 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9347 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9348 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9349 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9350 GOMP_taskgroup_start, GOMP_taskgroup_end,
9351 GOMP_parallel_sections): New prototypes.
9352 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9353 (omp_is_initial_device_): New function.
9354 (ULP, STR1, STR2, ialias_redirect): Removed.
9355 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9356 omp_set_default_device_8_, omp_get_default_device_,
9357 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9359 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9360 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9361 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9363 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9364 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9365 omp_set_default_device, omp_set_default_device_,
9366 omp_set_default_device_8_, omp_get_default_device,
9367 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9368 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9369 omp_get_team_num_): Export @@OMP_4.0.
9370 * team.c (struct gomp_thread_start_data): Add place field.
9371 (gomp_thread_start): Clear thr->thread_pool and
9372 thr->task before returning. Use gomp_team_barrier_wait_final
9373 instead of gomp_team_barrier_wait. Initialize thr->place.
9374 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9375 team_cancelled and task_queued_count fields.
9376 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9377 before calling pthread_exit.
9378 (gomp_free_thread): No longer static. Use
9379 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9380 (gomp_team_start): Add flags argument. Set
9381 thr->thread_pool->threads_busy to nthreads immediately after creating
9382 new pool. Use gomp_managed_threads_lock instead of
9383 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9384 (gomp_team_end): Use gomp_managed_threads_lock instead of
9385 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9386 of gomp_team_barrier_wait. If team->team_cancelled, call
9387 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9388 rather than thr->ts.work_share.
9389 (initialize_team): Don't call gomp_sem_init here.
9390 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9392 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9393 * env.c (gomp_global_icv): Add default_device_var, target_data and
9394 bind_var initializers.
9395 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9396 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9397 gomp_places_list_len): New variables.
9398 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9399 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9401 (gomp_cancel_var): New global variable.
9402 (parse_int): New function.
9403 (handle_omp_display_env): New function.
9404 (initialize_env): Use it. Initialize default_device_var.
9405 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9406 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9407 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9408 been successfully parsed (and call gomp_init_affinity in that case).
9409 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9410 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9411 omp_get_team_num, omp_is_initial_device): New functions.
9412 * libgomp.h: Include stdlib.h.
9413 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9415 (struct target_mem_desc): Forward declare.
9416 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9417 and thread_limit_var fields.
9418 (gomp_get_num_devices): New prototype.
9419 (gomp_cancel_var): New extern decl.
9420 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9421 team_cancelled and task_queued_count fields. Add comments about
9422 task_{,queued_,running_}count.
9423 (gomp_cancel_kind): New enum.
9424 (gomp_work_share_end_cancel): New prototype.
9425 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9426 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9428 (struct gomp_taskgroup): New type.
9429 (struct gomp_task_depend_entry,
9430 struct gomp_dependers_vec): New types.
9431 (gomp_finish_task): Free depend_hash if non-NULL.
9432 (struct gomp_team_state): Add place_partition_off
9433 and place_partition_len fields.
9434 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9435 gomp_places_list_len): New extern decls.
9436 (struct gomp_thread): Add place field.
9437 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9438 (gomp_init_thread_affinity): Add place argument.
9439 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9440 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9441 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9442 gomp_affinity_init_level, gomp_affinity_print_place): New
9444 (gomp_team_start): Add flags argument.
9445 (gomp_thread_limit_var, gomp_remaining_threads_count,
9446 gomp_remaining_threads_lock): Remove.
9447 (gomp_managed_threads_lock): New variable.
9448 (struct gomp_thread_pool): Add threads_busy field.
9449 (gomp_free_thread): New prototype.
9450 * task.c: Include hashtab.h.
9451 (hash_entry_type): New typedef.
9452 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9453 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9454 copy_ctors_done and taskgroup fields.
9455 (GOMP_task): Add depend argument, handle depend clauses. If
9456 gomp_team_barrier_cancelled or if it's taskgroup has been
9457 cancelled, don't queue or start new tasks. Set copy_ctors_done
9458 field if needed. Initialize taskgroup field. If copy_ctors_done
9459 and already cancelled, don't discard the task. If taskgroup is
9460 non-NULL, enqueue the task into taskgroup queue. Increment
9461 num_children field in taskgroup. Increment task_queued_count.
9462 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9463 gomp_task_run_post_remove_taskgroup): New inline functions.
9464 (gomp_task_run_post_handle_depend_hash,
9465 gomp_task_run_post_handle_dependers,
9466 gomp_task_run_post_handle_depend): New functions.
9467 (GOMP_taskwait): Use them. If more than one new tasks
9468 have been queued, wake other threads if needed.
9469 (gomp_barrier_handle_tasks): Likewise. If
9470 gomp_team_barrier_cancelled, don't start any new tasks, just free
9472 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9474 (omp_proc_bind_kind, omp_proc_bind_false,
9475 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9476 omp_proc_bind_spread): New params.
9477 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9478 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9479 omp_get_team_num, omp_is_initial_device): New interfaces.
9480 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9481 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9482 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9483 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9484 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9485 useless use omp_lib_kinds.
9486 * omp.h.in (omp_proc_bind_t): New typedef.
9487 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9488 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9489 omp_get_team_num, omp_is_initial_device): New prototypes.
9490 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9491 through to gomp_team_start.
9492 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9493 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9494 Adjust gomp_parallel_loop_start callers.
9495 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9496 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9497 GOMP_loop_end_cancel): New functions.
9498 (GOMP_parallel_end): Add ialias_redirect.
9499 * hashtab.h: New file.
9500 * libgomp.texi (Environment Variables): Minor cleanup,
9501 update section refs to OpenMP 4.0rc2.
9502 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9503 environment variables.
9504 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9505 team->work_shares_to_free to thr->ts.work_share before calling
9507 (gomp_work_share_end_cancel): New function.
9508 * config/linux/proc.c: Include errno.h.
9509 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9510 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9511 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9512 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9513 gomp_cpuset_size is sizeof (cpu_set_t).
9514 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9515 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9516 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9517 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9518 contain any logical CPUs.
9519 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9520 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9521 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9522 pthread_getaffinity_np. Check gomp_places_list instead of
9523 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9524 * config/linux/bar.c (gomp_barrier_wait_end,
9525 gomp_barrier_wait_last): Use BAR_* defines.
9526 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9527 from state where needed. Set work_share_cancelled to 0 on last
9529 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9530 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9532 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9533 Add cpusetsize argument.
9534 (gomp_cpuset_size, gomp_cpusetp): Declare.
9535 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9536 (affinity_counter): Remove.
9537 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9538 if CPU_ALLOC_SIZE isn't defined.
9539 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9540 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9541 bind current thread to the first place.
9542 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9543 pthread_setaffinity_np to gomp_places_list[place].
9544 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9545 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9546 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9547 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9548 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9549 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9550 (gomp_barrier_t): Add awaited_final field.
9551 (gomp_barrier_init): Initialize awaited_final field.
9552 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9553 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9555 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9557 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9558 gomp_team_barrier_cancelled): New inline functions.
9559 (gomp_barrier_last_thread,
9560 gomp_team_barrier_set_task_pending,
9561 gomp_team_barrier_clear_task_pending,
9562 gomp_team_barrier_set_waiting_for_tasks,
9563 gomp_team_barrier_waiting_for_tasks,
9564 gomp_team_barrier_done): Use BAR_* defines.
9565 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9566 (gomp_barrier_wait_end): Use BAR_* defines.
9567 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9568 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9570 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9571 gomp_team_barrier_cancel): New functions.
9572 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9574 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9575 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9576 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9577 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9578 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9579 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9580 (gomp_barrier_t): Add cancellable field.
9581 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9582 gomp_team_barrier_cancel): New prototypes.
9583 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9584 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9585 gomp_team_barrier_cancelled): New inline functions.
9586 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9587 gomp_team_barrier_set_task_pending,
9588 gomp_team_barrier_clear_task_pending,
9589 gomp_team_barrier_set_waiting_for_tasks,
9590 gomp_team_barrier_waiting_for_tasks,
9591 gomp_team_barrier_done): Use BAR_* defines.
9592 * barrier.c (GOMP_barrier_cancel): New function.
9593 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9594 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9595 omp_proc_bind_spread): New params.
9596 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9597 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9598 omp_get_team_num, omp_is_initial_device): New externals.
9599 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9601 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9602 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9603 infinity. If not nested, just return minimum of max_num_threads
9604 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9605 to the returned value. Otherwise, don't update atomically
9606 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9607 (GOMP_parallel_end): Adjust for thread_limit now being in
9608 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9609 infinity. Adjust threads_busy in the pool rather than
9610 gomp_remaining_threads_count. Remember team->nthreads and call
9611 gomp_team_end before adjusting threads_busy, if not nested
9612 afterwards, just set it to 1 non-atomically. Add ialias.
9613 (GOMP_parallel_start): Adjust gomp_team_start caller.
9614 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9615 * testsuite/libgomp.c/affinity-1.c: New test.
9616 * testsuite/libgomp.c/atomic-15.c: New test.
9617 * testsuite/libgomp.c/atomic-16.c: New test.
9618 * testsuite/libgomp.c/atomic-17.c: New test.
9619 * testsuite/libgomp.c/cancel-for-1.c: New test.
9620 * testsuite/libgomp.c/cancel-for-2.c: New test.
9621 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9622 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9623 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9624 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9625 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9626 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9627 * testsuite/libgomp.c/depend-1.c: New test.
9628 * testsuite/libgomp.c/depend-2.c: New test.
9629 * testsuite/libgomp.c/depend-3.c: New test.
9630 * testsuite/libgomp.c/depend-4.c: New test.
9631 * testsuite/libgomp.c/for-1.c: New test.
9632 * testsuite/libgomp.c/for-1.h: New file.
9633 * testsuite/libgomp.c/for-2.c: New test.
9634 * testsuite/libgomp.c/for-2.h: New file.
9635 * testsuite/libgomp.c/for-3.c: New test.
9636 * testsuite/libgomp.c/pr58392.c: New test.
9637 * testsuite/libgomp.c/simd-1.c: New test.
9638 * testsuite/libgomp.c/simd-2.c: New test.
9639 * testsuite/libgomp.c/simd-3.c: New test.
9640 * testsuite/libgomp.c/simd-4.c: New test.
9641 * testsuite/libgomp.c/simd-5.c: New test.
9642 * testsuite/libgomp.c/simd-6.c: New test.
9643 * testsuite/libgomp.c/target-1.c: New test.
9644 * testsuite/libgomp.c/target-2.c: New test.
9645 * testsuite/libgomp.c/target-3.c: New test.
9646 * testsuite/libgomp.c/target-4.c: New test.
9647 * testsuite/libgomp.c/target-5.c: New test.
9648 * testsuite/libgomp.c/target-6.c: New test.
9649 * testsuite/libgomp.c/target-7.c: New test.
9650 * testsuite/libgomp.c/taskgroup-1.c: New test.
9651 * testsuite/libgomp.c/thread-limit-1.c: New test.
9652 * testsuite/libgomp.c/thread-limit-2.c: New test.
9653 * testsuite/libgomp.c/thread-limit-3.c: New test.
9654 * testsuite/libgomp.c/udr-1.c: New test.
9655 * testsuite/libgomp.c/udr-2.c: New test.
9656 * testsuite/libgomp.c/udr-3.c: New test.
9657 * testsuite/libgomp.c++/affinity-1.C: New test.
9658 * testsuite/libgomp.c++/atomic-10.C: New test.
9659 * testsuite/libgomp.c++/atomic-11.C: New test.
9660 * testsuite/libgomp.c++/atomic-12.C: New test.
9661 * testsuite/libgomp.c++/atomic-13.C: New test.
9662 * testsuite/libgomp.c++/atomic-14.C: New test.
9663 * testsuite/libgomp.c++/atomic-15.C: New test.
9664 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9665 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9666 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9667 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9668 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9669 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9670 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9671 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9672 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9673 * testsuite/libgomp.c++/cancel-test.h: New file.
9674 * testsuite/libgomp.c++/for-9.C: New test.
9675 * testsuite/libgomp.c++/for-10.C: New test.
9676 * testsuite/libgomp.c++/for-11.C: New test.
9677 * testsuite/libgomp.c++/simd-1.C: New test.
9678 * testsuite/libgomp.c++/simd-2.C: New test.
9679 * testsuite/libgomp.c++/simd-3.C: New test.
9680 * testsuite/libgomp.c++/simd-4.C: New test.
9681 * testsuite/libgomp.c++/simd-5.C: New test.
9682 * testsuite/libgomp.c++/simd-6.C: New test.
9683 * testsuite/libgomp.c++/simd-7.C: New test.
9684 * testsuite/libgomp.c++/simd-8.C: New test.
9685 * testsuite/libgomp.c++/target-1.C: New test.
9686 * testsuite/libgomp.c++/target-2.C: New test.
9687 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9688 * testsuite/libgomp.c++/target-3.C: New test.
9689 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9690 * testsuite/libgomp.c++/udr-1.C: New test.
9691 * testsuite/libgomp.c++/udr-2.C: New test.
9692 * testsuite/libgomp.c++/udr-3.C: New test.
9693 * testsuite/libgomp.c++/udr-4.C: New test.
9694 * testsuite/libgomp.c++/udr-5.C: New test.
9695 * testsuite/libgomp.c++/udr-6.C: New test.
9696 * testsuite/libgomp.c++/udr-7.C: New test.
9697 * testsuite/libgomp.c++/udr-8.C: New test.
9698 * testsuite/libgomp.c++/udr-9.C: New test.
9700 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9703 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9706 2013-09-20 Alan Modra <amodra@gmail.com>
9708 * configure: Regenerate.
9710 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9712 * testsuite/libgomp.c/sections-2.c: New test.
9714 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9716 * testsuite/libgomp.fortran/strassen.f90:
9717 Add dg-skip-if aarch64_tiny.
9719 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9720 Cesar Philippidis <cesar@codesourcery.com>
9722 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9723 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9724 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9725 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9726 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9727 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9728 Use dg-runtest rather than gfortran-dg-runtest.
9730 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9732 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9733 Linux-based x86 systems to cover all GNU systems.
9734 * testsuite/libgomp.c/lock-3.c: Likewise.
9735 * testsuite/libgomp.c/pr48591.c: Likewise.
9737 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9739 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9740 GNU/Hurd, as done for Linux-based systems.
9742 * config/posix/ptrlock.h: Fix comment.
9744 2013-05-27 Tobias Burnus <burnus@net-b.de>
9747 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9748 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9749 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9750 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9751 omp_destroy_nest_lock): Correct arguments to match the one in
9753 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9754 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9755 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9756 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9758 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9760 * testsuite/libgomp.c/loop-13.c: New test.
9761 * testsuite/libgomp.c/loop-14.c: New test.
9762 * testsuite/libgomp.c/loop-15.c: New test.
9763 * testsuite/libgomp.c++/loop-13.C: New test.
9764 * testsuite/libgomp.c++/loop-14.C: New test.
9765 * testsuite/libgomp.c++/loop-15.C: New test.
9767 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9770 * testsuite/libgomp.c++/pr56217.C: New test.
9772 2013-02-01 Alan Modra <amodra@gmail.com>
9774 * task.c (GOMP_task, GOMP_taskwait): Comment.
9776 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9777 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9780 * config/linux/wait.h (do_spin): Use atomic load for addr.
9781 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9782 for intptr and ptrlock.
9783 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9786 2013-01-22 Alan Modra <amodra@gmail.com>
9790 * task.c (GOMP_task): Revert 2011-12-09 change.
9791 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9792 barrier to read task->children..
9793 (gomp_barrier_handle_tasks): ..and matching atomic store with
9794 release barrier here when setting parent->children to NULL.
9796 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9797 Tobias Burnus <burnus@net-b.de>
9800 * testsuite/libgomp.fortran/fortran.exp: Use
9801 -fintrinsic-modules-path= instead of
9802 -fintrinsic-modules-path.
9804 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9806 Update copyright years.
9808 2012-12-19 Tobias Burnus <burnus@net-b.de>
9810 * testsuite/libgomp.fortran/fortran.exp: Set
9811 -fintrinsic-modules-path.
9813 2012-12-19 Tobias Burnus <burnus@net-b.de>
9815 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9816 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9818 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9821 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9822 if pool had any threads_used.
9824 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9826 * testsuite/libgomp.c++/pr24455.C: Use
9827 -Wl,-undefined,dynamic_lookup on darwin.
9829 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9831 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9833 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9835 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9837 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9838 Jim MacArthur <jim.macarthur@arm.com>
9839 Marcus Shawcroft <marcus.shawcroft@arm.com>
9840 Nigel Stephens <nigel.stephens@arm.com>
9841 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9842 Richard Earnshaw <rearnsha@arm.com>
9843 Sofiane Naci <sofiane.naci@arm.com>
9844 Stephen Thomas <stephen.thomas@arm.com>
9845 Tejas Belagod <tejas.belagod@arm.com>
9846 Yufeng Zhang <yufeng.zhang@arm.com>
9848 * configure.tgt: Add AArch64.
9850 2012-10-04 Jason Merrill <jason@redhat.com>
9852 * testsuite/libgomp.c++/tls-init1.C: New.
9854 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9856 * configure: Regenerated.
9858 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9860 * config/linux/mips/futex.h (sys_futex0): Change to static
9861 function with noinline, nomips16 attributes under MIPS16. Adjust
9862 asm statement to place 'li v0,SYS_futex' immediately before
9865 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9867 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9868 conflict with index.html on case-insensitive file systems.
9870 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9872 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9873 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9875 2012-07-02 Richard Guenther <rguenther@suse.de>
9876 Michael Matz <matz@suse.de>
9877 Tobias Grosser <tobias@grosser.es>
9878 Sebastian Pop <sebpop@gmail.com>
9880 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9881 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9882 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9883 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9885 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9887 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9889 2012-06-22 Richard Guenther <rguenther@suse.de>
9891 Merge from graphite branch
9892 2012-01-13 Tobias Grosser <tobias@grosser.es>
9894 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9895 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9897 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9900 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9901 use GOMP_barrier () call instead.
9902 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9903 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9904 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9905 call GOMP_barrier instead.
9906 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9908 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9911 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9912 argument to memset call.
9914 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9916 * configure: Regenerated.
9918 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9920 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9922 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9925 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9927 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9930 * testsuite/libgomp.c/pr52547.c: New test.
9932 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9934 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9936 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9938 * configure.tgt (mips-sgi-irix6*): Remove.
9940 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9942 * configure.tgt (alpha*-dec-osf*): Remove.
9944 * config/osf/sem.h: Remove.
9945 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9947 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9949 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9951 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9954 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9955 Remove ENABLE_SYMVERS_SOL2.
9956 * configure: Regenerate.
9957 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9958 (PREPROCESS): New variable.
9959 (libgomp.ver): New target.
9960 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9961 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9962 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9964 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9965 * Makefile.in: Regenerate.
9967 2012-02-14 Walter Lee <walt@tilera.com>
9969 * configure.tgt: Handle tilegx and tilepro.
9970 * config/linux/tile/futex.h: New file.
9972 2012-02-08 Richard Guenther <rguenther@suse.de>
9974 PR tree-optimization/46886
9975 * testsuite/libgomp.c/pr46886.c: New testcase.
9977 2012-01-25 Matthias Klose <doko@ubuntu.com>
9979 * config/linux/arm: Remove empty directory.
9980 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9982 2011-12-09 Alan Modra <amodra@gmail.com>
9985 * task.c (GOMP_taskwait): Don't access task->children outside of
9986 task_lock mutex region.
9987 (GOMP_task): Likewise.
9989 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9992 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9994 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9995 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9996 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9997 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9998 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10000 2011-12-02 Alan Modra <amodra@gmail.com>
10002 * config/linux/affinity.c: Use atomic rather than sync builtin.
10003 * config/linux/lock.c: Likewise.
10004 * config/linux/ptrlock.h: Likewise.
10005 * config/linux/ptrlock.c: Likewise.
10006 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10007 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10008 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10009 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10010 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10011 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10012 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10013 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10014 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10015 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10017 2011-11-30 Alan Modra <amodra@gmail.com>
10020 * config/linux/bar.h: Use atomic rather than sync builtins.
10021 * config/linux/bar.c: Likewise. Add missing acquire
10022 synchronisation on generation field.
10023 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10026 2011-11-30 Alan Modra <amodra@gmail.com>
10028 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10029 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10030 * config/linux/mutex.h: Use atomic rather than sync builtins.
10031 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10032 * config/linux/omp-lock.h: Comment fix.
10033 * config/linux/arm/mutex.h: Delete.
10034 * config/linux/powerpc/mutex.h: Delete.
10035 * config/linux/ia64/mutex.h: Delete.
10036 * config/linux/mips/mutex.h: Delete.
10038 2011-11-30 Alan Modra <amodra@gmail.com>
10041 * config/linux/sem.h: Rewrite.
10042 * config/linux/sem.c: Rewrite.
10044 2011-11-28 Richard Henderson <rth@redhat.com>
10046 * libgomp.h (enum memmodel): New.
10048 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10050 * configure: Regenerate.
10052 2011-10-10 Matthias Klose <doko@ubuntu.com>
10054 * config/posix95: Remove empty directory.
10056 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10058 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10060 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10063 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10064 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10066 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10068 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10070 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10073 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10075 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10077 * config/linux/proc.h: New.
10078 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10079 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10080 (gomp_init_num_threads): Update call to cpuset_popcount.
10081 (get_num_procs): Ditto.
10082 * config/linux/affinity.c (gomp_init_affinity): Call
10083 gomp_cpuset_popcount.
10085 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10089 * omp.h.in (omp_in_final): New prototype.
10090 * omp_lib.f90.in (omp_in_final): New interface.
10091 (omp_integer_kind, omp_logical_kind): Remove
10092 and replace all its uses in the module with 4.
10093 (openmp_version): Change to 201107.
10094 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10095 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10096 kind for the parameters.
10097 (omp_in_final): New external.
10098 (openmp_version): Change to 201107.
10099 * task.c (omp_in_final): New function.
10100 (gomp_init_task): Initialize final_task.
10101 (GOMP_task): Remove unused attribute from flags. Handle final
10103 (GOMP_taskyield): New function.
10104 (omp_in_final): Return true if if (false) or final (true) task
10105 or descendant of final (true).
10106 * fortran.c (omp_in_final_): New function.
10107 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10108 (GOMP_3.0): Export GOMP_taskyield.
10109 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10111 (parse_unsigned_long_list): New function.
10112 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10113 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10114 even if parse_affinity returned false.
10115 * config/linux/affinity.c (gomp_init_affinity): Handle
10116 gomp_cpu_affinity_len == 0.
10117 * libgomp_g.h (GOMP_taskyield): New prototype.
10118 * libgomp.h (struct gomp_task): Add final_task field.
10119 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10120 * team.c (gomp_team_start): Override new task's nthreads_var icv
10121 if list form OMP_NUM_THREADS has been used and it has value for
10122 the new nesting level.
10124 * testsuite/libgomp.c/atomic-11.c: New test.
10125 * testsuite/libgomp.c/atomic-12.c: New test.
10126 * testsuite/libgomp.c/atomic-13.c: New test.
10127 * testsuite/libgomp.c/atomic-14.c: New test.
10128 * testsuite/libgomp.c/reduction-6.c: New test.
10129 * testsuite/libgomp.c/task-5.c: New test.
10130 * testsuite/libgomp.c++/atomic-2.C: New test.
10131 * testsuite/libgomp.c++/atomic-3.C: New test.
10132 * testsuite/libgomp.c++/atomic-4.C: New test.
10133 * testsuite/libgomp.c++/atomic-5.C: New test.
10134 * testsuite/libgomp.c++/atomic-6.C: New test.
10135 * testsuite/libgomp.c++/atomic-7.C: New test.
10136 * testsuite/libgomp.c++/atomic-8.C: New test.
10137 * testsuite/libgomp.c++/atomic-9.C: New test.
10138 * testsuite/libgomp.c++/task-8.C: New test.
10139 * testsuite/libgomp.c++/reduction-4.C: New test.
10140 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10141 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10142 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10143 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10144 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10145 * testsuite/libgomp.fortran/pointer1.f90: New test.
10146 * testsuite/libgomp.fortran/pointer2.f90: New test.
10147 * testsuite/libgomp.fortran/task4.f90: New test.
10149 2011-08-02 Tobias Burnus <burnus@net-b.de>
10151 * libgomp.texi: Update OpenMP spec references to 3.1.
10152 (omp_in_final,OMP_PROC_BIND): New sections.
10153 (OMP_NUM_THREADS): Document that the value can be now a list.
10154 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10156 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10158 * config/linux/x86/futex.h: Check __x86_64__ instead of
10161 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10163 PR middle-end/49897
10164 PR middle-end/49898
10165 * testsuite/libgomp.c/pr49897-1.c: New test.
10166 * testsuite/libgomp.c/pr49897-2.c: New test.
10167 * testsuite/libgomp.c/pr49898-1.c: New test.
10168 * testsuite/libgomp.c/pr49898-2.c: New test.
10170 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10172 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10173 for ia32 instead of ilp32.
10175 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10176 * testsuite/libgomp.c/atomic-6.c: Likewise.
10178 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10180 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10181 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10183 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10186 * config/osf/sem.h: New file.
10187 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10189 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10192 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10195 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10197 * config/linux/wait.h (do_spin): New inline, largely copied
10198 from do_wait, just don't do futex_wait here, instead return true if
10200 (do_wait): Implement using do_spin.
10201 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10203 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10204 __sync_bool_compare_and_swap, pass the oldval to
10205 gomp_mutex_lock_slow.
10206 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10207 If all mutex contenders are just spinning and not sleeping, don't
10208 change state to 2 unnecessarily. Optimize the loop when state has
10209 already become 2 to use just one atomic operation per loop instead
10211 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10213 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10214 __sync_bool_compare_and_swap, pass the oldval to
10215 gomp_mutex_lock_slow.
10217 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10220 * iter.c (gomp_iter_static_next): For chunk size 0
10221 only use n ceil/ nthreads size for the first
10222 n % nthreads threads in the team instead of
10223 all threads except for the last few ones which
10224 get less work or none at all.
10225 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10226 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10227 chunk argument, set run_sched_modifier to 0 for static
10228 resp. 1 for other kinds. If chunk argument is 0
10229 and not static, set value to 1.
10231 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10234 * testsuite/libgomp.c++/pr49043.C: New test.
10237 * testsuite/libgomp.c++/pr48869.C: New test.
10239 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10242 * fortran.c: Include limits.h.
10244 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10246 (omp_set_num_threads_8_, omp_set_schedule_8_,
10247 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10248 omp_get_team_size_8_): Use TO_INT macro.
10249 * testsuite/libgomp.fortran/pr48894.f90: New test.
10251 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10253 PR middle-end/48591
10254 * testsuite/libgomp.c/pr48591.c: New test.
10256 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10259 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10260 * configure: Regenerate.
10262 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10265 * testsuite/libgomp.fortran/task3.f90: New test.
10267 2011-02-24 Tobias Burnus <burnus@net-b.de>
10269 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10271 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10274 * libgomp.texi (omp_get_wtime): Don't say time in the past
10275 must be Unix Epoch.
10277 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10280 * testsuite/libgomp.fortran/fortran.exp: Check for both
10281 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10282 but $blddir != "", still append ${blddir}/${lang_library_path}
10283 to ld_library_path.
10285 2011-02-16 Tobias Burnus <burnus@net-b.de>
10288 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10289 of libquadmath.a before adding its libpath to ldflags.
10291 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10294 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10295 to FUTEX_WAIT futex syscall.
10296 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10298 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10300 * configure: Regenerate.
10302 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10305 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10307 2011-01-16 Gerald Pfeifer
10309 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10311 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10314 * libgomp.fortran/allocatable6.f90: New test.
10316 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10318 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10319 * configure: Regenerate.
10321 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10325 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10326 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10327 * aclocal.m4: Regenerate.
10328 * configure: Regenerate.
10329 * Makefile.in: Regenerate.
10330 * testsuite/Makefile.in: Regenerate.
10332 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10335 * libgomp.fortran/pr46753.f90: New test.
10338 * env.c (initialize_env): Default to spin count 300000
10339 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10343 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10344 at the end if sync builtins aren't supported.
10346 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10348 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10350 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10352 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10354 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10356 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10358 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10359 Tobias Burnus <burnus@net-b.de>
10363 * configure: Regenerate.
10365 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10367 * config/linux/futex.h: New.
10368 * config/linux/arm/mutex.h: New.
10369 * configure.tgt (arm*-*-linux*): Add config path.
10371 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10373 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10375 2010-09-23 Tobias Burnus <burnus@net-b.de>
10377 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10378 Change Fortran datatype to LOGICAL.
10379 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10380 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10382 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10384 * configure: Regenerate.
10386 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10388 * libgomp.texi: Add function keyword to a couple of Fortran
10389 interfaces, use integer instead of int for Fortran.
10391 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10393 * libgomp.texi: Fix spelling and pasto problems throughout.
10394 Adjust prototypes to match code.
10396 2010-07-24 Tobias Burnus <burnus@net-b.de>
10398 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10399 silence -fwhole-file warning.
10401 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10403 * configure.tgt (*-*-solaris2.[56]*): Removed.
10405 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10407 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10408 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10409 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10410 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10411 targetting solaris2*.
10412 * configure: Regenerate.
10413 * config.h.in: Regenerate.
10415 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10416 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10417 Add libgomp_version_dep.
10418 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10420 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10421 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10422 * Makefile.in: Regenerate.
10424 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10425 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10426 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10427 to common block, protected by
10428 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10430 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10432 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10434 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10437 * configure: Regenerate.
10439 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10442 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10443 * configure: Regenerate.
10444 * Makefile.in: Regenerate.
10445 * testsuite/Makefile.in: Regenerate.
10447 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10450 * testsuite/libgomp.c/pr43893.c: New test.
10451 * testsuite/libgomp.c++/pr43893.C: New test.
10453 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10455 PR middle-end/43570
10456 * testsuite/libgomp.fortran/vla8.f90: New test.
10458 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10461 * config/linux/affinity.c (gomp_init_affinity): Decrease
10462 gomp_available_cpus if affinity mask confines the process to fewer
10464 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10465 non-NULL, just return gomp_available_cpus.
10468 * sections.c (gomp_sections_init): Initialize ws->mode.
10470 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10472 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10473 not unused bar variable.
10474 * configure: Regenerate.
10476 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10478 * Makefile.in: Regenerate.
10479 * aclocal.m4: Regenerate.
10480 * testsuite/Makefile.in: Regenerate.
10482 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10485 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10486 (initialize_env): Adjust callers.
10487 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10488 when the argument is 0.
10490 * testsuite/libgomp.c/pr42942.c: New test.
10492 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10494 PR middle-end/42644
10495 PR middle-end/42130
10496 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10497 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10499 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10501 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10502 * testsuite/libgomp.c++/task-6.C: Likewise.
10504 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10506 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10508 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10510 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10511 * configure: Regenerate.
10513 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10516 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10518 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10520 * configure.ac: Test for executability of GFORTRAN.
10521 * configure: Regenerate.
10523 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10525 * configure: Regenerate.
10527 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10530 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10532 2010-01-03 Richard Guenther <rguenther@suse.de>
10534 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10536 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10538 * testsuite/libgomp.graphite/pr4118.c: New.
10540 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10542 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10543 for darwin, protect the test with require-effective-target tls_runtime.
10544 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10546 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10549 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10550 link spec %s substitutions for static libraries.
10552 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10555 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10557 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10559 * Makefile.in: Regenerate.
10560 * configure: Regenerate.
10561 * testsuite/Makefile.in: Regenerate.
10563 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10565 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10566 settings for LC_ALL and LANG.
10568 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10571 * testsuite/libgomp.fortran/pr42162.f90: New test.
10573 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10575 PR middle-end/42029
10576 * testsuite/libgomp.c/pr42029.c: New test.
10578 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10580 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10581 *s. Accept ld version without text in ()s.
10582 * configure: Regenerated.
10584 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10586 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10588 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10591 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10592 or a hyphen (happens with fortran language disabled).
10593 * configure: Regenerate.
10595 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10597 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10598 use sed script portable to Solaris /bin/sed for extracting ld
10600 * configure: Regenerate.
10602 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10604 * testsuite/libgomp.graphite/bounds.c: New test.
10606 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10608 * Makefile.am (libgomp_la_LINK): New.
10609 * Makefile.in: Regenerate.
10611 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10613 * configure.ac (AC_PREREQ): Bump to 2.64.
10615 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10617 * Makefile.am (install-html, install-pdf): Remove.
10618 * Makefile.in: Regenerate.
10620 * Makefile.in: Regenerate.
10621 * aclocal.m4: Regenerate.
10622 * config.h.in: Regenerate.
10623 * configure: Regenerate.
10624 * testsuite/Makefile.in: Regenerate.
10626 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10628 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10629 * Makefile.in: Regenerate.
10631 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10633 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10634 * Makefile.in: Regenerate.
10636 2009-08-19 Tobias Burnus <burnus@net-b.de>
10639 omp_lib.h.in: Fix -std=f95 errors.
10641 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10643 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10644 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10645 * testsuite/libgomp.graphite/graphite.exp: New.
10647 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10649 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10652 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10654 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10655 needed memory barrier semantics.
10656 * config/linux/mips/mutex.h: New file.
10658 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10660 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10662 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10664 * configure: Regenerate.
10666 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10671 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10672 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10673 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10675 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10677 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10678 options when choosing a multilib.
10680 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10682 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10683 ld_library_path. Use add_path. Add just find_libgcc_s to
10684 ld_library_path, not every libgcc multilib directory.
10685 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10686 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10687 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10689 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10691 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10693 * Makefile.am (LTLDFLAGS): Define.
10695 * Makefile.in: Regenerate.
10697 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10700 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10701 libgfortranbegin, check existence of libgfortran.a instead of
10702 libgfortranbegin.a.
10704 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10707 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10708 (gomp_free_pool_helper): Likewise.
10710 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10711 Jakub Jelinek <jakub@redhat.com>
10714 * testsuite/libgomp.fortran/workshare2.f90: New test.
10716 2009-04-09 Nick Clifton <nickc@redhat.com>
10718 * iter.c: Change copyright header to refer to version 3 of the
10719 GNU General Public License with version 3.1 of the GCC Runtime
10720 Library Exception and to point readers at the COPYING3 and
10721 COPYING3.RUNTIME files and the FSF's license web page.
10722 * alloc.c: Likewise.
10723 * barrier.c: Likewise.
10724 * config/bsd/proc.c: Likewise.
10725 * config/linux/affinity.c: Likewise.
10726 * config/linux/alpha/futex.h: Likewise.
10727 * config/linux/bar.c: Likewise.
10728 * config/linux/bar.h: Likewise.
10729 * config/linux/ia64/futex.h: Likewise.
10730 * config/linux/ia64/mutex.h: Likewise.
10731 * config/linux/lock.c: Likewise.
10732 * config/linux/mips/futex.h: Likewise.
10733 * config/linux/mutex.c: Likewise.
10734 * config/linux/mutex.h: Likewise.
10735 * config/linux/powerpc/futex.h: Likewise.
10736 * config/linux/proc.c: Likewise.
10737 * config/linux/ptrlock.c: Likewise.
10738 * config/linux/ptrlock.h: Likewise.
10739 * config/linux/s390/futex.h: Likewise.
10740 * config/linux/sem.c: Likewise.
10741 * config/linux/sem.h: Likewise.
10742 * config/linux/sparc/futex.h: Likewise.
10743 * config/linux/wait.h: Likewise.
10744 * config/linux/x86/futex.h: Likewise.
10745 * config/mingw32/proc.c: Likewise.
10746 * config/mingw32/time.c: Likewise.
10747 * config/posix/affinity.c: Likewise.
10748 * config/posix/bar.c: Likewise.
10749 * config/posix/bar.h: Likewise.
10750 * config/posix/lock.c: Likewise.
10751 * config/posix/mutex.h: Likewise.
10752 * config/posix/proc.c: Likewise.
10753 * config/posix/ptrlock.h: Likewise.
10754 * config/posix/sem.c: Likewise.
10755 * config/posix/sem.h: Likewise.
10756 * config/posix/time.c: Likewise.
10757 * config/posix95/lock.c: Likewise.
10758 * critical.c: Likewise.
10760 * error.c: Likewise.
10761 * fortran.c: Likewise.
10762 * iter_ull.c: Likewise.
10763 * libgomp.h: Likewise.
10764 * libgomp_f.h.in: Likewise.
10765 * libgomp_g.h: Likewise.
10766 * loop.c: Likewise.
10767 * loop_ull.c: Likewise.
10768 * omp.h.in: Likewise.
10769 * omp_lib.f90.in: Likewise.
10770 * omp_lib.h.in: Likewise.
10771 * ordered.c: Likewise.
10772 * parallel.c: Likewise.
10773 * sections.c: Likewise.
10774 * single.c: Likewise.
10775 * task.c: Likewise.
10776 * team.c: Likewise.
10777 * work.c: Likewise.
10779 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10781 * testsuite/config/default.exp: Change copyright header to refer to
10782 version 3 of the GNU General Public License and to point readers
10783 at the COPYING3 file and the FSF's license web page.
10785 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10787 PR middle-end/39573
10788 * libgomp.c++/pr39573.C: New test.
10790 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10793 * testsuite/libgomp.c/pr39591-1.c: New test.
10794 * testsuite/libgomp.c/pr39591-2.c: New test.
10795 * testsuite/libgomp.c/pr39591-3.c: New test.
10797 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10799 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10800 * testsuite/libgomp.c/atomic-6.c: Ditto.
10802 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10805 * testsuite/libgomp.c/loop-12.c: New test.
10806 * testsuite/libgomp.c/loop-11.c: New test.
10807 * testsuite/libgomp.c++/loop-11.C: New test.
10808 * testsuite/libgomp.c++/loop-12.C: New test.
10809 * testsuite/libgomp.c++/for-8.C: New test.
10811 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10813 * configure: Regenerate.
10815 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10817 PR middle-end/39154
10818 * testsuite/libgomp.c/pr39154.c: New test.
10820 2009-01-30 Ian Lance Taylor <iant@google.com>
10822 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10823 libgomp_ld_is_gold. Get gold version number.
10824 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10825 * configure: Rebuild.
10827 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10829 * testsuite/lib/libgomp.exp: Add -B option for targets that
10830 use libgfortran.a%s in their specs.
10832 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10835 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10836 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10837 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10838 * configure: Regenerated.
10839 * config.h.in: Likewise.
10841 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10844 * testsuite/libgomp.c/pr38650.c: New test.
10845 * testsuite/libgomp.c++/pr38650.C: New test.
10847 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10849 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10851 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10853 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10855 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10857 * configure: Regenerate.
10859 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10861 PR middle-end/36802
10862 * testsuite/libgomp.c/pr36802-1.c: New test.
10863 * testsuite/libgomp.c/pr36802-2.c: New test.
10864 * testsuite/libgomp.c/pr36802-3.c: New test.
10866 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10869 * config/linux/powerpc/mutex.h: New.
10871 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10874 * testsuite/libgomp.c++/for-7.C: New test.
10877 * testsuite/libgomp.c++/for-6.C: New test.
10879 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10882 * testsuite/lib/libgomp.exp: Include new timeout library files.
10883 (libgomp_target_compile): Set timeout value from new proc.
10885 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10888 * config/linux/ia64/mutex.h: New.
10890 2008-11-04 Tobias Burnus <burnus@net-b.de>
10893 * libgomp.texi (Runtime library routines, environment variables):
10894 Update for OpenMP version 3.0.
10896 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10897 Steve Ellcey <sje@cup.hp.com>
10899 * configure: Regenerate for new libtool.
10900 * Makefile.in: Ditto.
10901 * testsuite/Makefile.in: Ditto.
10903 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10904 Andreas Tobler <a.tobler@schweiz.org>
10906 * config/bsd/proc.c: New file.
10907 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10908 * configure.ac: Check for header <sys/sysctl.h>
10909 * configure: Regenerate.
10910 * config.h.in: Likewise.
10912 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10914 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10916 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10918 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10919 * Makefile.in: Regenerated.
10920 * testsuite/Makefile.in: Regenerated.
10922 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10924 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10925 depend on blddir if blddir exists.
10926 (libgomp_target_compile): Likewise.
10927 * testsuite/libgomp.c++/c++.exp: Likewise.
10928 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10930 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10932 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10933 Do not list GPL as Invariant Section.
10935 2008-07-28 Ilie Garbacea <ilie@mips.com>
10936 Chao-ying Fu <fu@mips.com>
10938 * configure.tgt: Enable futex for MIPS.
10939 * config/linux/mips/futex.h: New file.
10941 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10943 * team.c (gomp_team_end): Free team immediately if it has
10946 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10948 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10949 * testsuite/libgomp.fortran/fortran.exp: Same.
10950 * testsuite/libgomp.c/c.exp: Same.
10951 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10952 directory to library path first.
10954 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10956 * env.c (parse_stacksize): Add cast to avoid warning.
10957 (parse_spincount): Likewise.
10959 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10961 * testsuite/libgomp.c/loop-10.c: New test.
10962 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10963 * libgomp.c++/loop-6.C (main): Likewise.
10966 * testsuite/libgomp.c/debug-1.c: New test.
10968 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10970 * testsuite/libgomp.c/nqueens-1.c: New test.
10973 * testsuite/libgomp.c++/task-7.C: New function.
10975 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10977 * configure: Regenerate.
10979 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10981 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10982 mutex when HAVE_SYNC_BUILTINS isn't defined.
10984 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10986 * libgomp.texi (omp_test_lock): Fix typo.
10988 2008-06-12 Tobias Burnus <burnus@net-b.de>
10990 * omp_lib.f90.in: Add "implicit none".
10992 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10994 PR middle-end/36506
10995 * testsuite/libgomp.c/reduction-5.c: New test.
10997 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10999 * libgomp.h (struct gomp_task): Add in_tied_task field.
11000 * task.c (gomp_init_task): Initialize it.
11001 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11002 unconditionally. Don't call gomp_team_barrier_wake if
11003 current task is implicit or if(0) from implicit and number of
11004 running tasks is equal to nthreads - 1.
11007 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11008 omp_get_team_size_8): Fix pastos.
11011 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11012 * configure: Regenerated.
11013 * config.h.in: Regenerated.
11014 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11017 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11020 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11021 (GOMP_loop_ull_dynamic_start): Likewise.
11022 (GOMP_loop_ull_guided_start): Likewise.
11023 (GOMP_loop_ull_ordered_static_start): Likewise.
11024 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11025 (GOMP_loop_ull_ordered_guided_start): Likewise.
11027 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11028 Richard Henderson <rth@redhat.com>
11029 Ulrich Drepper <drepper@redhat.com>
11030 Jakob Blomer <jakob.blomer@ira.uka.de>
11032 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11033 Substitute also OMP_*LOCK_25*.
11034 * configure: Regenerated.
11035 * config.h.in: Regenerated.
11036 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11037 ptrlock.c and task.c.
11038 * Makefile.in: Regenerated.
11039 * testsuite/Makefile.in: Regenerated.
11040 * task.c: New file.
11041 * loop_ull.c: New file.
11042 * iter_ull.c: New file.
11043 * libgomp.h: Include ptrlock.h.
11044 (enum gomp_task_kind): New type.
11045 (struct gomp_team): Add task_lock, task_queue, task_count,
11046 task_running_count, single_count fields. Add
11047 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11048 Remove work_share_lock, generation_mask,
11049 oldest_live_gen, num_live_gen and init_work_shares fields, add
11050 work work_share_list_alloc, work_share_list_free and work_share_chunk
11051 fields. Change work_shares from pointer to pointers into an array.
11052 Change ordered_release field into gomp_sem_t ** from flexible array
11053 member. Add implicit_task and initial_work_shares fields.
11054 Move close to the end of the struct.
11055 (struct gomp_team_state): Add single_count, last_work_share,
11056 active_level and level fields, remove work_share_generation.
11057 (gomp_barrier_handle_tasks): New prototype.
11058 (gomp_finish_task): New inline function.
11059 (struct gomp_work_share): Move chunk_size, end, incr into
11060 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11061 next_ll fields. Reshuffle fields. Add next_alloc,
11062 next_ws, next_free and inline_ordered_team_ids fields, change
11063 ordered_team_ids into pointer from flexible array member.
11064 Add mode field. Put lock and next into a different cache line
11065 from most of the write-once fields.
11066 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11067 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11068 gomp_iter_ull_guided_next): New prototypes.
11069 (gomp_new_icv): New prototype.
11070 (struct gomp_thread): Add thread_pool and task fields.
11071 (struct gomp_thread_pool): New type.
11072 (gomp_new_team): New prototype.
11073 (gomp_team_start): Change type of last argument.
11074 (gomp_new_work_share): Removed.
11075 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11076 (gomp_work_share_init_done): New static inline.
11077 (gomp_throttled_spin_count_var, gomp_available_cpus,
11078 gomp_managed_threads): New extern decls.
11079 (gomp_init_task): New prototype.
11080 (gomp_spin_count_var): New extern var decl.
11081 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11082 or no alias support, or if not PIC.
11083 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11084 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11085 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11086 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11087 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11088 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11089 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11090 gomp_test_nest_lock_25): New prototypes.
11091 (omp_lock_symver, strong_alias): Define.
11092 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11094 (gomp_end_task): New.
11095 (struct gomp_task_icv, gomp_global_icv): New.
11096 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11097 (struct gomp_task): New.
11098 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11099 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11101 (gomp_schedule_type): Reorder enum to match
11103 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11105 (gomp_thread_start): Add gomp_team_barrier_wait call.
11106 For non-nested case remove clearing of docked thread thr fields.
11107 Use pool fields instead of global gomp_* variables. Use
11108 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11109 Create tasks for each member thread.
11110 (free_team): Only destroy team barrier, task_lock here and free it.
11111 (gomp_free_thread): Free last_team if non-NULL.
11112 (gomp_team_end): Call gomp_team_barrier_wait instead of
11113 gomp_barrier_wait. For nested case call one extra
11114 gomp_barrier_wait. Move here some destruction from free_team.
11115 Call free_team on pool->last_team if any, rather than freeing
11116 current team. Destroy work_share_list_free_lock ifndef
11117 HAVE_SYNC_BUILTINS.
11118 (gomp_new_icv): New function.
11119 (gomp_threads, gomp_threads_size, gomp_threads_used,
11120 gomp_threads_dock): Removed.
11121 (gomp_thread_destructor): New variable.
11122 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11124 (gomp_team_start): Create new pool if current thread doesn't have
11125 one. Use pool fields instead of global gomp_* variables.
11126 Initialize thread_pool field for new threads. Clear single_count.
11127 Change last argument from ws to team, don't create
11128 new team, set ts.work_share to &team->work_shares[0] and clear
11129 ts.last_work_share. Don't clear ts.work_share_generation.
11130 If number of threads changed, adjust atomically gomp_managed_threads.
11131 Use gomp_init_task instead of gomp_new_task,
11132 set thr->task to the corresponding implicit_task array entry.
11133 Create tasks for each member thread. Initialize ts.level.
11134 (initialize_team): Call pthread_key_create on
11135 gomp_thread_destructor.
11136 (team_destructor): New function.
11137 (new_team): Removed.
11138 (gomp_new_team): New function.
11139 (free_team): Free gomp_work_share blocks chained through next_alloc,
11140 instead of freeing work_shares and destroying work_share_lock.
11141 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11142 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11143 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11144 of gomp_barrier_wait.
11145 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11146 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11147 if gomp_work_share_start returned true. Don't unlock ws->lock.
11148 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11149 of gomp_barrier_wait.
11150 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11151 gomp_work_share_init_done if gomp_work_share_start returned true.
11152 Don't unlock ws->lock.
11153 * work.c: Include stddef.h.
11154 (free_work_share): Use work_share_list_free_lock instead
11155 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11156 Call gomp_fini_work_share and then either free ws if orphaned, or
11157 put it into work_share_list_free list of the current team.
11158 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11160 (gomp_work_share_start, gomp_work_share_end,
11161 gomp_work_share_end_nowait): Rewritten.
11162 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11163 (openmp_version): Set to 200805.
11164 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11165 omp_sched_guided, omp_sched_auto): New parameters.
11166 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11167 omp_set_max_active_levels, omp_get_max_active_levels,
11168 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11169 omp_get_active_level): New interfaces.
11170 * omp_lib.h.in (openmp_version): Set to 200805.
11171 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11172 omp_sched_guided, omp_sched_auto): New parameters.
11173 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11174 omp_set_max_active_levels, omp_get_max_active_levels,
11175 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11176 omp_get_active_level): New externals.
11177 * loop.c: Include limits.h.
11178 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11180 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11181 Likewise. Use gomp_icv.
11182 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11183 ts.static_trip here.
11184 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11185 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11186 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11187 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11188 don't unlock ws->lock, otherwise lock it.
11189 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11190 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11191 (gomp_parallel_loop_start): Call gomp_new_team instead of
11192 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11193 Adjust gomp_team_start caller. Pass 0 as second argument to
11194 gomp_resolve_num_threads.
11195 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11196 If adding ws->chunk_size nthreads + 1 times after end won't
11197 overflow, set ws->mode to 1.
11198 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11199 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11200 GOMP_loop_ull_ordered_static_start,
11201 GOMP_loop_ull_ordered_dynamic_start,
11202 GOMP_loop_ull_ordered_guided_start,
11203 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11204 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11205 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11206 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11207 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11209 * libgomp.map: Export lock routines also @@OMP_2.0.
11210 (GOMP_loop_ordered_dynamic_first,
11211 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11212 GOMP_loop_ordered_static_first): Remove.
11213 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11214 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11215 GOMP_loop_ull_ordered_dynamic_next,
11216 GOMP_loop_ull_ordered_dynamic_start,
11217 GOMP_loop_ull_ordered_guided_next,
11218 GOMP_loop_ull_ordered_guided_start,
11219 GOMP_loop_ull_ordered_runtime_next,
11220 GOMP_loop_ull_ordered_runtime_start,
11221 GOMP_loop_ull_ordered_static_next,
11222 GOMP_loop_ull_ordered_static_start,
11223 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11224 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11225 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11226 (omp_set_schedule, omp_get_schedule,
11227 omp_get_thread_limit, omp_set_max_active_levels,
11228 omp_get_max_active_levels, omp_get_level,
11229 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11230 omp_set_schedule_, omp_set_schedule_8_,
11231 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11232 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11233 omp_get_max_active_levels_, omp_get_level_,
11234 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11235 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11236 New exports @@OMP_3.0.
11237 * omp.h.in (omp_sched_t): New type.
11238 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11239 omp_set_max_active_levels, omp_get_max_active_levels,
11240 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11241 omp_get_active_level): New prototypes.
11242 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11243 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11244 gomp_thread_limit_var, gomp_remaining_threads_count,
11245 gomp_remaining_threads_lock): New variables.
11246 (parse_spincount): New function.
11247 (initialize_env): Call gomp_init_num_threads unconditionally.
11248 Initialize gomp_available_cpus. Call parse_spincount,
11249 initialize gomp_{,throttled_}spin_count_var
11250 depending on presence and value of OMP_WAIT_POLICY and
11251 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11252 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11253 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11254 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11255 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11256 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11257 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11258 (gomp_global_icv): New.
11259 (parse_schedule): Use it. Parse "auto".
11260 (omp_set_num_threads): Use gomp_icv.
11261 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11263 (omp_get_max_threads): Move from parallel.c.
11264 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11265 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11267 (parse_stacksize, parse_wait_policy): New functions.
11268 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11269 both wrappers for compatibility and new locks.
11270 (omp_set_schedule, omp_get_schedule,
11271 omp_get_thread_limit, omp_set_max_active_levels,
11272 omp_get_max_active_levels, omp_get_level,
11273 omp_get_ancestor_thread_num, omp_get_team_size,
11274 omp_get_active_level): New ialias_redirect.
11275 (omp_set_schedule_, omp_set_schedule_8_,
11276 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11277 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11278 omp_get_max_active_levels_, omp_get_level_,
11279 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11280 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11282 * parallel.c: Include limits.h.
11283 (gomp_resolve_num_threads): Add count argument. Rewritten.
11284 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11285 argument to gomp_team_start. Pass 0 as second argument to
11286 gomp_resolve_num_threads.
11287 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11288 if gomp_thread_limit_var != ULONG_MAX.
11289 (omp_in_parallel): Implement using ts.active_level.
11290 (omp_get_max_threads): Move to env.c.
11291 (omp_get_level, omp_get_ancestor_thread_num,
11292 omp_get_team_size, omp_get_active_level): New functions,
11294 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11295 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11296 gomp_iter_dynamic_next instead of the _locked variant and don't take
11297 lock around it, otherwise acquire it before calling
11298 gomp_iter_dynamic_next_locked.
11299 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11300 gomp_iter_dynamic_next instead of the _locked variant and don't take
11302 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11303 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11304 Adjust gomp_team_start caller. Pass count as second argument to
11305 gomp_resolve_num_threads, don't adjust num_threads after the call.
11307 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11308 ws->chunk_size by incr.
11309 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11311 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11313 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11314 (omp_check_defines): Check even the compat defines.
11315 * config/linux/ptrlock.c: New file.
11316 * config/linux/ptrlock.h: New file.
11317 * config/linux/wait.h: New file.
11318 * config/posix/ptrlock.c: New file.
11319 * config/posix/ptrlock.h: New file.
11320 * config/linux/bar.h (gomp_team_barrier_wait,
11321 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11322 (gomp_team_barrier_set_task_pending,
11323 gomp_team_barrier_clear_task_pending,
11324 gomp_team_barrier_set_waiting_for_tasks,
11325 gomp_team_barrier_waiting_for_tasks,
11326 gomp_team_barrier_done): New inlines.
11327 (gomp_barrier_t): Rewritten.
11328 (gomp_barrier_state_t): New typedef.
11329 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11330 gomp_barrier_wait_start): Rewritten.
11331 (gomp_barrier_wait_end): Change second argument to
11332 gomp_barrier_state_t.
11333 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11335 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11337 (gomp_barrier_wait_end): Rewritten.
11338 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11339 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11340 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11341 (gomp_barrier_state_t): New typedef.
11342 (gomp_team_barrier_wait,
11343 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11344 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11345 into the return value. Return gomp_barrier_state_t.
11346 (gomp_team_barrier_set_task_pending,
11347 gomp_team_barrier_clear_task_pending,
11348 gomp_team_barrier_set_waiting_for_tasks,
11349 gomp_team_barrier_waiting_for_tasks,
11350 gomp_team_barrier_done): New inlines.
11351 (gomp_barrier_wait_end): Change second argument to
11352 gomp_barrier_state_t.
11353 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11355 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11356 (gomp_barrier_wait_end): Change second argument to
11357 gomp_barrier_state_t.
11358 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11359 gomp_team_barrier_wake): New functions.
11360 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11362 (gomp_futex_wake, gomp_futex_wait): New variables.
11363 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11364 * config/linux/lock.c: Rewrite to make locks task owned,
11365 for backwards compatibility provide the old entrypoints
11366 if symbol versioning. Include wait.h instead of libgomp.h and
11368 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11369 * config/posix95/lock.c: Rewrite to make locks task owned,
11370 for backwards compatibility provide the old entrypoints
11371 if symbol versioning.
11372 * config/posix/lock.c: Rewrite to make locks task owned,
11373 for backwards compatibility provide the old entrypoints
11374 if symbol versioning.
11375 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11376 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11377 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11378 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11379 (sys_futex0): Return error code.
11380 (futex_wake, futex_wait): If ENOSYS was returned, clear
11381 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11382 (cpu_relax, atomic_write_barrier): New static inlines.
11383 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11384 (futex_wake, futex_wait): If ENOSYS was returned, clear
11385 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11386 (cpu_relax, atomic_write_barrier): New static inlines.
11387 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11388 (sys_futex0): Return error code.
11389 (futex_wake, futex_wait): If ENOSYS was returned, clear
11390 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11391 (cpu_relax, atomic_write_barrier): New static inlines.
11392 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11393 (sys_futex0): Return error code.
11394 (futex_wake, futex_wait): If ENOSYS was returned, clear
11395 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11396 (cpu_relax, atomic_write_barrier): New static inlines.
11397 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11398 (sys_futex0): Return error code.
11399 (futex_wake, futex_wait): If ENOSYS was returned, clear
11400 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11401 (cpu_relax, atomic_write_barrier): New static inlines.
11402 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11403 (sys_futex0): Return error code.
11404 (futex_wake, futex_wait): If ENOSYS was returned, clear
11405 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11406 (cpu_relax, atomic_write_barrier): New static inlines.
11407 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11409 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11410 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11411 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11413 (omp_nest_lock_t): Change owner into void *, add lock field.
11414 * config/posix95/omp-lock.h: Include semaphore.h.
11415 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11416 (omp_lock_t): Use sem_t instead of mutex if semaphores
11418 (omp_nest_lock_t): Likewise. Change owner to void *.
11419 * config/posix/omp-lock.h: Include semaphore.h.
11420 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11421 (omp_lock_t): Use sem_t instead of mutex if semaphores
11423 (omp_nest_lock_t): Likewise. Add owner field.
11425 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11427 * testsuite/libgomp.c/collapse-1.c: New test.
11428 * testsuite/libgomp.c/collapse-2.c: New test.
11429 * testsuite/libgomp.c/collapse-3.c: New test.
11430 * testsuite/libgomp.c/icv-1.c: New test.
11431 * testsuite/libgomp.c/icv-2.c: New test.
11432 * testsuite/libgomp.c/lib-2.c: New test.
11433 * testsuite/libgomp.c/lock-1.c: New test.
11434 * testsuite/libgomp.c/lock-2.c: New test.
11435 * testsuite/libgomp.c/lock-3.c: New test.
11436 * testsuite/libgomp.c/loop-4.c: New test.
11437 * testsuite/libgomp.c/loop-5.c: New test.
11438 * testsuite/libgomp.c/loop-6.c: New test.
11439 * testsuite/libgomp.c/loop-7.c: New test.
11440 * testsuite/libgomp.c/loop-8.c: New test.
11441 * testsuite/libgomp.c/loop-9.c: New test.
11442 * testsuite/libgomp.c/nested-3.c: New test.
11443 * testsuite/libgomp.c/nestedfn-6.c: New test.
11444 * testsuite/libgomp.c/sort-1.c: New test.
11445 * testsuite/libgomp.c/task-1.c: New test.
11446 * testsuite/libgomp.c/task-2.c: New test.
11447 * testsuite/libgomp.c/task-3.c: New test.
11448 * testsuite/libgomp.c/task-4.c: New test.
11449 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11450 to C++ testsuite default compiler options.
11451 * testsuite/libgomp.c++/collapse-1.C: New test.
11452 * testsuite/libgomp.c++/collapse-2.C: New test.
11453 * testsuite/libgomp.c++/ctor-10.C: New test.
11454 * testsuite/libgomp.c++/for-1.C: New test.
11455 * testsuite/libgomp.c++/for-2.C: New test.
11456 * testsuite/libgomp.c++/for-3.C: New test.
11457 * testsuite/libgomp.c++/for-4.C: New test.
11458 * testsuite/libgomp.c++/for-5.C: New test.
11459 * testsuite/libgomp.c++/loop-8.C: New test.
11460 * testsuite/libgomp.c++/loop-9.C: New test.
11461 * testsuite/libgomp.c++/loop-10.C: New test.
11462 * testsuite/libgomp.c++/task-1.C: New test.
11463 * testsuite/libgomp.c++/task-2.C: New test.
11464 * testsuite/libgomp.c++/task-3.C: New test.
11465 * testsuite/libgomp.c++/task-4.C: New test.
11466 * testsuite/libgomp.c++/task-5.C: New test.
11467 * testsuite/libgomp.c++/task-6.C: New test.
11468 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11469 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11470 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11471 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11472 * testsuite/libgomp.fortran/collapse1.f90: New test.
11473 * testsuite/libgomp.fortran/collapse2.f90: New test.
11474 * testsuite/libgomp.fortran/collapse3.f90: New test.
11475 * testsuite/libgomp.fortran/collapse4.f90: New test.
11476 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11477 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11478 * testsuite/libgomp.fortran/lib4.f90: New test.
11479 * testsuite/libgomp.fortran/lock-1.f90: New test.
11480 * testsuite/libgomp.fortran/lock-2.f90: New test.
11481 * testsuite/libgomp.fortran/nested1.f90: New test.
11482 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11483 * testsuite/libgomp.fortran/strassen.f90: New test.
11484 * testsuite/libgomp.fortran/tabs1.f90: New test.
11485 * testsuite/libgomp.fortran/tabs2.f: New test.
11486 * testsuite/libgomp.fortran/task1.f90: New test.
11487 * testsuite/libgomp.fortran/task2.f90: New test.
11488 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11489 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11490 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11491 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11492 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11494 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11497 * testsuite/libgomp.c++/ctor-11.C: New test.
11498 * testsuite/libgomp.c++/ctor-12.C: New test.
11500 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11502 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11504 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11506 PR middle-end/36106
11507 * testsuite/libgomp.c/atomic-5.c: New test.
11508 * testsuite/libgomp.c/atomic-6.c: New test.
11509 * testsuite/libgomp.c/autopar-1.c: New test.
11511 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11513 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11514 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11515 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11516 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11517 * configure: Regenerate.
11518 * Makefile.in, testsuite/Makefile.in: Likewise.
11520 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11523 * aclocal.m4: Regenerate.
11524 * configure: Regenerate.
11526 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11528 PR middle-end/35611
11529 * testsuite/libgomp.c/atomic-4.c: New test.
11532 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11533 (gomp_iter_guided_next): Likewise.
11534 * testsuite/libgomp.c/pr35625.c: New test.
11536 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11538 * aclocal.m4: Regenerate.
11539 * configure: Likewise.
11540 * Makefile.in: Likewise.
11541 * testsuite/Makefile.in: Likewise.
11543 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11545 PR middle-end/35185
11546 * testsuite/libgomp.c++/pr35185.C: New test.
11548 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11550 PR middle-end/35549
11551 * testsuite/libgomp.c/pr35549.c: New test.
11553 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11555 * testsuite/libgomp.c/atomic-3.c: New test.
11557 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11560 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11561 .F08 file suffixes.
11563 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11566 * configure.ac: Add ACX_HEADER_STRING.
11567 * env.c: Include strings.h.
11568 * aclocal.m4: Regenerate.
11569 * config.h.in: Regenerate.
11570 * configure: Regenerate.
11571 * Makefile.in: Regenerate.
11572 * testsuite/Makefile.in: Regenerate.
11574 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11576 PR middle-end/35196
11577 * testsuite/libgomp.c/pr35196.c: New test.
11579 PR middle-end/35130
11580 * testsuite/libgomp.fortran/pr35130.f90: New test.
11581 * testsuite/libgomp.c/pr35130.c: New test.
11583 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11585 PR middle-end/33880
11586 * testsuite/libgomp.c/pr33880.c: New test.
11587 * testsuite/libgomp.fortran/pr33880.f90: New test.
11589 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11591 * configure: Regenerate.
11593 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11595 * configure.ac: Move futex checking into ../config/futex.m4.
11596 * configure: Rebuilt.
11597 * aclocal.m4: Rebuilt.
11598 * Makefile.in: Rebuilt.
11600 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11601 2007-10-15 ../config/tls.m4 change.
11603 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11606 * testsuite/libgomp.c/pr34513.c: New test.
11607 * testsuite/libgomp.c++/pr34513.C: New test.
11609 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11612 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11614 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11616 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11618 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11620 * testsuite/libgomp.c/private-1.c: New test.
11622 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11623 Paolo Bonzini <bonzini@gnu.org>
11625 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11626 instead of 'VPATH ='.
11627 * Makefile.in: Regenerate.
11629 2007-11-23 Matthias Klose <doko@ubuntu.com>
11631 * configure.ac: Adjust makeinfo version check.
11632 * configure: Regenerate.
11634 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11637 * testsuite/libgomp.fortran/pr34020.f90: New test.
11639 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11642 * testsuite/libgomp.c++/atomic-1.C: New test.
11644 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11647 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11648 Make x and y integers rather than (implicit) reals. Add private (j)
11649 clause to the last omp parallel.
11651 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11653 * configure: Regenerate following changes to ../config/tls.m4.
11655 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11657 * testsuite/libgomp.fortran/stack.f90: New test.
11659 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11661 * config/mingw32/proc.c: New file.
11663 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11665 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11666 (main): Use __get_cpuid to get i386 target fetaures.
11667 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11668 (main): Use __get_cpuid to get x86_64 target fetaures.
11670 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11673 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11674 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11676 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11679 * testsuite/libgomp.fortran/pr32550.f90: New test.
11680 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11682 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11684 * aclocal.m4: Regenerated.
11686 2007-07-05 Tobias Burnus <burnus@net-b.de>
11689 * testsuite/libgomp.fortran/pr32359.f90: New.
11691 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11694 * sections.c (GOMP_parallel_sections_start): Only decrease
11695 number of threads to COUNT if dyn_var is true.
11696 * testsuite/libgomp.c/pr32468.c: New test.
11698 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11701 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11703 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11705 PR middle-end/32362
11706 * testsuite/libgomp.c/pr32362-1.c: New test.
11707 * testsuite/libgomp.c/pr32362-2.c: New test.
11708 * testsuite/libgomp.c/pr32362-3.c: New test.
11710 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11712 * team.c (gomp_team_start): Fix setting up thread_attr
11715 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11717 * configure: Regenerate.
11719 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11721 * Makefile.in: Regenerate.
11722 * configure: Regenerate.
11723 * aclocal.m4: Regenerate.
11724 * testsuite/Makefile.in: Regenerate.
11726 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11728 * config/linux/proc.c: New file.
11731 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11733 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11735 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11737 2007-04-16 Matthias Klose <doko@debian.org>
11739 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11740 flags if not building with -m64.
11741 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11742 flag for i?86-*-* targets, if current target matches -m64.
11744 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11746 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11747 * Makefile.in: Regenerate.
11749 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11752 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11754 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11756 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11758 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11760 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11761 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11762 (parse_affinity): New function.
11763 (initialize_env): Call it and gomp_init_affinity.
11764 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11765 create new pthread_attr_t and call gomp_init_thread_affinity
11766 on it for each thread before passing the attribute to pthread_create.
11767 * config/linux/affinity.c: New file.
11768 * config/posix/affinity.c: New file.
11769 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11770 * configure: Rebuilt.
11771 * config.h.in: Rebuilt.
11772 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11773 * Makefile.in: Rebuilt.
11775 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11777 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11779 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11780 and use it if found.
11782 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11784 * testsuite/config/default.exp: New file.
11785 * testsuite/lib/libgomp.exp: New file.
11786 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11787 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11788 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11789 (libgomp_load): Remove.
11790 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11791 always_ld_library_path, not ld_library_path. Set additional_flags
11792 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11793 (target_compile): Do not call libgomp_init. Append lang_library_path
11794 and lang_link_flags to options.
11795 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11796 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11798 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11799 always_ld_library_path. Set LD_LIBRARY_PATH here.
11800 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11801 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11802 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11804 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11805 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11806 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11807 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11808 * testsuite/libgomp.c/atomic-10.c: Ditto.
11810 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11812 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11813 dg-final cleanup-modules line.
11814 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11815 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11816 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11817 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11818 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11819 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11820 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11822 2007-03-18 Andreas Schwab <schwab@suse.de>
11824 * acinclude.m4: Adjust regular expression for ld version
11826 * configure: Regenerate.
11828 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11830 * Makefile.am: Add install-pdf target as copied from
11831 automake v1.10 rules.
11832 * Makefile.in: Regenerate
11834 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11837 * configure: Regenerate.
11840 * testsuite/libgomp.c++/pr30703.C: New test.
11842 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11845 2006-07-05 Eric Christopher <echristo@apple.com>
11846 * configure.ac: Depend addition of -pthread on host OS.
11847 * configure: Regenerate.
11849 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11851 * libgomp.texi: Fix spacing after abbreviations.
11853 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11856 * configure.ac: Add check for makeinfo
11857 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11858 if an appropriate version of makeinfo is found.
11859 * aclocal.m4: Regenerated.
11860 * configure: Regenerated.
11861 * Makefile.in: Regenerated.
11862 * testsuite/Makefile.in: Regenerated.
11864 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11867 * libgomp.texi: More about implementation-dependent settings.
11869 2007-01-26 Tobias Burnus <burnus@net-b.de>
11871 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11873 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11875 PR middle-end/30494
11876 * testsuite/libgomp.c/pr30494.c: New test.
11878 2007-01-15 Tom Tromey <tromey@redhat.com>
11880 * configure: Rebuilt.
11881 * configure.ac: Fixed comment.
11883 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11885 * libgomp.texi: Document implementation specific default values of
11886 environment variables.
11888 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11891 * libgomp.texi: New file.
11892 * configure.ac: Add --enable-generated-files-in-srcdir option.
11893 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11895 * Makefile.in: Regenerated.
11896 * config.h.in: Regenerated.
11897 * testsuite/Makefile.in: Regenerated.
11900 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11903 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11905 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11907 * configure: Regenerate.
11909 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11912 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11913 start if there shouldn't be any loop iterations.
11914 (gomp_loop_ordered_static_start): Remove start == end test.
11915 * testsuite/libgomp.c/pr29947-1.c: New test.
11916 * testsuite/libgomp.c/pr29947-2.c: New test.
11918 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11920 * configure.tgt: Force initial-exec TLS model on Linux only.
11922 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11924 * configure: Regenerated.
11926 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11928 * env.c (parse_schedule): Reject out of range values.
11929 (parse_unsigned_long): Reject out of range, negative or zero values.
11931 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11934 * testsuite/libgomp.fortran/pr29629.f90: New test.
11936 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11939 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11940 * config/posix95: New directory.
11941 * config/posix95/omp-lock.h: New file.
11942 * config/posix95/lock.c: Likewise.
11944 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11946 * aclocal.m4: Regenerate.
11947 * configure: Regenerate.
11949 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11951 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11954 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11956 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11958 * configure: Regenerate.
11959 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11961 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11963 PR middle-end/25261
11964 PR middle-end/28790
11965 * testsuite/libgomp.c/nestedfn-4.c: New test.
11966 * testsuite/libgomp.c/nestedfn-5.c: New test.
11967 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11970 * testsuite/libgomp.fortran/condinc1.f: New test.
11971 * testsuite/libgomp.fortran/condinc2.f: New test.
11972 * testsuite/libgomp.fortran/condinc3.f90: New test.
11973 * testsuite/libgomp.fortran/condinc4.f90: New test.
11974 * testsuite/libgomp.fortran/condinc1.inc: New file.
11976 2006-09-18 Tom Tromey <tromey@redhat.com>
11978 * configure: Rebuilt.
11980 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11983 PR preprocessor/14634
11984 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11986 * configure: Regenerate.
11988 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11990 * testsuite/libgomp.fortran/reduction3.f90: Change
11991 -2147483648 to -huge(i)-1 to avoid overflow.
11992 * testsuite/libgomp.fortran/reduction4.f90: Change
11993 Z'ffffffff' to not(0) to avoid overflow.
11995 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11998 * Makefile.am (libsubincludedir): New.
11999 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12000 * Makefile.in: Regenerate.
12002 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12005 * env.c: Include ctype.h.
12006 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12007 leading and/or trailing whitespace and compare strings case
12010 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12013 * testsuite/libgomp.fortran/pr28390.f: New test.
12015 2006-07-05 Eric Christopher <echristo@apple.com>
12017 * configure.ac: Depend addition of -pthread on host OS.
12018 * configure: Regenerate.
12020 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12022 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12023 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12026 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12030 * configure.ac: If neither --enable-linux-futex nor
12031 --disable-linux-futex is passed, determine the default by checking
12032 for compiling and/or running against NPTL. With --enable-linux-futex,
12033 check if SYS_gettid and SYS_futex are defined.
12034 * configure: Rebuilt.
12036 2006-06-14 Richard Henderson <rth@redhat.com>
12039 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12040 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12042 2006-06-09 Richard Henderson <rth@redhat.com>
12044 * env.c (gomp_nthreads_var): Change to unsigned long.
12045 (gomp_run_sched_chunk): Likewise.
12046 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12047 (initialize_env): Initialize gomp_thread_attr.
12048 * libgomp.h (gomp_nthreads_var): Update decl.
12049 (gomp_run_sched_chunk): Likewise.
12050 (gomp_thread_attr): Declare.
12051 * team.c (gomp_thread_attr): Export.
12052 (initialize_team): Don't initialize it.
12054 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12057 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12058 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12060 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12062 * config/mingw32/time.c: New file.
12063 * configure.tgt: Use it.
12065 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12067 * Makefile.am: Add install-html target. Add install-html to .PHONY
12068 * Makefile.in: Regenerate.
12070 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12073 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12074 * testsuite/libgomp.c/critical-1.c: Likewise.
12075 * testsuite/libgomp.c/loop-1.c: Likewise.
12076 * testsuite/libgomp.c/loop-2.c: Likewise.
12077 * testsuite/libgomp.c/single-1.c: Likewise.
12078 * testsuite/libgomp.c/ordered-1.c: Likewise.
12079 * testsuite/libgomp.c/ordered-2.c: Likewise.
12081 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12083 PR middle-end/27416
12084 * libgomp.fortran/pr27416-1.f90: New test.
12086 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12089 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12090 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12092 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12095 * testsuite/libgomp.c/pr26943-1.c: New test.
12096 * testsuite/libgomp.c/pr26943-2.c: New test.
12097 * testsuite/libgomp.c/pr26943-3.c: New test.
12098 * testsuite/libgomp.c/pr26943-4.c: New test.
12099 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12100 * testsuite/libgomp.c++/pr26943.C: New test.
12102 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12104 PR middle-end/27337
12105 * testsuite/libgomp.c++/pr27337.C: New test.
12107 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12110 * testsuite/libgomp.c/pr26171.c: New test.
12112 2006-04-25 Richard Henderson <rth@redhat.com>
12115 * configure.ac: Use GCC_CHECK_TLS.
12116 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12117 * Makefile.in, aclocal.m4, configure: Regenerate.
12119 2006-04-10 Matthias Klose <doko@debian.org>
12121 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12122 directory names containing underscores.
12124 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12127 * testsuite/libgomp.c++/pr26691.C: New test.
12129 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12131 * testsuite/libgomp.fortran/retval2.f90: New test.
12133 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12135 * testsuite/libgomp.c++: New directory.
12137 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12139 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12140 * config/posix/sem.c: Implement the above.
12142 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12144 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12145 define HAVE_BROKEN_POSIX_SEMAPHORES.
12146 * configure: Rebuilt.
12147 * config.h.in: Rebuilt.
12149 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12152 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12153 for the other pthread check.
12154 * configure: Regenerate.
12155 * config.h.in: Regenerate.
12157 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12161 * Makefile.am (fincludedir): New variable.
12162 (nodist_include_HEADERS): Remove Fortran files.
12163 (nodist_finclude_HEADERS): New variable.
12164 * Makefile.in: Regenerated.
12166 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12168 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12169 Remove tests for returning assumed character length arrays.
12171 2006-02-12 Roger Sayle <roger@eyesopen.com>
12172 John David Anglin <dave@hiauly1.hia.nrc.ca>
12175 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12177 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12179 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12181 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12183 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12184 part of LD_LIBRARY_PATH manually.
12186 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12189 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12192 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12195 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12196 * configure.ac (PERL): Don't set.
12197 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12198 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12199 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12200 * omp.h.in: Wrap the new configure substitutions with @ characters.
12201 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12202 * aclocal.m4, configure, Makefile.in: Regenerate.
12203 * mkomp_h.pl: Delete.
12205 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12208 * configure.ac: Use GCC_HEADER_STDINT.
12209 * libgomp.h: Include gstdint.h.
12210 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12211 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12213 2006-01-24 Richard Henderson <rth@redhat.com>
12216 * configure.ac: Add AM_MAINTAINER_MODE.
12217 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12219 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12221 * Makefile.in: Regenerate.
12222 * testsuite/Makefile.in: Regenerate.
12223 * aclocal.m4: Regenerate.
12225 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12227 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12229 * configure.ac: Add check for loadavg.h.
12230 (link_gomp): Adjust comment.
12231 * configure: Regenerate.
12232 * config.h.in: Regenerate.
12234 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12237 * configure.ac: Remove check for alloca.h.
12238 * configure: Regenerate.
12239 * config.h.in: Regenerate.
12240 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12241 * team.c: Remove use of alloca.h.
12242 Call gomp_alloca instead of alloca.
12244 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12247 * team.c: Add include of alloca.h.
12248 * configure.ac: Add check for alloca.h.
12249 * configure: Regenerate.
12250 * config.h.in: Regenerate.
12252 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12255 * testsuite/libgomp.fortran/pr25219.f90: New test.
12257 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12259 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12260 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12261 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12262 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12263 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12264 testsuite/libgomp.fortran/threadprivate1.f90,
12265 testsuite/libgomp.fortran/threadprivate2.f90,
12266 testsuite/libgomp.fortran/threadprivate3.f90,
12267 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12268 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12269 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12270 effective-target to TLS runtime.
12272 * testsuite/libgomp.fortran/pr25162.f: Require
12273 effective-target TLS runtime.
12275 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12277 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12278 * testsuite/libgomp.c/nestedfn-3.c: New test.
12280 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12283 * testsuite/libgomp.fortran/pr25162.f: New test.
12285 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12287 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12288 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12290 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12292 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12293 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12294 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12295 single.c, team.c, work.c, config/linux/alpha/futex.h,
12296 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12297 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12298 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12299 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12300 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12301 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12302 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12305 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12307 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12308 to nodist_noinst_HEADERS.
12309 * Makefile.in: Rebuilt.
12311 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12312 add integer count field.
12313 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12314 omp_nest_lock_t type change.
12315 (omp_init_nest_lock): Likewise. Initialize count to 0.
12316 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12318 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12320 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12321 Increment count if successful and return the new nesting level.
12322 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12323 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12324 * testsuite/libgomp.c/lib-1.c: New test.
12325 * testsuite/libgomp.fortran/lib1.f90: New test.
12326 * testsuite/libgomp.fortran/lib2.f: New test.
12327 * testsuite/libgomp.fortran/lib3.f: New test.
12329 2005-11-17 Richard Henderson <rth@redhat.com>
12332 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12333 * configure.ac (link_gomp): New. Substitute it.
12334 (AC_CONFIG_FILES): Add libgomp.spec.
12335 * libgomp.spec.in: New file.
12336 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12337 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12339 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12341 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12342 reduction(-:var) behaving the same as reduction(+:var).
12343 * testsuite/libgomp.c/reduction-4.c: New test.
12345 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12347 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12348 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12349 testsuite/libgomp.c/copyin-3.c,
12350 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12351 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12352 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12353 testsuite/libgomp.c++/pr24455.C,
12354 testsuite/libgomp.fortran/threadprivate1.f90,
12355 testsuite/libgomp.fortran/threadprivate2.f90,
12356 testsuite/libgomp.fortran/threadprivate3.f90,
12357 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12358 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12359 testsuite/libgomp.fortran/omp_parse3.f90: Require
12360 effective-target TLS.
12362 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12366 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12369 * team.c (initialize_team): Pass NULL rather than free as
12370 pthread_key_create destructor. Initialize thread specific data
12371 pointer in initial thread to a static local variable rather than
12374 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12376 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12377 its location to ld_library_path.
12379 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12381 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12383 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12385 * testsuite/libgomp.c: Rename from libgomp.dg.
12387 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12389 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12390 threadprivate variable 'i'.
12392 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12394 * config/linux/s390/futex.h: New file.
12395 * configure.tgt: Use it.
12397 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12398 before the parallel.
12400 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12403 * testsuite/libgomp.c++/master-1.C: New test.
12405 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12407 * testsuite/libgomp.dg/copyin-3.c: New test.
12409 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12411 * testsuite/libgomp.fortran/retval1.f90: New test.
12412 * testsuite/libgomp.fortran/vla7.f90: New test.
12414 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12416 * testsuite/libgomp.fortran/vla2.f90: New test.
12417 * testsuite/libgomp.fortran/vla3.f90: New test.
12418 * testsuite/libgomp.fortran/vla4.f90: New test.
12419 * testsuite/libgomp.fortran/vla5.f90: New test.
12420 * testsuite/libgomp.fortran/vla6.f90: New test.
12422 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12424 * config/linux/sparc/futex.h: New file.
12425 * configure.tgt: Use it.
12426 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12428 * critical.c: Include stdlib.h.
12429 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12430 ignoring return value.
12431 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12432 LIBGOMP_CHECK_SYNC_BUILTINS check.
12433 * configure: Rebuilt.
12435 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12437 * testsuite/libgomp.fortran/vla1.f90: New test.
12439 2005-10-31 Richard Henderson <rth@redhat.com>
12441 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12442 setting 's' in different threads.
12444 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12446 * libgomp.h (attribute_hidden, ialias): Define.
12447 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12448 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12449 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12450 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12451 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12452 omp_test_lock, omp_test_nest_lock): Likewise.
12453 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12454 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12455 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12456 omp_test_lock, omp_test_nest_lock): Likewise.
12457 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12458 omp_get_dynamic, omp_get_nested): Likewise.
12459 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12460 omp_get_thread_num, omp_in_parallel): Likewise.
12461 * fortran.c (ialias_redirect): Define.
12462 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12463 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12464 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12465 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12466 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12467 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12468 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12469 omp_get_wtime): Add ialias_redirect.
12471 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12473 * fortran.c: Include stdlib.h.
12475 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12477 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12478 * Makefile.in: Regenerated.
12480 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12482 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12483 * libgomp_f.h.in (omp_check_defines): New function.
12484 * env.c: Include libgomp_f.h.
12485 (initialize_env): Call omp_check_defines.
12487 * testsuite/libgomp.dg/copyin-2.c: New test.
12488 * testsuite/libgomp.c++/copyin-2.C: New test.
12489 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12491 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12492 * testsuite/libgomp.fortran/sharing2.f90: New test.
12494 * testsuite/libgomp.dg/copyin-1.c: New test.
12495 * testsuite/libgomp.c++/copyin-1.C: New test.
12497 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12499 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12501 * testsuite/libgomp.fortran/workshare1.f90: New test.
12503 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12505 * libgomp.fortran/sharing1.f90: New test.
12507 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12510 * testsuite/libgomp.c++/loop-7.C: New test.
12512 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12514 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12515 * testsuite/libgomp.fortran/reduction6.f90: New test.
12516 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12518 2005-10-23 Richard Henderson <rth@redhat.com>
12520 * testsuite/libgomp.c++/ctor-1.C: New.
12521 * testsuite/libgomp.c++/ctor-2.C: New.
12522 * testsuite/libgomp.c++/ctor-3.C: New.
12523 * testsuite/libgomp.c++/ctor-4.C: New.
12524 * testsuite/libgomp.c++/ctor-5.C: New.
12525 * testsuite/libgomp.c++/ctor-6.C: New.
12526 * testsuite/libgomp.c++/ctor-7.C: New.
12527 * testsuite/libgomp.c++/ctor-8.C: New.
12528 * testsuite/libgomp.c++/ctor-9.C: New.
12530 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12533 * testsuite/libgomp.c++/pr24455-1.C: New test.
12534 * testsuite/libgomp.c++/pr24455.C: New test.
12535 * testsuite/libgomp.dg/pr24455-1.c: New test.
12536 * testsuite/libgomp.dg/pr24455.c: New test.
12538 2005-10-20 Richard Henderson <rth@redhat.com>
12540 * testsuite/libgomp.c++/loop-6.C: New.
12541 * testsuite/libgomp.dg/loop-3.c: New.
12543 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12545 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12546 explicitly private.
12547 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12550 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12552 * testsuite/libgomp.fortran/jacobi.f: New test.
12554 2005-10-19 Richard Henderson <rth@redhat.com>
12556 * configure.tgt (i?86-linux): Default to with_arch instead of
12557 CFLAGS. Add -mtune to match target_cpu.
12558 (x86_64-linux): Tune to i686.
12560 * fortran.c (omp_test_nest_lock_): Fix typo.
12562 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12564 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12565 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12566 * testsuite/libgomp.dg/ordered-3.c: New test.
12568 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12569 Remove volatile keyword.
12571 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12572 in COMMON block to avoid warnings on 64-bit targets.
12574 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12576 * testsuite/libgomp.dg/shared-3.c: New test.
12578 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12580 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12581 * testsuite/libgomp.fortran/reduction5.f90: New test.
12583 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12585 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12587 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12588 flush loop now that __sync_synchronize has proper memory barrier.
12589 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12590 Add -ffixed-form to dg-options.
12592 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12594 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12595 from subdirectories.
12596 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12597 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12598 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12599 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12600 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12601 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12602 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12603 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12604 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12605 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12606 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12607 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12608 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12609 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12610 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12611 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12612 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12613 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12614 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12615 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12616 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12617 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12618 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12619 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12620 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12622 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12624 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12625 lang_library_path exists. Use find instead of glob to gather tests.
12626 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12628 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12630 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12631 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12632 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12633 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12634 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12635 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12636 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12637 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12638 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12639 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12640 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12641 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12642 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12644 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12646 * testsuite/libgomp.dg/vla-1.c: New test.
12648 * testsuite/libgomp.fortran/reference2.f90: New test.
12650 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12651 declaration of omp_get_thread_num.
12652 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12655 * testsuite/libgomp.fortran/reduction1.f90: New test.
12656 * testsuite/libgomp.fortran/reduction2.f90: New test.
12657 * testsuite/libgomp.fortran/reduction3.f90: New test.
12658 * testsuite/libgomp.fortran/reduction4.f90: New test.
12660 2005-10-13 Richard Henderson <rth@redhat.com>
12662 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12663 * Makefile.in: Regenerate.
12664 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12665 * libgomp.h: Include bar.h.
12666 (struct gomp_barrier): Remove.
12667 (struct gomp_team): Add barrier. Replace master_barrier with
12668 master_release. Replace threads with ordered_release.
12669 (struct gomp_thread): Replace barrier with release.
12670 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12671 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12672 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12673 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12674 (GOMP_single_copy_end): Likewise.
12675 * team.c (gomp_threads_dock): New.
12676 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12677 (gomp_thread_start): Use gomp_barrier_wait.
12678 (new_team, free_team): Update for gomp_team changes.
12679 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12680 (gomp_team_end): Use gomp_barrier_wait.
12681 (initialize_team): Update for gomp_thread changes.
12682 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12683 (gomp_work_share_end_nowait): Use atomic ops when available.
12684 * config/linux/bar.c, config/linux/bar.h: New files.
12685 * config/posix/bar.c, config/posix/bar.h: New files.
12687 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12689 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12690 * testsuite/libgomp.dg/single-2.c: New test.
12692 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12693 lang_link_flags): Unset, so that they aren't inherited from previously
12696 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12698 2005-10-12 Richard Henderson <rth@redhat.com>
12700 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12701 (libgomp_init): Use lang_test_file, lang_library_path, and
12702 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12704 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12705 (lang_test_file, lang_link_flags): New.
12706 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12708 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12709 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12710 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12711 testsuite/libgomp.c++/parallel-1.C,
12712 testsuite/libgomp.c++/reduction-1.C,
12713 testsuite/libgomp.c++/reduction-2.C,
12714 testsuite/libgomp.c++/reduction-3.C,
12715 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12716 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12717 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12718 New files, largely cribbed from the C testsuite.
12720 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12722 * testsuite/libgomp.fortran/character1.f90: New test.
12723 * testsuite/libgomp.fortran/character2.f90: New test.
12725 * testsuite/libgomp.dg/nested-1.c: New test.
12726 * testsuite/libgomp.dg/nested-2.c: New test.
12727 * testsuite/libgomp.fortran/do1.f90: New test.
12728 * testsuite/libgomp.fortran/do2.f90: New test.
12730 * testsuite/libgomp.fortran/reference1.f90: New test.
12732 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12734 * testsuite/libgomp.dg/reduction-1.c: New test.
12735 * testsuite/libgomp.dg/reduction-2.c: New test.
12736 * testsuite/libgomp.dg/reduction-3.c: New test.
12738 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12740 * testsuite/libgomp.dg/atomic-1.c: New test.
12741 * testsuite/libgomp.dg/atomic-2.c: New test.
12743 2005-10-09 Richard Henderson <rth@redhat.com>
12745 * critical.c (atomic_lock): New.
12746 (initialize_critical): Initialize it.
12747 (GOMP_atomic_start, GOMP_atomic_end): New.
12748 * libgomp.map: Export them.
12749 * libgomp_g.h: Declare them.
12751 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12753 2005-10-02 Richard Henderson <rth@redhat.com>
12755 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12756 to XCFLAGS instead of CFLAGS.
12758 2005-09-30 Richard Henderson <rth@redhat.com>
12760 * configure.ac: Determine whether -pthread or -lpthread is needed.
12761 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12762 * Makefile.in, configure: Rebuild.
12764 2005-09-28 Richard Henderson <rth@redhat.com>
12766 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12767 * testsuite/libgomp.dg/omp-single-3.c: New test.
12769 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12771 * testsuite/libgomp.dg/omp-single-2.c: New test.
12772 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12774 2005-09-27 Richard Henderson <rth@redhat.com>
12776 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12777 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12779 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12781 * testsuite/libgomp.dg/omp-loop03.c: New test.
12783 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12785 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12787 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12789 * testsuite/libgomp.dg/omp-single-1.c: New test.
12790 * testsuite/libgomp.dg/shared-1.c: Return 0.
12791 Add prototype for abort.
12792 * testsuite/libgomp.dg/shared-2.c: Likewise.
12794 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12796 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12799 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12801 * testsuite/libgomp.dg/shared-1.c: New test.
12802 * testsuite/libgomp.dg/shared-2.c: New test.
12804 2005-09-24 Richard Henderson <rth@redhat.com>
12806 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12808 2005-09-24 Richard Henderson <rth@redhat.com>
12810 * iter.c (gomp_iter_static_next): Round up when computing number
12811 of iterations. Don't bother distributing a remainder equally.
12813 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12814 Don't call srand. Zero b before testing.
12817 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12819 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12820 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12822 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12824 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12825 without !$omp end do, followed immediately by subroutine end.
12827 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12829 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12831 2005-09-22 Richard Henderson <rth@redhat.com>
12833 * critical.c (GOMP_critical_name_start): Change argument to void**.
12834 Reuse the pointer space if the mutex fits.
12835 (GOMP_critical_name_end): Likewise.
12836 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12837 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12838 (GOMP_critical_name_end): Likewise.
12839 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12840 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12842 2005-09-20 Richard Henderson <rth@redhat.com>
12844 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12845 (create_lock_lock): New.
12846 (initialize_critical): Initialize it.
12847 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12848 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12850 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12852 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12854 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12856 * testsuite/libgomp.dg/omp-loop01.c: New test.
12857 * testsuite/libgomp.dg/omp-loop02.c: New test.
12859 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12861 * configure.ac (AC_PROG_FC): Add.
12862 (USE_FORTRAN): New automake conditional.
12863 * configure: Rebuilt.
12864 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12865 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12866 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12867 Add rules to build them.
12868 * Makefile.in: Rebuilt.
12869 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12870 OMP_NEST_LOCK_KIND.
12871 * libgomp.map: Add Fortran wrappers.
12872 * libgomp_f.h.in: New file.
12873 * omp_lib.h.in: New file.
12874 * omp_lib.f90.in: New file.
12875 * fortran.c: New file.
12876 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12877 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12878 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12879 libgfortran has been built.
12880 * testsuite/libgomp.fortran/fortran.exp: New file.
12881 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12882 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12883 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12884 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12885 * testsuite/libgomp.fortran/omp_hello.f: New test.
12886 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12887 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12888 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12889 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12890 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12891 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12892 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12893 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12895 2005-08-30 Richard Henderson <rth@redhat.com>
12897 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12898 function for when aliases are not usable.
12899 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12900 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12901 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12902 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12903 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12904 GOMP_loop_ordered_guided_next): Likewise.
12905 * ordered.c (GOMP_ordered_start): Likewise.
12907 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12909 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12910 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12911 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12912 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12913 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12914 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12915 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12916 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12917 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12919 2005-07-07 Eric Christopher <echristo@redhat.com>
12920 Diego Novillo <dnovillo@redhat.com>
12922 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12923 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12925 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12926 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12927 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12928 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12929 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12930 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12931 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12933 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12935 * TOPLEVEL.patch: Remove.
12937 2005-05-16 Richard Henderson <rth@redhat.com>
12939 * configure.ac: Test for clock_gettime.
12940 * config.h.in, configure: Rebuild.
12941 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12942 (omp_get_wtime): Use clock_gettime if available.
12943 (omp_get_wtick): Use clock_getres if available.
12945 2005-05-11 Richard Henderson <rth@redhat.com>
12947 * config/linux/ia64/futex.h: New file.
12948 * configure.tgt: Use it.
12950 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12952 2005-05-07 Richard Henderson <rth@redhat.com>
12954 * config/linux/powerpc/futex.h: New file.
12955 * configure.tgt: Use it.
12957 * config/linux/i486/futex.h: Merge ...
12958 * config/linux/x86_64/futex.h: ... into ...
12959 * config/linux/x86/futex.h: ... here.
12960 * configure.tgt: Update to match.
12962 2005-05-06 Richard Henderson <rth@redhat.com>
12964 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12965 * config/linux/i486/futex.h: Likewise.
12966 * config/linux/x86_64/futex.h: Likewise.
12968 * config/linux/lock.c: New file.
12969 * config/linux/omp-lock.h: New file.
12971 * critical.c, env.h: Don't include omp.h
12972 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12973 * config/posix/time.c: Likewise.
12974 * config/posix/omp-lock.h: New file.
12975 * libgomp.h: Include omp-lock.h and omp.h.
12976 * Makefile.am (nodist_include_HEADERS): New.
12978 * configure.ac (PERL): New.
12979 * mkomp_h.pl: New file.
12980 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12982 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12984 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12985 build directory. Re-add -march=i486 hack.
12987 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12988 (libgomp_link_flags): Remove.
12989 (libgomp_initialized): Remove.
12990 (libgomp_init): Don't protect from reinitialization. Copy code
12991 from libstdc++ for getting the multilib set correctly.
12993 2005-05-05 Richard Henderson <rth@redhat.com>
12995 * config/linux/alpha/futex.h: New file.
12996 * configure.tgt (alpha*-*-linux*): Use it.
12998 * config/posix/mutex.c: New file.
12999 * config/posix/sem.c: Use libgomp.h.
13001 * configure.tgt (x86_64-linux): Also test CC for -m32.
13002 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13004 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13007 * Makefile.am (SUBDIRS): New.
13008 (libgomp_la_LDFLAGS): Add -lpthread.
13009 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13010 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13012 * libgomp_g.h: New file.
13013 * libgomp.h: Split out all public declarations to libgomp_g.h.
13014 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13015 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13016 * config/linux/sem.h: Likewise.
13017 * config/posix/sem.h: Likewise.
13019 * Makefile.am (AM_LDFLAGS): New.
13020 (libgomp_version_script): Split out from ...
13021 (libgomp_la_LDFLAGS): ... here.
13022 (libgomp_version_info): New.
13023 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13024 (LIBGOMP_ENABLE): New.
13025 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13026 (LIBGOMP_ENABLE_SYMVERS): New.
13027 * configure.ac (AC_INIT): Version 1.0.
13028 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13029 (enable-linux-futex): Likewise. Rename from enable-futex.
13030 (libtool_VERSION): New.
13031 (LIBGOMP_ENABLE_SYMVERS): Use it.
13032 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13033 * Makefile.in, aclocal.m4, configure: Rebuild.
13035 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13036 (gomp_mutex_unlock_slow): Fix typo.
13037 * config/linux/sem.c: Similarly.
13038 (gomp_sem_post_slow): Fix typo.
13039 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13040 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13041 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13043 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13044 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13045 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13046 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13047 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13048 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13049 LDFLAGS. Pull enable_futex check to top-level.
13050 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13051 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13053 First attempt at real configury.
13054 * Makefile, config.h: Remove file.
13055 * Makefile.am, Makefile.in: New file.
13056 * acinclude.m4 aclocal.m4: New file.
13057 * configure.ac, configure.tgt, configure: New file.
13059 * config/posix/lock.c: Rename from sys-lock.c.
13060 * config/posix/mutex.h: Rename from sys-mutex.h.
13061 * config/posix/sem.c: Rename from sys-sem.c.
13062 * config/posix/sem.h: Rename from sys-sem.h.
13063 * config/posix/proc.c: Rename from sys-proc.c.
13064 * config/posix/time.c: Rename from sys-proc.c.
13066 * config/linux/mutex.c: New file.
13067 * config/linux/mutex.h: New file.
13068 * config/linux/sem.c: New file.
13069 * config/linux/sem.h: New file.
13070 * config/linux/i486/futex.h: New file.
13071 * config/linux/x86_64/futex.h: New file.
13073 2005-05-04 Richard Henderson <rth@redhat.com>
13075 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13076 * libgomp.h: Declare them.
13077 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13078 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13080 2005-05-04 Richard Henderson <rth@redhat.com>
13082 * libgomp-1 code drop
13084 2005-05-04 Richard Henderson <rth@redhat.com>
13086 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13087 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13088 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13089 (gomp_iter_static_next): Update.
13090 (gomp_ordered_static_next): Update.
13091 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13092 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13093 totally empty range.
13094 (gomp_loop_ordered_static_next): Refine test for calling
13095 gomp_ordered_static_next.
13096 * testsuite/ordered-1.c: Add case for more threads than iterations.
13098 * iter.c (gomp_iter_runtime_next_locked): Remove.
13099 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13100 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13101 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13102 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13103 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13104 gomp_loop_ordered_guided_next): Downcase name, make static, add
13105 an external alias with the old name.
13106 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13107 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13108 switch and call one of the above static functions.
13109 * libgomp.h: Update.
13111 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13112 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13113 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13114 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13115 GOMP_loop_ordered_guided_start): Update to match.
13116 * sections.c (GOMP_sections_start): Likewise.
13117 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13119 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13120 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13121 Use bounds check instead of modulus.
13122 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13123 (gomp_ordered_last): Don't sync with ordered_owner here.
13124 (gomp_ordered_next): Likewise.
13125 (gomp_ordered_static_loop_next): Likewise.
13126 * loop.c, libgomp.h: Update to match.
13128 * libgomp.h (GOMP_barrier): Declare.
13130 * testsuite/barrier-1.c: New file.
13131 * testsuite/critical-1.c: New file.
13132 * testsuite/ordered-2.c: New file.
13133 * testsuite/ordered-1.c: New file.
13134 * testsuite/sections-1.c: New file.
13135 * testsuite/single-1.c: New file.
13136 * testsuite/Makefile (TESTS): Add them.
13138 2005-05-04 Richard Henderson <rth@redhat.com>
13140 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13141 * loop.c (GOMP_loop_static_start): If not the startup thread,
13142 acquire the mutex to wait for initialization complete.
13143 (GOMP_loop_ordered_static_start): Likewise.
13144 (GOMP_loop_ordered_runtime_start): Likewise.
13145 (GOMP_loop_ordered_static_first): Remove.
13146 (GOMP_loop_ordered_dynamic_first): Remove.
13147 (GOMP_loop_ordered_guided_first): Remove.
13148 (GOMP_loop_ordered_runtime_first): Remove.
13149 * ordered.c (gomp_ordered_loop_first): Post to own release when
13150 we're the first thread.
13151 (gomp_ordered_loop_last): Wait on release if not owner.
13152 (gomp_ordered_loop_next): Likewise.
13153 (gomp_ordered_static_loop_init): New.
13154 (gomp_ordered_static_loop_next): Use ordered_owner.
13155 (GOMP_ordered_start): Likewise.
13156 * work.c (gomp_new_work_share): Initialize ordered_owner.
13158 2005-05-03 Richard Henderson <rth@redhat.com>
13160 * Makefile (OPT): New.
13163 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13164 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13165 * libgomp.h, libgomp.map, NOTES: Update to match.
13167 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13168 Add initialized and thr members.
13169 (gomp_thread_start): Pause when initially spawned to wait for
13170 the whole team to be created.
13171 (gomp_team_start): Release team members at the end.
13173 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13174 (f_foo_1): Use GOMP_loop_end.
13175 (f_foo_2): Use GOMP_loop_end_nowait.
13177 * testsuite/loop-2.c: New file.
13178 * testsuite/Makefile (TESTS): Add it.
13180 2005-05-03 Richard Henderson <rth@redhat.com>
13182 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13183 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13184 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13185 initial work_share.
13187 * testsuite/Makefile: New file.
13188 * testsuite/loop-1.c: New file.
13190 2005-05-03 Richard Henderson <rth@redhat.com>
13192 Initial implementation and checkin.
13194 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13196 Copying and distribution of this file, with or without modification,
13197 are permitted in any medium without royalty provided the copyright
13198 notice and this notice are preserved.