1 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
4 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
10 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
13 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
16 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
18 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
21 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
23 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
25 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
27 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
29 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
31 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
33 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
35 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
37 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
39 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
41 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
43 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
45 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
47 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
49 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
51 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
53 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
55 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
57 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
59 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
61 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
63 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
65 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
67 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
69 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
71 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
73 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
75 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
77 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
79 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
81 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
83 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
86 2020-04-10 Julian Brown <julian@codesourcery.com>
87 Thomas Schwinge <thomas@codesourcery.com>
90 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
92 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
94 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
96 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
98 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
100 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
102 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
104 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
106 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
108 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
110 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
112 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
114 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
116 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
118 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
120 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
123 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
125 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
128 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
131 * libgomp.oacc-c++/declare-pr94120.C: New.
133 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
135 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
137 * configure: Regenerate.
138 * testsuite/libgomp-site-extra.exp.in: New file.
139 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
141 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
143 * testsuite/Makefile.in: Regenerate.
145 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
147 PR tree-optimization/89713
149 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
151 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
153 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
155 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
156 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
158 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
161 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
163 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
166 * target.c (gomp_load_image_to_device): Fix link
169 2020-03-19 Jakub Jelinek <jakub@redhat.com>
172 * testsuite/libgomp.c++/pr93931.C: New test.
174 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
176 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
177 dg-allow-blank-lines-in-output.
179 2020-03-18 Julian Brown <julian@codesourcery.com>
180 Tobias Burnus <tobias@codesourcery.com>
182 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
183 it work concurrently.
185 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
187 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
188 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
189 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
191 2020-03-14 Jakub Jelinek <jakub@redhat.com>
194 * testsuite/libgomp.c/pr93566.c: New test.
196 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
198 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
199 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
200 integer(acc_device_property) for the type of the return value of
203 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
205 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
206 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
207 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
208 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
209 (acc_set_device_num): Fix Fortran argument name, use same name for C.
210 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
211 corrections; add note about the previous interface and named constant.
212 (OpenACC library and environment variables): Fix two typos.
213 * openacc.f90: Use for all procedures the argument names from the spec
214 as for …_h they are user visible.
215 (openacc_kinds): Rename acc_device_property to
216 acc_device_property_kinds and change value to int32 ; and update users.
217 Re-add acc_device_property for for backward compatibility.
218 (acc_get_property_string_h): Clean up as acc_device_property_kind
220 (acc_get_property_h): Likewise and return c_size_t instead of
222 (openacc): Also export acc_device_property_kinds.
223 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
224 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
225 handling; check against /= 0 instead of == 1 to match C.
226 * openacc_lib.h: Use for all procedures the argument names from the spec
227 as for …_h they are user visible. Place !GCC$ into the first column to
228 be active also for fixed-form souce form.
229 (acc_device_current, acc_device_property_kind, acc_device_property,
230 acc_property_memory, acc_property_free_memory, acc_property_name,
231 acc_property_vendor, acc_property_driver): New named constants.
232 (acc_get_property, acc_get_property_string): New generic interface.
234 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
237 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
238 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
240 (gomp_target_task_fn): Assert "devicep->async_run_func".
241 (clear_unsupported_flags): New function to remove unsupported flags
242 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
243 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
244 * testsuite/libgomp.c/target-33.c:
245 Remove xfail for offload_target_nvptx.
246 * testsuite/libgomp.c/target-34.c: Likewise.
248 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
250 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
251 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
252 * testsuite/libgomp.c/target-34.c: Likewise.
253 * testsuite/libgomp.c/target-link-1.c: Add xfail for
254 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
256 2020-02-09 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.c/target-38.c: New test.
260 2020-02-06 Jakub Jelinek <jakub@redhat.com>
263 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
265 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
267 * testsuite/lib/libgomp.exp
268 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
269 and not as 'source' argument to libgomp_target_compile.
271 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
273 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
274 (gcn_gfx801_s): Remove.
275 (isa_hsa_name): Remove gfx801.
276 (isa_gcc_name): Remove gfx801/carizzo.
277 (isa_code): Remove gfx801.
279 2020-02-03 Julian Brown <julian@codesourcery.com>
280 Tobias Burnus <tobias@codesourcery.com>
282 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
283 and *_finalize variants; document acc_attach and acc_detach; update
284 references from OpenACC 2.0 to 2.6.
285 * openacc.f90 (openacc_version): Update to 201711.
286 * openacc_lib.h (openacc_version): Update to 201711.
287 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
288 openacc_version to 201711.
289 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
291 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
293 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
294 and vgpr_count fields.
295 (struct kernel_info): Add a field for a hsa_kernel_description.
296 (run_kernel): Reduce the number of threads/workers if the requested
297 number would require too many VGPRs.
298 (init_basic_kernel_info): Initialize description field with
299 the hsa_kernel_description entry for the kernel.
301 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
304 * plugin/configfrag.ac (enable_offload_targets): Skip
305 HSA and GCN plugin besides -m32 also for -mx32.
306 * configure: Regenerate.
308 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
310 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
312 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
314 * plugin-gcn.c (struct agent_info): Add fields "name" and
316 (GOMP_OFFLOAD_init_device): ... and init from here.
317 (struct hsa_context_info): Add field "driver_version_s" ...
318 (init_hsa_contest): ... and init from here.
319 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
321 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
322 Enable test execution for amdgcn and host offloading targets.
323 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
324 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
325 (expect_device_properties): Split function into ...
326 (expect_device_string_properties): ... this new function ...
327 (expect_device_memory): ... and this new function.
328 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
331 2020-01-28 Julian Brown <julian@codesourcery.com>
333 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
334 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
335 component/non-component variable refs in a single directive.
336 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
338 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
340 * configure.ac: Handle `--with-toolexeclibdir='.
341 * Makefile.in: Regenerate.
342 * aclocal.m4: Regenerate.
343 * configure: Regenerate.
344 * testsuite/Makefile.in: Regenerate.
346 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
348 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
349 (expect_device_properties): Remove "expected_free_mem" argument,
350 change "expected_total_mem" argument type to size_t;
351 change types of acc_get_property results to size_t,
352 adapt format strings.
353 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
354 Use %zu instead of %zd to print size_t values.
355 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
357 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
358 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
360 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
362 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
364 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
367 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
369 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
370 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
371 Adjust test dimensions for amdgcn.
372 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
373 gang/worker/vector expectations dynamically.
374 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
376 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
377 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
378 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
380 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
382 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
384 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
385 (acc_gang): Recognise acc_device_radeon.
386 (acc_worker): Likewise.
387 (acc_vector): Likewise.
388 (main): Set expectations for amdgcn.
389 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
390 (main): Adjust gang/worker/vector expectations dynamically.
391 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
393 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
394 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
397 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
399 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
402 * openacc.f90 (openacc_kinds): Likewise.
404 * openacc.h (acc_device_t): Likewise.
405 * openacc_lib.h: Likewise.
406 * testsuite/lib/libgomp.exp
407 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
408 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
409 (cb_compute_construct_end): Likewise.
410 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
411 (cb_enqueue_launch_start): Likewise.
412 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
413 (cb_enter_data_end): Likewise.
414 (cb_exit_data_start): Likewise.
415 (cb_exit_data_end): Likewise.
416 (cb_compute_construct_end): Likewise.
417 (cb_enqueue_launch_start): Likewise.
418 (cb_enqueue_launch_end): Likewise.
419 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
422 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
424 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
425 to use this instead of 'enum gomp_device_property'.
426 (GOMP_OFFLOAD_get_property): Rename to...
427 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
428 * libgomp.h (struct gomp_device_descr): Move
429 'GOMP_OFFLOAD_openacc_get_property'...
430 (struct acc_dispatch_t): ... here. Adjust all users.
431 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
433 * target.c (gomp_map_vars_internal)
434 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
437 2020-01-10 Jakub Jelinek <jakub@redhat.com>
440 * libgomp.h (gomp_print_string): Change return type from void to int.
441 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
442 not all characters have been written.
444 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
446 * libgomp.texi: Fix typos, use https.
448 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
450 * testsuite/libgomp.fortran/optional-map.f90: Add test for
451 unallocated/disassociated actual arguments to nonallocatable/nonpointer
452 dummy arguments; those are/shall be regarded as absent arguments.
453 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
454 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
456 2020-01-01 Jakub Jelinek <jakub@redhat.com>
458 Update copyright years.
460 * libgomp.texi: Bump @copying's copyright year.
462 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
465 * oacc-init.c (goacc_runtime_deinitialize): New function.
467 2019-12-28 Jakub Jelinek <jakub@redhat.com>
470 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
471 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
473 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
474 Frederik Harwath <frederik@codesourcery.com>
475 Thomas Schwinge <tschwinge@codesourcery.com>
477 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
478 * libgomp-plugin.h (gomp_device_property_value): New union.
479 (gomp_device_property_value): New prototype.
480 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
482 (acc_device_property_t): New enum.
483 (acc_get_property, acc_get_property_string): New prototypes.
484 * oacc-init.c (acc_get_device_type): Also assert that result
485 is not `acc_device_current'.
486 (get_property_any, acc_get_property, acc_get_property_string):
488 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
489 `acc_property_memory', `acc_property_free_memory',
490 `acc_property_name', `acc_property_vendor' and
491 `acc_property_driver' constants. Add `acc_device_property' data
493 (openacc_internal): Add `acc_get_property' and
494 `acc_get_property_string' interfaces. Add `acc_get_property_h',
495 `acc_get_property_string_h', `acc_get_property_l' and
496 `acc_get_property_string_l'.
497 * oacc-host.c (host_get_property): New function.
498 (host_dispatch): Wire it.
499 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
500 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
501 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
502 * libgomp.texi (OpenACC Runtime Library Routines): Add
504 (acc_get_property): New node.
505 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
507 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
508 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
509 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
511 (GOMP_OFFLOAD_get_property): New function.
512 (struct ptx_device): Add new field "name".
513 (cuda_driver_version_s): Add new static variable ...
514 (nvptx_init): ... and init from here.
516 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
517 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
518 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
519 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
520 with test helper functions.
522 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
524 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
526 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
529 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
531 * target.c (gomp_map_vars_internal): Restore 'omp declare target
534 2019-12-19 Julian Brown <julian@codesourcery.com>
536 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
537 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
538 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
540 2019-12-19 Julian Brown <julian@codesourcery.com>
541 Cesar Philippidis <cesar@codesourcery.com>
543 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
544 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
545 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
546 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
547 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
548 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
549 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
550 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
551 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
552 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
553 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
554 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
555 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
557 2019-12-19 Julian Brown <julian@codesourcery.com>
559 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
560 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
561 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
562 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
563 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
564 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
565 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
566 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
567 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
568 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
569 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
570 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
572 2019-12-19 Julian Brown <julian@codesourcery.com>
574 * libgomp.h (struct target_var_desc): Add do_detach flag.
575 * oacc-init.c (acc_shutdown_1): Free aux block if present.
576 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
577 struct components. Tidy up and add some new checks.
578 (goacc_enter_data_internal): Update call to find_group_last.
579 (goacc_exit_data_internal): Support detach operations and
581 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
582 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
583 attach/detach in enter/exit data detection code.
584 * target.c (gomp_map_vars_existing): Initialise do_detach field of
586 (gomp_map_vars_internal): Support attach.
587 (gomp_unmap_vars_internal): Support detach.
589 2019-12-19 Julian Brown <julian@codesourcery.com>
590 Thomas Schwinge <thomas@codesourcery.com>
592 * libgomp.h (struct splay_tree_aux): Add attach_count field.
593 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
594 * libgomp.map (OACC_2.6): New section. Add acc_attach,
595 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
596 acc_detach_finalize_async.
597 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
598 acc_detach, acc_detach_async, acc_detach_finalize,
599 acc_detach_finalize_async): New functions.
600 * openacc.h (acc_attach, acc_attach_async, acc_detach,
601 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
603 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
604 (gomp_remove_var_internal): Free attachment counts if present.
605 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
606 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
608 2019-12-19 Julian Brown <julian@codesourcery.com>
609 Cesar Philippidis <cesar@codesourcery.com>
611 * libgomp.h (gomp_map_val): Add prototype.
612 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
613 open-coding device-address calculation.
614 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
617 2019-12-19 Julian Brown <julian@codesourcery.com>
619 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
620 field for virtual_refcount.
621 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
622 (gomp_free_memmap): Remove prototype.
623 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
624 instead of calling gomp_free_memmap.
625 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
627 (acc_unmap_data): Open code instead of forcing target_mem_desc's
628 to_free field to NULL then calling gomp_unmap_vars. Handle
629 REFCOUNT_INFINITY on target blocks.
630 (goacc_enter_data): Rename to...
631 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
632 handling for mapping groups. Use virtual_refcount instead of
633 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
634 map_map_vars_async call. Re-do lookup for target pointer return value.
635 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
636 renamed goacc_enter_datum function.
637 (goacc_exit_data): Rename to...
638 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
639 (acc_delete, acc_delete_async, acc_delete_finalize,
640 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
641 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
642 goacc_exit_datum function.
643 (gomp_acc_remove_pointer, find_pointer): Remove functions.
644 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
646 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
647 goacc_exit_data_internal helper functions.
648 * target.c (gomp_map_vars_internal): Handle
649 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
651 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
652 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
653 virtual_refcount field instead of dynamic_refcount.
654 (gomp_free_memmap): Remove function.
655 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
656 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
657 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
659 2019-12-19 Julian Brown <julian@codesourcery.com>
660 Thomas Schwinge <thomas@codesourcery.com>
662 * libgomp.h (struct splay_tree_aux): New.
663 (struct splay_tree_key_s): Replace link_key field with aux pointer.
664 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
666 (gomp_remove_var_internal): Free aux block if present.
667 (gomp_load_image_to_device): Zero-initialise aux field instead of
669 (omp_target_associate_pointer): Zero-initialise aux field.
671 2019-12-18 Jakub Jelinek <jakub@redhat.com>
674 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
676 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
679 2019-12-19 Julian Brown <julian@codesourcery.com>
680 Maciej W. Rozycki <macro@codesourcery.com>
681 Tobias Burnus <tobias@codesourcery.com>
682 Thomas Schwinge <thomas@codesourcery.com>
684 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
685 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
686 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
687 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
688 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
689 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
690 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
691 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
692 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
694 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
696 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
698 (goacc_insert_pointer): ... from here, "present" case.
699 (goacc_insert_pointer): Inline function into...
700 (GOACC_enter_exit_data): ... here, and simplify.
702 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
704 (goacc_insert_pointer): ... from here, "not present" case.
706 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
709 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
710 'goacc_enter_data', 'goacc_exit_data'.
712 * oacc-mem.c (delete_copyout): Refactor into...
713 (goacc_exit_data): ... this. Adjust all users.
715 * oacc-mem.c (present_create_copy): Refactor into...
716 (goacc_enter_data): ... this. Adjust all users.
718 * target.c (gomp_unmap_vars_internal): Add a safeguard to
721 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
722 like 'GOMP_MAP_FROM'.
727 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
729 (GOACC_enter_exit_data): Simplify accordingly.
730 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
732 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
733 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
735 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
737 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
738 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
740 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
742 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
744 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
748 * oacc-mem.c (acc_map_data, present_create_copy)
749 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
750 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
751 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
752 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
753 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
754 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
755 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
756 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
759 * target.c (gomp_unmap_tgt): Make it 'static'.
760 * libgomp.h (gomp_unmap_tgt): Remove.
762 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
765 * testsuite/libgomp.c/pr86416-1.c: New.
766 * testsuite/libgomp.c/pr86416-2.c: New.
768 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
770 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
771 all symbols as public except for the 'use …, only' imported symbol,
773 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
774 all symbols from module openacc_kinds as PUBLIC
775 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
777 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
779 2019-12-13 Julian Brown <julian@codesourcery.com>
783 * libgomp.h (gomp_remove_var_async): Add prototype.
784 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
786 * target.c (gomp_unref_tgt): Change return type to bool, indicating
787 whether target_mem_desc was unmapped.
788 (gomp_unref_tgt_void): New.
789 (gomp_remove_var): Reimplement in terms of...
790 (gomp_remove_var_internal): ...this new helper function.
791 (gomp_remove_var_async): New, implemented using above helper function.
792 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
795 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
797 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
798 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
799 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
801 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
803 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
804 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
806 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
808 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
809 as public except for the 'use …, only' imported symbol, which is
811 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
812 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
813 attributes for acc_copyout_finalize and acc_delete_finalize.
815 2019-12-11 Jakub Jelinek <jakub@redhat.com>
818 * testsuite/libgomp.fortran/atomic1.f90: New test.
820 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
823 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
824 reference counting for structured 'REFCOUNT_INFINITY'. Add some
826 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
827 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
828 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
829 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
830 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
832 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
833 * oacc-mem.c: ... here.
834 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
835 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
836 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
838 * libgomp_g.h: Update.
840 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
841 * oacc-async.c: ... here.
842 * oacc-int.h (goacc_wait): Declare.
843 * libgomp_g.h: Update
846 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
848 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
850 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
852 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
854 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
856 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
859 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
860 Julian Brown <julian@codesourcery.com>
862 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
863 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
865 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
867 * omp_lib.h.in: Fix spelling of function declaration
868 omp_get_cancell(l)ation.
869 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
871 * env.c: Fix comment typos.
872 * oacc-host.c: Likewise.
873 * ordered.c: Likewise.
876 * config/gcn/task.c: Likewise.
877 * config/gcn/team.c: Likewise.
878 * config/nvptx/task.c: Likewise.
879 * config/nvptx/team.c: Likewise.
880 * plugin/plugin-gcn.c: Likewise.
881 * testsuite/libgomp.fortran/jacobi.f: Likewise.
882 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
883 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
885 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
887 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
888 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
889 unnecessary 'dg-additional-options "-w"'.
891 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
892 Julian Brown <julian@codesourcery.com>
897 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
898 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
900 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
902 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
904 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
906 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
909 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
910 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
912 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
914 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
916 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
918 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
920 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
922 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
923 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
924 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
925 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
926 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
927 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
928 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
929 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
930 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
931 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
934 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
935 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
936 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
938 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
940 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
942 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
943 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
946 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
948 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
950 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
952 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
954 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
955 ... with their content moved into, and extended in this new file.
956 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
958 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
960 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
962 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
965 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
968 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
970 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
972 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
974 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
976 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
978 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
979 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
980 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
981 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
983 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
984 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
986 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
988 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
990 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
991 Kwok Cheung Yeung <kcy@codesourcery.com>
993 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
994 if input it a NULL pointer.
995 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
996 diagnostic of NULL pointer.
997 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
998 * testsuite/libgomp.fortran/optional-map.f90: New.
999 * testsuite/libgomp.fortran/use_device_addr-1.f90
1000 (test_dummy_opt_callee_1_absent): New.
1001 (test_dummy_opt_call_1): Call it.
1002 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1003 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1004 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1005 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1006 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1007 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1008 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1009 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1010 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1011 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1012 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1013 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1014 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1015 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1016 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1017 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1019 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1021 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1022 expect dg-output of 'Error termination.' for GCN.
1023 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1024 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1026 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1029 * testsuite/libgomp.fortran/teams1.f90: New test.
1030 * testsuite/libgomp.fortran/teams2.f90: New test.
1032 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
1034 * oacc-init.c (acc_known_device_type): Add function.
1035 (unknown_device_type_error): Add function.
1036 (name_of_acc_device_t): Change to call unknown_device_type_error
1038 (resolve_device): Use acc_known_device_type.
1039 (acc_init): Fail if acc_device_t argument is not valid.
1040 (acc_shutdown): Likewise.
1041 (acc_get_num_devices): Likewise.
1042 (acc_set_device_type): Likewise.
1043 (acc_get_device_num): Likewise.
1044 (acc_set_device_num): Likewise.
1045 (acc_on_device): Add comment that argument validity is not checked.
1047 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1049 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1051 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1052 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1053 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1054 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1055 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1057 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1060 * configure.tgt: Avoid IE tls on *-*-musl*.
1062 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
1064 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1065 adding a common-block test case.
1067 2019-11-29 Jakub Jelinek <jakub@redhat.com>
1070 * testsuite/libgomp.c++/udr-20.C: New test.
1071 * testsuite/libgomp.c++/udr-21.C: New test.
1073 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1075 * testsuite/lib/libgomp.exp
1076 (check_effective_target_offload_target_nvptx): New proc.
1077 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1079 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1080 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1081 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1083 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1086 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1087 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1088 * testsuite/libgomp.c/private-1.c: Likewise.
1089 * testsuite/libgomp.c/task-1.c: Likewise.
1090 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1092 2019-11-20 Julian Brown <julian@codesourcery.com>
1094 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1096 (queue_push_launch): Lock aq->mutex before calling
1097 wait_for_queue_nonfull.
1098 (queue_push_callback): Likewise.
1099 (queue_push_asyncwait): Likewise.
1100 (queue_push_placeholder): Likewise.
1102 2019-11-20 Julian Brown <julian@codesourcery.com>
1104 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1105 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1106 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1109 2019-11-20 Julian Brown <julian@codesourcery.com>
1113 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1114 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1115 in non-present/create case.
1116 (delete_copyout): Change error condition to fail only on copies outside
1117 of mapped block. Adjust error message accordingly.
1118 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1119 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1120 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1122 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1124 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1126 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
1128 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1129 libatomic in build-tree testing.
1131 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
1133 * testsuite/Makefile.in: Regenerate.
1135 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
1137 * testsuite/libgomp.c/target-print-1.c: New file.
1138 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1139 * testsuite/libgomp.oacc-c/print-1.c: New file.
1140 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1142 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1143 Kwok Cheung Yeung <kcy@codesourcery.com>
1144 Julian Brown <julian@codesourcery.com>
1145 Tom de Vries <tom@codesourcery.com>
1147 * plugin/Makefrag.am: Add amdgcn plugin support.
1148 * plugin/configfrag.ac: Likewise.
1149 * plugin/plugin-gcn.c: New file.
1150 * configure: Regenerate.
1151 * Makefile.in: Regenerate.
1152 * testsuite/Makefile.in: Regenerate.
1154 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1156 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1157 and use team_malloc variants.
1158 (gomp_gcn_exit_kernel): Use team_free.
1159 * libgomp.h (TEAM_ARENA_SIZE): Define.
1160 (TEAM_ARENA_START): Define.
1161 (TEAM_ARENA_FREE): Define.
1162 (TEAM_ARENA_END): Define.
1163 (team_malloc): New function.
1164 (team_malloc_cleared): New function.
1165 (team_free): New function.
1166 * team.c (gomp_new_team): Initialize and use team_malloc.
1167 (free_team): Use team_free.
1168 (gomp_free_thread): Use team_free.
1169 (gomp_pause_host): Use team_free.
1170 * work.c (gomp_init_work_share): Use team_malloc.
1171 (gomp_fini_work_share): Use team_free.
1173 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1174 Kwok Cheung Yeung <kcy@codesourcery.com>
1175 Julian Brown <julian@codesourcery.com>
1176 Tom de Vries <tom@codesourcery.com>
1178 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1179 * Makefile.in: Regenerate.
1180 * config.h.in (PLUGIN_GCN): Add new undef.
1181 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1182 * config/gcn/affinity-fmt.c: New file.
1183 * config/gcn/bar.c: New file.
1184 * config/gcn/bar.h: New file.
1185 * config/gcn/doacross.h: New file.
1186 * config/gcn/icv-device.c: New file.
1187 * config/gcn/oacc-target.c: New file.
1188 * config/gcn/simple-bar.h: New file.
1189 * config/gcn/target.c: New file.
1190 * config/gcn/task.c: New file.
1191 * config/gcn/team.c: New file.
1192 * config/gcn/time.c: New file.
1193 * configure.ac: Add amdgcn*-*-*.
1194 * configure: Regenerate.
1195 * configure.tgt: Add amdgcn*-*-*.
1196 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1197 * libgomp.h (gcn_thrs): Add amdgcn variant.
1198 (set_gcn_thrs): Likewise.
1199 (gomp_thread): Likewise.
1200 * oacc-int.h (goacc_thread): Likewise.
1201 * oacc-target.c: New file.
1202 * openacc.f90 (acc_device_gcn): New parameter.
1203 * openacc.h (acc_device_t): Add acc_device_gcn.
1204 * team.c (gomp_free_pool_helper): Add amdgcn support.
1206 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1207 Julian Brown <julian@codesourcery.com>
1209 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1211 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1213 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1214 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1217 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1219 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1220 * config/nvptx/libgomp-plugin.c: Move ...
1221 * config/accel/libgomp-plugin.c: ... to here.
1222 * config/nvptx/lock.c: Move ...
1223 * config/accel/lock.c: ... to here.
1224 * config/nvptx/mutex.c: Move ...
1225 * config/accel/mutex.c: ... to here.
1226 * config/nvptx/mutex.h: Move ...
1227 * config/accel/mutex.h: ... to here.
1228 * config/nvptx/oacc-async.c: Move ...
1229 * config/accel/oacc-async.c: ... to here.
1230 * config/nvptx/oacc-cuda.c: Move ...
1231 * config/accel/oacc-cuda.c: ... to here.
1232 * config/nvptx/oacc-host.c: Move ...
1233 * config/accel/oacc-host.c: ... to here.
1234 * config/nvptx/oacc-init.c: Move ...
1235 * config/accel/oacc-init.c: ... to here.
1236 * config/nvptx/oacc-mem.c: Move ...
1237 * config/accel/oacc-mem.c: ... to here.
1238 * config/nvptx/oacc-plugin.c: Move ...
1239 * config/accel/oacc-plugin.c: ... to here.
1240 * config/nvptx/omp-lock.h: Move ...
1241 * config/accel/omp-lock.h: ... to here.
1242 * config/nvptx/openacc.f90: Move ...
1243 * config/accel/openacc.f90: ... to here.
1244 * config/nvptx/pool.h: Move ...
1245 * config/accel/pool.h: ... to here.
1246 * config/nvptx/proc.c: Move ...
1247 * config/accel/proc.c: ... to here.
1248 * config/nvptx/ptrlock.c: Move ...
1249 * config/accel/ptrlock.c: ... to here.
1250 * config/nvptx/ptrlock.h: Move ...
1251 * config/accel/ptrlock.h: ... to here.
1252 * config/nvptx/sem.c: Move ...
1253 * config/accel/sem.c: ... to here.
1254 * config/nvptx/sem.h: Move ...
1255 * config/accel/sem.h: ... to here.
1256 * config/nvptx/thread-stacksize.h: Move ...
1257 * config/accel/thread-stacksize.h: ... to here.
1259 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1260 Tobias Burnus <tobias@codesourcery.com>
1261 Frederik Harwath <frederik@codesourcery.com>
1262 Thomas Schwinge <thomas@codesourcery.com>
1265 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1266 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1267 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1269 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1270 Kwok Cheung Yeung <kcy@codesourcery.com>
1272 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1273 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1275 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1277 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1279 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1281 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1282 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1284 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1286 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1287 Add expected warnings about missing reduction clauses.
1288 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1290 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1292 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1295 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1297 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1298 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1299 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1300 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1301 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1302 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1304 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1307 * testsuite/libgomp.fortran/allocatable2.f90: Use
1308 unique numbers with 'stop'.
1309 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1310 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1311 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1312 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1313 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1315 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1317 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1318 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1319 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1320 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1321 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1322 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1324 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1326 * testsuite/libgomp.fortran/target9.f90: New.
1328 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1330 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1331 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1332 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1333 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1334 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1335 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1336 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1337 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1338 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1339 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1340 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1341 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1342 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1343 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1344 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1345 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1346 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1347 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1348 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1349 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1350 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1351 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1352 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1353 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1354 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1355 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1356 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1357 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1358 * testsuite/libgomp.fortran/character1.f90: Ditto.
1359 * testsuite/libgomp.fortran/character2.f90: Ditto.
1360 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1361 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1362 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1363 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1364 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1365 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1366 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1367 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1368 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1369 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1370 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1371 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1372 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1373 * testsuite/libgomp.fortran/do1.f90: Ditto.
1374 * testsuite/libgomp.fortran/do2.f90: Ditto.
1375 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1376 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1377 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1378 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1379 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1380 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1381 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1382 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1383 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1384 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1385 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1386 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1387 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1388 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1389 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1390 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1391 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1392 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1393 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1394 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1395 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1396 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1397 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1398 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1399 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1400 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1401 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1402 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1403 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1404 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1405 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1406 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1407 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1408 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1409 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1410 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1411 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1412 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1413 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1414 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1415 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1416 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1417 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1418 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1419 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1420 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1421 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1422 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1423 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1424 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1425 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1426 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1427 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1428 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1429 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1430 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1431 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1432 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1433 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1434 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1435 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1436 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1437 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1438 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1439 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1440 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1441 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1442 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1443 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1444 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1445 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1446 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1447 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1448 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1449 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1450 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1451 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1452 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1453 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1454 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1455 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1456 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1457 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1458 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1459 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1460 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1461 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1462 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1463 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1464 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1465 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1466 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1467 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1468 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1469 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1470 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1471 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1472 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1473 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1474 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1475 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1476 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1477 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1478 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1479 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1480 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1481 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1482 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1483 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1484 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1485 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1486 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1487 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1488 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1489 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1490 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1491 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1492 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1493 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1494 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1495 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1496 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1497 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1498 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1499 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1500 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1501 * testsuite/libgomp.fortran/stack.f90: Ditto.
1502 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1503 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1504 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1505 * testsuite/libgomp.fortran/target1.f90: Ditto.
1506 * testsuite/libgomp.fortran/target2.f90: Ditto.
1507 * testsuite/libgomp.fortran/target3.f90: Ditto.
1508 * testsuite/libgomp.fortran/target4.f90: Ditto.
1509 * testsuite/libgomp.fortran/target5.f90: Ditto.
1510 * testsuite/libgomp.fortran/target6.f90: Ditto.
1511 * testsuite/libgomp.fortran/target7.f90: Ditto.
1512 * testsuite/libgomp.fortran/target8.f90: Ditto.
1513 * testsuite/libgomp.fortran/task1.f90: Ditto.
1514 * testsuite/libgomp.fortran/task2.f90: Ditto.
1515 * testsuite/libgomp.fortran/task3.f90: Ditto.
1516 * testsuite/libgomp.fortran/task4.f90: Ditto.
1517 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1518 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1519 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1520 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1521 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1522 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1523 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1524 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1525 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1526 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1527 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1528 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1529 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1530 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1531 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1532 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1533 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1534 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1535 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1536 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1537 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1538 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1539 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1540 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1541 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1542 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1543 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1544 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1545 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1546 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1547 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1548 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1549 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1550 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1552 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1554 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1555 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1556 Ditto; add 'dg-do run' for torture testing.
1557 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1558 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1559 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1560 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1561 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1562 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1563 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1564 * testsuite/libgomp.fortran/task2.f90: Ditto.
1565 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1566 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1567 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1568 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1569 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1570 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1572 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1574 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1575 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1576 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1577 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1578 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1579 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1580 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1581 Use 'stop' not abort().
1582 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1583 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1584 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1585 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1586 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1587 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1588 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1589 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1590 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1591 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1592 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1593 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1594 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1595 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1596 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1597 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1598 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1600 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1602 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1604 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1606 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1608 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1610 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1616 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1618 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1620 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1622 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1624 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1626 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1627 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1628 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1629 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1630 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1631 Likewise and also add 'dg-do run'.
1632 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1635 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1636 Tobias Burnus <tobias@codesourcery.com>
1638 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1639 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1640 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1642 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1648 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1650 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1651 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1653 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1656 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1659 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1662 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1664 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1666 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1669 * target.c (gomp_map_vars_internal): Readd the previous
1670 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1671 though do that just in the !not_found_cnt case.
1673 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1675 * gfortran.dg/gomp/target-simd.f90: New.
1677 2019-10-02 Julian Brown <julian@codesourcery.com>
1678 Cesar Philippidis <cesar@codesourcery.com>
1680 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1681 * target.c (FIELD_TGT_EMPTY): Define.
1682 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1683 as switch instead of list of ifs.
1684 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1686 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1688 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1689 include. Replace alloca () with __builtin_alloca ().
1690 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1692 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1694 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1695 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1696 * oacc-parallel.c: Don't include "libgomp_g.h".
1697 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1698 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1699 * aclocal.m4: Regenerated.
1700 * config.h.in: Regenerated.
1701 * configure: Regenerated.
1702 * Makefile.in: Regenerated.
1704 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1706 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1708 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1710 * configure: Regenerate.
1712 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1714 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1715 string is initialized.
1717 2019-09-06 Florian Weimer <fweimer@redhat.com>
1719 * configure: Regenerate.
1721 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1724 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1725 scanning to conform to the GNU Coding Standards.
1726 * configure: Regenerate.
1728 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1731 * testsuite/libgomp.c/scan-21.c: New test.
1732 * testsuite/libgomp.c/scan-22.c: New test.
1734 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1737 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1739 * testsuite/libgomp.c/scan-12.c: Likewise.
1740 * testsuite/libgomp.c/scan-13.c: Likewise.
1741 * testsuite/libgomp.c/scan-14.c: Likewise.
1742 * testsuite/libgomp.c/scan-15.c: Likewise.
1743 * testsuite/libgomp.c/scan-16.c: Likewise.
1744 * testsuite/libgomp.c/scan-17.c: Likewise.
1745 * testsuite/libgomp.c/scan-18.c: Likewise.
1746 * testsuite/libgomp.c/scan-19.c: Likewise.
1747 * testsuite/libgomp.c/scan-20.c: Likewise.
1748 * testsuite/libgomp.c++/scan-9.C: Likewise.
1749 * testsuite/libgomp.c++/scan-10.C: Likewise.
1750 * testsuite/libgomp.c++/scan-11.C: Likewise.
1751 * testsuite/libgomp.c++/scan-12.C: Likewise.
1752 * testsuite/libgomp.c++/scan-14.C: Likewise.
1753 * testsuite/libgomp.c++/scan-15.C: Likewise.
1754 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1755 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1756 * testsuite/libgomp.c++/scan-16.C: Likewise.
1758 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1761 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1762 -std=legacy so invalid code in the test case is accepted.
1764 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1767 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1770 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1772 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1773 perform the lookup in the first loop only if !not_found_cnt, otherwise
1774 perform lookups for it in the second loop guarded with
1775 if (not_found_cnt || has_firstprivate).
1776 * testsuite/libgomp.c/target-37.c: New test.
1777 * testsuite/libgomp.c++/target-22.C: New test.
1779 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1781 * testsuite/libgomp.c/target-18.c (struct S): New type.
1782 (foo): Use use_device_addr clause instead of use_device_ptr clause
1783 where required by OpenMP 5.0, add further tests for both use_device_ptr
1784 and use_device_addr clauses.
1785 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1786 (foo): Use use_device_addr clause instead of use_device_ptr clause
1787 where required by OpenMP 5.0, add further tests for both use_device_ptr
1788 and use_device_addr clauses. Add t and u arguments.
1789 (main): Adjust caller.
1791 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1793 * testsuite/libgomp.c++/loop-13.C: New test.
1794 * testsuite/libgomp.c++/loop-14.C: New test.
1795 * testsuite/libgomp.c++/loop-15.C: New test.
1797 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1800 * testsuite/libgomp.c++/for-27.C: New test.
1802 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1804 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1805 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1807 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1809 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1811 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1813 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1814 * testsuite/libgomp.c++/scan-16.C: Likewise.
1816 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1818 * testsuite/libgomp.c/scan-19.c: New test.
1819 * testsuite/libgomp.c/scan-20.c: New test.
1821 * testsuite/libgomp.c/scan-11.c: New test.
1822 * testsuite/libgomp.c/scan-12.c: New test.
1823 * testsuite/libgomp.c/scan-13.c: New test.
1824 * testsuite/libgomp.c/scan-14.c: New test.
1825 * testsuite/libgomp.c/scan-15.c: New test.
1826 * testsuite/libgomp.c/scan-16.c: New test.
1827 * testsuite/libgomp.c/scan-17.c: New test.
1828 * testsuite/libgomp.c/scan-18.c: New test.
1829 * testsuite/libgomp.c++/scan-9.C: New test.
1830 * testsuite/libgomp.c++/scan-10.C: New test.
1831 * testsuite/libgomp.c++/scan-11.C: New test.
1832 * testsuite/libgomp.c++/scan-12.C: New test.
1833 * testsuite/libgomp.c++/scan-13.C: New test.
1834 * testsuite/libgomp.c++/scan-14.C: New test.
1835 * testsuite/libgomp.c++/scan-15.C: New test.
1836 * testsuite/libgomp.c++/scan-16.C: New test.
1838 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1840 * testsuite/libgomp.c/scan-9.c: New test.
1841 * testsuite/libgomp.c/scan-10.c: New test.
1843 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1845 * testsuite/libgomp.c++/scan-1.C: New test.
1846 * testsuite/libgomp.c++/scan-2.C: New test.
1847 * testsuite/libgomp.c++/scan-3.C: New test.
1848 * testsuite/libgomp.c++/scan-4.C: New test.
1849 * testsuite/libgomp.c++/scan-5.C: New test.
1850 * testsuite/libgomp.c++/scan-6.C: New test.
1851 * testsuite/libgomp.c++/scan-7.C: New test.
1852 * testsuite/libgomp.c++/scan-8.C: New test.
1853 * testsuite/libgomp.c/scan-1.c: New test.
1854 * testsuite/libgomp.c/scan-2.c: New test.
1855 * testsuite/libgomp.c/scan-3.c: New test.
1856 * testsuite/libgomp.c/scan-4.c: New test.
1857 * testsuite/libgomp.c/scan-5.c: New test.
1858 * testsuite/libgomp.c/scan-6.c: New test.
1859 * testsuite/libgomp.c/scan-7.c: New test.
1860 * testsuite/libgomp.c/scan-8.c: New test.
1862 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1864 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1865 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1868 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1871 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1873 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1876 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1879 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1881 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1882 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1883 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1884 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1887 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1890 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1892 2019-06-16 Tom de Vries <tdevries@suse.de>
1894 PR tree-optimization/89376
1895 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1897 2019-06-15 Tom de Vries <tdevries@suse.de>
1899 PR tree-optimization/89713
1900 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1901 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1903 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1906 * testsuite/libgomp.c/pr90779.c: New test.
1907 * testsuite/libgomp.fortran/pr90779.f90: New test.
1909 2019-06-15 Tom de Vries <tdevries@suse.de>
1911 PR tree-optimization/90009
1912 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1914 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1916 PR tree-optimization/89713
1917 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1919 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1922 * testsuite/libgomp.c/pr90811.c: New test.
1924 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1926 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1927 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1929 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1931 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1932 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1933 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1934 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1936 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1938 * configure.ac: Call AX_COUNT_CPUS.
1939 Substitute CPU_COUNT.
1940 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1942 * aclocal.m4: Regenerate.
1943 * configure: Regenerate.
1944 * Makefile.in, testsuite/Makefile.in: Regenerate.
1946 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1948 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1950 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1951 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1952 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1954 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1956 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1958 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1961 * work.c (gomp_init_work_share): Instead of aligning final ordered
1962 value to multiples of long long alignment, align to that the
1963 first part (ordered team ids) and if inline_ordered_team_ids
1964 is not on a long long alignment boundary within the structure,
1965 use __alignof__ (long long) - 1 pad size always.
1966 * loop.c (GOMP_loop_start): Fix *mem computation if
1967 inline_ordered_team_ids is not aligned on long long alignment boundary
1968 within the structure.
1969 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1970 * sections.c (GOMP_sections2_start): Likewise.
1972 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1974 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1975 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1978 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1979 HAVE_INTTYPES_H is defined.
1980 (print_uint64_t): New typedef.
1981 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1982 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1983 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1984 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1985 before casting to void *.
1986 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1987 * oacc-mem.c: Don't include config.h nor stdint.h.
1988 * target.c: Don't include config.h.
1989 * oacc-cuda.c: Likewise.
1990 * oacc-host.c: Don't include stdint.h.
1992 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1995 * alloc.c (_GNU_SOURCE): Define.
1997 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1999 * acc_prof.h: New file.
2000 * oacc-profiling.c: Likewise.
2001 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2002 Add these, respectively.
2003 * Makefile.in: Regenerate.
2004 * env.c (initialize_env): Call goacc_profiling_initialize.
2005 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2006 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2007 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2008 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2009 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2010 acc_prof_register, acc_prof_unregister, and acc_register_library.
2011 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2012 GOMP_PLUGIN_goacc_thread.
2013 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2014 prof_callbacks_enabled members.
2015 (goacc_prof_enabled, goacc_profiling_initialize)
2016 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2017 (goacc_profiling_dispatch): Declare.
2018 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2019 (GOACC_PROFILING_SETUP_P): Define.
2020 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2021 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2022 OpenACC Profiling Interface.
2023 * oacc-cuda.c (acc_get_current_cuda_device)
2024 (acc_get_current_cuda_context, acc_get_cuda_stream)
2025 (acc_set_cuda_stream): Likewise.
2026 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2027 (acc_init, acc_set_device_type, acc_get_device_type)
2028 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2029 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2030 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2031 (acc_unmap_data, present_create_copy, delete_copyout)
2032 (update_dev_host): Likewise.
2033 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2034 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2036 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2037 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2039 * libgomp.texi: Update.
2040 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2042 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2043 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2045 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2047 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2049 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2052 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2054 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2055 (struct goacc_asyncqueue_list): Likewise.
2056 (goacc_aq): Likewise.
2057 (goacc_aq_list): Likewise.
2058 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2059 (GOMP_OFFLOAD_openacc_async_test): Remove.
2060 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2061 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2062 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2063 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2064 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2065 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2066 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2067 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2068 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2069 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2070 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2071 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2072 (GOMP_OFFLOAD_openacc_async_test): Declare.
2073 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2074 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2075 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2076 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2077 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2079 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2080 (gomp_acc_insert_pointer): Adjust declaration.
2081 (gomp_copy_host2dev): New declaration.
2082 (gomp_copy_dev2host): Likewise.
2083 (gomp_map_vars_async): Likewise.
2084 (gomp_unmap_tgt): Likewise.
2085 (gomp_unmap_vars_async): Likewise.
2086 (gomp_fini_device): Likewise.
2088 * oacc-async.c (get_goacc_thread): New function.
2089 (get_goacc_thread_device): New function.
2090 (lookup_goacc_asyncqueue): New function.
2091 (get_goacc_asyncqueue): New function.
2092 (acc_async_test): Adjust code to use new async design.
2093 (acc_async_test_all): Likewise.
2094 (acc_wait): Likewise.
2095 (acc_wait_async): Likewise.
2096 (acc_wait_all): Likewise.
2097 (acc_wait_all_async): Likewise.
2098 (goacc_async_free): New function.
2099 (goacc_init_asyncqueues): Likewise.
2100 (goacc_fini_asyncqueues): Likewise.
2101 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2103 (acc_set_cuda_stream): Likewise.
2104 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2105 (host_openacc_register_async_cleanup): Remove.
2106 (host_openacc_async_exec): New function.
2107 (host_openacc_async_test): Adjust parameters.
2108 (host_openacc_async_test_all): Remove.
2109 (host_openacc_async_wait): Remove.
2110 (host_openacc_async_wait_async): Remove.
2111 (host_openacc_async_wait_all): Remove.
2112 (host_openacc_async_wait_all_async): Remove.
2113 (host_openacc_async_set_async): Remove.
2114 (host_openacc_async_synchronize): New function.
2115 (host_openacc_async_serialize): New function.
2116 (host_openacc_async_host2dev): New function.
2117 (host_openacc_async_dev2host): New function.
2118 (host_openacc_async_queue_callback): New function.
2119 (host_openacc_async_construct): New function.
2120 (host_openacc_async_destruct): New function.
2121 (struct gomp_device_descr host_dispatch): Remove initialization of old
2122 interface, add initialization of new async sub-struct.
2123 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2124 (goacc_attach_host_thread_to_device): Remove old async code usage.
2125 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2126 (goacc_fini_asyncqueues): Likewise.
2127 (goacc_async_copyout_unmap_vars): Likewise.
2128 (goacc_async_free): Likewise.
2129 (get_goacc_asyncqueue): Likewise.
2130 (lookup_goacc_asyncqueue): Likewise.
2131 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2133 (present_create_copy): Adjust code to use new async design.
2134 (delete_copyout): Likewise.
2135 (update_dev_host): Likewise.
2136 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2138 (gomp_acc_remove_pointer): Adjust code to use new async design.
2139 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2141 (GOACC_enter_exit_data): Likewise.
2142 (goacc_wait): Likewise.
2143 (GOACC_update): Likewise.
2144 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2145 when called, warn as obsolete in comment.
2146 * target.c (goacc_device_copy_async): New function.
2147 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2148 add goacc_device_copy_async case.
2149 (gomp_copy_dev2host): Likewise.
2150 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2151 (gomp_map_pointer): Likewise.
2152 (gomp_map_fields_existing): Likewise.
2153 (gomp_map_vars_internal): New always_inline function, renamed from
2155 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2156 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2157 passing goacc_asyncqueue argument.
2158 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2159 (gomp_unref_tgt): New function.
2160 (gomp_unmap_vars_internal): New always_inline function, renamed from
2162 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2163 (gomp_unmap_vars_async): Implement by calling
2164 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2165 (gomp_fini_device): New function.
2166 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2167 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2168 new async interface.
2169 (gomp_target_fini): Adjust code to call gomp_fini_device.
2171 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2172 (struct ptx_stream): Remove.
2173 (struct nvptx_thread): Remove current_stream field.
2174 (cuda_map_create): Remove.
2175 (cuda_map_destroy): Remove.
2180 (struct goacc_asyncqueue): Define.
2181 (struct nvptx_callback): Define.
2182 (struct ptx_free_block): Define.
2183 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2184 stream_lock, and next fields.
2185 (enum ptx_event_type): Remove.
2186 (struct ptx_event): Remove.
2187 (ptx_event_lock): Remove.
2188 (ptx_events): Remove.
2189 (init_streams_for_device): Remove.
2190 (fini_streams_for_device): Remove.
2191 (select_stream_for_async): Remove.
2192 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2193 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2195 (nvptx_open_device): Add free_blocks initialization, remove
2196 init_streams_for_device call.
2197 (nvptx_close_device): Remove fini_streams_for_device call, add
2198 free_blocks destruct code.
2200 (event_add): Remove.
2201 (nvptx_exec): Adjust parameters and code.
2202 (nvptx_free): Likewise.
2203 (nvptx_host2dev): Remove.
2204 (nvptx_dev2host): Remove.
2205 (nvptx_set_async): Remove.
2206 (nvptx_async_test): Remove.
2207 (nvptx_async_test_all): Remove.
2208 (nvptx_wait): Remove.
2209 (nvptx_wait_async): Remove.
2210 (nvptx_wait_all): Remove.
2211 (nvptx_wait_all_async): Remove.
2212 (nvptx_get_cuda_stream): Remove.
2213 (nvptx_set_cuda_stream): Remove.
2214 (GOMP_OFFLOAD_alloc): Adjust code.
2215 (GOMP_OFFLOAD_free): Likewise.
2216 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2217 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2218 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2219 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2220 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2221 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2222 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2223 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2224 (cuda_free_argmem): New function.
2225 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2226 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2227 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2228 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2229 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2230 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2231 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2232 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2233 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2234 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2235 (cuda_callback_wrapper): New function.
2236 (cuda_memcpy_sanity_check): New function.
2237 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2238 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2239 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2240 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2242 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2245 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2247 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2249 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2251 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2253 * team.c (gomp_team_start): Initialize pool->threads[0].
2255 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2257 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2258 "-foffload=$offload_target".
2259 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2260 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2261 * testsuite/lib/libgomp.exp
2262 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2263 as (conceptually) merged into
2264 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2267 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2268 * testsuite/libgomp-test-support.exp.in: Adjust.
2269 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2270 openacc_device_types_s.
2271 (offload_target_to_openacc_device_type): New proc.
2272 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2273 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2274 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2275 * Makefile.in: Regenerate.
2276 * configure: Likewise.
2277 * testsuite/Makefile.in: Likewise.
2279 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2280 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2281 instead of OFFLOAD_TARGETS.
2282 * target.c (gomp_target_init): Adjust.
2283 * testsuite/libgomp-test-support.exp.in: Likewise.
2284 * testsuite/lib/libgomp.exp: Likewise. Populate
2285 openacc_device_types_s instead of offload_targets_s_openacc.
2286 (check_effective_target_openacc_nvidia_accel_selected)
2287 (check_effective_target_openacc_host_selected): Adjust.
2288 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2289 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2290 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2291 * Makefile.in: Regenerate.
2292 * config.h.in: Likewise.
2293 * configure: Likewise.
2294 * testsuite/Makefile.in: Likewise.
2296 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2297 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2298 "offloading: supported, but hardware not accessible".
2299 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2300 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2302 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2305 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2307 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2308 and related adjustment.
2310 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2313 * testsuite/libgomp.c++/pr88988.C: New test.
2315 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2318 * testsuite/libgomp.c/pr89002.c: New test.
2320 2019-01-28 Richard Biener <rguenther@suse.de>
2323 PR tree-optimization/86865
2324 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2326 2019-01-24 Tom de Vries <tdevries@suse.de>
2328 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2329 once instantiated_devices drops to 0.
2331 2019-01-23 Tom de Vries <tdevries@suse.de>
2334 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2336 (nvptx_exec): Don't call map_push if mapnum == 0.
2337 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2339 2019-01-23 Tom de Vries <tdevries@suse.de>
2343 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2344 (map_fini): Remove "assert (!s->map->active)".
2345 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2347 2019-01-23 Tom de Vries <tdevries@suse.de>
2350 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2351 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2353 2019-01-15 Tom de Vries <tdevries@suse.de>
2356 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2359 2019-01-12 Tom de Vries <tdevries@suse.de>
2361 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2362 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2363 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2364 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2366 2019-01-12 Tom de Vries <tdevries@suse.de>
2368 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2370 2019-01-12 Tom de Vries <tdevries@suse.de>
2372 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2373 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2374 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2376 2019-01-12 Tom de Vries <tdevries@suse.de>
2379 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2380 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2382 2019-01-12 Tom de Vries <tdevries@suse.de>
2385 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2386 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2388 2019-01-12 Tom de Vries <tdevries@suse.de>
2390 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2391 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2392 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2394 2019-01-12 Tom de Vries <tdevries@suse.de>
2396 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2397 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2398 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2400 2019-01-12 Tom de Vries <tdevries@suse.de>
2402 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2403 resources diagnostic.
2405 2019-01-12 Tom de Vries <tdevries@suse.de>
2407 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2408 vector length to be 128.
2409 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2410 length 2097152 to be reduced to 1024 instead of 32.
2412 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2413 James Norris <jnorris@codesourcery.com>
2415 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2416 Library Routines", and "Environment Variables".
2418 2019-01-11 Tom de Vries <tdevries@suse.de>
2420 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2423 2019-01-11 Tom de Vries <tdevries@suse.de>
2425 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2427 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2428 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2429 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2430 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2432 2019-01-11 Tom de Vries <tdevries@suse.de>
2434 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2437 2019-01-10 Nathan Sidwell <nathan@acm.org>
2438 Julian Brown <julian@codesourcery.com>
2441 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2442 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2444 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2446 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2449 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2451 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2452 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2455 2019-01-09 Tom de Vries <tdevries@suse.de>
2458 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2459 #define instead of "const int".
2460 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2461 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2462 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2463 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2465 2019-01-09 Tom de Vries <tdevries@suse.de>
2467 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2470 2019-01-07 Tom de Vries <tdevries@suse.de>
2472 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2473 GOMP_OPENACC_DIM argument.
2475 2019-01-03 Tom de Vries <tdevries@suse.de>
2477 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2478 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2480 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2482 Update copyright years.
2484 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2486 * libgomp.texi: Bump @copying's copyright year.
2488 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2490 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2491 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2492 (GOACC_declare): Redefine the "device" argument to "flags".
2494 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2495 Cesar Philippidis <cesar@codesourcery.com>
2497 * target.c (struct gomp_coalesce_chunk): New structure.
2498 (struct gomp_coalesce_buf): Update the chunks member to use that
2499 type. Adjust all users.
2501 2018-12-19 Tom de Vries <tdevries@suse.de>
2503 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2504 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2505 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2507 2018-12-19 Tom de Vries <tdevries@suse.de>
2509 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2510 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2511 gcc/testsuite/gcc.dg/goacc.
2512 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2514 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2515 Chung-Lin Tang <cltang@codesourcery.com>
2517 * oacc-mem.c (acc_present_or_create): Remove definition and change
2518 to alias of acc_create.
2519 (acc_present_or_copyin): Remove definition and change to alias of
2521 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2522 of acc_present_or_create.
2523 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2524 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2525 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2526 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2527 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2528 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2529 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2530 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2531 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2532 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2533 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2534 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2535 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2536 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2537 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2538 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2540 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2543 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2544 "identical parameters".
2545 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2546 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2549 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2550 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2553 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2554 (nvptx_wait_async): Unseen async-argument is a no-op.
2555 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2556 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2557 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2558 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2559 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2560 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2561 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2562 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2563 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2565 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2566 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2568 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2570 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2571 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2572 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2574 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2577 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2578 (acc_set_cuda_stream): Clarify.
2579 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2581 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2583 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2584 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2585 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2586 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2588 2018-12-14 Tom de Vries <tdevries@suse.de>
2590 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2591 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2592 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2593 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2594 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2596 2018-12-13 Tom de Vries <tdevries@suse.de>
2598 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2599 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2600 * fortran.c (omp_display_affinity_): ... here.
2601 * libgomp.h (gomp_print_string): Declare.
2602 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2603 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2606 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2609 * testsuite/libgomp.c++/for-24.C (results): Include it in
2610 omp declare target region.
2611 (main): Use map (always, tofrom: results) instead of
2612 map (tofrom: results).
2614 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2617 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2618 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2620 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2622 2018-12-12 Andreas Schwab <schwab@suse.de>
2624 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2627 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2630 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2632 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2633 Jakub Jelinek <jakub@redhat.com>
2635 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2636 devicep->host2dev_func.
2638 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2641 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2642 tls_runtime effective target.
2643 (t): New threadprivate variable.
2644 (main): Set t in threads which execute iterations of the worksharing
2645 loop. Propagate that to the task after the loop and don't abort
2646 if the current taskgroup hasn't been cancelled.
2648 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2650 * testsuite/libgomp.c/task-reduction-3.c: New test.
2652 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2654 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2657 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2658 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2660 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2662 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2664 2018-10-19 Richard Biener <rguenther@suse.de>
2666 PR tree-optimization/88182
2667 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2669 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2671 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2672 (RUNTEST): Don't define.
2673 (RUNTESTDEFAULTFLAGS): Add.
2674 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2675 (distclean-am): Depend on distclean-DEJAGNU.
2676 (check-am): If -j% option is present in MFLAGS and if
2677 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2678 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2679 * testsuite/Makefile.in: Regenerated.
2681 2018-11-26 Richard Biener <rguenther@suse.de>
2683 PR tree-optimization/88182
2684 * testsuite/libgomp.c++/pr88182.C: New testcase.
2686 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2689 * config/mingw32/affinity-fmt.c: New file.
2691 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2693 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2694 (gomp_display_affinity): Use __builtin_choose_expr to handle
2695 properly handle argument having integral, or pointer or some other
2696 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2697 with uint64_t type instead of %llx and unsigned long long.
2699 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2700 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2702 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2704 * affinity.c: Include <string.h>, <stdio.h>.
2705 (gomp_display_affinity_place): Remove cpusetp.
2706 * teams.c: Include <limits.h>.
2708 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2710 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2711 in_reduction clause for s[0].
2713 * affinity.c (gomp_display_affinity_place): New function.
2714 * affinity-fmt.c: New file.
2715 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2716 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2717 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2718 Move these functions to ...
2719 * config/nvptx/teams.c: ... here. New file.
2720 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2722 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2724 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2725 and _aligned_malloc.
2726 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2727 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2728 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2729 gomp_affinity_format_len): New variables.
2730 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2731 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2732 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2733 modifiers. Display (non-default) chunk sizes. Print
2734 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2735 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2736 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2737 * fortran.c: Include stdio.h and string.h.
2738 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2739 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2740 (omp_set_affinity_format_, omp_get_affinity_format_,
2741 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2742 omp_pause_resource_all_): New functions.
2743 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2745 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2747 * teams.c: ... here. New file.
2748 * libgomp_g.h: Include gstdint.h.
2749 (GOMP_loop_nonmonotonic_runtime_start,
2750 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2751 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2752 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2753 GOMP_parallel_loop_nonmonotonic_runtime,
2754 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2755 GOMP_loop_ull_nonmonotonic_runtime_start,
2756 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2757 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2758 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2759 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2760 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2761 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2762 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2763 GOMP_teams_reg): Declare.
2764 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2765 gomp_aligned_alloc uses fallback implementation.
2766 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2767 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2768 (struct gomp_doacross_work_share): Add extra field.
2769 (struct gomp_work_share): Add task_reductions field.
2770 (struct gomp_taskgroup): Add workshare and reductions fields.
2771 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2772 (gomp_thread_handle): New typedef.
2773 (gomp_display_affinity_place, gomp_set_affinity_format,
2774 gomp_display_string, gomp_display_affinity,
2775 gomp_display_affinity_thread): Declare.
2776 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2777 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2778 gomp_workshare_task_reduction_register): Declare.
2779 (gomp_team_start): Add taskgroup argument.
2780 (gomp_pause_host): Declare.
2781 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2783 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2784 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2785 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2786 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2787 GOMP_loop_ull_doacross_start,
2788 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2789 GOMP_loop_maybe_nonmonotonic_runtime_next,
2790 GOMP_loop_maybe_nonmonotonic_runtime_start,
2791 GOMP_loop_nonmonotonic_runtime_next,
2792 GOMP_loop_nonmonotonic_runtime_start,
2793 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2794 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2795 GOMP_loop_ull_nonmonotonic_runtime_next,
2796 GOMP_loop_ull_nonmonotonic_runtime_start,
2797 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2798 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2799 GOMP_taskgroup_reduction_register,
2800 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2801 GOMP_teams_reg and GOMP_taskwait_depend.
2802 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2803 omp_{capture,display}_affinity{,_}, and
2804 omp_[gs]et_affinity_format{,_}.
2805 * loop.c: Include string.h.
2806 (GOMP_loop_runtime_next): Add ialias.
2807 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2808 (gomp_loop_static_start, gomp_loop_dynamic_start,
2809 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2810 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2811 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2812 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2813 or gomp_doacross_init callers.
2814 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2815 GOMP_loop_doacross_start): New functions.
2816 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2817 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2818 Mask off GFS_MONOTONIC bit.
2819 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2820 GOMP_loop_maybe_nonmonotonic_runtime_start,
2821 GOMP_loop_nonmonotonic_runtime_next,
2822 GOMP_loop_nonmonotonic_runtime_start,
2823 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2824 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2826 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2828 * loop_ull.c: Include string.h.
2829 (GOMP_loop_ull_runtime_next): Add ialias.
2830 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2831 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2832 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2833 gomp_loop_ull_ordered_dynamic_start,
2834 gomp_loop_ull_ordered_guided_start,
2835 gomp_loop_ull_doacross_static_start,
2836 gomp_loop_ull_doacross_dynamic_start,
2837 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2838 and gomp_doacross_ull_init callers.
2839 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2840 GOMP_loop_ull_doacross_start): New functions.
2841 (GOMP_loop_ull_runtime_start,
2842 GOMP_loop_ull_ordered_runtime_start,
2843 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2844 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2845 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2846 GOMP_loop_ull_nonmonotonic_runtime_next,
2847 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2848 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2849 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2850 (omp_pause_resource_t, omp_depend_t): New typedefs.
2851 (enum omp_lock_hint_t): Renamed to ...
2852 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2853 enumerators using numbers and omp_lock_hint_* as their aliases.
2854 (omp_lock_hint_t): New typedef. Rename to ...
2855 (omp_sync_hint_t): ... this.
2856 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2857 omp_sync_hint_t instead of omp_lock_hint_t.
2858 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2859 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2861 (omp_target_is_present, omp_target_disassociate_ptr):
2862 Change first argument from void * to const void *.
2863 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2864 from void * to const void *.
2865 (omp_target_associate_ptr): Change first and second arguments from
2866 void * to const void *.
2867 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2868 omp_pause_hard): New parameters.
2869 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2870 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2872 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2873 omp_pause_hard): New parameters.
2874 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2875 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2877 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2878 EXTRA argument. If not needed to prepare array, if extra is 0,
2879 clear ws->doacross, otherwise allocate just doacross structure and
2880 extra payload. If array is needed, allocate also extra payload.
2881 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2882 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2884 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2886 (GOMP_parallel): Likewise. Formatting fix.
2887 (GOMP_parallel_reductions): New function.
2888 (GOMP_cancellation_point): If taskgroup has workshare
2889 flag set, check cancelled of prev taskgroup if any.
2890 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2891 on prev taskgroup if any.
2892 * sections.c: Include string.h.
2893 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2894 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2895 (GOMP_sections2_start): New function.
2896 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2897 Pass NULL as taskgroup to gomp_team_start.
2898 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2899 gomp_work_share_start callers.
2900 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2901 If taskgroup has workshare flag set, check cancelled on prev
2902 taskgroup if any. Guard all cancellation tests with
2903 gomp_cancel_var test.
2904 (omp_target_is_present, omp_target_disassociate_ptr):
2905 Change ptr argument from void * to const void *.
2906 (omp_target_memcpy): Change src argument from void * to const void *.
2907 (omp_target_memcpy_rect): Likewise.
2908 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2909 instead of char * where needed.
2910 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2911 from void * to const void *.
2912 (omp_pause_resource, omp_pause_resource_all): New functions.
2913 * task.c (gomp_task_handle_depend): Handle new depend array format
2914 in addition to the old. Handle mutexinoutset kinds the same as
2915 inout for now, handle unspecified kinds.
2916 (gomp_create_target_task): If taskgroup has workshare flag set, check
2917 cancelled on prev taskgroup if any. Guard all cancellation tests with
2918 gomp_cancel_var test. Handle new depend array format count in
2919 addition to the old.
2920 (GOMP_task): Likewise. Adjust function comment.
2921 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2922 cancelled on prev taskgroup if any. Guard all cancellation tests with
2923 gomp_cancel_var test.
2924 (GOMP_taskwait_depend): New function.
2925 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2926 format in addition to the old. Handle mutexinoutset kinds the same as
2927 inout for now, handle unspecified kinds. Fix a function comment typo.
2928 (gomp_taskgroup_init): New function.
2929 (GOMP_taskgroup_start): Use it.
2930 (gomp_reduction_register, gomp_create_artificial_team,
2931 GOMP_taskgroup_reduction_register,
2932 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2933 gomp_parallel_reduction_register,
2934 gomp_workshare_task_reduction_register,
2935 gomp_workshare_taskgroup_start,
2936 GOMP_workshare_task_reduction_unregister): New functions.
2937 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2938 check cancelled on prev taskgroup if any. Guard all cancellation
2939 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2940 by calling GOMP_taskgroup_reduction_register.
2941 * team.c (gomp_thread_attr): Remove comment.
2942 (struct gomp_thread_start_data): Add handle field.
2943 (gomp_thread_start): Call pthread_detach.
2944 (gomp_new_team): Adjust gomp_init_work_share caller.
2945 (gomp_free_pool_helper): Call pthread_detach.
2946 (gomp_team_start): Add taskgroup argument, initialize implicit
2947 tasks' taskgroup field to that. Don't call
2948 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2949 (gomp_team_end): Determine nesting by thr->ts.level != 0
2950 rather than thr->ts.team != NULL.
2951 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2952 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2953 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2954 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2955 if more than 1 allocate also extra payload at the end of array. Never
2956 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2957 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2958 return true instead of ws.
2959 * Makefile.in: Regenerated.
2960 * configure: Regenerated.
2961 * config.h.in: Regenerated.
2962 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2964 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2965 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2966 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2967 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2968 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2969 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2970 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2971 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2972 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2973 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2974 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2975 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2976 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2977 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2978 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2979 define a different N(test), don't define N(f0) to N(f14), but instead
2980 define N(f20) to N(f34) using != comparisons.
2981 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2982 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2983 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2984 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2985 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2986 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2987 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2988 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2989 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2990 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2991 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2992 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2993 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2994 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2995 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2996 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2997 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2998 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2999 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3000 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3001 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3002 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3003 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3004 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3005 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3006 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3007 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3008 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3009 * testsuite/libgomp.c++/depend-1.C: New test.
3010 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3011 * testsuite/libgomp.c++/depobj-1.C: New test.
3012 * testsuite/libgomp.c++/for-16.C: New test.
3013 * testsuite/libgomp.c++/for-21.C: New test.
3014 * testsuite/libgomp.c++/for-22.C: New test.
3015 * testsuite/libgomp.c++/for-23.C: New test.
3016 * testsuite/libgomp.c++/for-24.C: New test.
3017 * testsuite/libgomp.c++/for-25.C: New test.
3018 * testsuite/libgomp.c++/for-26.C: New test.
3019 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3020 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3021 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3022 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3023 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3024 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3025 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3026 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3027 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3028 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3029 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3030 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3031 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3032 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3033 * testsuite/libgomp.c/task-reduction-1.c: New test.
3034 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3035 * testsuite/libgomp.c/task-reduction-2.c: New test.
3036 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3037 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3038 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3039 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3040 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3041 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3042 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3043 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3044 * testsuite/libgomp.c/teams-1.c: New test.
3045 * testsuite/libgomp.c/teams-2.c: New test.
3046 * testsuite/libgomp.c/thread-limit-4.c: New test.
3047 * testsuite/libgomp.c/thread-limit-5.c: New test.
3048 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3050 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3052 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3053 acc_memcpy_to/from_device functions, now with async parameter.
3054 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3055 (acc_memcpy_from_device): Likewise.
3056 (acc_memcpy_to_device_async): New API function.
3057 (acc_memcpy_from_device_async): Likewise.
3058 (present_create_copy): Add async parameter and async setting/unsetting.
3059 (acc_create): Adjust present_create_copy call.
3060 (acc_copyin): Likewise.
3061 (acc_present_or_create): Likewise.
3062 (acc_present_or_copyin): Likewise.
3063 (acc_create_async): New API function.
3064 (acc_copyin_async): New API function.
3065 (delete_copyout): Add async parameter and async setting/unsetting.
3066 (acc_delete): Adjust delete_copyout call.
3067 (acc_copyout): Likewise.
3068 (acc_delete_async): New API function.
3069 (acc_copyout_async): Likewise.
3070 (update_dev_host): Add async parameter and async setting/unsetting.
3071 (acc_update_device): Adjust update_dev_host call.
3072 (acc_update_self): Likewise.
3073 (acc_update_device_async): New API function.
3074 (acc_update_self_async): Likewise.
3075 * openacc.h (acc_copyin_async): Declare new API function.
3076 (acc_create_async): Likewise.
3077 (acc_copyout_async): Likewise.
3078 (acc_delete_async): Likewise.
3079 (acc_update_device_async): Likewise.
3080 (acc_update_self_async): Likewise.
3081 (acc_memcpy_to_device_async): Likewise.
3082 (acc_memcpy_from_device_async): Likewise.
3083 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3084 (acc_copyin_async_64_h): New subroutine.
3085 (acc_copyin_async_array_h): New subroutine.
3086 (acc_create_async_32_h): New subroutine.
3087 (acc_create_async_64_h): New subroutine.
3088 (acc_create_async_array_h): New subroutine.
3089 (acc_copyout_async_32_h): New subroutine.
3090 (acc_copyout_async_64_h): New subroutine.
3091 (acc_copyout_async_array_h): New subroutine.
3092 (acc_delete_async_32_h): New subroutine.
3093 (acc_delete_async_64_h): New subroutine.
3094 (acc_delete_async_array_h): New subroutine.
3095 (acc_update_device_async_32_h): New subroutine.
3096 (acc_update_device_async_64_h): New subroutine.
3097 (acc_update_device_async_array_h): New subroutine.
3098 (acc_update_self_async_32_h): New subroutine.
3099 (acc_update_self_async_64_h): New subroutine.
3100 (acc_update_self_async_array_h): New subroutine.
3101 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3102 (acc_copyin_async_64_h): New subroutine.
3103 (acc_copyin_async_array_h): New subroutine.
3104 (acc_create_async_32_h): New subroutine.
3105 (acc_create_async_64_h): New subroutine.
3106 (acc_create_async_array_h): New subroutine.
3107 (acc_copyout_async_32_h): New subroutine.
3108 (acc_copyout_async_64_h): New subroutine.
3109 (acc_copyout_async_array_h): New subroutine.
3110 (acc_delete_async_32_h): New subroutine.
3111 (acc_delete_async_64_h): New subroutine.
3112 (acc_delete_async_array_h): New subroutine.
3113 (acc_update_device_async_32_h): New subroutine.
3114 (acc_update_device_async_64_h): New subroutine.
3115 (acc_update_device_async_array_h): New subroutine.
3116 (acc_update_self_async_32_h): New subroutine.
3117 (acc_update_self_async_64_h): New subroutine.
3118 (acc_update_self_async_array_h): New subroutine.
3119 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3120 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3121 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3122 acc_memcpy_to_device_async*, acc_update_device_async*, and
3123 acc_update_self_async* entries.
3124 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3125 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3126 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3128 2018-10-31 Joseph Myers <joseph@codesourcery.com>
3131 * Makefile.am: Include multilib.am
3132 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3133 (CLEANFILES): Remove libgomp.info.
3134 * configure.ac: Remove AC_PREREQ.
3135 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3136 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3139 2018-10-29 Joseph Myers <joseph@codesourcery.com>
3140 Julian Brown <julian@codesourcery.com>
3142 * testsuite/libgomp.oacc-c++/this.C: New.
3144 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3146 * plugin/plugin-nvptx.c (struct cuda_map): New.
3147 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3148 h_tail with (cuda_map *) map.
3149 (cuda_map_create): New function.
3150 (cuda_map_destroy): New function.
3151 (map_init): Update to use a linked list of cuda_map objects.
3152 (map_fini): Likewise.
3153 (map_pop): Likewise.
3154 (map_push): Likewise. Return CUdeviceptr instead of void.
3155 (init_streams_for_device): Remove stales references to ptx_stream
3157 (select_stream_for_async): Likewise.
3158 (nvptx_exec): Update call to map_init.
3160 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3161 Julian Brown <julian@codesourcery.com>
3164 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3166 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3167 Thomas Koenig <tkoenig@gcc.gnu.org>
3170 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3171 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3172 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3173 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3174 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3175 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3176 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3178 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3179 Tom de Vries <tdevries@suse.de>
3182 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3183 (cuOccupancyMaxPotentialBlockSize): Declare.
3184 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3185 CUDA_ONE_CALL_MAYBE_NULL.
3186 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3187 CUoccupancyB2DSize and declare
3188 cuOccupancyMaxPotentialBlockSize.
3189 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3190 default num_gangs and num_workers when the driver supports it.
3192 2018-08-08 Tom de Vries <tdevries@suse.de>
3194 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3195 CUDA_ONE_CALL_MAYBE_NULL.
3196 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3197 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3198 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3201 2018-08-08 Tom de Vries <tdevries@suse.de>
3203 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3204 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3207 2018-08-08 Tom de Vries <tdevries@suse.de>
3209 * plugin/plugin-nvptx.c
3210 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3211 (nvptx_open_device): Use
3212 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3214 2018-08-08 Tom de Vries <tdevries@suse.de>
3216 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3217 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3219 2018-08-07 Tom de Vries <tdevries@suse.de>
3221 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3222 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3223 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3224 corresponding call in CUDA_ONE_CALL. Add def/undef of
3225 CUDA_ONE_CALL_MAYBE_NULL.
3226 (CUDA_CALL_EXISTS): Define.
3228 2018-08-07 Tom de Vries <tdevries@suse.de>
3230 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3231 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3232 corresponding undefs right after.
3234 2018-08-04 Tom de Vries <tdevries@suse.de>
3236 * plugin/configfrag.ac: For --without-cuda-driver, set
3237 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3238 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3239 * configure: Regenerate.
3241 2018-08-02 Tom de Vries <tdevries@suse.de>
3244 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3245 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3246 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3248 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3249 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3250 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3252 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3253 Thomas Schwinge <thomas@codesourcery.com>
3255 * config/nvptx/oacc-parallel.c: Truncate.
3257 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3258 James Norris <jnorris@codesourcery.com>
3260 * plugin/plugin-nvptx.c (struct map): Removed.
3261 (map_init, map_pop): Remove use of struct map.
3262 (map_push): Likewise and change argument list.
3263 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3265 2018-08-01 Tom de Vries <tdevries@suse.de>
3267 * plugin/cuda-lib.def: New file. Factor out of ...
3268 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3269 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3272 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3274 Revert 'AsyncI/O patch committed'.
3275 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3276 Thomas Koenig <tkoenig@gcc.gnu.org>
3279 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3280 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3281 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3282 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3283 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3284 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3285 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3287 2018-07-30 Tom de Vries <tdevries@suse.de>
3289 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3290 (nvptx_exec): Ensure worker and vector default dims don't exceed
3291 targ_fn->max_threads_per_block.
3293 2018-07-30 Tom de Vries <tdevries@suse.de>
3295 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3296 (nvptx_open_device): Init default_dims for device.
3297 (nvptx_exec): Use default_dims from device.
3299 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3302 * testsuite/libgomp.c++/for-15.C (results): Include it in
3303 omp declare target region.
3304 (main): Use map (always, tofrom: results) instead of
3305 map (tofrom: results).
3308 * testsuite/libgomp.c/pr86660.c: New test.
3310 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3311 Tom de Vries <tdevries@suse.de>
3313 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3314 sufficient resources to launch a kernel, and give a hint on how to fix
3317 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3318 Tom de Vries <tdevries@suse.de>
3320 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3321 max_threads_per_block and max_threads_per_multiprocessor fields.
3322 (nvptx_open_device): Initialize new fields.
3323 (nvptx_exec): Use num_sms, and new fields.
3325 2018-07-26 Tom de Vries <tdevries@suse.de>
3327 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3328 to correct locations. Remove xfail.
3330 2018-07-26 Tom de Vries <tdevries@suse.de>
3332 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3333 acc_wait. Move acc_async_test calls to correct locations. Remove
3336 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3337 Thomas Koenig <tkoenig@gcc.gnu.org>
3340 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3341 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3342 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3343 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3344 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3345 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3346 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3348 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3351 * testsuite/libgomp.c++/pr86542.C: New test.
3354 * testsuite/libgomp.c++/pr86539.C: New test.
3356 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3359 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3360 (results): Make sure the variable is not inside declare target region.
3361 (qux): Remove unused function.
3363 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3366 * testsuite/libgomp.c++/for-15.C: New test.
3368 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3371 * testsuite/libgomp.c++/pr86291.C: New test.
3373 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3375 * libgomp.texi (Top): Move www.openmp.org to https.
3376 (Enabling OpenMP): Ditto.
3377 (omp_get_active_level): Ditto.
3378 (omp_get_ancestor_thread_num): Ditto.
3379 (omp_get_cancellation): Ditto.
3380 (omp_get_default_device): Ditto.
3381 (omp_get_dynamic): Ditto.
3382 (omp_get_level): Ditto.
3383 (omp_get_max_active_levels): Ditto.
3384 (omp_get_max_task_priority): Ditto.
3385 (omp_get_max_threads): Ditto.
3386 (omp_get_nested): Ditto.
3387 (omp_get_num_devices): Ditto.
3388 (omp_get_num_procs): Ditto.
3389 (omp_get_num_teams): Ditto.
3390 (omp_get_num_threads): Ditto.
3391 (omp_get_proc_bind): Ditto.
3392 (omp_get_schedule): Ditto.
3393 (omp_get_team_num): Ditto.
3394 (omp_get_team_size): Ditto.
3395 (omp_get_thread_limit): Ditto.
3396 (omp_get_thread_num): Ditto.
3397 (omp_in_parallel): Ditto.
3398 (omp_in_final): Ditto.
3399 (omp_is_initial_device): Ditto.
3400 (omp_set_default_device): Ditto.
3401 (omp_set_dynamic): Ditto.
3402 (omp_set_max_active_levels): Ditto.
3403 (omp_set_nested): Ditto.
3404 (omp_set_num_threads): Ditto.
3405 (omp_set_schedule): Ditto.
3406 (omp_init_lock): Ditto.
3407 (omp_set_lock): Ditto.
3408 (omp_test_lock): Ditto.
3409 (omp_unset_lock): Ditto.
3410 (omp_destroy_lock): Ditto.
3411 (omp_init_nest_lock): Ditto.
3412 (omp_set_nest_lock): Ditto.
3413 (omp_test_nest_lock): Ditto.
3414 (omp_unset_nest_lock): Ditto.
3415 (omp_destroy_nest_lock): Ditto.
3416 (omp_get_wtick): Ditto.
3417 (omp_get_wtime): Ditto.
3418 (OMP_CANCELLATION): Ditto.
3419 (OMP_DISPLAY_ENV): Ditto.
3420 (OMP_DEFAULT_DEVICE): Ditto.
3421 (OMP_DYNAMIC): Ditto.
3422 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3423 (OMP_MAX_TASK_PRIORITY): Ditto.
3424 (OMP_NESTED): Ditto.
3425 (OMP_NUM_THREADS): Ditto.
3426 (OMP_PROC_BIND): Ditto.
3427 (OMP_PLACES): Ditto.
3428 (OMP_STACKSIZE): Ditto.
3429 (OMP_SCHEDULE): Ditto.
3430 (OMP_THREAD_LIMIT): Ditto.
3431 (OMP_WAIT_POLICY): Ditto.
3433 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3434 James Norris <jnorris@codesourcery.com>
3435 Julian Brown <julian@codesourcery.com>
3436 Thomas Schwinge <thomas@codesourcery.com>
3437 Tom de Vries <tom@codesourcery.com>
3439 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3440 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3441 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3442 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3443 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3444 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3445 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3446 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3447 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3448 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3450 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3452 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3454 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3456 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3458 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3460 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3462 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3464 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3466 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3468 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3470 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3472 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3474 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3476 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3478 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3480 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3482 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3484 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3486 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3488 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3490 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3492 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3494 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3496 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3498 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3500 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3502 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3503 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3504 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3505 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3506 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3507 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3508 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3509 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3510 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3512 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3514 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3515 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3516 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3518 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3519 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3520 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3522 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3524 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3526 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3528 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3530 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3532 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3534 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3536 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3538 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3540 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3548 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3550 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3551 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3552 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3553 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3554 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3555 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3556 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3558 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3559 Thomas Schwinge <thomas@codesourcery.com>
3560 Cesar Philippidis <cesar@codesourcery.com>
3562 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3563 (gomp_acc_remove_pointer): Update declaration.
3564 (gomp_acc_declare_allocate): Declare.
3565 (gomp_remove_var): Declare.
3566 * libgomp.map (OACC_2.5): Define.
3567 * oacc-mem.c (acc_map_data): Update refcount.
3568 (acc_unmap_data): Likewise.
3569 (present_create_copy): Likewise.
3570 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3571 (acc_copyin): Likewise.
3572 (FLAG_FINALIZE): Define.
3573 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3574 (acc_delete_finalize): New function.
3575 (acc_delete_finalize_async): New function.
3576 (acc_copyout_finalize): New function.
3577 (acc_copyout_finalize_async): New function.
3578 (gomp_acc_insert_pointer): Update refcounts.
3579 (gomp_acc_remove_pointer): Return if data is not present on the
3581 * oacc-parallel.c (find_pset): Rename to find_pointer.
3582 (find_pointer): Add support for GOMP_MAP_POINTER.
3583 (handle_ftn_pointers): New function.
3584 (GOACC_parallel_keyed): Update refcounts of variables.
3585 (GOACC_enter_exit_data): Add support for finalized data mappings.
3586 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3588 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3589 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3590 for GOMP_MAP_FORCE_FROM.
3591 * openacc.f90 (module openacc_internal): Add
3592 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3593 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3594 acc_copyout_finalize and acc_delete_finalize.
3595 (acc_copyout_finalize_32_h): New subroutine.
3596 (acc_copyout_finalize_64_h): New subroutine.
3597 (acc_copyout_finalize_array_h): New subroutine.
3598 (acc_delete_finalize_32_h): New subroutine.
3599 (acc_delete_finalize_64_h): New subroutine.
3600 (acc_delete_finalize_array_h): New subroutine.
3601 * openacc.h (acc_copyout_finalize): Declare.
3602 (acc_copyout_finalize_async): Declare.
3603 (acc_delete_finalize): Declare.
3604 (acc_delete_finalize_async): Declare.
3605 * openacc_lib.h (acc_copyout_finalize): New interface.
3606 (acc_delete_finalize): New interface.
3607 * target.c (gomp_map_vars): Update dynamic_refcount.
3608 (gomp_remove_var): New function.
3609 (gomp_unmap_vars): Use it.
3610 (gomp_unload_image_from_device): Likewise.
3611 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3612 case to utilize OpenACC 2.5 data clause semantics.
3613 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3614 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3615 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3616 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3618 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3619 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3620 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3621 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3622 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3623 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3624 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3625 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3626 utilize OpenACC 2.5 data clause semantics.
3627 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3628 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3629 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3630 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3631 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3632 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3633 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3634 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3635 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3637 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3641 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3642 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3643 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3644 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3645 * testsuite/libgomp.fortran/task2.f90: Ditto.
3646 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3647 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3648 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3649 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3650 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3651 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3652 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3653 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3654 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3656 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3659 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3661 2018-05-09 Tom de Vries <tom@codesourcery.com>
3664 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3665 to GOACC_enter_exit_data.
3667 2018-05-09 Tom de Vries <tom@codesourcery.com>
3670 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3671 (async_synchronous_p): New function.
3672 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3674 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3675 async_valid_stream_id_p.
3676 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3677 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3679 2018-05-07 Tom de Vries <tom@codesourcery.com>
3682 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3683 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3685 2018-05-03 Tom de Vries <tom@codesourcery.com>
3688 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3689 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3690 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3691 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3693 2018-05-02 Tom de Vries <tom@codesourcery.com>
3696 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3697 GOMP_OPENACC_DIM ...
3698 * env.c (parse_gomp_openacc_dim): ... here. New function.
3699 (initialize_env): Call parse_gomp_openacc_dim.
3700 (goacc_default_dims): Define.
3701 * libgomp.h (goacc_default_dims): Declare.
3702 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3703 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3704 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3705 GOMP_PLUGIN_acc_default_dim.
3706 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3707 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3709 2018-05-02 Tom de Vries <tom@codesourcery.com>
3712 * testsuite/libgomp.c++/udr-9.C: Update.
3713 * testsuite/libgomp.c++/atomic-16.C: Remove.
3714 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3715 * testsuite/libgomp.c++/loop-13.C: Remove.
3716 * testsuite/libgomp.c++/loop-14.C: Remove.
3717 * testsuite/libgomp.c++/loop-15.C: Remove.
3718 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3719 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3720 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3721 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3722 * testsuite/libgomp.c++/ordered-1.C: Remove.
3723 * testsuite/libgomp.c++/pr45784.C: Remove.
3724 * testsuite/libgomp.c++/pr64824.C: Remove.
3725 * testsuite/libgomp.c++/pr64868.C: Remove.
3726 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3727 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3728 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3729 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3730 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3731 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3732 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3733 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3734 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3735 * testsuite/libgomp.c++/pr69389.C: Remove.
3736 * testsuite/libgomp.c++/simd10.C: Remove.
3737 * testsuite/libgomp.c++/simd11.C: Remove.
3738 * testsuite/libgomp.c++/simd12.C: Remove.
3739 * testsuite/libgomp.c++/simd13.C: Remove.
3740 * testsuite/libgomp.c++/target-1.C: Remove.
3741 * testsuite/libgomp.c++/target-3.C: Remove.
3742 * testsuite/libgomp.c++/target-4.C: Remove.
3743 * testsuite/libgomp.c++/target-5.C: Remove.
3744 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3745 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3746 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3747 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3748 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3749 * testsuite/libgomp.c++/udr-9.C: Remove.
3750 * testsuite/libgomp.c++/for-10.C: Remove.
3751 * testsuite/libgomp.c++/for-11.C: Remove.
3752 * testsuite/libgomp.c++/for-12.C: Remove.
3753 * testsuite/libgomp.c++/for-13.C: Remove.
3754 * testsuite/libgomp.c++/for-14.C: Remove.
3755 * testsuite/libgomp.c++/for-9.C: Remove.
3756 * testsuite/libgomp.c/atomic-18.c: Move ...
3757 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3758 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3759 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3760 * testsuite/libgomp.c/loop-13.c: Move ...
3761 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3762 * testsuite/libgomp.c/loop-14.c: Move ...
3763 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3764 * testsuite/libgomp.c/loop-15.c: Remove.
3765 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3766 * testsuite/libgomp.c/monotonic-1.c: Move ...
3767 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3768 * testsuite/libgomp.c/monotonic-2.c: Move ...
3769 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3770 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3771 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3772 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3773 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3774 * testsuite/libgomp.c/ordered-4.c: Move ...
3775 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3776 * testsuite/libgomp.c/pr45784.c: Move ...
3777 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3778 * testsuite/libgomp.c/pr64824.c: Move ...
3779 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3780 * testsuite/libgomp.c/pr64868.c: Move ...
3781 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3782 * testsuite/libgomp.c/pr66199-1.c: Move ...
3783 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3784 * testsuite/libgomp.c/pr66199-2.c: Move ...
3785 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3786 * testsuite/libgomp.c/pr66199-3.c: Move ...
3787 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3788 * testsuite/libgomp.c/pr66199-4.c: Move ...
3789 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3790 * testsuite/libgomp.c/pr66199-5.c: Move ...
3791 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3792 * testsuite/libgomp.c/pr66199-6.c: Move ...
3793 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3794 * testsuite/libgomp.c/pr66199-7.c: Move ...
3795 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3796 * testsuite/libgomp.c/pr66199-8.c: Move ...
3797 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3798 * testsuite/libgomp.c/pr66199-9.c: Move ...
3799 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3800 * testsuite/libgomp.c/pr69389.c: Move ...
3801 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3802 * testsuite/libgomp.c/simd-14.c: Move ...
3803 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3804 * testsuite/libgomp.c/simd-15.c: Move ...
3805 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3806 * testsuite/libgomp.c/simd-16.c: Move ...
3807 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3808 * testsuite/libgomp.c/simd-17.c: Move ...
3809 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3810 * testsuite/libgomp.c/target-1.c: Move ...
3811 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3812 * testsuite/libgomp.c/target-10.c: Move ...
3813 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3814 * testsuite/libgomp.c/target-13.c: Move ...
3815 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3816 * testsuite/libgomp.c/target-2.c: Move ...
3817 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3818 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3819 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3820 * testsuite/libgomp.c/taskloop-1.c: Move ...
3821 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3822 * testsuite/libgomp.c/taskloop-2.c: Move ...
3823 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3824 * testsuite/libgomp.c/taskloop-3.c: Move ...
3825 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3826 * testsuite/libgomp.c/taskloop-4.c: Move ...
3827 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3828 * testsuite/libgomp.c/udr-1.c: Move ...
3829 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3830 * testsuite/libgomp.c/for-1.c: Move ...
3831 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3832 * testsuite/libgomp.c/for-1.h: Move ...
3833 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3834 * testsuite/libgomp.c/for-2.c: Move ...
3835 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3836 * testsuite/libgomp.c/for-2.h: Move ...
3837 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3838 * testsuite/libgomp.c/for-3.c: Move ...
3839 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3840 * testsuite/libgomp.c/for-4.c: Move ...
3841 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3842 * testsuite/libgomp.c/for-5.c: Move ...
3843 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3844 * testsuite/libgomp.c/for-6.c: Move ...
3845 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3847 2018-05-02 Tom de Vries <tom@codesourcery.com>
3850 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3851 __builtin_goacc_parlevel_{id,size}.
3852 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3853 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3854 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3855 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3856 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3857 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3858 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3859 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3860 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3861 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3862 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3863 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3864 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3865 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3866 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3867 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3868 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3869 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3870 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3871 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3872 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3873 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3874 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3876 2018-05-02 Tom de Vries <tom@codesourcery.com>
3879 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3881 2018-05-02 Tom de Vries <tom@codesourcery.com>
3884 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3886 2018-04-29 Julian Brown <julian@codesourcery.com>
3887 Tom de Vries <tom@codesourcery.com>
3890 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3891 arbitrary order for iterations of atomic subtract check.
3893 2018-04-28 Tom de Vries <tom@codesourcery.com>
3896 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3897 atomic capture results obtained in parallel loop to an array, instead of
3900 2018-04-26 Tom de Vries <tom@codesourcery.com>
3903 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3904 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3905 (process_GOMP_NVPTX_JIT): New function.
3906 (link_ptx): Use process_GOMP_NVPTX_JIT.
3908 2018-04-26 Richard Biener <rguenther@suse.de>
3909 Tom de Vries <tom@codesourcery.com>
3912 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3914 2018-04-26 Tom de Vries <tom@codesourcery.com>
3917 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3918 recursion depth from 25 to 23.
3919 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3921 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3923 * configure: Regenerated.
3925 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3926 Tom de Vries <tom@codesourcery.com>
3929 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3931 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3934 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3935 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3936 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3937 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3938 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3939 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3942 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3944 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3946 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3948 * configure: Regenerated.
3950 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3953 * configure: Regenerate.
3955 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3956 Tom de Vries <tom@codesourcery.com>
3959 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3960 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3962 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3966 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3967 test from gfortran.dg to here.
3969 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3971 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3972 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3974 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3977 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3978 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3980 2018-04-05 Tom de Vries <tom@codesourcery.com>
3983 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3985 2018-03-26 Tom de Vries <tom@codesourcery.com>
3987 PR tree-optimization/85063
3988 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3989 * testsuite/libgomp.c/switch-conversion.c: New test.
3990 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3991 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3993 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3996 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3997 call abort by STOP n.
3998 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3999 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4000 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4001 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4002 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4003 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4004 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4005 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4006 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4007 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4008 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4009 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4010 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4011 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4012 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4013 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4014 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4015 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4016 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4017 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4018 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4019 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4020 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4021 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4022 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4023 * testsuite/libgomp.fortran/character1.f90: Likewise.
4024 * testsuite/libgomp.fortran/character2.f90: Likewise.
4025 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4026 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4027 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4028 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4029 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4030 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4031 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4032 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4033 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4034 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4035 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4036 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4037 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4038 * testsuite/libgomp.fortran/do1.f90: Likewise.
4039 * testsuite/libgomp.fortran/do2.f90: Likewise.
4040 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4041 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4042 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4043 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4044 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4045 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4046 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4047 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4048 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4049 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4050 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4051 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4052 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4053 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4054 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4055 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4056 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4057 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4058 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4059 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4060 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4061 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4062 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4063 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4064 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4065 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4066 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4067 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4068 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4069 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4070 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4071 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4072 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4073 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4074 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4075 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4076 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4077 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4078 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4079 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4080 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4081 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4082 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4083 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4084 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4085 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4086 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4087 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4088 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4089 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4090 * testsuite/libgomp.fortran/lib2.f: Likewise.
4091 * testsuite/libgomp.fortran/lib3.f: Likewise.
4092 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4093 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4094 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4095 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4096 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4097 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4098 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4099 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4100 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4101 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4102 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4103 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4104 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4105 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4106 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4107 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4108 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4109 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4110 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4111 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4112 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4113 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4114 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4115 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4116 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4117 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4118 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4119 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4120 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4121 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4122 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4123 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4124 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4125 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4126 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4127 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4128 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4129 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4130 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4131 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4132 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4133 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4134 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4135 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4136 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4137 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4138 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4139 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4140 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4141 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4142 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4143 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4144 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4145 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4146 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4147 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4148 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4149 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4150 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4151 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4152 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4153 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4154 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4155 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4156 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4157 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4158 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4159 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4160 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4161 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4162 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4163 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4164 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4165 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4166 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4167 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4168 * testsuite/libgomp.fortran/stack.f90: Likewise.
4169 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4170 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4171 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4172 * testsuite/libgomp.fortran/target1.f90: Likewise.
4173 * testsuite/libgomp.fortran/target2.f90: Likewise.
4174 * testsuite/libgomp.fortran/target3.f90: Likewise.
4175 * testsuite/libgomp.fortran/target4.f90: Likewise.
4176 * testsuite/libgomp.fortran/target5.f90: Likewise.
4177 * testsuite/libgomp.fortran/target6.f90: Likewise.
4178 * testsuite/libgomp.fortran/target7.f90: Likewise.
4179 * testsuite/libgomp.fortran/target8.f90: Likewise.
4180 * testsuite/libgomp.fortran/task1.f90: Likewise.
4181 * testsuite/libgomp.fortran/task2.f90: Likewise.
4182 * testsuite/libgomp.fortran/task3.f90: Likewise.
4183 * testsuite/libgomp.fortran/task4.f90: Likewise.
4184 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4185 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4186 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4187 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4188 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4189 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4190 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4191 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4192 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4193 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4194 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4195 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4196 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4197 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4198 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4199 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4200 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4201 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4202 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4203 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4204 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4205 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4206 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4207 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4208 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4209 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4210 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4211 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4212 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4213 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4214 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4215 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4216 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4217 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4218 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4219 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4220 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4221 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4222 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4223 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4224 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4225 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4226 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4227 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4228 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4229 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4230 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4231 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4232 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4233 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4234 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4235 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4236 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4237 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4238 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4239 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4240 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4241 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4242 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4243 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4244 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4245 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4246 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4247 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4248 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4249 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4250 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4251 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4252 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4253 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4254 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4255 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4256 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4257 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4258 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4259 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4260 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4261 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4262 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4263 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4264 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4265 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4266 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4267 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4268 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4269 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4270 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4271 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4272 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4273 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4274 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4275 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4276 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4277 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4278 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4279 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4280 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4281 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4282 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4283 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4284 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4285 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4286 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4287 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4288 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4289 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4290 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4291 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4292 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4293 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4294 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4295 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4296 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4297 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4298 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4299 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4300 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4301 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4302 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4303 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4304 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4305 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4306 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4307 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4308 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4309 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4311 2018-03-20 Richard Biener <rguenther@suse.de>
4313 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4314 parallelizable loop.
4316 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4319 * configure: Regenerate.
4321 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4324 * libgomp.fortran/pr84418-1.f90: New test.
4325 * libgomp.fortran/pr84418-2.f90: New test.
4327 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4330 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4331 -std=f2003 -fall-intrinsics into dg-additional-options.
4333 2018-02-08 Martin Jambor <mjambor@suse.cz>
4335 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4338 2018-02-08 Martin Jambor <mjambor@suse.cz>
4340 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4342 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4344 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4345 [__cplusplus]: Declare extern "C".
4347 2018-02-07 Tom de Vries <tom@codesourcery.com>
4350 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4352 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4353 Jakub Jelinek <jakub@redhat.com>
4356 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4357 instead of omp_lock_t.
4359 2018-01-25 Tom de Vries <tom@codesourcery.com>
4362 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4364 2018-01-24 Tom de Vries <tom@codesourcery.com>
4367 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4369 2018-01-24 Tom de Vries <tom@codesourcery.com>
4372 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4374 2018-01-19 Tom de Vries <tom@codesourcery.com>
4375 Cesar Philippidis <cesar@codesourcery.com>
4378 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4379 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4381 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4383 Update copyright years.
4385 * libgomp.texi: Bump @copying's copyright year.
4387 2017-12-30 Tom de Vries <tom@codesourcery.com>
4390 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4391 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4393 2017-12-27 Tom de Vries <tom@codesourcery.com>
4396 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4397 (test_nonstatic): Fix return type to workaround PR83046.
4399 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4402 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4403 j suffix instead of i.
4404 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4407 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4409 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4410 call to acc_wait (1).
4412 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4415 * testsuite/libgomp.fortran/pr81304.f90: New test.
4417 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4420 * libgomp.fortran/pr81841.f90: New test.
4422 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4425 * target.c (gomp_target_init): Compute lengths just once and
4426 use them in both malloc size and subsequent copying.
4428 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4430 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4431 * acinclude.m4: Add cet.m4.
4432 * configure: Regenerate.
4433 * Makefile.in: Likewise.
4434 * testsuite/Makefile.in: Likewise.
4436 2017-11-15 Tom de Vries <tom@codesourcery.com>
4438 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4439 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4440 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4441 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4442 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4443 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4445 2017-11-14 Tom de Vries <tom@codesourcery.com>
4447 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4450 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4453 * testsuite/libgomp.c++/pr82835.C: New test.
4455 2017-11-06 Martin Liska <mliska@suse.cz>
4457 * testsuite/libgomp.c++/loop-2.C: Return a value
4458 for functions with non-void return type, or change type to void,
4459 or add -Wno-return-type for test.
4460 * testsuite/libgomp.c++/loop-4.C: Likewise.
4461 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4462 * testsuite/libgomp.c++/shared-1.C: Likewise.
4463 * testsuite/libgomp.c++/single-1.C: Likewise.
4464 * testsuite/libgomp.c++/single-2.C: Likewise.
4466 2017-10-31 Tom de Vries <tom@codesourcery.com>
4468 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4469 "do {} while (false)".
4470 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4471 after HSA_DEBUG call.
4473 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4475 * target.c (struct gomp_coalesce_buf): New type.
4476 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4477 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4478 (gomp_copy_host2dev): Add CBUF argument, if copying into
4479 the cached ranges, memcpy into buffer instead of copying
4481 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4482 Add CBUF argument, pass it through to other calls.
4483 (gomp_map_vars): Aggregate copies from host to device if small enough
4484 and with small enough gaps in between into memcpy into a buffer and
4485 fewer host to device copies from the buffer.
4486 (gomp_update): Adjust gomp_copy_host2dev caller.
4488 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4490 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4492 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4493 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4494 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4495 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4497 2017-10-16 Tom de Vries <tom@codesourcery.com>
4499 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4500 openacc_nvidia_accel_selected.
4501 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4502 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4503 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4504 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4505 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4506 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4507 openacc_nvidia_accel_selected. Skip for shared memory device.
4508 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4509 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4511 2017-10-09 Martin Jambor <mjambor@suse.cz>
4514 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4516 2017-10-07 Tom de Vries <tom@codesourcery.com>
4518 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4519 Remove acc_device_nvidia references.
4520 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4523 2017-10-05 Tom de Vries <tom@codesourcery.com>
4525 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4526 vector_length(32) clause from acc parallel directive.
4527 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4529 2017-10-04 Tom de Vries <tom@codesourcery.com>
4531 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4532 (main): Reduce sum of arr elements. Assert that hres is exactly
4533 representable in 32-bit floating point.
4534 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4535 (main): Reduce sum of arr elements. Assert that hres and hmres are
4536 exactly representable in 32-bit floating point.
4537 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4539 2017-09-28 Tom de Vries <tom@codesourcery.com>
4541 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4543 * testsuite/libgomp.c++/pr69393.C: Same.
4544 * testsuite/libgomp.c++/taskloop-1.C: Same.
4545 * testsuite/libgomp.c++/taskloop-3.C: Same.
4546 * testsuite/libgomp.c++/taskloop-4.C: Same.
4547 * testsuite/libgomp.c/for-4.c: Same.
4548 * testsuite/libgomp.c/pr66199-3.c: Same.
4549 * testsuite/libgomp.c/pr66199-4.c: Same.
4550 * testsuite/libgomp.c/pr66199-6.c: Same.
4551 * testsuite/libgomp.c/taskloop-1.c: Same.
4552 * testsuite/libgomp.c/taskloop-3.c: Same.
4553 * testsuite/libgomp.c/taskloop-4.c: Same.
4554 * testsuite/libgomp.fortran/aligned1.f03: Same.
4555 * testsuite/libgomp.fortran/condinc1.f: Same.
4556 * testsuite/libgomp.fortran/condinc3.f90: Same.
4557 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4558 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4559 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4560 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4561 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4562 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4563 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4564 * testsuite/libgomp.fortran/recursion1.f90: Same.
4565 * testsuite/libgomp.fortran/target2.f90: Same.
4566 * testsuite/libgomp.fortran/target5.f90: Same.
4567 * testsuite/libgomp.fortran/task3.f90: Same.
4569 2017-09-28 Tom de Vries <tom@codesourcery.com>
4571 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4572 vector_length(32) clause from acc parallel directive.
4573 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4575 2017-09-27 Tom de Vries <tom@codesourcery.com>
4577 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4578 Remove acc_device_nvidia references.
4580 2017-09-16 Tom de Vries <tom@codesourcery.com>
4583 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4585 2017-09-14 Tom de Vries <tom@codesourcery.com>
4587 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4588 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4589 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4590 * testsuite/libgomp.c/c.exp: Include test-cases from
4591 libgomp.c-c++-common.
4592 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4595 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4598 * testsuite/libgomp.c++/pr81314.C: New test.
4600 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4602 * libgomp.texi (Top): www.openacc.org now uses https.
4603 (Enabling OpenACC): Ditto.
4604 (acc_get_num_devices): Ditto.
4605 (acc_set_device_type): Ditto.
4606 (acc_get_device_type): Ditto.
4607 (acc_set_device_num): Ditto.
4608 (acc_get_device_num): Ditto.
4609 (acc_async_test): Ditto.
4610 (acc_async_test_all): Ditto.
4612 (acc_wait_all): Ditto.
4613 (acc_wait_all_async): Ditto.
4614 (acc_wait_async): Ditto.
4616 (acc_shutdown): Ditto.
4617 (acc_on_device): Ditto.
4618 (acc_malloc): Ditto.
4620 (acc_copyin): Ditto.
4621 (acc_present_or_copyin): Ditto.
4622 (acc_create): Ditto.
4623 (acc_present_or_create): Ditto.
4624 (acc_copyout): Ditto.
4625 (acc_delete): Ditto.
4626 (acc_update_device): Ditto.
4627 (acc_update_self): Ditto.
4628 (acc_map_data): Ditto.
4629 (acc_unmap_data): Ditto.
4630 (acc_deviceptr): Ditto.
4631 (acc_hostptr): Ditto.
4632 (acc_is_present): Ditto.
4633 (acc_memcpy_to_device): Ditto.
4634 (acc_memcpy_from_device): Ditto.
4635 (acc_get_current_cuda_device): Ditto.
4636 (acc_get_current_cuda_context): Ditto.
4637 (acc_get_cuda_stream): Ditto.
4638 (acc_set_cuda_stream): Ditto.
4639 (ACC_DEVICE_TYPE): Ditto.
4640 (ACC_DEVICE_NUM): Ditto.
4641 (OpenACC Library Interoperability): Ditto.
4643 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4646 * testsuite/libgomp.c/pr81687-1.c: New test.
4647 * testsuite/libgomp.c/pr81687-2.c: New test.
4649 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4652 * testsuite/libgomp.c/pr69389.c: New test.
4653 * testsuite/libgomp.c++/pr69389.C: New test.
4655 2017-08-07 Tom de Vries <tom@codesourcery.com>
4658 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4659 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4661 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4664 * testsuite/libgomp.c/pr45784.c: New test.
4665 * testsuite/libgomp.c++/pr45784.C: New test.
4667 2017-07-19 Tom de Vries <tom@codesourcery.com>
4669 * testsuite/libgomp.oacc-c/vec.c: New test.
4671 2017-07-03 Tom de Vries <tom@codesourcery.com>
4673 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4675 2017-06-27 Tom de Vries <tom@codesourcery.com>
4677 * plugin/plugin-nvptx.c (notify_var): New function.
4678 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4680 2017-06-27 Tom de Vries <tom@codesourcery.com>
4682 * env.c (parse_unsigned_long_1): Factor out of ...
4683 (parse_unsigned_long): ... here.
4684 (parse_int_1): Factor out of ...
4685 (parse_int): ... here.
4686 (parse_int_secure): New function.
4687 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4688 * secure_getenv.h: Factor out of ...
4689 * plugin/plugin-hsa.c: ... here.
4690 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4692 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4695 * testsuite/libgomp.c++/pr81130.C: New test.
4697 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4699 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4701 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4702 dg-xfail-run-if default args.
4704 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4706 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4707 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4709 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4712 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4713 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4714 sibling lists, depending on level just pick up what CPUs to put
4715 together into a place vs. whether add multiple ordered places.
4717 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4719 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4720 * libgomp.map (OACC_2.0.1): Add these.
4721 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4722 for "acc_wait", and "acc_wait_all", respectively.
4723 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4724 for "acc_wait", and "acc_wait_all", respectively.
4725 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4726 * libgomp.texi (acc_wait, acc_wait_all): Update.
4727 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4728 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4729 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4731 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4732 acc_present_or_copyin and acc_present_or_create procedures,
4734 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4735 generally different variants of OpenACC Runtime Library functions.
4736 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4738 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4739 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4741 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4742 of preprocessor definitions.
4743 * libgomp.h (strong_alias): Guard by "#ifdef
4744 HAVE_ATTRIBUTE_ALIAS".
4745 * oacc-mem.c: Provide "acc_pcreate" as alias for
4746 "acc_present_or_create", and "acc_pcopyin" as alias for
4747 "acc_present_or_copyin".
4748 * libgomp.map: New version "OACC_2.0.1".
4749 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4750 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4752 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4755 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4756 when disabling nvptx offloading.
4758 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4760 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4761 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4762 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4764 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4765 * testsuite/lib/libgomp.exp
4766 (check_effective_target_openacc_nvidia_accel_configured): New
4768 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4769 (check_effective_target_c++): New procs.
4770 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4771 (check_effective_target_c++): Likewise.
4773 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4776 * testsuite/libgomp.c/pr80809-2.c: New test.
4777 * testsuite/libgomp.c/pr80809-3.c: New test.
4780 * testsuite/libgomp.c/pr80809-1.c: New test.
4783 * testsuite/libgomp.c/pr80853.c: New test.
4785 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4787 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4788 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4789 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4790 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4791 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4793 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4794 Debug output for failure.
4796 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4798 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4800 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4803 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4804 bootstrap compare failures.
4806 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4808 * testsuite/libgomp.c/target-36.c: New testcase.
4810 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4812 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4815 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4818 * testsuite/libgomp.c/pr80394.c: New test.
4820 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4823 * config/posix/thread-stacksize.h: New file.
4824 * config/darwin/thread-stacksize.h: New file.
4825 * config/nvptx/thread-stacksize.h: New file.
4826 * env.c: Include thread-stacksize.h.
4827 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4828 instead of 0. Call pthread_attr_setstacksize even if
4829 GOMP_DEFAULT_STACKSIZE is non-zero.
4831 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4833 * env.c (initialize_env): Initialize stacksize to 0.
4835 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4838 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4840 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4843 * testsuite/libgomp.c/pr79940.c: New test.
4845 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4847 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4849 Add __float128 options.
4851 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4853 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4854 hppa*-*-* dg-skip-if directive.
4856 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4858 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4859 dg-skip-if directive into a comment.
4861 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4862 Chung-Lin Tang <cltang@codesourcery.com>
4864 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4865 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4866 add additional case.
4867 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4868 "openacc_nvidia_accel_selected".
4869 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4870 Add num_workers(8) clause.
4872 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4874 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4876 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4877 include complex.h on hppa*-*-hpux*.
4878 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4880 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4882 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4884 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4885 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4886 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4887 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4888 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4889 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4890 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4891 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4892 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4893 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4895 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4897 * libgomp-plugin.h: #include <stdbool.h>.
4898 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4899 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4900 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4901 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4902 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4903 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4904 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4905 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4906 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4907 (GOMP_OFFLOAD_openacc_async_test)
4908 (GOMP_OFFLOAD_openacc_async_test_all)
4909 (GOMP_OFFLOAD_openacc_async_wait)
4910 (GOMP_OFFLOAD_openacc_async_wait_async)
4911 (GOMP_OFFLOAD_openacc_async_wait_all)
4912 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4913 (GOMP_OFFLOAD_openacc_async_set_async)
4914 (GOMP_OFFLOAD_openacc_create_thread_data)
4915 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4916 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4917 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4918 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4919 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4920 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4922 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4923 (GOMP_OFFLOAD_unload_image): Fix argument types.
4925 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4927 * testsuite/lib/libgomp.exp
4928 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4929 check_compile invocation. Fix up removal of executable. Drop
4930 bogus "2>&1" argument.
4932 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4935 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4936 Martin Jambor <mjambor@suse.cz>
4938 * plugin/hsa.h: Moved to top level include.
4939 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4941 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4944 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4945 of cat to get version from BASE-VER file.
4946 * testsuite/Makefile.in: Regenerated.
4948 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4950 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4953 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4955 * plugin/hsa.h: Add GCC runtime library exception.
4956 * plugin/hsa_ext_finalize.h: Likewise.
4958 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4959 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4960 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4961 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4962 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4963 library to link ptx plugin against.
4964 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4965 (CUDA_CALLS): Define.
4966 (cuda_lib, cuda_lib_inited): New variables.
4967 (init_cuda_lib): New function.
4968 (CUDA_CALL_PREFIX): Define.
4969 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4970 (CUDA_CALL): Use FN instead of (FN).
4971 (CUDA_CALL_NOCHECK): Define.
4972 (cuda_error, fini_streams_for_device, select_stream_for_async,
4973 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4974 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4975 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4976 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4978 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4980 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4981 Use CUDA_CALL_NOCHECK.
4982 * plugin/cuda/cuda.h: New file.
4983 * config.h.in: Regenerated.
4984 * configure: Regenerated.
4987 * configure.ac: Add GCC_BASE_VER.
4988 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4989 get version from BASE-VER file.
4990 * testsuite/Makefile.in: Regenerated.
4991 * configure: Regenerated.
4992 * Makefile.in: Regenerated.
4994 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4997 * Makefile.am: Make fincludedir multilib-aware.
4998 * Makefile.in: Regenerate.
5000 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5002 Update copyright years.
5004 * libgomp.texi: Bump @copying's copyright year.
5006 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5008 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5009 pthread_spinlock_t instead of gomp_mutex_t lock.
5010 (gomp_get_thread_pool): Likewise.
5011 (gomp_release_thread_pool): Likewise.
5012 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5015 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5017 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5018 thread pool in case nthreads == 1.
5020 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5022 * config/nvptx/env.c: Delete.
5023 * icv.c: Move definitions of ICV variables back ...
5024 * env.c: ...here. Do not compile environment-related functionality if
5025 LIBGOMP_OFFLOADED_ONLY is set.
5027 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5029 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5030 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5031 * configure: Regenerate.
5032 * config.h.in: Likewise.
5034 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5036 * Makefile.in: Regenerate with automake-1.11.6.
5037 * aclocal.m4: Likewise.
5038 * configure: Likewise.
5039 * testsuite/Makefile.in: Likewise.
5041 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
5043 * config/nvptx/critical.c: Delete to use generic implementation.
5045 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5047 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5048 ../../affinity.c as fallback.
5049 * config/nvptx/affinity.c: Delete to use fallback implementation.
5051 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
5052 Jakub Jelinek <jakub@redhat.com>
5053 Dmitry Melnik <dm@ispras.ru>
5055 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5056 * Makefile.in. Regenerate.
5057 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5058 (LIBGOMP_USE_PTHREADS): ...here; new define.
5059 * configure: Regenerate.
5060 * config.h.in: Likewise.
5061 * config/posix/affinity.c: Move to...
5062 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5063 interface by LIBGOMP_USE_PTHREADS.
5064 * critical.c: Split out GOMP_atomic_{start,end} into...
5065 * atomic.c: ...here (new file).
5066 * env.c: Split out ICV definitions into...
5067 * icv.c: ...here (new file) and...
5068 * icv-device.c: ...here. New file.
5069 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5070 (gomp_destroy_lock_30): Ditto.
5071 (gomp_set_lock_30): Ditto.
5072 (gomp_unset_lock_30): Ditto.
5073 (gomp_test_lock_30): Ditto.
5074 (gomp_init_nest_lock_30): Ditto.
5075 (gomp_destroy_nest_lock_30): Ditto.
5076 (gomp_set_nest_lock_30): Ditto.
5077 (gomp_unset_nest_lock_30): Ditto.
5078 (gomp_test_nest_lock_30): Ditto.
5080 * config/nvptx/lock.c: New.
5081 * config/nvptx/bar.c: New.
5082 * config/nvptx/bar.h: New.
5083 * config/nvptx/doacross.h: New.
5084 * config/nvptx/error.c: New.
5085 * config/nvptx/icv-device.c: New.
5086 * config/nvptx/mutex.h: New.
5087 * config/nvptx/pool.h: New.
5088 * config/nvptx/proc.c: New.
5089 * config/nvptx/ptrlock.h: New.
5090 * config/nvptx/sem.h: New.
5091 * config/nvptx/simple-bar.h: New.
5092 * config/nvptx/target.c: New.
5093 * config/nvptx/task.c: New.
5094 * config/nvptx/team.c: New.
5095 * config/nvptx/time.c: New.
5096 * config/posix/simple-bar.h: New.
5097 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5098 (gomp_num_teams_var): Declare.
5099 (struct gomp_thread_pool): Change threads_dock member to
5100 gomp_simple_barrier_t.
5101 [__nvptx__] (gomp_thread): New implementation.
5102 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5103 (gomp_thread_destructor): Ditto.
5104 (gomp_init_thread_affinity): Ditto.
5105 * team.c: Guard uses of Pthreads-specific interfaces by
5106 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5107 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5108 * config/nvptx/alloc.c: Delete.
5109 * config/nvptx/barrier.c: Ditto.
5110 * config/nvptx/fortran.c: Ditto.
5111 * config/nvptx/iter.c: Ditto.
5112 * config/nvptx/iter_ull.c: Ditto.
5113 * config/nvptx/loop.c: Ditto.
5114 * config/nvptx/loop_ull.c: Ditto.
5115 * config/nvptx/ordered.c: Ditto.
5116 * config/nvptx/parallel.c: Ditto.
5117 * config/nvptx/priority_queue.c: Ditto.
5118 * config/nvptx/sections.c: Ditto.
5119 * config/nvptx/single.c: Ditto.
5120 * config/nvptx/splay-tree.c: Ditto.
5121 * config/nvptx/work.c: Ditto.
5122 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5123 -foffload=-lgfortran in addition to -lgfortran.
5124 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5125 * plugin/plugin-nvptx.c: Include <limits.h>.
5126 (struct targ_fn_descriptor): Add new fields.
5127 (struct ptx_device): Ditto. Set them...
5128 (nvptx_open_device): ...here.
5129 (nvptx_adjust_launch_bounds): New.
5130 (nvptx_host2dev): Allow NULL 'nvthd'.
5131 (nvptx_dev2host): Ditto.
5132 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5133 (link_ptx): Adjust log sizes.
5134 (nvptx_host2dev): Allow NULL 'nvthd'.
5135 (nvptx_dev2host): Ditto.
5136 (nvptx_set_clocktick): New. Use it...
5137 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5139 (GOMP_OFFLOAD_dev2dev): New.
5140 (nvptx_adjust_launch_bounds): New.
5141 (nvptx_stacks_size): New.
5142 (nvptx_stacks_alloc): New.
5143 (nvptx_stacks_free): New.
5144 (GOMP_OFFLOAD_run): New.
5145 (GOMP_OFFLOAD_async_run): New (stub).
5147 2016-11-23 Martin Jambor <mjambor@suse.cz>
5149 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5150 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5151 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5153 2016-11-23 Martin Liska <mliska@suse.cz>
5154 Martin Jambor <mjambor@suse.cz>
5156 * plugin/hsa.h: New file.
5157 * plugin/hsa_ext_finalize.h: New file.
5158 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5159 header file unistd.h, and functions secure_getenv, __secure_getenv,
5160 getuid, geteuid, getgid and getegid.
5161 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5163 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5164 Handle various cases of secure_getenv presence, add an implementation
5165 when we can test effective UID and GID.
5166 (struct hsa_runtime_fn_info): New structure.
5167 (hsa_runtime_fn_info hsa_fns): New variable.
5168 (hsa_runtime_lib): Likewise.
5169 (support_cpu_devices): Likewise.
5170 (init_enviroment_variables): Load newly introduced ENV
5172 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5173 (hsa_fatal): Likewise.
5174 (DLSYM_FN): New macro.
5175 (init_hsa_runtime_functions): New function.
5176 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5177 structure. Depending on environment, also allow CPU devices.
5178 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5179 (get_kernarg_memory_region): Likewise.
5180 (GOMP_OFFLOAD_init_device): Likewise.
5181 (destroy_hsa_program): Likewise.
5182 (init_basic_kernel_info): New function.
5183 (GOMP_OFFLOAD_load_image): Use it.
5184 (create_and_finalize_hsa_program): Call hsa run-time functions via
5186 (create_single_kernel_dispatch): Likewise.
5187 (release_kernel_dispatch): Likewise.
5188 (init_single_kernel): Likewise.
5189 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5190 (get_group_size): New function.
5191 (run_kernel): Likewise.
5192 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5193 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5195 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5196 * testsuite/libgomp-test-support.exp.in: Likewise.
5197 * Makefile.in: Regenerated.
5198 * aclocal.m4: Likewise.
5199 * config.h.in: Likewise.
5200 * configure: Likewise.
5201 * testsuite/Makefile.in: Likewise.
5203 2016-11-15 Martin Jambor <mjambor@suse.cz>
5204 Alexander Monakov <amonakov@ispras.ru>
5206 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5207 mapping clauses to target constructs.
5208 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5210 2016-11-15 Matthias Klose <doko@ubuntu.com>
5212 * configure: Regenerate.
5214 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5216 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5217 * omp_lib.h.in (openmp_version): Likewise.
5218 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5220 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5222 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5223 (fib_wrapper): Add map(from: x) clause.
5224 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5226 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5227 (accum): Add map(tmp) clause.
5228 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5229 (accum): Add map(tofrom: tmp) clause.
5230 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5231 (gramSchmidt): Likewise.
5232 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5233 map(tofrom: sum) clause.
5234 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5235 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5236 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5237 only allowed on the loop iterator.
5238 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5239 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5240 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5241 * testsuite/libgomp.fortran/doacross1.f90: New test.
5242 * testsuite/libgomp.fortran/doacross3.f90: New test.
5243 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5244 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5245 * testsuite/libgomp.fortran/doacross2.f90: New test.
5246 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5247 #pragma omp atomic read.
5248 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5249 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5251 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5252 Nathan Sidwell <nathan@acm.org>
5254 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5255 to determine default geometry.
5256 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5259 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5261 * hashtab.h: Use standard GPLv3 with runtime exception
5264 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5266 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5267 size when allocating new thread.
5269 2016-09-14 Marek Polacek <polacek@redhat.com>
5271 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5273 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5276 * testsuite/libgomp.fortran/pr71014.f90: New test.
5278 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5281 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5282 firstprivate clauses.
5283 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5285 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5287 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5298 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5301 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5303 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5306 * testsuite/libgomp.c++/pr58706.C: New test.
5308 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5310 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5311 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5312 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5314 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5315 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5317 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5319 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5320 test, and don't hardcode -O0.
5322 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5324 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5326 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5328 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5331 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5334 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5335 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5337 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5340 * testsuite/libgomp.fortran/associate3.f90: New test.
5342 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5344 * testsuite/libgomp.c++/target-21.C: New test.
5346 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5348 * testsuite/libgomp.c++/target-20.C: New test.
5350 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5351 Cesar Philippidis <cesar@codesourcery.com>
5354 * libgomp.oacc-c/nested-function-1.c: New file.
5355 * libgomp.oacc-c/nested-function-2.c: Likewise.
5356 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5357 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5358 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5360 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5363 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5364 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5365 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5367 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5369 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5370 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5372 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5375 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5377 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5379 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5380 instead of invalid schedule(static, 0).
5381 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5383 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5385 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5386 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5387 parameter, use to set async stream around call to gomp_unmap_vars,
5388 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5389 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5390 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5391 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5392 (event_add): Add int parameter, initialize 'val' field when
5393 adding new ptx_event struct.
5394 (nvptx_evec): Adjust event_add() call arguments.
5395 (nvptx_host2dev): Likewise.
5396 (nvptx_dev2host): Likewise.
5397 (nvptx_wait_async): Likewise.
5398 (nvptx_wait_all_async): Likewise.
5399 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5400 pass to event_add() call.
5401 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5403 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5404 call openacc.register_async_cleanup_func() hook.
5405 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5406 * target.c (gomp_copy_from_async): Delete function.
5407 (gomp_map_vars): Remove async_refcount.
5408 (gomp_unmap_vars): Likewise.
5409 (gomp_load_image_to_device): Likewise.
5410 (omp_target_associate_ptr): Likewise.
5411 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5412 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5413 (gomp_copy_from_async): Remove.
5415 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5417 * target.c (gomp_device_copy): New function.
5418 (gomp_copy_host2dev): Likewise.
5419 (gomp_copy_dev2host): Likewise.
5420 (gomp_free_device_memory): Likewise.
5421 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5422 (gomp_map_pointer): Likewise.
5423 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5424 NULL value from alloc_func plugin hook.
5425 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5426 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5427 (gomp_unmap_vars): Likewise.
5428 (gomp_update): Adjust to call gomp_copy_dev2host and
5429 gomp_copy_host2dev functions.
5430 (gomp_unload_image_from_device): Handle false value from
5431 unload_image_func plugin hook.
5432 (gomp_init_device): Handle false value from init_device_func
5434 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5435 (omp_target_free): Adjust to call gomp_free_device_memory.
5436 (omp_target_memcpy): Handle return values from host2dev_func,
5437 dev2host_func, and dev2dev_func plugin hooks.
5438 (omp_target_memcpy_rect_worker): Likewise.
5439 (gomp_target_fini): Handle false value from fini_device_func
5441 * libgomp.h (struct gomp_device_descr): Adjust return type of
5442 init_device_func, fini_device_func, unload_image_func, free_func,
5443 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5444 * oacc-init.c (acc_shutdown_1): Handle false value from
5445 fini_device_func plugin hook.
5446 * oacc-host.c (host_init_device): Change return type to bool.
5447 (host_fini_device): Likewise.
5448 (host_unload_image): Likewise.
5449 (host_free): Likewise.
5450 (host_dev2host): Likewise.
5451 (host_host2dev): Likewise.
5452 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5453 (acc_memcpy_to_device): Likewise.
5454 (acc_memcpy_from_device): Likewise.
5455 (delete_copyout): Add libfnname parameter, handle free_func
5456 hook fatal error case.
5457 (acc_delete): Adjust delete_copyout call.
5458 (acc_copyout): Likewise.
5459 (update_dev_host): Move gomp_mutex_unlock to after
5460 host2dev/dev2host hook calls.
5462 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5463 to 'hsa_error_msg', for clarity.
5464 (hsa_fatal): Likewise.
5465 (hsa_error): New function.
5466 (init_hsa_context): Change return type to bool, adjust to return
5468 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5470 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5471 return false on error.
5472 (get_agent_info): Adjust to return NULL on error.
5473 (destroy_hsa_program): Change return type to bool, adjust to
5474 return false on error.
5475 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5476 (destroy_module): Change return type to bool, adjust to
5477 return false on error.
5478 (GOMP_OFFLOAD_unload_image): Likewise.
5479 (GOMP_OFFLOAD_fini_device): Likewise.
5480 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5481 (GOMP_OFFLOAD_free): Change to return false when called.
5482 (GOMP_OFFLOAD_dev2host): Likewise.
5483 (GOMP_OFFLOAD_host2dev): Likewise.
5484 (GOMP_OFFLOAD_dev2dev): Likewise.
5486 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5487 (CUDA_CALL): Likewise.
5488 (CUDA_CALL_ASSERT): Likewise.
5489 (map_init): Change return type to bool, use CUDA_CALL* macros.
5490 (map_fini): Likewise.
5491 (init_streams_for_device): Change return type to bool, adjust
5493 (fini_streams_for_device): Change return type to bool, adjust
5495 (select_stream_for_async): Release stream_lock before calls to
5496 GOMP_PLUGIN_fatal, adjust call to map_init.
5497 (nvptx_init): Use CUDA_CALL* macros.
5498 (nvptx_attach_host_thread_to_device): Change return type to bool,
5499 use CUDA_CALL* macros.
5500 (nvptx_open_device): Use CUDA_CALL* macros.
5501 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5503 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5504 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5505 (nvptx_exec): Use CUDA_CALL* macros.
5506 (nvptx_alloc): Use CUDA_CALL* macros.
5507 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5508 (nvptx_host2dev): Likewise.
5509 (nvptx_dev2host): Likewise.
5510 (nvptx_wait): Use CUDA_CALL* macros.
5511 (nvptx_wait_async): Likewise.
5512 (nvptx_wait_all): Likewise.
5513 (nvptx_wait_all_async): Likewise.
5514 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5515 use CUDA_CALL* macros, adjust call to map_fini.
5516 (GOMP_OFFLOAD_init_device): Change return type to bool,
5517 adjust code accordingly.
5518 (GOMP_OFFLOAD_fini_device): Likewise.
5519 (GOMP_OFFLOAD_load_image): Adjust calls to
5520 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5521 use CUDA_CALL* macros.
5522 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5524 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5525 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5526 handle error return.
5527 (GOMP_OFFLOAD_dev2host): Likewise.
5528 (GOMP_OFFLOAD_host2dev): Likewise.
5529 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5530 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5532 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5534 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5535 (acc_free): Likewise.
5536 (acc_memcpy_to_device): Likewise.
5537 (acc_memcpy_from_device): Likewise.
5538 (acc_deviceptr): Likewise.
5539 (acc_hostptr): Likewise.
5540 (acc_is_present): Likewise.
5541 (acc_map_data): Likewise.
5542 (acc_unmap_data): Likewise.
5543 (present_create_copy): Likewise.
5544 (delete_copyout): Likewise.
5545 (update_dev_host): Likewise.
5546 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5547 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5548 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5549 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5551 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5552 it only runs on nvptx targets.
5553 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5559 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5561 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5563 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5564 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5566 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5567 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5568 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5569 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5570 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5571 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5572 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5573 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5574 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5577 2016-05-23 Martin Jambor <mjambor@suse.cz>
5579 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5581 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5583 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5584 to gomp_init_targets_once.
5585 (acc_set_device_type): Remove !cached_base_dev condition on call to
5586 gomp_init_targets_once, move call to before acc_device_lock acquire,
5588 (acc_get_device_num): Remove !cached_base_dev condition on call to
5589 gomp_init_targets_once.
5590 (acc_set_device_num): Likewise.
5592 2016-05-16 Martin Jambor <mjambor@suse.cz>
5594 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5596 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5598 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5599 expected partitioning.
5601 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5604 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5605 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5606 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5608 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5610 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5613 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5616 * testsuite/libgomp.c/pr70680-1.c: New test.
5617 * testsuite/libgomp.c/pr70680-2.c: New test.
5619 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5621 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5622 pass parameter variables to subroutines.
5624 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5627 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5629 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5632 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5633 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5635 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5637 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5638 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5639 GOACC_declare prototype.
5641 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5642 Merge this file, and...
5643 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5644 ... this file, and...
5645 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5646 ... this file, and...
5647 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5648 ... this file, and...
5649 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5650 ... this file, and...
5651 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5652 ... this file, and...
5653 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5654 ... this file, and...
5655 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5656 ... this file, and...
5657 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5658 ... this file, and...
5659 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5660 ... this file, and...
5661 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5662 ... this file, and...
5663 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5664 ... this file, and...
5665 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5666 ... this file into...
5667 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5670 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5671 Make failure observable.
5673 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5675 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5677 * target.c (gomp_target_fallback_firstprivate,
5678 gomp_target_unshare_firstprivate): Removed.
5679 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5680 before waiting for dependencies.
5681 (gomp_target_task_fn): Don't copy firstprivate vars here.
5682 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5683 firstprivate_copies here.
5684 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5685 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5686 explicit/implicit firstprivate.
5688 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5692 PR tree-optimization/70373
5696 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5698 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5700 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5702 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5704 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5706 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5708 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5710 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5712 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5714 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5715 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5716 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5717 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5719 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5721 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5723 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5725 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5727 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5728 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5729 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5730 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5731 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5732 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5734 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5735 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5736 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5737 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5738 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5739 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5740 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5741 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5742 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5743 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5744 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5745 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5746 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5747 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5748 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5750 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5751 James Norris <jnorris@codesourcery.com>
5752 Nathan Sidwell <nathan@codesourcery.com>
5753 Julian Brown <julian@codesourcery.com>
5754 Cesar Philippidis <cesar@codesourcery.com>
5755 Chung-Lin Tang <cltang@codesourcery.com>
5756 Tom de Vries <tom@codesourcery.com>
5758 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5759 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5760 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5761 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5762 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5763 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5764 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5765 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5766 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5768 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5770 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5772 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5773 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5777 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5779 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5781 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5782 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5783 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5784 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5785 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5786 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5787 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5788 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5790 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5791 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5792 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5794 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5796 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5798 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5800 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5802 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5803 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5804 ... this new file. Update.
5805 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5806 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5807 ... this new file. Update.
5808 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5809 file. Incorporate...
5810 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5812 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5814 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5816 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5818 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5820 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5821 set-torture-options.
5823 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5825 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5827 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5828 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5829 -fno-builtin-acc_on_device instead of -O0.
5830 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5832 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5833 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5835 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5836 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5837 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5840 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5841 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5842 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5843 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5844 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5845 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5846 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5847 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5848 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5849 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5850 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5851 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5852 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5854 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5856 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5859 2016-03-24 Martin Liska <mliska@suse.cz>
5861 * plugin/plugin-hsa.c (packet_store_release): New function
5862 that is taken from the HSA runtime manual.
5863 (GOMP_OFFLOAD_run): Use the function.
5865 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5868 * testsuite/libgomp.c++/pr70376.C: New test.
5870 2016-03-23 Tom de Vries <tom@codesourcery.com>
5872 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5873 initialization of lresult and lvresult.
5874 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5876 2016-03-23 James Norris <jnorris@codesourcery.com>
5877 Daichi Fukuoka <dc-fukuoka@sgi.com>
5880 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5881 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5882 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5883 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5885 2016-03-23 Martin Liska <mliska@suse.cz>
5888 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5889 argument just in case a dispatched kernel uses that argument.
5891 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5893 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5894 -ftree-parallelize-loops/-fopenacc changes.
5895 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5897 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5899 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5901 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5903 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5904 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5906 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5908 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5909 always_ld_library_path the path to libgcc_s.
5911 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5914 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5916 2016-03-09 Tom de Vries <tom@codesourcery.com>
5918 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5919 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5920 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5922 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5923 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5924 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5925 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5927 2016-03-07 Martin Jambor <mjambor@suse.cz>
5929 * testsuite/lib/libgomp.exp
5930 (check_effective_target_hsa_offloading_selected_nocache): New.
5931 (check_effective_target_hsa_offloading_selected): Likewise.
5932 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5933 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5934 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5935 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5936 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5937 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5938 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5939 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5940 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5941 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5942 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5943 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5944 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5945 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5946 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5947 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5948 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5950 2016-03-07 Martin Jambor <mjambor@suse.cz>
5952 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5953 non-shared memory accelerators.
5954 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5955 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5956 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5957 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5958 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5959 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5960 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5961 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5962 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5964 2016-03-07 Martin Jambor <mjambor@suse.cz>
5966 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5969 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5972 * testsuite/libgomp.c++/pr69555-1.C: New test.
5973 * testsuite/libgomp.c++/pr69555-2.C: New test.
5975 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5976 Martin Jambor <mjambor@suse.cz>
5978 * testsuite/lib/libgomp.exp
5979 (check_effective_target_offload_device_shared_as): New proc.
5980 * testsuite/libgomp.c++/declare_target-1.C: New test.
5982 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5985 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5987 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5989 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5990 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5992 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5993 -ftree-parallelize-loops/-fopenacc changes.
5994 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5995 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5997 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5999 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6001 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6003 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6005 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6007 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6009 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6010 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6012 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6013 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6015 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6016 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6019 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6021 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6023 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6026 * testsuite/libgomp.c/pr69805.c: New test.
6028 2016-02-16 Tom de Vries <tom@codesourcery.com>
6031 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6033 2016-02-09 Tom de Vries <tom@codesourcery.com>
6035 PR tree-optimization/69599
6036 * testsuite/libgomp.c/omp-nested-3.c: New test.
6037 * testsuite/libgomp.c/pr46032-2.c: New test.
6038 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6039 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6041 2016-02-09 Tom de Vries <tom@codesourcery.com>
6044 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6046 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6048 * testsuite/libgomp.c/target-31.c: Fix testcase.
6050 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6052 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6054 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6055 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6056 reduction and map clauses.
6057 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6059 2016-02-02 James Norris <jnorris@codesourcery.com>
6061 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6063 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6065 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6066 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6068 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6071 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6073 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6074 (hsa_kmt_lib): Set variables.
6075 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6076 always_ld_library_path.
6077 * Makefile.in: Regenerate.
6078 * configure: Likewise.
6079 * testsuite/Makefile.in: Likewise.
6081 * plugin/configfrag.ac (offload_additional_options)
6082 (offload_additional_lib_paths): Don't amend for hsa offloading.
6083 * configure: Regenerate.
6085 * plugin/configfrag.ac: Don't configure for offloading target if
6086 we don't build the corresponding plugin.
6087 * configure: Regenerate.
6089 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6091 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6092 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6094 2016-01-26 Tom de Vries <tom@codesourcery.com>
6096 PR tree-optimization/69110
6097 * testsuite/libgomp.c/pr69110.c: New test.
6099 2016-01-25 Richard Biener <rguenther@suse.de>
6102 * testsuite/libgomp.c++/pr69393.C: New testcase.
6104 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6106 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6107 function wasn't mapped to the device with non-shared memory.
6109 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6111 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6113 2016-01-19 Martin Jambor <mjambor@suse.cz>
6114 Martin Liska <mliska@suse.cz>
6116 * plugin/Makefrag.am: Add HSA plugin requirements.
6117 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6118 (HSA_RUNTIME_LIB): Likewise.
6119 (HSA_RUNTIME_CPPFLAGS): Likewise.
6120 (HSA_RUNTIME_INCLUDE): New substitution.
6121 (HSA_RUNTIME_LIB): Likewise.
6122 (HSA_RUNTIME_LDFLAGS): Likewise.
6123 (hsa-runtime): New configure option.
6124 (hsa-runtime-include): Likewise.
6125 (hsa-runtime-lib): Likewise.
6126 (PLUGIN_HSA): New substitution variable.
6127 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6129 (PLUGIN_HSA_CPPFLAGS): Likewise.
6130 (PLUGIN_HSA_LDFLAGS): Likewise.
6131 (PLUGIN_HSA_LIBS): Likewise.
6132 Check that we have access to HSA run-time.
6133 * libgomp-plugin.h (offload_target_type): New element
6134 OFFLOAD_TARGET_TYPE_HSA.
6135 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6137 (bool gomp_create_target_task): Updated.
6138 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6139 new field can_run_func.
6140 * libgomp_g.h (GOMP_target_ext): Update prototype.
6141 * oacc-host.c (host_run): Added a new parameter args.
6142 * target.c (calculate_firstprivate_requirements): New function.
6143 (copy_firstprivate_data): Likewise.
6144 (gomp_target_fallback_firstprivate): Use them.
6145 (gomp_target_unshare_firstprivate): New function.
6146 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6148 (GOMP_target): Do host fallback for all shared memory devices. Do not
6149 pass any args to plugins.
6150 (GOMP_target_ext): Introduce device-specific argument parameter args.
6151 Allow host fallback if device shares memory. Do not remap data if
6152 device has shared memory.
6153 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6154 like host fallback for mappings.
6155 (GOMP_target_data): Treat shared memory devices like host fallback.
6156 (GOMP_target_data_ext): Likewise.
6157 (GOMP_target_update): Likewise.
6158 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6159 gomp_create_target_task.
6160 (GOMP_target_enter_exit_data): Likewise.
6161 (omp_target_alloc): Treat shared memory devices like host fallback.
6162 (omp_target_free): Likewise.
6163 (omp_target_is_present): Likewise.
6164 (omp_target_memcpy): Likewise.
6165 (omp_target_memcpy_rect): Likewise.
6166 (omp_target_associate_ptr): Likewise.
6167 (gomp_load_plugin_for_device): Also load can_run.
6168 * task.c (GOMP_PLUGIN_target_task_completion): Free
6169 firstprivate_copies.
6170 (gomp_create_target_task): Accept new argument args and store it to
6172 * plugin/plugin-hsa.c: New file.
6174 2016-01-18 Tom de Vries <tom@codesourcery.com>
6176 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6177 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6178 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6179 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6180 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6181 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6182 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6183 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6184 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6185 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6186 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6188 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6190 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6191 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6192 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6193 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6194 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6195 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6196 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6197 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6199 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6201 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6203 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6205 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6207 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6209 2016-01-12 James Norris <jnorris@codesourcery.com>
6211 * libgomp.texi: Updates for OpenACC.
6213 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6215 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6217 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6220 * testsuite/libgomp.fortran/pr66680.f90: New test.
6222 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6225 * testsuite/libgomp.c/pr68960.c: New test.
6227 2016-01-06 Nathan Sidwell <nathan@acm.org>
6229 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6230 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6232 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6234 Update copyright years.
6236 * libgomp.texi: Bump @copying's copyright year.
6238 2015-12-31 Nathan Sidwell <nathan@acm.org>
6240 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6241 dg-additional-options syntax.
6242 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6245 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6246 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6247 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6258 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6259 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6261 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6263 * libgomp.h (REFCOUNT_LINK): Define.
6264 (struct splay_tree_key_s): Add link_key.
6265 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6266 Replace target address of the pointer with target address of newly
6267 mapped object in the splay tree. Set link pointer on target to the
6268 device address of the mapped object.
6269 (gomp_unmap_vars): Restore target address of the pointer in the splay
6270 tree for REFCOUNT_LINK objects after unmapping.
6271 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6272 declare target link" objects.
6273 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6274 "omp declare target link" objects, which were mapped for the image.
6275 (gomp_exit_data): Restore target address of the pointer in the splay
6276 tree for REFCOUNT_LINK objects after unmapping.
6277 * testsuite/libgomp.c/target-link-1.c: New file.
6279 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6281 * libgomp.h (gomp_device_state): New enum.
6282 (struct gomp_device_descr): Replace is_initialized with state.
6283 (gomp_fini_device): Remove declaration.
6284 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6285 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6286 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6287 (acc_set_device_type): Use state instead of is_initialized.
6288 (acc_set_device_num): Likewise.
6289 * target.c (resolve_device): Use state instead of is_initialized.
6290 Do not initialize finalized device.
6291 (gomp_map_vars): Do nothing if device is finalized.
6292 (gomp_unmap_vars): Likewise.
6293 (gomp_update): Likewise.
6294 (GOMP_offload_register_ver): Use state instead of is_initialized.
6295 (GOMP_offload_unregister_ver): Likewise.
6296 (gomp_init_device): Likewise.
6297 (gomp_unload_device): Likewise.
6298 (gomp_fini_device): Remove.
6299 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6300 (GOMP_target): Go to host fallback if device is finalized.
6301 (GOMP_target_ext): Likewise.
6302 (gomp_exit_data): Do nothing if device is finalized.
6303 (gomp_target_task_fn): Go to host fallback if device is finalized.
6304 (gomp_target_fini): New static function.
6305 (gomp_target_init): Use state instead of is_initialized.
6306 Call gomp_target_fini at exit.
6308 2015-12-09 Tom de Vries <tom@codesourcery.com>
6310 PR tree-optimization/68716
6311 * testsuite/libgomp.c/omp-nested-2.c: New test.
6313 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6315 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6316 target openacc_nvidia_accel_selected.
6317 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6320 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6322 2015-12-01 Julian Brown <julian@codesourcery.com>
6323 James Norris <James_Norris@mentor.com>
6325 * oacc-parallel.c (GOACC_host_data): New function.
6326 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6327 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6328 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6329 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6330 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6331 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6332 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6334 2015-11-30 James Norris <jnorris@codesourcery.com>
6335 Cesar Philippidis <cesar@codesourcery.com>
6338 * libgomp.oacc-fortran/routine-5.f90: New test.
6339 * libgomp.oacc-fortran/routine-7.f90: New test.
6340 * libgomp.oacc-fortran/routine-9.f90: New test.
6342 2015-11-30 Tom de Vries <tom@codesourcery.com>
6344 PR tree-optimization/46032
6345 * testsuite/libgomp.c/pr46032.c: New test.
6347 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6350 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6351 (gomp_create_target_task): Call it before freeing
6352 GOMP_TARGET_TASK_DATA tasks.
6355 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6356 in between case label and OpenMP standalone directives.
6357 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6359 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6361 * configure: Regenerate.
6363 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6365 * testsuite/libgomp.c/target-35.c: New test.
6367 2015-11-22 James Norris <jnorris@codesourcery.com>
6368 Cesar Philippidis <cesar@codesourcery.com>
6370 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6371 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6372 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6373 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6374 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6376 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6379 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6380 * testsuite/libgomp.c/reduction-12.c: Likewise.
6381 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6382 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6384 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6386 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6387 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6388 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6389 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6390 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6392 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6393 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6395 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6397 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6398 worker & gang cases.
6399 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6401 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6403 * config/nvptx/priority_queue.c: New file.
6405 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6407 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6410 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6411 Aldy Hernandez <aldyh@redhat.com>
6412 Ilya Verbin <ilya.verbin@intel.com>
6414 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6415 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6416 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6417 iterators or IV by chunk size.
6418 * parallel.c (gomp_resolve_num_threads): Don't assume that
6419 if thr->ts.team is non-NULL, then pool must be non-NULL.
6420 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6421 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6422 GOMP_PLUGIN_target_task_completion.
6423 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6424 * Makefile.in: Regenerate.
6425 * libgomp.h: Shuffle prototypes and forward definitions around so
6426 priority queues can be defined.
6427 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6428 (enum gomp_target_task_state): New enum.
6429 (struct gomp_target_task): Add state, tgt, task and team fields.
6430 (gomp_create_target_task): Change return type to bool, add
6432 (gomp_target_task_fn): Change return type to bool.
6433 (struct gomp_device_descr): Add async_run_func.
6434 (struct gomp_task): Remove children, next_child, prev_child,
6435 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6437 (struct gomp_taskgroup): Remove children.
6438 Add taskgroup_queue.
6439 (struct gomp_team): Change task_queue type to a priority queue.
6440 (splay_compare): Define inline.
6441 (priority_queue_offset): New.
6442 (priority_node_to_task): New.
6443 (task_to_priority_node): New.
6444 * oacc-mem.c: Do not include splay-tree.h.
6445 * priority_queue.c: New file.
6446 * priority_queue.h: New file.
6447 * splay-tree.c: Do not include splay-tree.h.
6448 (splay_tree_foreach_internal): New.
6449 (splay_tree_foreach): New.
6450 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6451 (splay_tree_callback): Define typedef.
6452 * target.c (splay_compare): Move to libgomp.h.
6453 (GOMP_target): Don't adjust *thr in any way around running offloaded
6455 (GOMP_target_ext): Likewise. Handle target nowait.
6456 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6457 return value from gomp_create_target_task, if false, fallthrough
6458 as if no dependencies exist.
6459 (gomp_target_task_fn): Change return type to bool, return true
6460 if the task should have another part scheduled later. Handle
6462 (gomp_load_plugin_for_device): Initialize async_run.
6463 * task.c (gomp_init_task): Initialize children_queue.
6464 (gomp_clear_parent_in_list): New.
6465 (gomp_clear_parent_in_tree): New.
6466 (gomp_clear_parent): Handle priorities.
6467 (GOMP_task): Likewise.
6468 (priority_queue_move_task_first,
6469 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6471 (gomp_create_target_task): Use priority queues. Change return type
6472 to bool, add state argument, return false if for async
6473 {{enter,exit} data,update} constructs no dependencies need to be
6474 waited for, handle target nowait. Set task->fn to NULL instead of
6475 gomp_target_task_fn.
6476 (verify_children_queue): Remove.
6477 (priority_list_upgrade_task): New.
6478 (priority_queue_upgrade_task): New.
6479 (verify_task_queue): Remove.
6480 (priority_list_downgrade_task): New.
6481 (priority_queue_downgrade_task): New.
6482 (gomp_task_run_pre): Use priority queues.
6483 Abstract code out to priority_queue_downgrade_task.
6484 (gomp_task_run_post_handle_dependers): Use priority queues.
6485 (gomp_task_run_post_remove_parent): Likewise.
6486 (gomp_task_run_post_remove_taskgroup): Likewise.
6487 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6489 (GOMP_taskwait): Likewise.
6490 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6491 priority-queue_upgrade_task.
6492 (GOMP_taskgroup_start): Use priority queues.
6493 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6494 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6496 * taskloop.c (GOMP_taskloop): Handle priorities.
6497 * team.c (gomp_new_team): Call priority_queue_init.
6498 (free_team): Call priority_queue_free.
6499 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6500 team created for target nowait in implicit parallel region.
6501 (gomp_team_start): For nested check, test thr->ts.level instead of
6502 thr->ts.team != NULL.
6503 * testsuite/libgomp.c/doacross-3.c: New test.
6504 * testsuite/libgomp.c/ordered-5.c: New test.
6505 * testsuite/libgomp.c/priority.c: New test.
6506 * testsuite/libgomp.c/target-31.c: New test.
6507 * testsuite/libgomp.c/target-32.c: New test.
6508 * testsuite/libgomp.c/target-33.c: New test.
6509 * testsuite/libgomp.c/target-34.c: New test.
6511 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6513 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6515 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6518 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6520 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6521 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6523 2015-11-12 James Norris <jnorris@codesourcery.com>
6524 Joseph Myers <joseph@codesourcery.com>
6526 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6527 * oacc-parallel.c (GOACC_declare): New function.
6528 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6529 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6530 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6531 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6532 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6534 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6536 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6538 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6540 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6541 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6543 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6545 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6548 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6550 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6551 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6552 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6553 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6554 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6556 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6558 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6559 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6561 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6562 Ilya Verbin <ilya.verbin@intel.com>
6564 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6565 GOMP_loop_nonmonotonic_dynamic_start,
6566 GOMP_loop_nonmonotonic_guided_next,
6567 GOMP_loop_nonmonotonic_guided_start,
6568 GOMP_loop_ull_nonmonotonic_dynamic_next,
6569 GOMP_loop_ull_nonmonotonic_dynamic_start,
6570 GOMP_loop_ull_nonmonotonic_guided_next,
6571 GOMP_loop_ull_nonmonotonic_guided_start,
6572 GOMP_parallel_loop_nonmonotonic_dynamic,
6573 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6574 (GOMP_target_41): Renamed to ...
6575 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6577 (GOMP_target_data_41): Renamed to ...
6578 (GOMP_target_data_ext): ... this.
6579 (GOMP_target_update_41): Renamed to ...
6580 (GOMP_target_update_ext): ... this.
6581 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6582 GOMP_target_data_ext and GOMP_target_update_ext instead of
6583 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6584 Export GOMP_loop_nonmonotonic_dynamic_next,
6585 GOMP_loop_nonmonotonic_dynamic_start,
6586 GOMP_loop_nonmonotonic_guided_next,
6587 GOMP_loop_nonmonotonic_guided_start,
6588 GOMP_loop_ull_nonmonotonic_dynamic_next,
6589 GOMP_loop_ull_nonmonotonic_dynamic_start,
6590 GOMP_loop_ull_nonmonotonic_guided_next,
6591 GOMP_loop_ull_nonmonotonic_guided_start,
6592 GOMP_parallel_loop_nonmonotonic_dynamic and
6593 GOMP_parallel_loop_nonmonotonic_guided.
6594 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6595 GOMP_parallel_loop_nonmonotonic_guided,
6596 GOMP_loop_nonmonotonic_dynamic_start,
6597 GOMP_loop_nonmonotonic_guided_start,
6598 GOMP_loop_nonmonotonic_dynamic_next,
6599 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6600 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6601 GOMP_loop_ull_nonmonotonic_guided_start,
6602 GOMP_loop_ull_nonmonotonic_dynamic_next,
6603 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6604 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6606 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6607 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6608 Use gomp_map_val function.
6609 (gomp_target_fallback_firstprivate): New static function.
6610 (GOMP_target_41): Renamed to ...
6611 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6612 arguments. Move firstprivate fallback handling into a new
6614 (GOMP_target_data_41): Renamed to ...
6615 (GOMP_target_data_ext): ... this.
6616 (GOMP_target_update_41): Renamed to ...
6617 (GOMP_target_update_ext): ... this.
6618 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6619 gomp_map_0len_lookup instead of gomp_map_lookup.
6620 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6622 * testsuite/libgomp.c/target-28.c: Likewise.
6623 * testsuite/libgomp.c/monotonic-1.c: New test.
6624 * testsuite/libgomp.c/monotonic-2.c: New test.
6625 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6626 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6627 * testsuite/libgomp.c/pr66199-5.c: New test.
6628 * testsuite/libgomp.c/pr66199-6.c: New test.
6629 * testsuite/libgomp.c/pr66199-7.c: New test.
6630 * testsuite/libgomp.c/pr66199-8.c: New test.
6631 * testsuite/libgomp.c/pr66199-9.c: New test.
6632 * testsuite/libgomp.c/reduction-11.c: New test.
6633 * testsuite/libgomp.c/reduction-12.c: New test.
6634 * testsuite/libgomp.c/reduction-13.c: New test.
6635 * testsuite/libgomp.c/reduction-14.c: New test.
6636 * testsuite/libgomp.c/reduction-15.c: New test.
6637 * testsuite/libgomp.c/target-12.c (main): Adjust for
6638 omp_target_is_present change for one-past-last element.
6639 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6640 the same var is both mapped and privatized.
6641 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6642 handling of zero-length array sections.
6643 * testsuite/libgomp.c/target-28.c: New test.
6644 * testsuite/libgomp.c/target-29.c: New test.
6645 * testsuite/libgomp.c/target-30.c: New test.
6646 * testsuite/libgomp.c/target-teams-1.c: New test.
6647 * testsuite/libgomp.c++/member-6.C: New test.
6648 * testsuite/libgomp.c++/member-7.C: New test.
6649 * testsuite/libgomp.c++/monotonic-1.C: New test.
6650 * testsuite/libgomp.c++/monotonic-2.C: New test.
6651 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6652 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6653 * testsuite/libgomp.c++/pr66199-3.C: New test.
6654 * testsuite/libgomp.c++/pr66199-4.C: New test.
6655 * testsuite/libgomp.c++/pr66199-5.C: New test.
6656 * testsuite/libgomp.c++/pr66199-6.C: New test.
6657 * testsuite/libgomp.c++/pr66199-7.C: New test.
6658 * testsuite/libgomp.c++/pr66199-8.C: New test.
6659 * testsuite/libgomp.c++/pr66199-9.C: New test.
6660 * testsuite/libgomp.c++/reduction-11.C: New test.
6661 * testsuite/libgomp.c++/reduction-12.C: New test.
6662 * testsuite/libgomp.c++/target-13.C: New test.
6663 * testsuite/libgomp.c++/target-14.C: New test.
6664 * testsuite/libgomp.c++/target-15.C: New test.
6665 * testsuite/libgomp.c++/target-16.C: New test.
6666 * testsuite/libgomp.c++/target-17.C: New test.
6667 * testsuite/libgomp.c++/target-18.C: New test.
6668 * testsuite/libgomp.c++/target-19.C: New test.
6670 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6672 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6674 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6675 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6676 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6677 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6678 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6679 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6680 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6681 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6682 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6683 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6684 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6685 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6686 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6687 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6689 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6691 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6692 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6693 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6694 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6695 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6696 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6697 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6698 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6700 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6702 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6703 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6704 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6705 * oacc-host.c (host_openacc_exec): Likewise.
6706 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6708 2015-11-03 Julian Brown <julian@codesourcery.com>
6709 Thomas Schwinge <thomas@codesourcery.com>
6711 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6712 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6713 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6715 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6716 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6718 2015-11-03 James Norris <jnorris@codesourcery.com>
6720 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6722 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6724 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6725 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6726 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6727 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6728 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6730 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6732 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6734 (enum acc_async_t): Reformat.
6735 (acc_on_device): Declare compatible with builtin and provide C++
6737 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6739 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6740 Cesar Philippidis <cesar@codesourcery.com>
6742 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6743 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6744 ... this. Add a description of the test at the top of the file.
6745 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6746 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6747 ... this. Add a description of the test at the top of the file.
6749 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6751 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6752 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6753 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6754 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6755 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6756 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6758 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6760 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6763 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6766 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6768 2015-10-27 James Norris <jnorris@codesourcery.com>
6770 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6771 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6773 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6775 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6776 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6778 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6779 acc_device_nvidia usage.
6780 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6784 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6785 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6788 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6792 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6793 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6795 2015-10-23 Tom de Vries <tom@codesourcery.com>
6798 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6800 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6802 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6804 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6806 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6807 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6809 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6810 to 0 when mapnum is 0.
6812 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6814 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6815 Cast to int from int32_t.
6817 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6818 Aldy Hernandez <aldyh@redhat.com>
6819 Ilya Verbin <ilya.verbin@intel.com>
6821 * config/linux/affinity.c (omp_get_place_num_procs,
6822 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6823 * config/linux/doacross.h: New file.
6824 * config/posix/affinity.c (omp_get_place_num_procs,
6825 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6826 * config/posix/doacross.h: New file.
6827 * env.c: Include gomp-constants.h.
6828 (struct gomp_task_icv): Rename run_sched_modifier to
6829 run_sched_chunk_size.
6830 (gomp_max_task_priority_var): New variable.
6831 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6832 (handle_omp_display_env): Change _OPENMP value from 201307 to
6833 201511. Print OMP_MAX_TASK_PRIORITY.
6834 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6835 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6836 chunk_size and run_sched_modifier to run_sched_chunk_size.
6837 (omp_get_max_task_priority, omp_get_initial_device,
6838 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6839 omp_get_partition_place_nums): New functions.
6840 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6841 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6843 (omp_get_num_places_, omp_get_place_num_procs_,
6844 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6845 omp_get_place_proc_ids_8_, omp_get_place_num_,
6846 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6847 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6848 omp_get_max_task_priority_): New functions.
6849 * libgomp_g.h (GOMP_loop_doacross_static_start,
6850 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6851 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6852 GOMP_loop_ull_doacross_dynamic_start,
6853 GOMP_loop_ull_doacross_guided_start,
6854 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6855 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6856 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6857 GOMP_target_data_41, GOMP_target_update_41,
6858 GOMP_target_enter_exit_data): New prototypes.
6859 (GOMP_task): Add prototype argument.
6860 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6861 (struct gomp_doacross_work_share): New type.
6862 (struct gomp_work_share): Add doacross field.
6863 (struct gomp_task_icv): Rename run_sched_modifier to
6864 run_sched_chunk_size.
6865 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6866 GOMP_TASK_UNDEFERRED. Add comments.
6867 (struct gomp_task_depend_entry): Add comments.
6868 (struct gomp_task): Likewise.
6869 (struct gomp_taskgroup): Likewise.
6870 (struct gomp_target_task): New type.
6871 (struct gomp_team): Add comment.
6872 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6873 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6874 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6875 (struct target_var_desc): New type.
6876 (struct target_mem_desc): Adjust comment. Use struct
6877 target_var_desc instead of splay_tree_key for list.
6878 (REFCOUNT_INFINITY): Define.
6879 (struct splay_tree_key_s): Remove copy_from field.
6880 (struct gomp_device_descr): Add dev2dev_func field.
6881 (enum gomp_map_vars_kind): New enum.
6882 (gomp_map_vars): Add one argument.
6883 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6884 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6885 omp_get_place_num_procs, omp_get_place_num_procs_,
6886 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6887 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6888 omp_get_place_num_, omp_get_partition_num_places,
6889 omp_get_partition_num_places_, omp_get_partition_place_nums,
6890 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6891 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6892 omp_target_free, omp_target_is_present, omp_target_memcpy,
6893 omp_target_memcpy_rect, omp_target_associate_ptr and
6894 omp_target_disassociate_ptr.
6895 (GOMP_4.0.2): Renamed to ...
6896 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6897 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6898 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6899 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6900 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6901 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6902 GOMP_loop_ull_doacross_guided_start,
6903 GOMP_loop_ull_doacross_runtime_start,
6904 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6905 GOMP_doacross_ull_wait.
6906 * libgomp.texi: Document omp_get_max_task_priority.
6907 Rename modifier argument to chunk_size for omp_set_schedule and
6908 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6909 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6910 to run_sched_chunk_size renaming.
6911 (GOMP_loop_ordered_runtime_start): Likewise.
6912 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6913 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6914 GOMP_parallel_loop_runtime_start): New functions.
6915 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6916 to run_sched_chunk_size renaming.
6917 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6918 GOMP_loop_doacross_guided_start): New functions or aliases.
6919 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6920 run_sched_modifier to run_sched_chunk_size renaming.
6921 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6922 (gomp_loop_ull_doacross_static_start,
6923 gomp_loop_ull_doacross_dynamic_start,
6924 gomp_loop_ull_doacross_guided_start,
6925 GOMP_loop_ull_doacross_runtime_start): New functions.
6926 (GOMP_loop_ull_doacross_static_start,
6927 GOMP_loop_ull_doacross_dynamic_start,
6928 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6929 * oacc-mem.c (acc_map_data, present_create_copy,
6930 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6932 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6933 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6934 instead of false to gomp_map_vars.
6935 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6936 * omp.h.in (omp_lock_hint_t): New type.
6937 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6938 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6939 omp_get_place_num, omp_get_partition_num_places,
6940 omp_get_partition_place_nums, omp_get_initial_device,
6941 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6942 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6943 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6945 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6946 (omp_lock_hint_none, omp_lock_hint_uncontended,
6947 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6948 omp_lock_hint_speculative): New parameters.
6949 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6950 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6951 omp_get_place_num, omp_get_partition_num_places,
6952 omp_get_partition_place_nums, omp_get_initial_device,
6953 omp_get_max_task_priority): New interfaces.
6954 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6956 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6957 (omp_lock_hint_none, omp_lock_hint_uncontended,
6958 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6959 omp_lock_hint_speculative): New parameters.
6960 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6961 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6962 omp_get_place_num, omp_get_partition_num_places,
6963 omp_get_partition_place_nums, omp_get_initial_device,
6964 omp_get_max_task_priority): New functions and subroutines.
6965 * ordered.c: Include stdarg.h and string.h.
6966 (MAX_COLLAPSED_BITS): Define.
6967 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6968 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6969 GOMP_doacross_ull_wait): New functions.
6970 * target.c: Include errno.h.
6971 (resolve_device): If device is not initialized, call
6972 gomp_init_device on it.
6973 (gomp_map_lookup): New function.
6974 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6975 Don't bump refcount if REFCOUNT_INFINITY. Handle
6976 GOMP_MAP_ALWAYS_TO_P.
6977 (get_kind): Rename is_openacc argument to short_mapkind.
6978 (gomp_map_pointer): Use gomp_map_lookup.
6979 (gomp_map_fields_existing): New function.
6980 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6981 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6982 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6983 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6984 Adjust for tgt->list changed type and copy_from living in there.
6985 (gomp_copy_from_async): Adjust for tgt->list changed type and
6986 copy_from living in there.
6987 (gomp_unmap_vars): Likewise.
6988 (gomp_update): Likewise. Rename is_openacc argument to
6989 short_mapkind. Don't fail if object is not mapped.
6990 (gomp_load_image_to_device): Initialize refcount to
6992 (gomp_target_fallback): New function.
6993 (gomp_get_target_fn_addr): Likewise.
6994 (GOMP_target): Adjust gomp_map_vars caller, use
6995 gomp_get_target_fn_addr and gomp_target_fallback.
6996 (GOMP_target_41): New function.
6997 (gomp_target_data_fallback): New function.
6998 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6999 (GOMP_target_data_41): New function.
7000 (GOMP_target_update): Adjust gomp_update caller.
7001 (GOMP_target_update_41): New function.
7002 (gomp_exit_data, GOMP_target_enter_exit_data,
7003 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7004 omp_target_is_present, omp_target_memcpy,
7005 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7006 omp_target_associate_ptr, omp_target_disassociate_ptr,
7007 gomp_load_plugin_for_device): New functions.
7008 * task.c: Include gomp-constants.h. Include taskloop.c
7009 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7010 (gomp_task_handle_depend): New function.
7011 (GOMP_task): Use it. Add priority argument. Use
7012 gomp-constant.h constants instead of hardcoded numbers.
7013 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7014 (gomp_create_target_task): New function.
7015 (verify_children_queue, verify_taskgroup_queue,
7016 verify_task_queue): New functions.
7017 (gomp_task_run_pre): Call verify_*_queue functions.
7018 If an upcoming tied task is about to leave the sibling or
7019 taskgroup queues in an invalid state, adjust appropriately.
7020 Remove taskgroup argument. Add comments.
7021 (gomp_task_run_post_handle_dependers): Add comments.
7022 (gomp_task_run_post_remove_parent): Likewise.
7023 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7024 (GOMP_taskwait): Likewise. Add comments.
7025 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7026 problem such that the first non parent_depends_on task does not
7027 end up at the end of the children queue.
7028 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7029 GOMP_TASK_UNDEFERRED.
7030 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7031 * taskloop.c: New file.
7032 * testsuite/lib/libgomp.exp
7033 (check_effective_target_offload_device_nonshared_as): New proc.
7034 * testsuite/libgomp.c/affinity-2.c: New test.
7035 * testsuite/libgomp.c/doacross-1.c: New test.
7036 * testsuite/libgomp.c/doacross-2.c: New test.
7037 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7038 Add map clause to target.
7039 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7040 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7041 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7042 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7043 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7045 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7046 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7047 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7048 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7049 not defined. Use those where needed.
7050 * testsuite/libgomp.c/for-4.c: New test.
7051 * testsuite/libgomp.c/for-5.c: New test.
7052 * testsuite/libgomp.c/for-6.c: New test.
7053 * testsuite/libgomp.c/linear-1.c: New test.
7054 * testsuite/libgomp.c/ordered-4.c: New test.
7055 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7056 only allowed on the loop iterator.
7057 * testsuite/libgomp.c/pr66199-3.c: New test.
7058 * testsuite/libgomp.c/pr66199-4.c: New test.
7059 * testsuite/libgomp.c/reduction-7.c: New test.
7060 * testsuite/libgomp.c/reduction-8.c: New test.
7061 * testsuite/libgomp.c/reduction-9.c: New test.
7062 * testsuite/libgomp.c/reduction-10.c: New test.
7063 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7065 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7066 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7067 * testsuite/libgomp.c/target-11.c: New test.
7068 * testsuite/libgomp.c/target-12.c: New test.
7069 * testsuite/libgomp.c/target-13.c: New test.
7070 * testsuite/libgomp.c/target-14.c: New test.
7071 * testsuite/libgomp.c/target-15.c: New test.
7072 * testsuite/libgomp.c/target-16.c: New test.
7073 * testsuite/libgomp.c/target-17.c: New test.
7074 * testsuite/libgomp.c/target-18.c: New test.
7075 * testsuite/libgomp.c/target-19.c: New test.
7076 * testsuite/libgomp.c/target-20.c: New test.
7077 * testsuite/libgomp.c/target-21.c: New test.
7078 * testsuite/libgomp.c/target-22.c: New test.
7079 * testsuite/libgomp.c/target-23.c: New test.
7080 * testsuite/libgomp.c/target-24.c: New test.
7081 * testsuite/libgomp.c/target-25.c: New test.
7082 * testsuite/libgomp.c/target-26.c: New test.
7083 * testsuite/libgomp.c/target-27.c: New test.
7084 * testsuite/libgomp.c/taskloop-1.c: New test.
7085 * testsuite/libgomp.c/taskloop-2.c: New test.
7086 * testsuite/libgomp.c/taskloop-3.c: New test.
7087 * testsuite/libgomp.c/taskloop-4.c: New test.
7088 * testsuite/libgomp.c++/ctor-13.C: New test.
7089 * testsuite/libgomp.c++/doacross-1.C: New test.
7090 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7091 Replace offload_device with offload_device_nonshared_as.
7092 * testsuite/libgomp.c++/for-12.C: New test.
7093 * testsuite/libgomp.c++/for-13.C: New test.
7094 * testsuite/libgomp.c++/for-14.C: New test.
7095 * testsuite/libgomp.c++/linear-1.C: New test.
7096 * testsuite/libgomp.c++/member-1.C: New test.
7097 * testsuite/libgomp.c++/member-2.C: New test.
7098 * testsuite/libgomp.c++/member-3.C: New test.
7099 * testsuite/libgomp.c++/member-4.C: New test.
7100 * testsuite/libgomp.c++/member-5.C: New test.
7101 * testsuite/libgomp.c++/ordered-1.C: New test.
7102 * testsuite/libgomp.c++/reduction-5.C: New test.
7103 * testsuite/libgomp.c++/reduction-6.C: New test.
7104 * testsuite/libgomp.c++/reduction-7.C: New test.
7105 * testsuite/libgomp.c++/reduction-8.C: New test.
7106 * testsuite/libgomp.c++/reduction-9.C: New test.
7107 * testsuite/libgomp.c++/reduction-10.C: New test.
7108 * testsuite/libgomp.c++/reference-1.C: New test.
7109 * testsuite/libgomp.c++/simd14.C: New test.
7110 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7111 * testsuite/libgomp.c++/target-5.C: New test.
7112 * testsuite/libgomp.c++/target-6.C: New test.
7113 * testsuite/libgomp.c++/target-7.C: New test.
7114 * testsuite/libgomp.c++/target-8.C: New test.
7115 * testsuite/libgomp.c++/target-9.C: New test.
7116 * testsuite/libgomp.c++/target-10.C: New test.
7117 * testsuite/libgomp.c++/target-11.C: New test.
7118 * testsuite/libgomp.c++/target-12.C: New test.
7119 * testsuite/libgomp.c++/taskloop-1.C: New test.
7120 * testsuite/libgomp.c++/taskloop-2.C: New test.
7121 * testsuite/libgomp.c++/taskloop-3.C: New test.
7122 * testsuite/libgomp.c++/taskloop-4.C: New test.
7123 * testsuite/libgomp.c++/taskloop-5.C: New test.
7124 * testsuite/libgomp.c++/taskloop-6.C: New test.
7125 * testsuite/libgomp.c++/taskloop-7.C: New test.
7126 * testsuite/libgomp.c++/taskloop-8.C: New test.
7127 * testsuite/libgomp.c++/taskloop-9.C: New test.
7128 * testsuite/libgomp.fortran/affinity1.f90: New test.
7129 * testsuite/libgomp.fortran/affinity2.f90: New test.
7131 2015-10-13 Tom de Vries <tom@codesourcery.com>
7133 PR tree-optimization/67476
7134 * testsuite/libgomp.c/autopar-3.c: New test.
7135 * testsuite/libgomp.c/autopar-4.c: New test.
7136 * testsuite/libgomp.c/autopar-5.c: New test.
7137 * testsuite/libgomp.c/autopar-6.c: New test.
7138 * testsuite/libgomp.c/autopar-7.c: New test.
7139 * testsuite/libgomp.c/autopar-8.c: New test.
7141 2015-10-12 James Norris <jnorris@codesourcery.com>
7143 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7146 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7148 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7151 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7153 * oacc-ptx.h: Remove file, moving its content into...
7154 * config/nvptx/fortran.c: ... here...
7155 * config/nvptx/oacc-init.c: ..., here...
7156 * config/nvptx/oacc-parallel.c: ..., and here.
7157 * config/nvptx/openacc.f90: New file.
7158 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7159 (link_ptx): Don't link in predefined bits of PTX code.
7161 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7162 Bernd Schmidt <bernds@codesourcery.com>
7164 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7165 (struct targ_ptx_obj): New.
7166 (nvptx_tdata): Move earlier, change data format.
7167 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7169 (GOMP_OFFLOAD_load_image): Adjust.
7171 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7173 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7174 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7175 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7176 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7177 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7178 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7179 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7180 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7181 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7182 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7183 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7184 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7185 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7186 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7187 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7188 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7189 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7190 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7191 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7192 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7193 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7194 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7195 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7196 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7197 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7198 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7199 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7200 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7201 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7202 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7203 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7204 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7205 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7206 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7207 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7208 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7209 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7210 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7211 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7212 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7213 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7214 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7215 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7216 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7217 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7218 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7219 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7220 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7221 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7222 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7223 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7224 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7225 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7226 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7227 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7228 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7229 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7230 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7231 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7232 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7233 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7234 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7235 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7237 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7239 * oacc-init.c (acc_on_device): Force optimization level.
7241 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7243 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7244 (cuda_errlist): Delete.
7245 (cuda_error): Reimplement.
7247 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7249 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7251 * libgomp.map (GOACC_parallel_keyed): New.
7252 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7254 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7255 and take keyed varargs list. Adjust call to exec_func.
7256 (GOACC_parallel): Force host fallback.
7257 * libgomp_g.h (GOACC_parallel): Remove.
7258 (GOACC_parallel_keyed): Declare.
7259 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7260 (struct targ_gn_descriptor): Replace name field with launch field.
7261 (nvptx_exec): Lose separate geometry args, take array. Process
7262 dynamic dimensions and adjust.
7263 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7264 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7266 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7268 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7271 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7274 * oacc-int.h (goacc_host_init): Add declaration.
7275 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7276 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7278 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7279 Sebastian Pop <s.pop@samsung.com>
7281 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7283 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7284 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7285 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7286 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7287 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7289 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7291 * configure.tgt: Add missing ;; in between nvptx and rtems
7294 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7296 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7297 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7298 (gomp_thread_pool_reservoir): Add priority member.
7299 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7301 (parse_thread_pools): Likewise.
7302 * team.c (gomp_team_start): Call configuration provided
7303 gomp_adjust_thread_attr(). Destroy thread attributes if
7305 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7307 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7309 * config/posix/pool.h: New.
7310 * config/rtems/pool.h: Likewise.
7311 * config/rtems/proc.c: Likewise.
7312 * libgomp.h (gomp_thread_destructor): Declare.
7313 * team.c: Include configuration provided "pool.h".
7314 (gomp_get_thread_pool): Define in configuration.
7315 (gomp_team_end): Call configuration defined
7316 gomp_release_thread_pool().
7318 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7320 * config/rtems/bar.c: New.
7321 * config/rtems/bar.h: Likewise.
7322 * config/rtems/mutex.c: Likewise.
7323 * config/rtems/mutex.h: Likewise.
7324 * config/rtems/sem.c: Likewise.
7325 * config/rtems/sem.h: Likewise.
7326 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7327 <sys/lock.h> header file.
7328 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7329 supported by Newlib.
7330 * configure: Regenerate.
7332 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7334 * team.c (gomp_new_thread_pool): Delete and move content to ...
7335 (gomp_get_thread_pool): ... new function. Allocate and
7336 initialize thread pool on demand.
7337 (get_last_team): Use gomp_get_thread_pool().
7338 (gomp_team_start): Delete thread pool initialization.
7340 2015-09-03 Tom de Vries <tom@codesourcery.com>
7342 PR tree-optimization/65637
7343 * testsuite/libgomp.c/autopar-2.c: New test.
7345 2015-08-29 Tom de Vries <tom@codesourcery.com>
7347 PR tree-optimization/46193
7348 * testsuite/libgomp.c/pr46193.c: New test.
7350 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7353 * libgomp.map: Add 4.0.2 version.
7354 * target.c (offload_image_descr): Add version field.
7355 (gomp_load_image_to_device): Add version argument. Adjust plugin
7356 call. Improve load mismatch diagnostic.
7357 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7359 (GOMP_offload_regster): Make stub function, move bulk to ...
7360 (GOMP_offload_register_ver): ... here. Process version argument.
7361 (GOMP_offload_unregister): Make stub function, move bulk to ...
7362 (GOMP_offload_unregister_ver): ... here. Process version argument.
7363 (gomp_init_device): Process version field.
7364 (gomp_unload_device): Process version field.
7365 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7366 macros. Check plugin version.
7367 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7368 loader and unloader types.
7369 * oacc-host.c: Include gomp-constants.h.
7370 (host_version): New.
7371 (host_load_image, host_unload_image): Adjust.
7372 (host_dispatch): Add host_version.
7373 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7374 (GOMP_OFFLOAD_version): New.
7375 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7376 (GOMP_OFFLOAD_unload_image): Likewise.
7377 * plugin/plugin-host.c: Include gomp-constants.h.
7378 (GOMP_OFFLOAD_version): New.
7379 (GOMP_OFFLOAD_load_image): Add version arg.
7380 (GOMP_OFFLOAD_unload_image): Likewise.
7382 2015-08-24 Tom de Vries <tom@codesourcery.com>
7384 PR tree-optimization/65468
7385 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7387 2015-08-24 Tom de Vries <tom@codesourcery.com>
7389 PR tree-optimization/65468
7390 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7392 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7396 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7397 (gomp_iter_guided_next): Idem.
7398 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7399 (gomp_iter_ull_guided_next): Idem.
7400 * config/linux/wait.h (do_spin): Idem.
7402 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7404 * libgomp-plugin.h (enum offload_target_type): Remove
7405 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7406 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7407 * openacc.h (enum acc_device_t): Likewise.
7408 * openacc_lib.h: Likewise.
7409 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7410 (acc_on_device): Just use __builtin_acc_on_device.
7411 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7412 of acc_on_device builtin.
7413 * plugin/plugin-host.h: Remove file.
7414 * plugin/plugin-host.c: Likewise, but salvage some content into...
7415 * oacc-host.c: ... this file.
7416 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7417 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7418 * Makefile.in: Regenerate.
7419 * configure: Likewise.
7420 * testsuite/lib/libgomp.exp
7421 (check_effective_target_openacc_host_nonshm_selected): Remove.
7422 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7423 ACC_DEVICE_TYPE=host_nonshm.
7424 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7425 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7426 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7427 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7428 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7429 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7431 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7432 Jakub Jelinek <jakub@redhat.com>
7434 * config/nvptx/affinity.c: New file.
7435 * config/nvptx/alloc.c: Likewise.
7436 * config/nvptx/bar.c: Likewise.
7437 * config/nvptx/barrier.c: Likewise.
7438 * config/nvptx/critical.c: Likewise.
7439 * config/nvptx/env.c: Likewise.
7440 * config/nvptx/error.c: Likewise.
7441 * config/nvptx/fortran.c: Likewise.
7442 * config/nvptx/iter.c: Likewise.
7443 * config/nvptx/iter_ull.c: Likewise.
7444 * config/nvptx/libgomp-plugin.c: Likewise.
7445 * config/nvptx/lock.c: Likewise.
7446 * config/nvptx/loop.c: Likewise.
7447 * config/nvptx/loop_ull.c: Likewise.
7448 * config/nvptx/mutex.c: Likewise.
7449 * config/nvptx/oacc-async.c: Likewise.
7450 * config/nvptx/oacc-cuda.c: Likewise.
7451 * config/nvptx/oacc-host.c: Likewise.
7452 * config/nvptx/oacc-init.c: Likewise.
7453 * config/nvptx/oacc-mem.c: Likewise.
7454 * config/nvptx/oacc-parallel.c: Likewise.
7455 * config/nvptx/oacc-plugin.c: Likewise.
7456 * config/nvptx/omp-lock.h: Likewise.
7457 * config/nvptx/ordered.c: Likewise.
7458 * config/nvptx/parallel.c: Likewise.
7459 * config/nvptx/proc.c: Likewise.
7460 * config/nvptx/ptrlock.c: Likewise.
7461 * config/nvptx/sections.c: Likewise.
7462 * config/nvptx/sem.c: Likewise.
7463 * config/nvptx/single.c: Likewise.
7464 * config/nvptx/splay-tree.c: Likewise.
7465 * config/nvptx/target.c: Likewise.
7466 * config/nvptx/task.c: Likewise.
7467 * config/nvptx/team.c: Likewise.
7468 * config/nvptx/time.c: Likewise.
7469 * config/nvptx/work.c: Likewise.
7470 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7471 * configure: Regenerate.
7472 * configure.tgt (config_path): Set to "nvptx" for target
7475 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7477 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7479 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7481 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7482 (cuda_errlist): Constify.
7483 (errmsg): Move into ...
7484 (cuda_error): ... here. Make smaller.
7485 (_XSTR, _STR): Delete.
7486 (cuda_synames): Delete.
7487 (verify_device_library): Delete.
7488 (nvptx_init): Don't call it.
7490 2015-07-28 Tom de Vries <tom@codesourcery.com>
7492 * testsuite/libgomp.c/uns-outer-4.c: New test.
7494 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7496 * testsuite/libgomp.c/pr66714.c: New test.
7498 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7501 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7502 (fib_ref): New function.
7503 (fib): Correct corner cases in the recursion.
7504 (main): Replace the non-simd loop with fib_ref call.
7505 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7507 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7508 for the last array element value. Replace the non-simd loop with
7509 fib_ref call. Remove redundant b_ref array. Remove the comparison
7510 of the last array element with according Fibonacci sequence element.
7511 (fib): Correct corner cases in the recursion.
7513 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7515 * target.c (gomp_offload_image_to_device): Rename to ...
7516 (gomp_load_image_to_device): ... here.
7517 (GOMP_offload_register): Adjust call.
7518 (gomp_init_device): Likewise.
7519 (gomp_unload_image_from_device): New. Broken out of ...
7520 (GOMP_offload_unregister): ... here. Call it.
7521 (gomp_unload_device): New.
7522 * libgomp.h (gomp_unload_device): Declare.
7523 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7526 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7528 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7530 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7532 (goacc_waits): Move !num_waits handling to ...
7533 (GOACC_wait): ... here, the only caller that might have zero waits.
7535 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7536 (struct ptx_image_data): Move earlier, add fns field.
7537 (struct ptx_device): Add images and image_lock fields.
7538 (ptx_images, ptx_image_lock): Delete.
7539 (nvptx_open_device): Initialize images and image_lock fields.
7540 (nvptx_close_device): Destroy image_lock.
7541 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7542 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7545 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7547 * target.c (GOMP_offload_register): Use int for device type arg.
7548 (GOMP_offload_unregister): Likewise.
7550 * target.c (struct_offload_image_descr): Constify host_table.
7551 (gomp_offload_image_to_device): Likewise.
7552 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7554 * libgomp.h (gomp_device_descr): Constify target data arguments.
7555 * target.c (struct offload_image_descr): Constify target_data.
7556 (gomp_offload_image_to_device): Likewise.
7557 (GOMP_offload_register): Likewise.
7558 (GOMP_offload_unregister): Likewise.
7559 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7560 GOMP_OFFLOAD_unload_image): Constify target data.
7561 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7562 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7564 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7566 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7567 Workaround driver library const error.
7568 (struct nvptx_tdata, nvptx_tdata_t): New.
7569 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7572 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7574 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7575 of EPS parameter from integer to real.
7576 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7577 type of EPS parameter from integer to real.
7579 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7581 * team.c (get_last_team): New.
7582 (gomp_new_team): Recycle last non-nested team if possible.
7583 (gomp_team_end): Move team work share list free lock destruction
7585 (free_team): ... here.
7587 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7589 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7590 and ref from int to double. Replaced their comparison with
7591 an inequality of their difference and EPS.
7592 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7593 comparison of pri and a reference number with an inequality of their
7595 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7596 the comparison of sum and sum_ref with an inequality of their
7598 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7599 the comparison of pri and a reference number with an inequality of
7600 their difference and EPS.
7602 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7604 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7605 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7606 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7607 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7608 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7609 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7610 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7611 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7612 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7613 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7614 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7615 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7616 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7618 (vec_mult): Likewise. Add #pragma omp taskwait.
7619 (main): Adjust caller.
7620 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7621 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7622 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7623 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7624 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7625 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7626 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7627 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7628 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7629 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7630 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7631 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7632 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7633 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7634 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7635 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7636 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7637 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7638 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7639 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7640 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7641 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7642 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7643 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7644 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7645 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7646 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7647 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7648 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7649 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7650 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7651 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7652 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7653 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7654 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7655 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7656 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7657 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7658 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7659 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7660 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7661 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7662 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7663 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7664 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7665 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7666 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7667 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7668 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7669 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7670 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7671 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7672 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7673 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7674 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7675 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7676 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7677 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7678 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7679 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7680 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7681 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7682 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7683 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7684 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7685 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7686 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7687 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7688 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7689 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7690 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7691 (vec_mult): Add !$omp taskwait.
7692 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7693 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7694 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7695 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7696 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7697 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7698 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7699 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7700 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7701 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7702 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7703 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7704 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7705 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7706 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7707 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7708 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7709 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7710 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7711 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7712 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7713 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7714 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7715 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7716 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7717 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7718 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7719 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7720 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7721 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7722 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7723 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7724 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7725 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7726 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7727 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7728 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7729 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7730 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7731 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7732 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7733 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7734 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7735 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7736 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7737 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7738 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7739 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7740 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7741 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7742 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7743 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7744 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7745 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7746 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7747 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7748 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7749 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7750 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7751 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7752 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7753 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7754 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7755 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7756 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7757 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7758 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7760 2015-07-10 Tom de Vries <tom@codesourcery.com>
7762 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7763 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7765 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7768 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7769 in a 64-bit configuration.
7770 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7771 offloading testing if no such device is available.
7772 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7773 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7775 2015-07-08 Tom de Vries <tom@codesourcery.com>
7777 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7779 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7781 2015-07-07 Tom de Vries <tom@codesourcery.com>
7783 PR tree-optimization/66642
7784 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7785 iteration count case.
7786 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7787 function, factor out of ...
7788 (main): ... here. Test low iteration count case.
7790 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7792 * libgomp.h (gomp_thread_pool): Comment last_team field.
7794 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7796 * testsuite/libgomp.c++/pr66702-1.C: Require
7797 vect_simd_clones effective target.
7798 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7800 2015-06-30 Tom de Vries <tom@codesourcery.com>
7802 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7803 already set. Use DEFAULT_CFLAGS in dg-runtest.
7804 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7807 2015-06-30 Tom de Vries <tom@codesourcery.com>
7809 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7810 already set. Use DEFAULT_CFLAGS in dg-runtest.
7811 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7812 * testsuite/libgomp.c++/pr64824.C: Same.
7813 * testsuite/libgomp.c++/pr64868.C: Same.
7814 * testsuite/libgomp.c++/pr66199-1.C: Same.
7815 * testsuite/libgomp.c++/pr66199-2.C: Same.
7816 * testsuite/libgomp.c++/target-2.C: Same.
7817 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7818 -std=<standard> option.
7819 * testsuite/libgomp.c++/udr-11.C: Same.
7820 * testsuite/libgomp.c++/udr-12.C: Same.
7821 * testsuite/libgomp.c++/udr-13.C: Same.
7822 * testsuite/libgomp.c++/udr-14.C: Same.
7823 * testsuite/libgomp.c++/udr-15.C: Same.
7824 * testsuite/libgomp.c++/udr-16.C: Same.
7825 * testsuite/libgomp.c++/udr-17.C: Same.
7826 * testsuite/libgomp.c++/udr-18.C: Same.
7827 * testsuite/libgomp.c++/udr-19.C: Same.
7828 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7829 * testsuite/libgomp.c++/simd-1.C: Same.
7830 * testsuite/libgomp.c++/simd-2.C: Same.
7831 * testsuite/libgomp.c++/simd-3.C: Same.
7832 * testsuite/libgomp.c++/simd-4.C: Same.
7833 * testsuite/libgomp.c++/simd-5.C: Same.
7834 * testsuite/libgomp.c++/simd-6.C: Same.
7835 * testsuite/libgomp.c++/simd-7.C: Same.
7836 * testsuite/libgomp.c++/simd-8.C: Same.
7837 * testsuite/libgomp.c++/simd-9.C: Same.
7838 * testsuite/libgomp.c++/simd10.C: Same.
7839 * testsuite/libgomp.c++/simd11.C: Same.
7840 * testsuite/libgomp.c++/simd12.C: Same.
7841 * testsuite/libgomp.c++/simd13.C: Same.
7843 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7846 * testsuite/libgomp.c++/pr66702-1.C: New test.
7847 * testsuite/libgomp.c++/pr66702-2.C: New test.
7849 2015-06-30 Tom de Vries <tom@codesourcery.com>
7851 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7852 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7853 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7854 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7856 2015-06-30 Tom de Vries <tom@codesourcery.com>
7858 PR tree-optimization/66652
7859 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7860 using restrict pointers.
7861 (main): Add arguments to calls to f.
7862 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7864 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7866 * configure.ac: Fix check for header <sys/sysctl.h>.
7867 * configure: Regenerate.
7868 * config.h.in: Likewise.
7870 2015-06-23 Tom de Vries <tom@codesourcery.com>
7872 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7874 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7876 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7878 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7882 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7883 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7885 2015-06-15 Tom de Vries <tom@codesourcery.com>
7887 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7888 dg-additional-options for any remaining options.
7889 * testsuite/libgomp.c/atomic-2.c: Same.
7890 * testsuite/libgomp.c/atomic-4.c: Same.
7891 * testsuite/libgomp.c/atomic-5.c: Same.
7892 * testsuite/libgomp.c/atomic-6.c: Same.
7893 * testsuite/libgomp.c/autopar-1.c: Same.
7894 * testsuite/libgomp.c/copyin-1.c: Same.
7895 * testsuite/libgomp.c/copyin-2.c: Same.
7896 * testsuite/libgomp.c/copyin-3.c: Same.
7897 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7898 * testsuite/libgomp.c/nestedfn-5.c: Same.
7899 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7900 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7901 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7902 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7903 * testsuite/libgomp.c/pr32362-1.c: Same.
7904 * testsuite/libgomp.c/pr32362-2.c: Same.
7905 * testsuite/libgomp.c/pr32362-3.c: Same.
7906 * testsuite/libgomp.c/pr39591-1.c: Same.
7907 * testsuite/libgomp.c/pr39591-2.c: Same.
7908 * testsuite/libgomp.c/pr39591-3.c: Same.
7909 * testsuite/libgomp.c/pr58392.c: Same.
7910 * testsuite/libgomp.c/pr58756.c: Same.
7911 * testsuite/libgomp.c/simd-1.c: Same.
7912 * testsuite/libgomp.c/simd-10.c: Same.
7913 * testsuite/libgomp.c/simd-11.c: Same.
7914 * testsuite/libgomp.c/simd-12.c: Same.
7915 * testsuite/libgomp.c/simd-13.c: Same.
7916 * testsuite/libgomp.c/simd-14.c: Same.
7917 * testsuite/libgomp.c/simd-15.c: Same.
7918 * testsuite/libgomp.c/simd-2.c: Same.
7919 * testsuite/libgomp.c/simd-3.c: Same.
7920 * testsuite/libgomp.c/simd-4.c: Same.
7921 * testsuite/libgomp.c/simd-5.c: Same.
7922 * testsuite/libgomp.c/simd-6.c: Same.
7923 * testsuite/libgomp.c/simd-7.c: Same.
7924 * testsuite/libgomp.c/simd-8.c: Same.
7925 * testsuite/libgomp.c/simd-9.c: Same.
7927 2015-06-15 Tom de Vries <tom@codesourcery.com>
7929 * testsuite/libgomp.c/pr35625.c: Fix typo.
7931 2015-06-15 Tom de Vries <tom@codesourcery.com>
7933 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7935 * testsuite/libgomp.c/atomic-3.c: Same.
7936 * testsuite/libgomp.c/debug-1.c: Same.
7937 * testsuite/libgomp.c/nqueens-1.c: Same.
7938 * testsuite/libgomp.c/pr26171.c: Same.
7939 * testsuite/libgomp.c/pr48591.c: Same.
7940 * testsuite/libgomp.c/pr64824.c: Same.
7941 * testsuite/libgomp.c/pr64868.c: Same.
7942 * testsuite/libgomp.c/pr66133.c: Same.
7943 * testsuite/libgomp.c/pr66199-1.c: Same.
7944 * testsuite/libgomp.c/pr66199-2.c: Same.
7945 * testsuite/libgomp.c/target-8.c: Same.
7947 2015-06-15 Tom de Vries <tom@codesourcery.com>
7949 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7951 * testsuite/libgomp.c/for-1.c: Same.
7952 * testsuite/libgomp.c/for-2.c: Same.
7953 * testsuite/libgomp.c/for-3.c: Same.
7954 * testsuite/libgomp.c/pr35625.c: Same.
7955 * testsuite/libgomp.c/pr39154.c: Same.
7956 * testsuite/libgomp.c/simd-16.c: Same.
7957 * testsuite/libgomp.c/simd-17.c: Same.
7959 2015-06-13 Tom de Vries <tom@codesourcery.com>
7961 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7963 2015-06-13 Tom de Vries <tom@codesourcery.com>
7965 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7966 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7967 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7969 (main): Use N instead of hardcoded constants.
7971 2015-06-05 Tom de Vries <tom@codesourcery.com>
7973 merge from gomp4 branch:
7974 2015-05-28 Tom de Vries <tom@codesourcery.com>
7976 PR tree-optimization/65443
7977 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7978 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7979 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7981 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7983 * testsuite/libgomp.graphite/bounds.c: Adjust for
7984 cleanup-tree-dump removal.
7985 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7986 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7987 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7988 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7989 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7990 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7991 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7992 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7993 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7994 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7996 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7998 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7999 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8000 (futex_wake) [!__x86_64__]: Ditto.
8002 2015-05-28 Julian Brown <julian@codesourcery.com>
8004 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8005 function comment. Only call gomp_fatal if new argument is true.
8006 (acc_dev_num_out_of_range): New function.
8007 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8008 acc_dev_num_out_of_range as appropriate.
8009 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8010 (acc_get_device_num, acc_set_device_num): Update calls to
8012 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8015 2015-05-28 Julian Brown <julian@codesourcery.com>
8018 * oacc-init.c (plugin/plugin-host.h): Include.
8019 (acc_on_device): Check whether we're in an offloaded region for
8021 plugin. Don't use __builtin_acc_on_device.
8022 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8023 nonshm_exec flag in thread-local data.
8024 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8025 data for host_nonshm plugin.
8026 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8027 for host_nonshm plugin.
8028 * plugin/plugin-host.h: New.
8030 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8032 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8034 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8036 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8038 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8039 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8042 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8044 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8046 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8048 * target.c (gomp_map_pointer): New function abstracting out
8049 GOMP_MAP_POINTER handling.
8050 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8053 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8056 * testsuite/libgomp.c/pr66199-1.c: New test.
8057 * testsuite/libgomp.c/pr66199-2.c: New test.
8058 * testsuite/libgomp.c++/pr66199-1.C: New test.
8059 * testsuite/libgomp.c++/pr66199-2.C: New test.
8060 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8061 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8063 2015-05-19 Julian Brown <julian@codesourcery.com>
8065 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8068 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8071 * testsuite/libgomp.c/pr66133.c: New test.
8073 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8075 * Makefile.in: Regenerated with automake-1.11.6.
8076 * aclocal.m4: Likewise.
8077 * config.h.in: Likewise.
8078 * configure: Likewise.
8079 * testsuite/Makefile.in: Likewise.
8081 2015-05-08 Jason Merrill <jason@redhat.com>
8083 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8086 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8088 2015-05-06 Julian Brown <julian@codesourcery.com>
8090 * oacc-init.c (acc_device_lock): Add explanatory comment.
8091 (resolve_device): Add comment about locking requirement.
8092 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8093 gomp_init_device and gomp_fini_device calls.
8094 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8095 (acc_get_device_num, acc_set_device_num): Add locking around
8096 resolve_device and gomp_init_device calls.
8098 2015-05-06 Julian Brown <julian@codesourcery.com>
8100 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8101 goacc_thread_lock on error paths.
8102 * oacc-mem.c (lookup_host): Remove locking from function. Note
8103 locking requirement for caller in function comment.
8104 (lookup_dev): Likewise.
8105 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8106 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8107 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8110 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8114 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8115 don't expect "0x" prefix for "%p" format specifier, don't expect
8116 "(nil)" for NULL pointer.
8117 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8118 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8119 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8120 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8121 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8122 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8123 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8124 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8125 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8126 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8127 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8128 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8129 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8130 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8131 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8132 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8133 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8134 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8135 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8136 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8137 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8138 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8139 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8140 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8141 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8142 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8144 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8145 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8146 accurately specify what we're looking for.
8147 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8148 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8149 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8150 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8151 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8153 2015-04-30 James Norris <jnorris@codesourcery.com>
8156 * testsuite/lib/libgomp.exp
8157 (check_effective_target_openacc_host_selected)
8158 (check_effective_target_openacc_host_nonshm_selected): New
8160 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8162 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8163 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8164 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8165 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8166 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8167 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8168 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8169 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8170 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8171 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8172 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8173 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8174 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8175 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8176 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8177 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8178 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8179 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8180 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8181 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8182 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8183 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8184 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8185 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8197 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8198 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8199 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8201 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8204 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8206 2015-04-08 Julian Brown <julian@codesourcery.com>
8208 * libgomp.h (target_mem_desc: Remove mem_map field.
8209 (acc_dispatch_t): Remove open_device_func, close_device_func,
8210 get_device_num_func, set_device_num_func, target_data members.
8211 Change create_thread_data_func argument to device number instead of
8213 * oacc-async.c (assert.h): Include.
8214 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8215 (acc_wait_all, acc_wait_all_async): Use current host thread's
8216 active device, not base_dev.
8217 * oacc-cuda.c (acc_get_current_cuda_device)
8218 (acc_get_current_cuda_context, acc_get_cuda_stream)
8219 (acc_set_cuda_stream): Likewise.
8220 * oacc-host.c (host_dispatch): Don't set open_device_func,
8221 close_device_func, get_device_num_func or set_device_num_func.
8222 * oacc-init.c (base_dev, init_key): Remove.
8223 (cached_base_dev): New.
8224 (name_of_acc_device_t): New.
8225 (acc_init_1): Initialise default-numbered device, not zeroth.
8226 (acc_shutdown_1): Close all devices of a given type.
8227 (goacc_destroy_thread): Don't use base_dev.
8228 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8229 (goacc_attach_host_thread_to_device): New.
8230 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8231 (acc_get_num_devices): Don't use base_dev.
8232 (acc_set_device_type): Reimplement.
8233 (acc_get_device_type): Don't use base_dev.
8234 (acc_get_device_num): Tweak logic.
8235 (acc_set_device_num): Likewise.
8236 (acc_on_device): Use acc_get_device_type.
8237 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8238 (goacc_lazy_initialize): Reimplement with acc_init and
8239 goacc_attach_host_thread_to_device.
8240 * oacc-int.h (goacc_thread): Add base_dev field.
8241 (base_dev): Remove extern declaration.
8242 (goacc_attach_host_thread_to_device): Add prototype.
8243 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8245 (acc_free): Likewise.
8246 (acc_memcpy_to_device): Likewise.
8247 (acc_memcpy_from_device): Likewise.
8248 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8249 goacc_lazy_initialize (throughout).
8250 (GOACC_parallel): Use tgt_offset to locate target functions.
8251 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8252 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8253 (gomp_load_plugin_for_device): Remove open_device, close_device,
8254 get_device_num, set_device_num openacc hook initialisation. Don't set
8255 openacc.target_data.
8256 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8257 (GOMP_OFFLOAD_openacc_close_device)
8258 (GOMP_OFFLOAD_openacc_get_device_num)
8259 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8260 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8262 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8263 (instantiated_devices, ptx_dev_lock): New.
8264 (struct ptx_image_data): New.
8265 (ptx_devices, ptx_images, ptx_image_lock): New.
8266 (fini_streams_for_device): Reorder cuStreamDestroy call.
8267 (nvptx_get_num_devices): Remove forward declaration.
8268 (nvptx_init): Change return type to bool.
8269 (nvptx_fini): Remove.
8270 (nvptx_attach_host_thread_to_device): New.
8271 (nvptx_open_device): Return struct ptx_device* instead of void*.
8272 (nvptx_close_device): Change argument type to struct ptx_device*,
8273 return type to void.
8274 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8275 (kernel_target_data, kernel_host_table): Remove static globals.
8276 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8277 (GOMP_OFFLOAD_init_device): Reimplement.
8278 (GOMP_OFFLOAD_fini_device): Likewise.
8279 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8280 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8281 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8282 (GOMP_OFFLOAD_openacc_open_device)
8283 (GOMP_OFFLOAD_openacc_close_device)
8284 (GOMP_OFFLOAD_openacc_set_device_num)
8285 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8286 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8290 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8292 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8294 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8295 * libgomp.h (struct gomp_memory_mapping): Remove.
8296 (struct target_mem_desc): Change type of mem_map from
8297 gomp_memory_mapping * to splay_tree_s *.
8298 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8299 Add load_image_func, unload_image_func.
8300 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8301 Remove offload_regions_registered.
8302 (gomp_init_tables): Remove.
8303 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8305 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8306 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8307 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8308 offload_regions_registered.
8309 Initialize load_image_func, unload_image_func, mem_map.root.
8310 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8311 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8312 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8313 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8314 gomp_memory_mapping *. Use dev's lock and splay_tree.
8315 (lookup_dev): Use dev's lock.
8316 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8317 (acc_is_present): Likewise.
8318 (acc_map_data): Likewise.
8319 (acc_unmap_data): Likewise. Use dev's lock.
8320 (present_create_copy): Likewise.
8321 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8322 (update_dev_host): Likewise.
8323 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8324 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8325 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8326 (GOMP_OFFLOAD_get_table): Remove
8327 (GOMP_OFFLOAD_load_image): New function.
8328 (GOMP_OFFLOAD_unload_image): New function.
8329 * target.c (register_lock): New mutex for offload image registration.
8330 (num_devices): Do not guard with PLUGIN_SUPPORT.
8331 (gomp_realloc_unlock): New static function.
8332 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8334 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8335 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8336 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8338 (gomp_unmap_vars): Likewise.
8339 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8340 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8341 (gomp_offload_image_to_device): New static function.
8342 (GOMP_offload_register): Add mutex lock.
8343 Call gomp_offload_image_to_device for all initialized devices.
8344 Replace gomp_realloc with gomp_realloc_unlock.
8345 (GOMP_offload_unregister): New function.
8346 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8347 get_table_func from the plugin with calls to init_device_func and
8348 gomp_offload_image_to_device.
8349 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8351 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8352 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8353 (GOMP_target_data): Do not call gomp_init_tables.
8354 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8355 (gomp_load_plugin_for_device): Replace register_image and get_table
8356 with load_image and unload_image in DLSYM ().
8357 (gomp_register_images_for_device): Remove function.
8358 (gomp_target_init): Do not initialize current_device.mem_map.*,
8359 current_device.offload_regions_registered.
8360 Remove call to gomp_register_images_for_device.
8361 Do not free offload_images and num_offload_images.
8363 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8366 * testsuite/libgomp.fortran/pr65597.f90: New test.
8368 2015-03-27 Tom de Vries <tom@codesourcery.com>
8371 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8372 (init, check): New function.
8373 (foo): Change return type to void.
8374 (main): Call init and check.
8376 2015-03-27 Tom de Vries <tom@codesourcery.com>
8379 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8380 (foo): Use M for non-inner loops to scale down test-case.
8382 2015-03-25 Kai Tietz <ktietz@redhat.com>
8385 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8386 (GOACC_data_start): Likewise.
8387 * target.c (gomp_map_vars): Likewise.
8389 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8391 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8394 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8396 * testsuite/libgomp.c/target-10.c: New test.
8397 * testsuite/libgomp.c++/target-4.C: New test.
8399 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8401 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8402 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8404 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8406 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8407 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8408 (pthread.h): Check for this header file.
8409 * configure: Regenerate.
8411 2015-02-25 Tom de Vries <tom@codesourcery.com>
8413 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8414 (check_reduction_op, check_reduction_macro, max, min):
8416 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8418 (main): Use new functions.
8420 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8422 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8423 char * for variables holding dlerror return values.
8426 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8428 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8430 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8431 Cesar Philippidis <cesar@codesourcery.com>
8433 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8434 GOACC_ctaid, and GOACC_nctaid routines.
8436 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8439 * testsuite/libgomp.c/atomic-18.c: New test.
8440 * testsuite/libgomp.c++/atomic-16.C: New test.
8442 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8446 * testsuite/libgomp.c/pr64824.c: New test.
8447 * testsuite/libgomp.c/pr64868.c: New test.
8448 * testsuite/libgomp.c++/pr64824.C: New test.
8449 * testsuite/libgomp.c++/pr64868.C: New test.
8451 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8454 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8455 Link with -lpthread.
8456 * config/aix/plugin-suffix.h: Delete.
8458 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8461 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8462 (*-*-darwin*): Use config_path "bsd darwin posix".
8463 (*-*-hpux*): Use config_path "hpux posix".
8464 * target.c: Add include of plugin-suffix.h and use
8465 SONAME_SUFFIX macro.
8466 * config/aix/plugin-suffix.h: New file.
8467 * config/darwin/plugin-suffix.h: New file.
8468 * config/hpux/plugin-suffix.h: New file.
8469 * config/posix/plugin-suffix.h: New file.
8471 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8474 * libgomp.c/pr64734.c: New test.
8476 2015-01-23 Tom de Vries <tom@codesourcery.com>
8479 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8481 2015-01-23 Tom de Vries <tom@codesourcery.com>
8484 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8487 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8490 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8491 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8492 formal parameter. Update all users.
8493 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8494 Document unused formal parameter.
8496 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8498 * oacc-parallel.c: Don't include <alloca.h>.
8499 (GOACC_parallel): Use gomp_alloca instead of alloca.
8501 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8503 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8505 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8506 James Norris <jnorris@codesourcery.com>
8507 Tom de Vries <tom@codesourcery.com>
8508 Julian Brown <julian@codesourcery.com>
8509 Cesar Philippidis <cesar@codesourcery.com>
8510 Nathan Sidwell <nathan@codesourcery.com>
8511 Tobias Burnus <burnus@net-b.de>
8513 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8514 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8515 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8516 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8517 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8518 Include $(top_srcdir)/plugin/Makefrag.am.
8519 (nodist_libsubinclude_HEADERS): Add openacc.h.
8520 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8521 openacc.f90, openacc.mod, openacc_kinds.mod.
8522 (omp_lib.mod): Generalize into...
8523 (%.mod): ... this new rule.
8524 (openacc_kinds.mod, openacc.mod): New rules.
8525 * plugin/configfrag.ac: New file.
8526 * configure.ac: Move plugin/offloading support into it. Include
8527 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8528 * plugin/Makefrag.am: New file.
8529 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8530 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8532 (libgomp-test-support.exp): New rule.
8533 (all-local): Depend on it.
8534 * Makefile.in: Regenerate.
8535 * testsuite/Makefile.in: Regenerate.
8536 * config.h.in: Likewise.
8537 * configure: Likewise.
8538 * configure.tgt: Harden shell syntax.
8539 * env.c: Include "oacc-int.h".
8540 (parse_acc_device_type): New function.
8541 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8543 (initialize_env): Initialize those. Call
8544 goacc_runtime_initialize.
8545 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8546 (gomp_fatal): Call gomp_vfatal.
8547 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8548 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8549 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8550 (splay_tree_node, splay_tree, splay_tree_key)
8551 (struct target_mem_desc, struct splay_tree_key_s)
8552 (struct gomp_memory_mapping, struct acc_dispatch_t)
8553 (struct gomp_device_descr, gomp_acc_insert_pointer)
8554 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8555 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8556 (gomp_free_memmap, gomp_fini_device): New declarations.
8557 (gomp_vdebug, gomp_debug): New macros.
8558 Include "splay-tree.h".
8559 * libgomp.map (OACC_2.0): New symbol version. Use for
8560 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8561 acc_set_device_type_h_, acc_get_device_type,
8562 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8563 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8564 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8565 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8566 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8567 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8568 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8569 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8570 acc_copyin_array_h_, acc_present_or_copyin,
8571 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8572 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8573 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8574 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8575 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8576 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8577 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8578 acc_update_device, acc_update_device_32_h_,
8579 acc_update_device_64_h_, acc_update_device_array_h_,
8580 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8581 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8582 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8583 acc_is_present_64_h_, acc_is_present_array_h_,
8584 acc_memcpy_to_device, acc_memcpy_from_device,
8585 acc_get_current_cuda_device, acc_get_current_cuda_context,
8586 acc_get_cuda_stream, acc_set_cuda_stream.
8587 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8588 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8589 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8590 GOACC_get_num_threads.
8591 (GOMP_PLUGIN_1.0): New symbol version. Use for
8592 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8593 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8594 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8595 GOMP_PLUGIN_acc_thread.
8596 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8597 environment variable.
8598 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8599 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8600 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8601 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8602 (splay_tree_remove): New declarations.
8603 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8604 (splay_tree_remove, splay_tree_lookup): Move into...
8605 * splay-tree.c: ... this new file.
8606 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8607 (splay_tree_node, splay_tree, splay_tree_key)
8608 (struct target_mem_desc, struct splay_tree_key_s)
8609 (struct gomp_device_descr): Don't declare.
8610 (num_devices_openmp): New variable.
8611 (gomp_get_num_devices ): Use it.
8612 (gomp_init_targets_once): New function.
8613 (gomp_get_num_devices ): Use it.
8614 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8615 (gomp_fini_device, gomp_register_image_for_device): New functions.
8616 (gomp_map_vars): Add devaddrs parameter.
8617 (gomp_update): Add mm parameter.
8618 (gomp_init_device): Move most of it into...
8619 (gomp_init_tables): ... this new function.
8620 (gomp_register_images_for_device): Remove function.
8621 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8622 Make them hidden instead of static.
8623 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8624 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8625 (GOMP_target_end_data, GOMP_target_update)
8626 (gomp_load_plugin_for_device, gomp_target_init): Update for
8628 * oacc-async.c: New file.
8629 * oacc-cuda.c: Likewise.
8630 * oacc-host.c: Likewise.
8631 * oacc-init.c: Likewise.
8632 * oacc-int.h: Likewise.
8633 * oacc-mem.c: Likewise.
8634 * oacc-parallel.c: Likewise.
8635 * oacc-plugin.c: Likewise.
8636 * oacc-plugin.h: Likewise.
8637 * oacc-ptx.h: Likewise.
8638 * openacc.f90: Likewise.
8639 * openacc.h: Likewise.
8640 * openacc_lib.h: Likewise.
8641 * plugin/plugin-host.c: Likewise.
8642 * plugin/plugin-nvptx.c: Likewise.
8643 * libgomp-plugin.c: Likewise.
8644 * libgomp-plugin.h: Likewise.
8645 * libgomp_target.h: Remove file after merging content into the
8646 former file. Update all users.
8647 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8648 (offload_targets_s, offload_targets_s_openacc): New variables.
8649 (check_effective_target_openacc_nvidia_accel_present)
8650 (check_effective_target_openacc_nvidia_accel_selected): New
8652 (libgomp_init): Update for OpenACC changes.
8653 * testsuite/libgomp-test-support.exp.in: New file.
8654 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8655 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8656 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8657 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8658 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8659 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8660 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8661 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8662 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8663 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8664 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8665 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8666 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8667 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8668 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8669 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8670 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8671 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8672 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8673 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8674 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8675 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8676 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8677 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8678 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8679 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8680 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8681 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8682 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8683 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8684 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8685 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8686 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8687 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8688 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8689 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8690 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8691 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8692 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8693 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8694 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8695 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8696 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8697 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8698 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8699 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8700 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8701 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8702 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8703 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8704 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8705 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8706 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8707 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8708 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8709 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8710 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8711 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8712 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8713 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8714 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8715 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8716 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8717 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8718 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8719 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8720 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8721 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8722 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8723 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8724 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8725 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8726 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8727 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8728 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8729 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8730 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8731 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8732 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8733 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8734 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8735 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8736 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8738 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8739 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8740 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8741 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8742 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8743 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8744 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8745 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8746 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8748 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8749 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8750 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8751 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8752 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8753 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8754 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8764 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8765 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8766 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8767 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8768 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8769 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8770 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8771 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8772 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8777 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8795 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8800 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8801 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8802 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8803 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8804 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8805 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8806 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8807 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8808 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8809 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8810 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8811 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8812 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8813 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8814 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8815 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8816 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8817 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8818 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8819 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8820 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8821 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8822 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8823 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8824 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8825 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8826 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8827 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8828 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8829 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8830 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8831 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8832 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8833 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8834 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8835 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8836 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8837 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8838 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8839 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8840 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8841 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8842 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8843 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8844 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8845 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8846 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8847 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8848 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8849 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8850 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8851 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8852 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8853 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8854 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8856 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8857 Julian Brown <julian@codesourcery.com>
8858 David Malcolm <dmalcolm@redhat.com>
8860 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8861 to "GNU Offloading and Multi Processing Runtime Library". Change
8863 * configure: Regenerate.
8864 * libgomp.texi: Update.
8866 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8868 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8870 * configure: Regenerate.
8872 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8873 "intelmic" in $offload_targets.
8875 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8877 Update copyright years.
8879 * libgomp.texi: Bump @copying's copyright year.
8881 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8883 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8884 Move load of target-supports.exp earlier.
8886 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8888 * testsuite/libgomp.c/target-9.c: New test.
8890 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8892 * config.h.in: Regenerate.
8893 * configure: Regenerate.
8894 * configure.ac: Add GCC_CHECK_EMUTLS.
8895 * libgomp.h: Add check for USE_EMUTLS: this case
8896 is equal to HAVE_TLS.
8899 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8901 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8903 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8904 Ilya Verbin <ilya.verbin@intel.com>
8906 * testsuite/libgomp.c/target-critical-1.c: New test.
8908 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8910 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8911 to dg-options unless expensive testing is on.
8912 (TESTITERS): Define to N if not defined.
8913 (main): Use TESTITERS instead of N.
8914 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8915 dg-additional-options depending on whether expensive testing is on.
8916 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8917 Decrease N to 100000 and CHUNKSZ to 10000.
8919 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8922 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8923 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8925 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8927 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8929 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8932 * configure: Regenerated.
8934 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8936 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8937 vect_simd_clones effective target.
8938 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8940 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8942 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8943 of 32 as block_size.
8944 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8945 instead of 32 as block_size.
8947 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8948 Ilya Verbin <ilya.verbin@intel.com>
8950 * Makefile.in: Regenerate.
8951 * configure: Regenerate.
8952 * configure.ac: Set up offload_additional_options,
8953 offload_additional_lib_paths and offload_targets.
8954 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8955 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8956 * testsuite/Makefile.in: Regenerate.
8957 * testsuite/lib/libgomp.exp (libgomp_init): Append
8958 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8959 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8960 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8962 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8963 Ilya Verbin <ilya.verbin@intel.com>
8964 Kirill Yukhin <kirill.yukhin@intel.com>
8965 Ilya Tocar <ilya.tocar@intel.com>
8967 * testsuite/lib/libgomp.exp
8968 (check_effective_target_offload_device): New.
8969 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8970 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8971 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8972 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8973 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8974 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8975 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8976 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8977 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8978 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8979 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8980 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8981 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8982 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8983 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8984 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8985 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8986 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8987 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8988 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8989 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8990 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8991 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8992 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8993 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8994 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8995 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8996 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8997 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8998 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8999 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9000 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9001 * testsuite/libgomp.c/target-7.c: Fix test.
9002 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9003 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9004 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9005 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9006 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9007 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9008 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9009 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9010 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9011 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9012 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9013 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9014 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9015 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9016 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9017 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9018 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9019 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9020 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9021 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9022 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9023 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9024 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9025 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9026 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9027 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9028 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9029 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9030 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9031 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9032 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9034 2014-11-13 Jakub Jelinek <jakub@redhat.com>
9035 Ilya Verbin <ilya.verbin@intel.com>
9036 Thomas Schwinge <thomas@codesourcery.com>
9037 Andrey Turetskiy <andrey.turetskiy@intel.com>
9039 * libgomp.map (GOMP_4.0.1): New symbol version.
9040 Add GOMP_offload_register.
9041 * libgomp_target.h: New file.
9042 * splay-tree.h: New file.
9043 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9044 (gomp_target_init): New forward declaration.
9045 (gomp_is_initialized): New static variable.
9046 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9047 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9049 (offload_images, num_offload_images, devices, num_devices): New static
9051 (splay_compare): New static function.
9052 (struct gomp_device_descr): New structure.
9053 (gomp_get_num_devices): Call gomp_target_init.
9054 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9055 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9056 (GOMP_offload_register): New function.
9057 (GOMP_target): Arrange for host callback to be performed in a separate
9058 initial thread and contention group, inheriting ICVs from
9059 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9060 Add device initialization and lookup for target function in splay tree.
9061 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9062 (GOMP_target_end_data): Call gomp_unmap_vars.
9063 (GOMP_target_update): Add device initialization and call gomp_update.
9064 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9065 (gomp_target_init): New static functions.
9067 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9068 Thomas Schwinge <thomas@codesourcery.com>
9069 Ilya Verbin <ilya.verbin@intel.com>
9070 Andrey Turetskiy <andrey.turetskiy@intel.com>
9072 * config.h.in: Regenerate.
9073 * configure: Regenerate.
9074 * configure.ac: Check for libdl, required for plugin support.
9075 (PLUGIN_SUPPORT): Define if plugins are supported.
9076 (enable_offload_targets): Support Intel MIC targets.
9077 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9079 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9082 * configure: Regenerate.
9084 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9086 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9088 2014-10-06 Marek Polacek <polacek@redhat.com>
9090 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9091 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9092 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9093 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9095 2014-10-06 Marek Polacek <polacek@redhat.com>
9097 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9098 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9099 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9100 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9101 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9102 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9103 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9104 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9105 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9106 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9107 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9108 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9109 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9110 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9111 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9112 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9113 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9114 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9117 2014-10-03 Jakub Jelinek <jakub@redhat.com>
9120 * testsuite/libgomp.c/pr61200.c: New test.
9122 2014-09-18 Jakub Jelinek <jakub@redhat.com>
9125 * testsuite/libgomp.c++/pr63248.C: New test.
9127 2014-08-04 Jakub Jelinek <jakub@redhat.com>
9129 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9130 is not zero, but taskgroup->children is NULL and there are
9131 any task->children, schedule those instead of waiting.
9132 * testsuite/libgomp.c/depend-6.c: New test.
9133 * testsuite/libgomp.c/depend-7.c: New test.
9134 * testsuite/libgomp.c/depend-8.c: New test.
9135 * testsuite/libgomp.c/depend-9.c: New test.
9136 * testsuite/libgomp.c/depend-10.c: New test.
9138 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9140 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9141 (struct gomp_taskwait): New type.
9142 (struct gomp_task): Add taskwait and parent_depends_on, remove
9143 in_taskwait and taskwait_sem fields.
9144 (gomp_finish_task): Don't destroy taskwait_sem.
9145 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9146 taskwait and parent_depends_on.
9147 (GOMP_task): For if (0) tasks with depend clause that depend on
9148 earlier tasks don't defer them, instead call
9149 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9150 Initialize redundant_out field, for redundant out entries just
9151 move them at the end of linked list instead of removing them
9152 completely, and set redundant_out flag instead of redundant.
9153 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9155 (gomp_task_run_post_handle_dependers): If parent is in
9156 gomp_task_maybe_wait_for_dependencies and newly runnable task
9157 is not parent_depends_on, queue it in parent->children linked
9158 list after all runnable tasks with parent_depends_on set.
9159 Adjust for addition of taskwait indirection.
9160 (gomp_task_run_post_remove_parent): If parent is in
9161 gomp_task_maybe_wait_for_dependencies and task to be removed
9162 is parent_depends_on, decrement n_depend and if needed awake
9163 parent. Adjust for addition of taskwait indirection.
9164 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9165 (gomp_task_maybe_wait_for_dependencies): New function.
9166 * testsuite/libgomp.c/depend-5.c: New test.
9168 2014-07-13 Tobias Burnus <burnus@net-b.de>
9170 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9171 with TS 18508/Fortran 2015.
9173 2014-07-06 Marek Polacek <polacek@redhat.com>
9176 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9178 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9180 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9181 matches regex $lang_source_re, add $lang_include_flags to options.
9182 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9183 * testsuite/libgomp.c++/c++.exp: Likewise.
9184 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9185 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9187 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9189 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9191 * testsuite/libgomp.fortran/fortran.exp: Explain
9192 gfortran-dg-runtest usage.
9194 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9196 * testsuite/libgomp.fortran/simd5.f90: New test.
9197 * testsuite/libgomp.fortran/simd6.f90: New test.
9198 * testsuite/libgomp.fortran/simd7.f90: New test.
9200 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9202 * testsuite/libgomp.c/for-2.c: Define SC to static for
9203 #pragma omp for simd testing.
9204 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9205 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9207 * testsuite/libgomp.c/simd-14.c: New test.
9208 * testsuite/libgomp.c/simd-15.c: New test.
9209 * testsuite/libgomp.c/simd-16.c: New test.
9210 * testsuite/libgomp.c/simd-17.c: New test.
9211 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9212 #pragma omp for simd testing.
9213 * testsuite/libgomp.c++/simd10.C: New test.
9214 * testsuite/libgomp.c++/simd11.C: New test.
9215 * testsuite/libgomp.c++/simd12.C: New test.
9216 * testsuite/libgomp.c++/simd13.C: New test.
9218 * testsuite/libgomp.fortran/aligned1.f03: New test.
9219 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9220 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9221 tasks with !$omp parallel !$omp single.
9222 * testsuite/libgomp.fortran/target8.f90: New test.
9223 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9224 not to use trim in the combiner, instead call elemental function.
9225 (fn): New elemental function.
9226 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9228 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9230 * testsuite/libgomp.fortran/udr12.f90: New test.
9231 * testsuite/libgomp.fortran/udr13.f90: New test.
9232 * testsuite/libgomp.fortran/udr14.f90: New test.
9233 * testsuite/libgomp.fortran/udr15.f90: New test.
9235 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9237 * omp_lib.f90.in (openmp_version): Set to 201307.
9238 * omp_lib.h.in (openmp_version): Likewise.
9239 * testsuite/libgomp.c/target-8.c: New test.
9240 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9241 and inbranch clauses.
9242 * testsuite/libgomp.fortran/depend-3.f90: New test.
9243 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9245 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9246 * testsuite/libgomp.fortran/target1.f90: New test.
9247 * testsuite/libgomp.fortran/target2.f90: New test.
9248 * testsuite/libgomp.fortran/target3.f90: New test.
9249 * testsuite/libgomp.fortran/target4.f90: New test.
9250 * testsuite/libgomp.fortran/target5.f90: New test.
9251 * testsuite/libgomp.fortran/target6.f90: New test.
9252 * testsuite/libgomp.fortran/target7.f90: New test.
9254 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9257 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9258 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9259 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9260 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9261 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9262 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9263 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9264 * testsuite/libgomp.fortran/associate1.f90: New test.
9265 * testsuite/libgomp.fortran/associate2.f90: New test.
9266 * testsuite/libgomp.fortran/procptr1.f90: New test.
9268 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9270 * testsuite/libgomp.fortran/simd1.f90: New test.
9271 * testsuite/libgomp.fortran/udr1.f90: New test.
9272 * testsuite/libgomp.fortran/udr2.f90: New test.
9273 * testsuite/libgomp.fortran/udr3.f90: New test.
9274 * testsuite/libgomp.fortran/udr4.f90: New test.
9275 * testsuite/libgomp.fortran/udr5.f90: New test.
9276 * testsuite/libgomp.fortran/udr6.f90: New test.
9277 * testsuite/libgomp.fortran/udr7.f90: New test.
9278 * testsuite/libgomp.fortran/udr8.f90: New test.
9279 * testsuite/libgomp.fortran/udr9.f90: New test.
9280 * testsuite/libgomp.fortran/udr10.f90: New test.
9281 * testsuite/libgomp.fortran/udr11.f90: New test.
9283 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9285 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9286 vect_simd_clones effective target.
9287 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9289 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9292 * testsuite/libgomp.c++/simd-9.C: New test.
9294 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9296 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9297 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9298 texts according to their @menu entry positions.
9300 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9302 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9303 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9304 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9305 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9306 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9307 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9308 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9309 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9310 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9311 * testsuite/libgomp.fortran/depend-1.f90: New test.
9312 * testsuite/libgomp.fortran/depend-2.f90: New test.
9313 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9314 * testsuite/libgomp.fortran/simd1.f90: New test.
9315 * testsuite/libgomp.fortran/simd2.f90: New test.
9316 * testsuite/libgomp.fortran/simd3.f90: New test.
9317 * testsuite/libgomp.fortran/simd4.f90: New test.
9318 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9320 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9322 * testsuite/libgomp.c/simd-10.c: New test.
9323 * testsuite/libgomp.c/simd-11.c: New test.
9324 * testsuite/libgomp.c/simd-12.c: New test.
9325 * testsuite/libgomp.c/simd-13.c: New test.
9327 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9329 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9330 atomic type clauses in any order and optional comma in between.
9331 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9332 * testsuite/libgomp.c/atomic-17.c: Likewise.
9334 * testsuite/libgomp.c/simd-7.c: New test.
9335 * testsuite/libgomp.c/simd-8.c: New test.
9336 * testsuite/libgomp.c/simd-9.c: New test.
9337 * testsuite/libgomp.c/loop-16.c: New test.
9339 2014-04-02 Richard Henderson <rth@redhat.com>
9341 * config/linux/futex.h (futex_wait): Get error value from errno.
9342 (futex_wake): Likewise.
9344 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9347 * testsuite/libgomp.c++/udr-11.C: New test.
9348 * testsuite/libgomp.c++/udr-12.C: New test.
9349 * testsuite/libgomp.c++/udr-13.C: New test.
9350 * testsuite/libgomp.c++/udr-14.C: New test.
9351 * testsuite/libgomp.c++/udr-15.C: New test.
9352 * testsuite/libgomp.c++/udr-16.C: New test.
9353 * testsuite/libgomp.c++/udr-17.C: New test.
9354 * testsuite/libgomp.c++/udr-18.C: New test.
9355 * testsuite/libgomp.c++/udr-19.C: New test.
9357 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9359 Update copyright years
9361 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9363 * hashtab.h: Use the standard form for the copyright notice.
9365 2014-01-02 Tobias Burnus <burnus@net-b.de>
9367 * libgomp.texi: Bump @copying's copyright year.
9369 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9371 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9372 alloca () with __builtin_alloca ().
9373 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9374 * testsuite/libgomp.c/lock-3.c: Likewise.
9375 * testsuite/libgomp.c/pr48591.c: Likewise.
9377 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9380 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9383 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9386 * testsuite/libgomp.c/pr58756.c: New test.
9388 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9391 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9394 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9396 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9398 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9399 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9400 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9401 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9404 * libgomp_g.h: Include <stddef.h> for size_t.
9406 * libgomp.spec.in: Update comment about libgomp's dependencies.
9407 * configure.ac: Likewise.
9408 * configure: Regenerate.
9410 2013-10-16 Tobias Burnus <burnus@net-b.de>
9412 * libgomp.texi: (Runtime Library Routines): Update references for
9413 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9414 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9415 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9416 (Environment Variables): Update references for OpenMP 4.0. Add
9417 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9418 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9421 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9423 * env.c (parse_bind_var): Initialize value to avoid
9424 (false positive) warning.
9426 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9429 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9431 (gomp_init_num_threads): Move i variable declaration into
9432 #ifdef CPU_ALLOC_SIZE block.
9433 * config/linux/affinity.c (gomp_affinity_init_level): Test
9434 gomp_places_list_len == 0 rather than gomp_places_list == 0
9435 when checking for topology reading error.
9436 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9437 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9438 gomp_places_list, only parse env var and always return false.
9439 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9440 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9441 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9442 and either of these variables were parsed correctly into a places
9445 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9446 Jakub Jelinek <jakub@redhat.com>
9448 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9449 of 5 loopfn matches.
9450 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9451 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9452 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9453 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9454 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9455 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9456 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9457 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9459 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9461 * Makefile.am (omp_lib.mod): Streamline rule.
9462 * Makefile.in: Regenerate.
9464 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9467 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9468 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9469 * testsuite/libgomp.fortran/lib2.f: Likewise.
9470 * testsuite/libgomp.fortran/lib3.f: Likewise.
9472 * configure.ac: Typo fix.
9473 * configure: Regenerate.
9475 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9476 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9478 * omp.h.in: Don't touch the user's namespace.
9480 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9481 Tobias Burnus <burnus@net-b.de>
9482 Richard Henderson <rth@redhat.com>
9484 * target.c: New file.
9485 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9486 * Makefile.in: Regenerated.
9487 * libgomp_g.h (GOMP_task): Add depend argument.
9488 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9489 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9490 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9491 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9492 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9493 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9494 GOMP_taskgroup_start, GOMP_taskgroup_end,
9495 GOMP_parallel_sections): New prototypes.
9496 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9497 (omp_is_initial_device_): New function.
9498 (ULP, STR1, STR2, ialias_redirect): Removed.
9499 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9500 omp_set_default_device_8_, omp_get_default_device_,
9501 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9503 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9504 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9505 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9507 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9508 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9509 omp_set_default_device, omp_set_default_device_,
9510 omp_set_default_device_8_, omp_get_default_device,
9511 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9512 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9513 omp_get_team_num_): Export @@OMP_4.0.
9514 * team.c (struct gomp_thread_start_data): Add place field.
9515 (gomp_thread_start): Clear thr->thread_pool and
9516 thr->task before returning. Use gomp_team_barrier_wait_final
9517 instead of gomp_team_barrier_wait. Initialize thr->place.
9518 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9519 team_cancelled and task_queued_count fields.
9520 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9521 before calling pthread_exit.
9522 (gomp_free_thread): No longer static. Use
9523 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9524 (gomp_team_start): Add flags argument. Set
9525 thr->thread_pool->threads_busy to nthreads immediately after creating
9526 new pool. Use gomp_managed_threads_lock instead of
9527 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9528 (gomp_team_end): Use gomp_managed_threads_lock instead of
9529 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9530 of gomp_team_barrier_wait. If team->team_cancelled, call
9531 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9532 rather than thr->ts.work_share.
9533 (initialize_team): Don't call gomp_sem_init here.
9534 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9536 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9537 * env.c (gomp_global_icv): Add default_device_var, target_data and
9538 bind_var initializers.
9539 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9540 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9541 gomp_places_list_len): New variables.
9542 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9543 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9545 (gomp_cancel_var): New global variable.
9546 (parse_int): New function.
9547 (handle_omp_display_env): New function.
9548 (initialize_env): Use it. Initialize default_device_var.
9549 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9550 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9551 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9552 been successfully parsed (and call gomp_init_affinity in that case).
9553 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9554 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9555 omp_get_team_num, omp_is_initial_device): New functions.
9556 * libgomp.h: Include stdlib.h.
9557 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9559 (struct target_mem_desc): Forward declare.
9560 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9561 and thread_limit_var fields.
9562 (gomp_get_num_devices): New prototype.
9563 (gomp_cancel_var): New extern decl.
9564 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9565 team_cancelled and task_queued_count fields. Add comments about
9566 task_{,queued_,running_}count.
9567 (gomp_cancel_kind): New enum.
9568 (gomp_work_share_end_cancel): New prototype.
9569 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9570 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9572 (struct gomp_taskgroup): New type.
9573 (struct gomp_task_depend_entry,
9574 struct gomp_dependers_vec): New types.
9575 (gomp_finish_task): Free depend_hash if non-NULL.
9576 (struct gomp_team_state): Add place_partition_off
9577 and place_partition_len fields.
9578 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9579 gomp_places_list_len): New extern decls.
9580 (struct gomp_thread): Add place field.
9581 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9582 (gomp_init_thread_affinity): Add place argument.
9583 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9584 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9585 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9586 gomp_affinity_init_level, gomp_affinity_print_place): New
9588 (gomp_team_start): Add flags argument.
9589 (gomp_thread_limit_var, gomp_remaining_threads_count,
9590 gomp_remaining_threads_lock): Remove.
9591 (gomp_managed_threads_lock): New variable.
9592 (struct gomp_thread_pool): Add threads_busy field.
9593 (gomp_free_thread): New prototype.
9594 * task.c: Include hashtab.h.
9595 (hash_entry_type): New typedef.
9596 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9597 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9598 copy_ctors_done and taskgroup fields.
9599 (GOMP_task): Add depend argument, handle depend clauses. If
9600 gomp_team_barrier_cancelled or if it's taskgroup has been
9601 cancelled, don't queue or start new tasks. Set copy_ctors_done
9602 field if needed. Initialize taskgroup field. If copy_ctors_done
9603 and already cancelled, don't discard the task. If taskgroup is
9604 non-NULL, enqueue the task into taskgroup queue. Increment
9605 num_children field in taskgroup. Increment task_queued_count.
9606 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9607 gomp_task_run_post_remove_taskgroup): New inline functions.
9608 (gomp_task_run_post_handle_depend_hash,
9609 gomp_task_run_post_handle_dependers,
9610 gomp_task_run_post_handle_depend): New functions.
9611 (GOMP_taskwait): Use them. If more than one new tasks
9612 have been queued, wake other threads if needed.
9613 (gomp_barrier_handle_tasks): Likewise. If
9614 gomp_team_barrier_cancelled, don't start any new tasks, just free
9616 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9618 (omp_proc_bind_kind, omp_proc_bind_false,
9619 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9620 omp_proc_bind_spread): New params.
9621 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9622 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9623 omp_get_team_num, omp_is_initial_device): New interfaces.
9624 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9625 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9626 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9627 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9628 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9629 useless use omp_lib_kinds.
9630 * omp.h.in (omp_proc_bind_t): New typedef.
9631 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9632 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9633 omp_get_team_num, omp_is_initial_device): New prototypes.
9634 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9635 through to gomp_team_start.
9636 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9637 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9638 Adjust gomp_parallel_loop_start callers.
9639 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9640 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9641 GOMP_loop_end_cancel): New functions.
9642 (GOMP_parallel_end): Add ialias_redirect.
9643 * hashtab.h: New file.
9644 * libgomp.texi (Environment Variables): Minor cleanup,
9645 update section refs to OpenMP 4.0rc2.
9646 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9647 environment variables.
9648 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9649 team->work_shares_to_free to thr->ts.work_share before calling
9651 (gomp_work_share_end_cancel): New function.
9652 * config/linux/proc.c: Include errno.h.
9653 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9654 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9655 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9656 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9657 gomp_cpuset_size is sizeof (cpu_set_t).
9658 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9659 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9660 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9661 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9662 contain any logical CPUs.
9663 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9664 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9665 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9666 pthread_getaffinity_np. Check gomp_places_list instead of
9667 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9668 * config/linux/bar.c (gomp_barrier_wait_end,
9669 gomp_barrier_wait_last): Use BAR_* defines.
9670 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9671 from state where needed. Set work_share_cancelled to 0 on last
9673 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9674 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9676 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9677 Add cpusetsize argument.
9678 (gomp_cpuset_size, gomp_cpusetp): Declare.
9679 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9680 (affinity_counter): Remove.
9681 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9682 if CPU_ALLOC_SIZE isn't defined.
9683 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9684 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9685 bind current thread to the first place.
9686 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9687 pthread_setaffinity_np to gomp_places_list[place].
9688 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9689 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9690 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9691 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9692 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9693 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9694 (gomp_barrier_t): Add awaited_final field.
9695 (gomp_barrier_init): Initialize awaited_final field.
9696 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9697 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9699 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9701 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9702 gomp_team_barrier_cancelled): New inline functions.
9703 (gomp_barrier_last_thread,
9704 gomp_team_barrier_set_task_pending,
9705 gomp_team_barrier_clear_task_pending,
9706 gomp_team_barrier_set_waiting_for_tasks,
9707 gomp_team_barrier_waiting_for_tasks,
9708 gomp_team_barrier_done): Use BAR_* defines.
9709 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9710 (gomp_barrier_wait_end): Use BAR_* defines.
9711 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9712 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9714 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9715 gomp_team_barrier_cancel): New functions.
9716 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9718 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9719 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9720 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9721 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9722 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9723 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9724 (gomp_barrier_t): Add cancellable field.
9725 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9726 gomp_team_barrier_cancel): New prototypes.
9727 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9728 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9729 gomp_team_barrier_cancelled): New inline functions.
9730 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9731 gomp_team_barrier_set_task_pending,
9732 gomp_team_barrier_clear_task_pending,
9733 gomp_team_barrier_set_waiting_for_tasks,
9734 gomp_team_barrier_waiting_for_tasks,
9735 gomp_team_barrier_done): Use BAR_* defines.
9736 * barrier.c (GOMP_barrier_cancel): New function.
9737 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9738 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9739 omp_proc_bind_spread): New params.
9740 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9741 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9742 omp_get_team_num, omp_is_initial_device): New externals.
9743 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9745 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9746 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9747 infinity. If not nested, just return minimum of max_num_threads
9748 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9749 to the returned value. Otherwise, don't update atomically
9750 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9751 (GOMP_parallel_end): Adjust for thread_limit now being in
9752 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9753 infinity. Adjust threads_busy in the pool rather than
9754 gomp_remaining_threads_count. Remember team->nthreads and call
9755 gomp_team_end before adjusting threads_busy, if not nested
9756 afterwards, just set it to 1 non-atomically. Add ialias.
9757 (GOMP_parallel_start): Adjust gomp_team_start caller.
9758 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9759 * testsuite/libgomp.c/affinity-1.c: New test.
9760 * testsuite/libgomp.c/atomic-15.c: New test.
9761 * testsuite/libgomp.c/atomic-16.c: New test.
9762 * testsuite/libgomp.c/atomic-17.c: New test.
9763 * testsuite/libgomp.c/cancel-for-1.c: New test.
9764 * testsuite/libgomp.c/cancel-for-2.c: New test.
9765 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9766 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9767 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9768 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9769 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9770 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9771 * testsuite/libgomp.c/depend-1.c: New test.
9772 * testsuite/libgomp.c/depend-2.c: New test.
9773 * testsuite/libgomp.c/depend-3.c: New test.
9774 * testsuite/libgomp.c/depend-4.c: New test.
9775 * testsuite/libgomp.c/for-1.c: New test.
9776 * testsuite/libgomp.c/for-1.h: New file.
9777 * testsuite/libgomp.c/for-2.c: New test.
9778 * testsuite/libgomp.c/for-2.h: New file.
9779 * testsuite/libgomp.c/for-3.c: New test.
9780 * testsuite/libgomp.c/pr58392.c: New test.
9781 * testsuite/libgomp.c/simd-1.c: New test.
9782 * testsuite/libgomp.c/simd-2.c: New test.
9783 * testsuite/libgomp.c/simd-3.c: New test.
9784 * testsuite/libgomp.c/simd-4.c: New test.
9785 * testsuite/libgomp.c/simd-5.c: New test.
9786 * testsuite/libgomp.c/simd-6.c: New test.
9787 * testsuite/libgomp.c/target-1.c: New test.
9788 * testsuite/libgomp.c/target-2.c: New test.
9789 * testsuite/libgomp.c/target-3.c: New test.
9790 * testsuite/libgomp.c/target-4.c: New test.
9791 * testsuite/libgomp.c/target-5.c: New test.
9792 * testsuite/libgomp.c/target-6.c: New test.
9793 * testsuite/libgomp.c/target-7.c: New test.
9794 * testsuite/libgomp.c/taskgroup-1.c: New test.
9795 * testsuite/libgomp.c/thread-limit-1.c: New test.
9796 * testsuite/libgomp.c/thread-limit-2.c: New test.
9797 * testsuite/libgomp.c/thread-limit-3.c: New test.
9798 * testsuite/libgomp.c/udr-1.c: New test.
9799 * testsuite/libgomp.c/udr-2.c: New test.
9800 * testsuite/libgomp.c/udr-3.c: New test.
9801 * testsuite/libgomp.c++/affinity-1.C: New test.
9802 * testsuite/libgomp.c++/atomic-10.C: New test.
9803 * testsuite/libgomp.c++/atomic-11.C: New test.
9804 * testsuite/libgomp.c++/atomic-12.C: New test.
9805 * testsuite/libgomp.c++/atomic-13.C: New test.
9806 * testsuite/libgomp.c++/atomic-14.C: New test.
9807 * testsuite/libgomp.c++/atomic-15.C: New test.
9808 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9809 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9810 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9811 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9812 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9813 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9814 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9815 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9816 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9817 * testsuite/libgomp.c++/cancel-test.h: New file.
9818 * testsuite/libgomp.c++/for-9.C: New test.
9819 * testsuite/libgomp.c++/for-10.C: New test.
9820 * testsuite/libgomp.c++/for-11.C: New test.
9821 * testsuite/libgomp.c++/simd-1.C: New test.
9822 * testsuite/libgomp.c++/simd-2.C: New test.
9823 * testsuite/libgomp.c++/simd-3.C: New test.
9824 * testsuite/libgomp.c++/simd-4.C: New test.
9825 * testsuite/libgomp.c++/simd-5.C: New test.
9826 * testsuite/libgomp.c++/simd-6.C: New test.
9827 * testsuite/libgomp.c++/simd-7.C: New test.
9828 * testsuite/libgomp.c++/simd-8.C: New test.
9829 * testsuite/libgomp.c++/target-1.C: New test.
9830 * testsuite/libgomp.c++/target-2.C: New test.
9831 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9832 * testsuite/libgomp.c++/target-3.C: New test.
9833 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9834 * testsuite/libgomp.c++/udr-1.C: New test.
9835 * testsuite/libgomp.c++/udr-2.C: New test.
9836 * testsuite/libgomp.c++/udr-3.C: New test.
9837 * testsuite/libgomp.c++/udr-4.C: New test.
9838 * testsuite/libgomp.c++/udr-5.C: New test.
9839 * testsuite/libgomp.c++/udr-6.C: New test.
9840 * testsuite/libgomp.c++/udr-7.C: New test.
9841 * testsuite/libgomp.c++/udr-8.C: New test.
9842 * testsuite/libgomp.c++/udr-9.C: New test.
9844 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9847 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9850 2013-09-20 Alan Modra <amodra@gmail.com>
9852 * configure: Regenerate.
9854 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9856 * testsuite/libgomp.c/sections-2.c: New test.
9858 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9860 * testsuite/libgomp.fortran/strassen.f90:
9861 Add dg-skip-if aarch64_tiny.
9863 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9864 Cesar Philippidis <cesar@codesourcery.com>
9866 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9867 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9868 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9869 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9870 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9871 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9872 Use dg-runtest rather than gfortran-dg-runtest.
9874 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9876 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9877 Linux-based x86 systems to cover all GNU systems.
9878 * testsuite/libgomp.c/lock-3.c: Likewise.
9879 * testsuite/libgomp.c/pr48591.c: Likewise.
9881 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9883 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9884 GNU/Hurd, as done for Linux-based systems.
9886 * config/posix/ptrlock.h: Fix comment.
9888 2013-05-27 Tobias Burnus <burnus@net-b.de>
9891 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9892 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9893 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9894 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9895 omp_destroy_nest_lock): Correct arguments to match the one in
9897 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9898 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9899 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9900 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9902 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9904 * testsuite/libgomp.c/loop-13.c: New test.
9905 * testsuite/libgomp.c/loop-14.c: New test.
9906 * testsuite/libgomp.c/loop-15.c: New test.
9907 * testsuite/libgomp.c++/loop-13.C: New test.
9908 * testsuite/libgomp.c++/loop-14.C: New test.
9909 * testsuite/libgomp.c++/loop-15.C: New test.
9911 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9914 * testsuite/libgomp.c++/pr56217.C: New test.
9916 2013-02-01 Alan Modra <amodra@gmail.com>
9918 * task.c (GOMP_task, GOMP_taskwait): Comment.
9920 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9921 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9924 * config/linux/wait.h (do_spin): Use atomic load for addr.
9925 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9926 for intptr and ptrlock.
9927 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9930 2013-01-22 Alan Modra <amodra@gmail.com>
9934 * task.c (GOMP_task): Revert 2011-12-09 change.
9935 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9936 barrier to read task->children..
9937 (gomp_barrier_handle_tasks): ..and matching atomic store with
9938 release barrier here when setting parent->children to NULL.
9940 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9941 Tobias Burnus <burnus@net-b.de>
9944 * testsuite/libgomp.fortran/fortran.exp: Use
9945 -fintrinsic-modules-path= instead of
9946 -fintrinsic-modules-path.
9948 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9950 Update copyright years.
9952 2012-12-19 Tobias Burnus <burnus@net-b.de>
9954 * testsuite/libgomp.fortran/fortran.exp: Set
9955 -fintrinsic-modules-path.
9957 2012-12-19 Tobias Burnus <burnus@net-b.de>
9959 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9960 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9962 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9965 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9966 if pool had any threads_used.
9968 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9970 * testsuite/libgomp.c++/pr24455.C: Use
9971 -Wl,-undefined,dynamic_lookup on darwin.
9973 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9975 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9977 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9979 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9981 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9982 Jim MacArthur <jim.macarthur@arm.com>
9983 Marcus Shawcroft <marcus.shawcroft@arm.com>
9984 Nigel Stephens <nigel.stephens@arm.com>
9985 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9986 Richard Earnshaw <rearnsha@arm.com>
9987 Sofiane Naci <sofiane.naci@arm.com>
9988 Stephen Thomas <stephen.thomas@arm.com>
9989 Tejas Belagod <tejas.belagod@arm.com>
9990 Yufeng Zhang <yufeng.zhang@arm.com>
9992 * configure.tgt: Add AArch64.
9994 2012-10-04 Jason Merrill <jason@redhat.com>
9996 * testsuite/libgomp.c++/tls-init1.C: New.
9998 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10000 * configure: Regenerated.
10002 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10004 * config/linux/mips/futex.h (sys_futex0): Change to static
10005 function with noinline, nomips16 attributes under MIPS16. Adjust
10006 asm statement to place 'li v0,SYS_futex' immediately before
10009 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10011 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10012 conflict with index.html on case-insensitive file systems.
10014 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
10016 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10017 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10019 2012-07-02 Richard Guenther <rguenther@suse.de>
10020 Michael Matz <matz@suse.de>
10021 Tobias Grosser <tobias@grosser.es>
10022 Sebastian Pop <sebpop@gmail.com>
10024 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10025 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10026 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10027 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10029 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10031 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10033 2012-06-22 Richard Guenther <rguenther@suse.de>
10035 Merge from graphite branch
10036 2012-01-13 Tobias Grosser <tobias@grosser.es>
10038 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10039 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10041 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10043 PR middle-end/53580
10044 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10045 use GOMP_barrier () call instead.
10046 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10047 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10048 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10049 call GOMP_barrier instead.
10050 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10052 2012-06-06 Jakub Jelinek <jakub@redhat.com>
10055 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10056 argument to memset call.
10058 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10060 * configure: Regenerated.
10062 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10064 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10066 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10069 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10071 2012-03-22 Jakub Jelinek <jakub@redhat.com>
10073 PR middle-end/52547
10074 * testsuite/libgomp.c/pr52547.c: New test.
10076 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10078 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10080 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10082 * configure.tgt (mips-sgi-irix6*): Remove.
10084 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10086 * configure.tgt (alpha*-dec-osf*): Remove.
10088 * config/osf/sem.h: Remove.
10089 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10091 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10093 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10095 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10098 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10099 Remove ENABLE_SYMVERS_SOL2.
10100 * configure: Regenerate.
10101 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10102 (PREPROCESS): New variable.
10103 (libgomp.ver): New target.
10104 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10105 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10106 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10108 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10109 * Makefile.in: Regenerate.
10111 2012-02-14 Walter Lee <walt@tilera.com>
10113 * configure.tgt: Handle tilegx and tilepro.
10114 * config/linux/tile/futex.h: New file.
10116 2012-02-08 Richard Guenther <rguenther@suse.de>
10118 PR tree-optimization/46886
10119 * testsuite/libgomp.c/pr46886.c: New testcase.
10121 2012-01-25 Matthias Klose <doko@ubuntu.com>
10123 * config/linux/arm: Remove empty directory.
10124 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10126 2011-12-09 Alan Modra <amodra@gmail.com>
10129 * task.c (GOMP_taskwait): Don't access task->children outside of
10130 task_lock mutex region.
10131 (GOMP_task): Likewise.
10133 2011-12-06 Jakub Jelinek <jakub@redhat.com>
10136 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10138 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10139 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10140 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10141 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10142 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10144 2011-12-02 Alan Modra <amodra@gmail.com>
10146 * config/linux/affinity.c: Use atomic rather than sync builtin.
10147 * config/linux/lock.c: Likewise.
10148 * config/linux/ptrlock.h: Likewise.
10149 * config/linux/ptrlock.c: Likewise.
10150 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10151 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10152 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10153 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10154 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10155 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10156 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10157 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10158 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10159 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10161 2011-11-30 Alan Modra <amodra@gmail.com>
10164 * config/linux/bar.h: Use atomic rather than sync builtins.
10165 * config/linux/bar.c: Likewise. Add missing acquire
10166 synchronisation on generation field.
10167 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10170 2011-11-30 Alan Modra <amodra@gmail.com>
10172 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10173 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10174 * config/linux/mutex.h: Use atomic rather than sync builtins.
10175 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10176 * config/linux/omp-lock.h: Comment fix.
10177 * config/linux/arm/mutex.h: Delete.
10178 * config/linux/powerpc/mutex.h: Delete.
10179 * config/linux/ia64/mutex.h: Delete.
10180 * config/linux/mips/mutex.h: Delete.
10182 2011-11-30 Alan Modra <amodra@gmail.com>
10185 * config/linux/sem.h: Rewrite.
10186 * config/linux/sem.c: Rewrite.
10188 2011-11-28 Richard Henderson <rth@redhat.com>
10190 * libgomp.h (enum memmodel): New.
10192 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10194 * configure: Regenerate.
10196 2011-10-10 Matthias Klose <doko@ubuntu.com>
10198 * config/posix95: Remove empty directory.
10200 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10202 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10204 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10207 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10208 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10210 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10212 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10214 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10217 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10219 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10221 * config/linux/proc.h: New.
10222 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10223 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10224 (gomp_init_num_threads): Update call to cpuset_popcount.
10225 (get_num_procs): Ditto.
10226 * config/linux/affinity.c (gomp_init_affinity): Call
10227 gomp_cpuset_popcount.
10229 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10233 * omp.h.in (omp_in_final): New prototype.
10234 * omp_lib.f90.in (omp_in_final): New interface.
10235 (omp_integer_kind, omp_logical_kind): Remove
10236 and replace all its uses in the module with 4.
10237 (openmp_version): Change to 201107.
10238 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10239 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10240 kind for the parameters.
10241 (omp_in_final): New external.
10242 (openmp_version): Change to 201107.
10243 * task.c (omp_in_final): New function.
10244 (gomp_init_task): Initialize final_task.
10245 (GOMP_task): Remove unused attribute from flags. Handle final
10247 (GOMP_taskyield): New function.
10248 (omp_in_final): Return true if if (false) or final (true) task
10249 or descendant of final (true).
10250 * fortran.c (omp_in_final_): New function.
10251 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10252 (GOMP_3.0): Export GOMP_taskyield.
10253 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10255 (parse_unsigned_long_list): New function.
10256 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10257 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10258 even if parse_affinity returned false.
10259 * config/linux/affinity.c (gomp_init_affinity): Handle
10260 gomp_cpu_affinity_len == 0.
10261 * libgomp_g.h (GOMP_taskyield): New prototype.
10262 * libgomp.h (struct gomp_task): Add final_task field.
10263 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10264 * team.c (gomp_team_start): Override new task's nthreads_var icv
10265 if list form OMP_NUM_THREADS has been used and it has value for
10266 the new nesting level.
10268 * testsuite/libgomp.c/atomic-11.c: New test.
10269 * testsuite/libgomp.c/atomic-12.c: New test.
10270 * testsuite/libgomp.c/atomic-13.c: New test.
10271 * testsuite/libgomp.c/atomic-14.c: New test.
10272 * testsuite/libgomp.c/reduction-6.c: New test.
10273 * testsuite/libgomp.c/task-5.c: New test.
10274 * testsuite/libgomp.c++/atomic-2.C: New test.
10275 * testsuite/libgomp.c++/atomic-3.C: New test.
10276 * testsuite/libgomp.c++/atomic-4.C: New test.
10277 * testsuite/libgomp.c++/atomic-5.C: New test.
10278 * testsuite/libgomp.c++/atomic-6.C: New test.
10279 * testsuite/libgomp.c++/atomic-7.C: New test.
10280 * testsuite/libgomp.c++/atomic-8.C: New test.
10281 * testsuite/libgomp.c++/atomic-9.C: New test.
10282 * testsuite/libgomp.c++/task-8.C: New test.
10283 * testsuite/libgomp.c++/reduction-4.C: New test.
10284 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10285 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10286 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10287 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10288 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10289 * testsuite/libgomp.fortran/pointer1.f90: New test.
10290 * testsuite/libgomp.fortran/pointer2.f90: New test.
10291 * testsuite/libgomp.fortran/task4.f90: New test.
10293 2011-08-02 Tobias Burnus <burnus@net-b.de>
10295 * libgomp.texi: Update OpenMP spec references to 3.1.
10296 (omp_in_final,OMP_PROC_BIND): New sections.
10297 (OMP_NUM_THREADS): Document that the value can be now a list.
10298 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10300 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10302 * config/linux/x86/futex.h: Check __x86_64__ instead of
10305 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10307 PR middle-end/49897
10308 PR middle-end/49898
10309 * testsuite/libgomp.c/pr49897-1.c: New test.
10310 * testsuite/libgomp.c/pr49897-2.c: New test.
10311 * testsuite/libgomp.c/pr49898-1.c: New test.
10312 * testsuite/libgomp.c/pr49898-2.c: New test.
10314 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10316 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10317 for ia32 instead of ilp32.
10319 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10320 * testsuite/libgomp.c/atomic-6.c: Likewise.
10322 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10324 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10325 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10327 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10330 * config/osf/sem.h: New file.
10331 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10333 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10336 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10339 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10341 * config/linux/wait.h (do_spin): New inline, largely copied
10342 from do_wait, just don't do futex_wait here, instead return true if
10344 (do_wait): Implement using do_spin.
10345 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10347 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10348 __sync_bool_compare_and_swap, pass the oldval to
10349 gomp_mutex_lock_slow.
10350 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10351 If all mutex contenders are just spinning and not sleeping, don't
10352 change state to 2 unnecessarily. Optimize the loop when state has
10353 already become 2 to use just one atomic operation per loop instead
10355 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10357 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10358 __sync_bool_compare_and_swap, pass the oldval to
10359 gomp_mutex_lock_slow.
10361 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10364 * iter.c (gomp_iter_static_next): For chunk size 0
10365 only use n ceil/ nthreads size for the first
10366 n % nthreads threads in the team instead of
10367 all threads except for the last few ones which
10368 get less work or none at all.
10369 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10370 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10371 chunk argument, set run_sched_modifier to 0 for static
10372 resp. 1 for other kinds. If chunk argument is 0
10373 and not static, set value to 1.
10375 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10378 * testsuite/libgomp.c++/pr49043.C: New test.
10381 * testsuite/libgomp.c++/pr48869.C: New test.
10383 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10386 * fortran.c: Include limits.h.
10388 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10390 (omp_set_num_threads_8_, omp_set_schedule_8_,
10391 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10392 omp_get_team_size_8_): Use TO_INT macro.
10393 * testsuite/libgomp.fortran/pr48894.f90: New test.
10395 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10397 PR middle-end/48591
10398 * testsuite/libgomp.c/pr48591.c: New test.
10400 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10403 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10404 * configure: Regenerate.
10406 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10409 * testsuite/libgomp.fortran/task3.f90: New test.
10411 2011-02-24 Tobias Burnus <burnus@net-b.de>
10413 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10415 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10418 * libgomp.texi (omp_get_wtime): Don't say time in the past
10419 must be Unix Epoch.
10421 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10424 * testsuite/libgomp.fortran/fortran.exp: Check for both
10425 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10426 but $blddir != "", still append ${blddir}/${lang_library_path}
10427 to ld_library_path.
10429 2011-02-16 Tobias Burnus <burnus@net-b.de>
10432 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10433 of libquadmath.a before adding its libpath to ldflags.
10435 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10438 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10439 to FUTEX_WAIT futex syscall.
10440 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10442 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10444 * configure: Regenerate.
10446 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10449 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10451 2011-01-16 Gerald Pfeifer
10453 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10455 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10458 * libgomp.fortran/allocatable6.f90: New test.
10460 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10462 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10463 * configure: Regenerate.
10465 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10469 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10470 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10471 * aclocal.m4: Regenerate.
10472 * configure: Regenerate.
10473 * Makefile.in: Regenerate.
10474 * testsuite/Makefile.in: Regenerate.
10476 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10479 * libgomp.fortran/pr46753.f90: New test.
10482 * env.c (initialize_env): Default to spin count 300000
10483 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10487 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10488 at the end if sync builtins aren't supported.
10490 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10492 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10494 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10496 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10498 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10500 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10502 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10503 Tobias Burnus <burnus@net-b.de>
10507 * configure: Regenerate.
10509 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10511 * config/linux/futex.h: New.
10512 * config/linux/arm/mutex.h: New.
10513 * configure.tgt (arm*-*-linux*): Add config path.
10515 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10517 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10519 2010-09-23 Tobias Burnus <burnus@net-b.de>
10521 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10522 Change Fortran datatype to LOGICAL.
10523 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10524 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10526 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10528 * configure: Regenerate.
10530 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10532 * libgomp.texi: Add function keyword to a couple of Fortran
10533 interfaces, use integer instead of int for Fortran.
10535 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10537 * libgomp.texi: Fix spelling and pasto problems throughout.
10538 Adjust prototypes to match code.
10540 2010-07-24 Tobias Burnus <burnus@net-b.de>
10542 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10543 silence -fwhole-file warning.
10545 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10547 * configure.tgt (*-*-solaris2.[56]*): Removed.
10549 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10551 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10552 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10553 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10554 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10555 targetting solaris2*.
10556 * configure: Regenerate.
10557 * config.h.in: Regenerate.
10559 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10560 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10561 Add libgomp_version_dep.
10562 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10564 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10565 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10566 * Makefile.in: Regenerate.
10568 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10569 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10570 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10571 to common block, protected by
10572 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10574 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10576 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10578 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10581 * configure: Regenerate.
10583 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10586 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10587 * configure: Regenerate.
10588 * Makefile.in: Regenerate.
10589 * testsuite/Makefile.in: Regenerate.
10591 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10594 * testsuite/libgomp.c/pr43893.c: New test.
10595 * testsuite/libgomp.c++/pr43893.C: New test.
10597 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10599 PR middle-end/43570
10600 * testsuite/libgomp.fortran/vla8.f90: New test.
10602 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10605 * config/linux/affinity.c (gomp_init_affinity): Decrease
10606 gomp_available_cpus if affinity mask confines the process to fewer
10608 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10609 non-NULL, just return gomp_available_cpus.
10612 * sections.c (gomp_sections_init): Initialize ws->mode.
10614 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10616 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10617 not unused bar variable.
10618 * configure: Regenerate.
10620 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10622 * Makefile.in: Regenerate.
10623 * aclocal.m4: Regenerate.
10624 * testsuite/Makefile.in: Regenerate.
10626 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10629 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10630 (initialize_env): Adjust callers.
10631 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10632 when the argument is 0.
10634 * testsuite/libgomp.c/pr42942.c: New test.
10636 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10638 PR middle-end/42644
10639 PR middle-end/42130
10640 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10641 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10643 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10645 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10646 * testsuite/libgomp.c++/task-6.C: Likewise.
10648 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10650 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10652 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10654 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10655 * configure: Regenerate.
10657 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10660 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10662 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10664 * configure.ac: Test for executability of GFORTRAN.
10665 * configure: Regenerate.
10667 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10669 * configure: Regenerate.
10671 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10674 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10676 2010-01-03 Richard Guenther <rguenther@suse.de>
10678 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10680 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10682 * testsuite/libgomp.graphite/pr4118.c: New.
10684 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10686 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10687 for darwin, protect the test with require-effective-target tls_runtime.
10688 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10690 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10693 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10694 link spec %s substitutions for static libraries.
10696 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10699 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10701 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10703 * Makefile.in: Regenerate.
10704 * configure: Regenerate.
10705 * testsuite/Makefile.in: Regenerate.
10707 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10709 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10710 settings for LC_ALL and LANG.
10712 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10715 * testsuite/libgomp.fortran/pr42162.f90: New test.
10717 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10719 PR middle-end/42029
10720 * testsuite/libgomp.c/pr42029.c: New test.
10722 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10724 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10725 *s. Accept ld version without text in ()s.
10726 * configure: Regenerated.
10728 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10730 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10732 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10735 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10736 or a hyphen (happens with fortran language disabled).
10737 * configure: Regenerate.
10739 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10741 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10742 use sed script portable to Solaris /bin/sed for extracting ld
10744 * configure: Regenerate.
10746 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10748 * testsuite/libgomp.graphite/bounds.c: New test.
10750 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10752 * Makefile.am (libgomp_la_LINK): New.
10753 * Makefile.in: Regenerate.
10755 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10757 * configure.ac (AC_PREREQ): Bump to 2.64.
10759 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10761 * Makefile.am (install-html, install-pdf): Remove.
10762 * Makefile.in: Regenerate.
10764 * Makefile.in: Regenerate.
10765 * aclocal.m4: Regenerate.
10766 * config.h.in: Regenerate.
10767 * configure: Regenerate.
10768 * testsuite/Makefile.in: Regenerate.
10770 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10772 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10773 * Makefile.in: Regenerate.
10775 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10777 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10778 * Makefile.in: Regenerate.
10780 2009-08-19 Tobias Burnus <burnus@net-b.de>
10783 omp_lib.h.in: Fix -std=f95 errors.
10785 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10787 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10788 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10789 * testsuite/libgomp.graphite/graphite.exp: New.
10791 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10793 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10796 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10798 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10799 needed memory barrier semantics.
10800 * config/linux/mips/mutex.h: New file.
10802 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10804 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10806 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10808 * configure: Regenerate.
10810 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10815 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10816 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10817 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10819 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10821 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10822 options when choosing a multilib.
10824 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10826 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10827 ld_library_path. Use add_path. Add just find_libgcc_s to
10828 ld_library_path, not every libgcc multilib directory.
10829 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10830 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10831 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10833 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10835 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10837 * Makefile.am (LTLDFLAGS): Define.
10839 * Makefile.in: Regenerate.
10841 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10844 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10845 libgfortranbegin, check existence of libgfortran.a instead of
10846 libgfortranbegin.a.
10848 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10851 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10852 (gomp_free_pool_helper): Likewise.
10854 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10855 Jakub Jelinek <jakub@redhat.com>
10858 * testsuite/libgomp.fortran/workshare2.f90: New test.
10860 2009-04-09 Nick Clifton <nickc@redhat.com>
10862 * iter.c: Change copyright header to refer to version 3 of the
10863 GNU General Public License with version 3.1 of the GCC Runtime
10864 Library Exception and to point readers at the COPYING3 and
10865 COPYING3.RUNTIME files and the FSF's license web page.
10866 * alloc.c: Likewise.
10867 * barrier.c: Likewise.
10868 * config/bsd/proc.c: Likewise.
10869 * config/linux/affinity.c: Likewise.
10870 * config/linux/alpha/futex.h: Likewise.
10871 * config/linux/bar.c: Likewise.
10872 * config/linux/bar.h: Likewise.
10873 * config/linux/ia64/futex.h: Likewise.
10874 * config/linux/ia64/mutex.h: Likewise.
10875 * config/linux/lock.c: Likewise.
10876 * config/linux/mips/futex.h: Likewise.
10877 * config/linux/mutex.c: Likewise.
10878 * config/linux/mutex.h: Likewise.
10879 * config/linux/powerpc/futex.h: Likewise.
10880 * config/linux/proc.c: Likewise.
10881 * config/linux/ptrlock.c: Likewise.
10882 * config/linux/ptrlock.h: Likewise.
10883 * config/linux/s390/futex.h: Likewise.
10884 * config/linux/sem.c: Likewise.
10885 * config/linux/sem.h: Likewise.
10886 * config/linux/sparc/futex.h: Likewise.
10887 * config/linux/wait.h: Likewise.
10888 * config/linux/x86/futex.h: Likewise.
10889 * config/mingw32/proc.c: Likewise.
10890 * config/mingw32/time.c: Likewise.
10891 * config/posix/affinity.c: Likewise.
10892 * config/posix/bar.c: Likewise.
10893 * config/posix/bar.h: Likewise.
10894 * config/posix/lock.c: Likewise.
10895 * config/posix/mutex.h: Likewise.
10896 * config/posix/proc.c: Likewise.
10897 * config/posix/ptrlock.h: Likewise.
10898 * config/posix/sem.c: Likewise.
10899 * config/posix/sem.h: Likewise.
10900 * config/posix/time.c: Likewise.
10901 * config/posix95/lock.c: Likewise.
10902 * critical.c: Likewise.
10904 * error.c: Likewise.
10905 * fortran.c: Likewise.
10906 * iter_ull.c: Likewise.
10907 * libgomp.h: Likewise.
10908 * libgomp_f.h.in: Likewise.
10909 * libgomp_g.h: Likewise.
10910 * loop.c: Likewise.
10911 * loop_ull.c: Likewise.
10912 * omp.h.in: Likewise.
10913 * omp_lib.f90.in: Likewise.
10914 * omp_lib.h.in: Likewise.
10915 * ordered.c: Likewise.
10916 * parallel.c: Likewise.
10917 * sections.c: Likewise.
10918 * single.c: Likewise.
10919 * task.c: Likewise.
10920 * team.c: Likewise.
10921 * work.c: Likewise.
10923 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10925 * testsuite/config/default.exp: Change copyright header to refer to
10926 version 3 of the GNU General Public License and to point readers
10927 at the COPYING3 file and the FSF's license web page.
10929 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10931 PR middle-end/39573
10932 * libgomp.c++/pr39573.C: New test.
10934 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10937 * testsuite/libgomp.c/pr39591-1.c: New test.
10938 * testsuite/libgomp.c/pr39591-2.c: New test.
10939 * testsuite/libgomp.c/pr39591-3.c: New test.
10941 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10943 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10944 * testsuite/libgomp.c/atomic-6.c: Ditto.
10946 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10949 * testsuite/libgomp.c/loop-12.c: New test.
10950 * testsuite/libgomp.c/loop-11.c: New test.
10951 * testsuite/libgomp.c++/loop-11.C: New test.
10952 * testsuite/libgomp.c++/loop-12.C: New test.
10953 * testsuite/libgomp.c++/for-8.C: New test.
10955 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10957 * configure: Regenerate.
10959 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10961 PR middle-end/39154
10962 * testsuite/libgomp.c/pr39154.c: New test.
10964 2009-01-30 Ian Lance Taylor <iant@google.com>
10966 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10967 libgomp_ld_is_gold. Get gold version number.
10968 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10969 * configure: Rebuild.
10971 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10973 * testsuite/lib/libgomp.exp: Add -B option for targets that
10974 use libgfortran.a%s in their specs.
10976 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10979 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10980 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10981 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10982 * configure: Regenerated.
10983 * config.h.in: Likewise.
10985 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10988 * testsuite/libgomp.c/pr38650.c: New test.
10989 * testsuite/libgomp.c++/pr38650.C: New test.
10991 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10993 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10995 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10997 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10999 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11001 * configure: Regenerate.
11003 2008-12-08 Jakub Jelinek <jakub@redhat.com>
11005 PR middle-end/36802
11006 * testsuite/libgomp.c/pr36802-1.c: New test.
11007 * testsuite/libgomp.c/pr36802-2.c: New test.
11008 * testsuite/libgomp.c/pr36802-3.c: New test.
11010 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11013 * config/linux/powerpc/mutex.h: New.
11015 2008-12-01 Jakub Jelinek <jakub@redhat.com>
11018 * testsuite/libgomp.c++/for-7.C: New test.
11021 * testsuite/libgomp.c++/for-6.C: New test.
11023 2008-11-26 Janis Johnson <janis187@us.ibm.com>
11026 * testsuite/lib/libgomp.exp: Include new timeout library files.
11027 (libgomp_target_compile): Set timeout value from new proc.
11029 2008-11-13 Steve Ellcey <sje@cup.hp.com>
11032 * config/linux/ia64/mutex.h: New.
11034 2008-11-04 Tobias Burnus <burnus@net-b.de>
11037 * libgomp.texi (Runtime library routines, environment variables):
11038 Update for OpenMP version 3.0.
11040 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11041 Steve Ellcey <sje@cup.hp.com>
11043 * configure: Regenerate for new libtool.
11044 * Makefile.in: Ditto.
11045 * testsuite/Makefile.in: Ditto.
11047 2008-09-19 Jakub Jelinek <jakub@redhat.com>
11048 Andreas Tobler <a.tobler@schweiz.org>
11050 * config/bsd/proc.c: New file.
11051 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11052 * configure.ac: Check for header <sys/sysctl.h>
11053 * configure: Regenerate.
11054 * config.h.in: Likewise.
11056 2008-09-05 Janis Johnson <janis187@us.ibm.com>
11058 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11060 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11062 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11063 * Makefile.in: Regenerated.
11064 * testsuite/Makefile.in: Regenerated.
11066 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
11068 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11069 depend on blddir if blddir exists.
11070 (libgomp_target_compile): Likewise.
11071 * testsuite/libgomp.c++/c++.exp: Likewise.
11072 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11074 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11076 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11077 Do not list GPL as Invariant Section.
11079 2008-07-28 Ilie Garbacea <ilie@mips.com>
11080 Chao-ying Fu <fu@mips.com>
11082 * configure.tgt: Enable futex for MIPS.
11083 * config/linux/mips/futex.h: New file.
11085 2008-07-16 Jakub Jelinek <jakub@redhat.com>
11087 * team.c (gomp_team_end): Free team immediately if it has
11090 2008-07-08 David Edelsohn <edelsohn@gnu.org>
11092 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11093 * testsuite/libgomp.fortran/fortran.exp: Same.
11094 * testsuite/libgomp.c/c.exp: Same.
11095 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11096 directory to library path first.
11098 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11100 * env.c (parse_stacksize): Add cast to avoid warning.
11101 (parse_spincount): Likewise.
11103 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11105 * testsuite/libgomp.c/loop-10.c: New test.
11106 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11107 * libgomp.c++/loop-6.C (main): Likewise.
11110 * testsuite/libgomp.c/debug-1.c: New test.
11112 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11114 * testsuite/libgomp.c/nqueens-1.c: New test.
11117 * testsuite/libgomp.c++/task-7.C: New function.
11119 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11121 * configure: Regenerate.
11123 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11125 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11126 mutex when HAVE_SYNC_BUILTINS isn't defined.
11128 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11130 * libgomp.texi (omp_test_lock): Fix typo.
11132 2008-06-12 Tobias Burnus <burnus@net-b.de>
11134 * omp_lib.f90.in: Add "implicit none".
11136 2008-06-12 Jakub Jelinek <jakub@redhat.com>
11138 PR middle-end/36506
11139 * testsuite/libgomp.c/reduction-5.c: New test.
11141 2008-06-11 Jakub Jelinek <jakub@redhat.com>
11143 * libgomp.h (struct gomp_task): Add in_tied_task field.
11144 * task.c (gomp_init_task): Initialize it.
11145 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11146 unconditionally. Don't call gomp_team_barrier_wake if
11147 current task is implicit or if(0) from implicit and number of
11148 running tasks is equal to nthreads - 1.
11151 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11152 omp_get_team_size_8): Fix pastos.
11155 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11156 * configure: Regenerated.
11157 * config.h.in: Regenerated.
11158 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11161 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11164 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11165 (GOMP_loop_ull_dynamic_start): Likewise.
11166 (GOMP_loop_ull_guided_start): Likewise.
11167 (GOMP_loop_ull_ordered_static_start): Likewise.
11168 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11169 (GOMP_loop_ull_ordered_guided_start): Likewise.
11171 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11172 Richard Henderson <rth@redhat.com>
11173 Ulrich Drepper <drepper@redhat.com>
11174 Jakob Blomer <jakob.blomer@ira.uka.de>
11176 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11177 Substitute also OMP_*LOCK_25*.
11178 * configure: Regenerated.
11179 * config.h.in: Regenerated.
11180 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11181 ptrlock.c and task.c.
11182 * Makefile.in: Regenerated.
11183 * testsuite/Makefile.in: Regenerated.
11184 * task.c: New file.
11185 * loop_ull.c: New file.
11186 * iter_ull.c: New file.
11187 * libgomp.h: Include ptrlock.h.
11188 (enum gomp_task_kind): New type.
11189 (struct gomp_team): Add task_lock, task_queue, task_count,
11190 task_running_count, single_count fields. Add
11191 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11192 Remove work_share_lock, generation_mask,
11193 oldest_live_gen, num_live_gen and init_work_shares fields, add
11194 work work_share_list_alloc, work_share_list_free and work_share_chunk
11195 fields. Change work_shares from pointer to pointers into an array.
11196 Change ordered_release field into gomp_sem_t ** from flexible array
11197 member. Add implicit_task and initial_work_shares fields.
11198 Move close to the end of the struct.
11199 (struct gomp_team_state): Add single_count, last_work_share,
11200 active_level and level fields, remove work_share_generation.
11201 (gomp_barrier_handle_tasks): New prototype.
11202 (gomp_finish_task): New inline function.
11203 (struct gomp_work_share): Move chunk_size, end, incr into
11204 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11205 next_ll fields. Reshuffle fields. Add next_alloc,
11206 next_ws, next_free and inline_ordered_team_ids fields, change
11207 ordered_team_ids into pointer from flexible array member.
11208 Add mode field. Put lock and next into a different cache line
11209 from most of the write-once fields.
11210 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11211 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11212 gomp_iter_ull_guided_next): New prototypes.
11213 (gomp_new_icv): New prototype.
11214 (struct gomp_thread): Add thread_pool and task fields.
11215 (struct gomp_thread_pool): New type.
11216 (gomp_new_team): New prototype.
11217 (gomp_team_start): Change type of last argument.
11218 (gomp_new_work_share): Removed.
11219 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11220 (gomp_work_share_init_done): New static inline.
11221 (gomp_throttled_spin_count_var, gomp_available_cpus,
11222 gomp_managed_threads): New extern decls.
11223 (gomp_init_task): New prototype.
11224 (gomp_spin_count_var): New extern var decl.
11225 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11226 or no alias support, or if not PIC.
11227 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11228 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11229 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11230 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11231 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11232 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11233 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11234 gomp_test_nest_lock_25): New prototypes.
11235 (omp_lock_symver, strong_alias): Define.
11236 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11238 (gomp_end_task): New.
11239 (struct gomp_task_icv, gomp_global_icv): New.
11240 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11241 (struct gomp_task): New.
11242 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11243 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11245 (gomp_schedule_type): Reorder enum to match
11247 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11249 (gomp_thread_start): Add gomp_team_barrier_wait call.
11250 For non-nested case remove clearing of docked thread thr fields.
11251 Use pool fields instead of global gomp_* variables. Use
11252 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11253 Create tasks for each member thread.
11254 (free_team): Only destroy team barrier, task_lock here and free it.
11255 (gomp_free_thread): Free last_team if non-NULL.
11256 (gomp_team_end): Call gomp_team_barrier_wait instead of
11257 gomp_barrier_wait. For nested case call one extra
11258 gomp_barrier_wait. Move here some destruction from free_team.
11259 Call free_team on pool->last_team if any, rather than freeing
11260 current team. Destroy work_share_list_free_lock ifndef
11261 HAVE_SYNC_BUILTINS.
11262 (gomp_new_icv): New function.
11263 (gomp_threads, gomp_threads_size, gomp_threads_used,
11264 gomp_threads_dock): Removed.
11265 (gomp_thread_destructor): New variable.
11266 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11268 (gomp_team_start): Create new pool if current thread doesn't have
11269 one. Use pool fields instead of global gomp_* variables.
11270 Initialize thread_pool field for new threads. Clear single_count.
11271 Change last argument from ws to team, don't create
11272 new team, set ts.work_share to &team->work_shares[0] and clear
11273 ts.last_work_share. Don't clear ts.work_share_generation.
11274 If number of threads changed, adjust atomically gomp_managed_threads.
11275 Use gomp_init_task instead of gomp_new_task,
11276 set thr->task to the corresponding implicit_task array entry.
11277 Create tasks for each member thread. Initialize ts.level.
11278 (initialize_team): Call pthread_key_create on
11279 gomp_thread_destructor.
11280 (team_destructor): New function.
11281 (new_team): Removed.
11282 (gomp_new_team): New function.
11283 (free_team): Free gomp_work_share blocks chained through next_alloc,
11284 instead of freeing work_shares and destroying work_share_lock.
11285 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11286 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11287 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11288 of gomp_barrier_wait.
11289 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11290 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11291 if gomp_work_share_start returned true. Don't unlock ws->lock.
11292 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11293 of gomp_barrier_wait.
11294 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11295 gomp_work_share_init_done if gomp_work_share_start returned true.
11296 Don't unlock ws->lock.
11297 * work.c: Include stddef.h.
11298 (free_work_share): Use work_share_list_free_lock instead
11299 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11300 Call gomp_fini_work_share and then either free ws if orphaned, or
11301 put it into work_share_list_free list of the current team.
11302 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11304 (gomp_work_share_start, gomp_work_share_end,
11305 gomp_work_share_end_nowait): Rewritten.
11306 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11307 (openmp_version): Set to 200805.
11308 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11309 omp_sched_guided, omp_sched_auto): New parameters.
11310 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11311 omp_set_max_active_levels, omp_get_max_active_levels,
11312 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11313 omp_get_active_level): New interfaces.
11314 * omp_lib.h.in (openmp_version): Set to 200805.
11315 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11316 omp_sched_guided, omp_sched_auto): New parameters.
11317 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11318 omp_set_max_active_levels, omp_get_max_active_levels,
11319 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11320 omp_get_active_level): New externals.
11321 * loop.c: Include limits.h.
11322 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11324 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11325 Likewise. Use gomp_icv.
11326 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11327 ts.static_trip here.
11328 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11329 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11330 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11331 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11332 don't unlock ws->lock, otherwise lock it.
11333 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11334 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11335 (gomp_parallel_loop_start): Call gomp_new_team instead of
11336 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11337 Adjust gomp_team_start caller. Pass 0 as second argument to
11338 gomp_resolve_num_threads.
11339 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11340 If adding ws->chunk_size nthreads + 1 times after end won't
11341 overflow, set ws->mode to 1.
11342 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11343 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11344 GOMP_loop_ull_ordered_static_start,
11345 GOMP_loop_ull_ordered_dynamic_start,
11346 GOMP_loop_ull_ordered_guided_start,
11347 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11348 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11349 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11350 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11351 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11353 * libgomp.map: Export lock routines also @@OMP_2.0.
11354 (GOMP_loop_ordered_dynamic_first,
11355 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11356 GOMP_loop_ordered_static_first): Remove.
11357 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11358 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11359 GOMP_loop_ull_ordered_dynamic_next,
11360 GOMP_loop_ull_ordered_dynamic_start,
11361 GOMP_loop_ull_ordered_guided_next,
11362 GOMP_loop_ull_ordered_guided_start,
11363 GOMP_loop_ull_ordered_runtime_next,
11364 GOMP_loop_ull_ordered_runtime_start,
11365 GOMP_loop_ull_ordered_static_next,
11366 GOMP_loop_ull_ordered_static_start,
11367 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11368 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11369 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11370 (omp_set_schedule, omp_get_schedule,
11371 omp_get_thread_limit, omp_set_max_active_levels,
11372 omp_get_max_active_levels, omp_get_level,
11373 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11374 omp_set_schedule_, omp_set_schedule_8_,
11375 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11376 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11377 omp_get_max_active_levels_, omp_get_level_,
11378 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11379 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11380 New exports @@OMP_3.0.
11381 * omp.h.in (omp_sched_t): New type.
11382 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11383 omp_set_max_active_levels, omp_get_max_active_levels,
11384 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11385 omp_get_active_level): New prototypes.
11386 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11387 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11388 gomp_thread_limit_var, gomp_remaining_threads_count,
11389 gomp_remaining_threads_lock): New variables.
11390 (parse_spincount): New function.
11391 (initialize_env): Call gomp_init_num_threads unconditionally.
11392 Initialize gomp_available_cpus. Call parse_spincount,
11393 initialize gomp_{,throttled_}spin_count_var
11394 depending on presence and value of OMP_WAIT_POLICY and
11395 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11396 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11397 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11398 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11399 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11400 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11401 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11402 (gomp_global_icv): New.
11403 (parse_schedule): Use it. Parse "auto".
11404 (omp_set_num_threads): Use gomp_icv.
11405 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11407 (omp_get_max_threads): Move from parallel.c.
11408 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11409 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11411 (parse_stacksize, parse_wait_policy): New functions.
11412 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11413 both wrappers for compatibility and new locks.
11414 (omp_set_schedule, omp_get_schedule,
11415 omp_get_thread_limit, omp_set_max_active_levels,
11416 omp_get_max_active_levels, omp_get_level,
11417 omp_get_ancestor_thread_num, omp_get_team_size,
11418 omp_get_active_level): New ialias_redirect.
11419 (omp_set_schedule_, omp_set_schedule_8_,
11420 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11421 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11422 omp_get_max_active_levels_, omp_get_level_,
11423 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11424 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11426 * parallel.c: Include limits.h.
11427 (gomp_resolve_num_threads): Add count argument. Rewritten.
11428 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11429 argument to gomp_team_start. Pass 0 as second argument to
11430 gomp_resolve_num_threads.
11431 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11432 if gomp_thread_limit_var != ULONG_MAX.
11433 (omp_in_parallel): Implement using ts.active_level.
11434 (omp_get_max_threads): Move to env.c.
11435 (omp_get_level, omp_get_ancestor_thread_num,
11436 omp_get_team_size, omp_get_active_level): New functions,
11438 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11439 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11440 gomp_iter_dynamic_next instead of the _locked variant and don't take
11441 lock around it, otherwise acquire it before calling
11442 gomp_iter_dynamic_next_locked.
11443 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11444 gomp_iter_dynamic_next instead of the _locked variant and don't take
11446 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11447 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11448 Adjust gomp_team_start caller. Pass count as second argument to
11449 gomp_resolve_num_threads, don't adjust num_threads after the call.
11451 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11452 ws->chunk_size by incr.
11453 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11455 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11457 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11458 (omp_check_defines): Check even the compat defines.
11459 * config/linux/ptrlock.c: New file.
11460 * config/linux/ptrlock.h: New file.
11461 * config/linux/wait.h: New file.
11462 * config/posix/ptrlock.c: New file.
11463 * config/posix/ptrlock.h: New file.
11464 * config/linux/bar.h (gomp_team_barrier_wait,
11465 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11466 (gomp_team_barrier_set_task_pending,
11467 gomp_team_barrier_clear_task_pending,
11468 gomp_team_barrier_set_waiting_for_tasks,
11469 gomp_team_barrier_waiting_for_tasks,
11470 gomp_team_barrier_done): New inlines.
11471 (gomp_barrier_t): Rewritten.
11472 (gomp_barrier_state_t): New typedef.
11473 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11474 gomp_barrier_wait_start): Rewritten.
11475 (gomp_barrier_wait_end): Change second argument to
11476 gomp_barrier_state_t.
11477 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11479 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11481 (gomp_barrier_wait_end): Rewritten.
11482 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11483 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11484 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11485 (gomp_barrier_state_t): New typedef.
11486 (gomp_team_barrier_wait,
11487 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11488 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11489 into the return value. Return gomp_barrier_state_t.
11490 (gomp_team_barrier_set_task_pending,
11491 gomp_team_barrier_clear_task_pending,
11492 gomp_team_barrier_set_waiting_for_tasks,
11493 gomp_team_barrier_waiting_for_tasks,
11494 gomp_team_barrier_done): New inlines.
11495 (gomp_barrier_wait_end): Change second argument to
11496 gomp_barrier_state_t.
11497 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11499 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11500 (gomp_barrier_wait_end): Change second argument to
11501 gomp_barrier_state_t.
11502 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11503 gomp_team_barrier_wake): New functions.
11504 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11506 (gomp_futex_wake, gomp_futex_wait): New variables.
11507 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11508 * config/linux/lock.c: Rewrite to make locks task owned,
11509 for backwards compatibility provide the old entrypoints
11510 if symbol versioning. Include wait.h instead of libgomp.h and
11512 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11513 * config/posix95/lock.c: Rewrite to make locks task owned,
11514 for backwards compatibility provide the old entrypoints
11515 if symbol versioning.
11516 * config/posix/lock.c: Rewrite to make locks task owned,
11517 for backwards compatibility provide the old entrypoints
11518 if symbol versioning.
11519 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11520 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11521 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11522 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11523 (sys_futex0): Return error code.
11524 (futex_wake, futex_wait): If ENOSYS was returned, clear
11525 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11526 (cpu_relax, atomic_write_barrier): New static inlines.
11527 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11528 (futex_wake, futex_wait): If ENOSYS was returned, clear
11529 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11530 (cpu_relax, atomic_write_barrier): New static inlines.
11531 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11532 (sys_futex0): Return error code.
11533 (futex_wake, futex_wait): If ENOSYS was returned, clear
11534 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11535 (cpu_relax, atomic_write_barrier): New static inlines.
11536 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11537 (sys_futex0): Return error code.
11538 (futex_wake, futex_wait): If ENOSYS was returned, clear
11539 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11540 (cpu_relax, atomic_write_barrier): New static inlines.
11541 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11542 (sys_futex0): Return error code.
11543 (futex_wake, futex_wait): If ENOSYS was returned, clear
11544 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11545 (cpu_relax, atomic_write_barrier): New static inlines.
11546 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11547 (sys_futex0): Return error code.
11548 (futex_wake, futex_wait): If ENOSYS was returned, clear
11549 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11550 (cpu_relax, atomic_write_barrier): New static inlines.
11551 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11553 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11554 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11555 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11557 (omp_nest_lock_t): Change owner into void *, add lock field.
11558 * config/posix95/omp-lock.h: Include semaphore.h.
11559 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11560 (omp_lock_t): Use sem_t instead of mutex if semaphores
11562 (omp_nest_lock_t): Likewise. Change owner to void *.
11563 * config/posix/omp-lock.h: Include semaphore.h.
11564 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11565 (omp_lock_t): Use sem_t instead of mutex if semaphores
11567 (omp_nest_lock_t): Likewise. Add owner field.
11569 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11571 * testsuite/libgomp.c/collapse-1.c: New test.
11572 * testsuite/libgomp.c/collapse-2.c: New test.
11573 * testsuite/libgomp.c/collapse-3.c: New test.
11574 * testsuite/libgomp.c/icv-1.c: New test.
11575 * testsuite/libgomp.c/icv-2.c: New test.
11576 * testsuite/libgomp.c/lib-2.c: New test.
11577 * testsuite/libgomp.c/lock-1.c: New test.
11578 * testsuite/libgomp.c/lock-2.c: New test.
11579 * testsuite/libgomp.c/lock-3.c: New test.
11580 * testsuite/libgomp.c/loop-4.c: New test.
11581 * testsuite/libgomp.c/loop-5.c: New test.
11582 * testsuite/libgomp.c/loop-6.c: New test.
11583 * testsuite/libgomp.c/loop-7.c: New test.
11584 * testsuite/libgomp.c/loop-8.c: New test.
11585 * testsuite/libgomp.c/loop-9.c: New test.
11586 * testsuite/libgomp.c/nested-3.c: New test.
11587 * testsuite/libgomp.c/nestedfn-6.c: New test.
11588 * testsuite/libgomp.c/sort-1.c: New test.
11589 * testsuite/libgomp.c/task-1.c: New test.
11590 * testsuite/libgomp.c/task-2.c: New test.
11591 * testsuite/libgomp.c/task-3.c: New test.
11592 * testsuite/libgomp.c/task-4.c: New test.
11593 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11594 to C++ testsuite default compiler options.
11595 * testsuite/libgomp.c++/collapse-1.C: New test.
11596 * testsuite/libgomp.c++/collapse-2.C: New test.
11597 * testsuite/libgomp.c++/ctor-10.C: New test.
11598 * testsuite/libgomp.c++/for-1.C: New test.
11599 * testsuite/libgomp.c++/for-2.C: New test.
11600 * testsuite/libgomp.c++/for-3.C: New test.
11601 * testsuite/libgomp.c++/for-4.C: New test.
11602 * testsuite/libgomp.c++/for-5.C: New test.
11603 * testsuite/libgomp.c++/loop-8.C: New test.
11604 * testsuite/libgomp.c++/loop-9.C: New test.
11605 * testsuite/libgomp.c++/loop-10.C: New test.
11606 * testsuite/libgomp.c++/task-1.C: New test.
11607 * testsuite/libgomp.c++/task-2.C: New test.
11608 * testsuite/libgomp.c++/task-3.C: New test.
11609 * testsuite/libgomp.c++/task-4.C: New test.
11610 * testsuite/libgomp.c++/task-5.C: New test.
11611 * testsuite/libgomp.c++/task-6.C: New test.
11612 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11613 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11614 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11615 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11616 * testsuite/libgomp.fortran/collapse1.f90: New test.
11617 * testsuite/libgomp.fortran/collapse2.f90: New test.
11618 * testsuite/libgomp.fortran/collapse3.f90: New test.
11619 * testsuite/libgomp.fortran/collapse4.f90: New test.
11620 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11621 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11622 * testsuite/libgomp.fortran/lib4.f90: New test.
11623 * testsuite/libgomp.fortran/lock-1.f90: New test.
11624 * testsuite/libgomp.fortran/lock-2.f90: New test.
11625 * testsuite/libgomp.fortran/nested1.f90: New test.
11626 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11627 * testsuite/libgomp.fortran/strassen.f90: New test.
11628 * testsuite/libgomp.fortran/tabs1.f90: New test.
11629 * testsuite/libgomp.fortran/tabs2.f: New test.
11630 * testsuite/libgomp.fortran/task1.f90: New test.
11631 * testsuite/libgomp.fortran/task2.f90: New test.
11632 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11633 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11634 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11635 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11636 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11638 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11641 * testsuite/libgomp.c++/ctor-11.C: New test.
11642 * testsuite/libgomp.c++/ctor-12.C: New test.
11644 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11646 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11648 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11650 PR middle-end/36106
11651 * testsuite/libgomp.c/atomic-5.c: New test.
11652 * testsuite/libgomp.c/atomic-6.c: New test.
11653 * testsuite/libgomp.c/autopar-1.c: New test.
11655 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11657 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11658 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11659 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11660 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11661 * configure: Regenerate.
11662 * Makefile.in, testsuite/Makefile.in: Likewise.
11664 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11667 * aclocal.m4: Regenerate.
11668 * configure: Regenerate.
11670 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11672 PR middle-end/35611
11673 * testsuite/libgomp.c/atomic-4.c: New test.
11676 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11677 (gomp_iter_guided_next): Likewise.
11678 * testsuite/libgomp.c/pr35625.c: New test.
11680 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11682 * aclocal.m4: Regenerate.
11683 * configure: Likewise.
11684 * Makefile.in: Likewise.
11685 * testsuite/Makefile.in: Likewise.
11687 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11689 PR middle-end/35185
11690 * testsuite/libgomp.c++/pr35185.C: New test.
11692 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11694 PR middle-end/35549
11695 * testsuite/libgomp.c/pr35549.c: New test.
11697 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11699 * testsuite/libgomp.c/atomic-3.c: New test.
11701 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11704 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11705 .F08 file suffixes.
11707 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11710 * configure.ac: Add ACX_HEADER_STRING.
11711 * env.c: Include strings.h.
11712 * aclocal.m4: Regenerate.
11713 * config.h.in: Regenerate.
11714 * configure: Regenerate.
11715 * Makefile.in: Regenerate.
11716 * testsuite/Makefile.in: Regenerate.
11718 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11720 PR middle-end/35196
11721 * testsuite/libgomp.c/pr35196.c: New test.
11723 PR middle-end/35130
11724 * testsuite/libgomp.fortran/pr35130.f90: New test.
11725 * testsuite/libgomp.c/pr35130.c: New test.
11727 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11729 PR middle-end/33880
11730 * testsuite/libgomp.c/pr33880.c: New test.
11731 * testsuite/libgomp.fortran/pr33880.f90: New test.
11733 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11735 * configure: Regenerate.
11737 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11739 * configure.ac: Move futex checking into ../config/futex.m4.
11740 * configure: Rebuilt.
11741 * aclocal.m4: Rebuilt.
11742 * Makefile.in: Rebuilt.
11744 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11745 2007-10-15 ../config/tls.m4 change.
11747 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11750 * testsuite/libgomp.c/pr34513.c: New test.
11751 * testsuite/libgomp.c++/pr34513.C: New test.
11753 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11756 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11758 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11760 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11762 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11764 * testsuite/libgomp.c/private-1.c: New test.
11766 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11767 Paolo Bonzini <bonzini@gnu.org>
11769 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11770 instead of 'VPATH ='.
11771 * Makefile.in: Regenerate.
11773 2007-11-23 Matthias Klose <doko@ubuntu.com>
11775 * configure.ac: Adjust makeinfo version check.
11776 * configure: Regenerate.
11778 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11781 * testsuite/libgomp.fortran/pr34020.f90: New test.
11783 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11786 * testsuite/libgomp.c++/atomic-1.C: New test.
11788 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11791 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11792 Make x and y integers rather than (implicit) reals. Add private (j)
11793 clause to the last omp parallel.
11795 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11797 * configure: Regenerate following changes to ../config/tls.m4.
11799 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11801 * testsuite/libgomp.fortran/stack.f90: New test.
11803 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11805 * config/mingw32/proc.c: New file.
11807 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11809 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11810 (main): Use __get_cpuid to get i386 target fetaures.
11811 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11812 (main): Use __get_cpuid to get x86_64 target fetaures.
11814 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11817 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11818 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11820 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11823 * testsuite/libgomp.fortran/pr32550.f90: New test.
11824 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11826 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11828 * aclocal.m4: Regenerated.
11830 2007-07-05 Tobias Burnus <burnus@net-b.de>
11833 * testsuite/libgomp.fortran/pr32359.f90: New.
11835 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11838 * sections.c (GOMP_parallel_sections_start): Only decrease
11839 number of threads to COUNT if dyn_var is true.
11840 * testsuite/libgomp.c/pr32468.c: New test.
11842 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11845 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11847 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11849 PR middle-end/32362
11850 * testsuite/libgomp.c/pr32362-1.c: New test.
11851 * testsuite/libgomp.c/pr32362-2.c: New test.
11852 * testsuite/libgomp.c/pr32362-3.c: New test.
11854 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11856 * team.c (gomp_team_start): Fix setting up thread_attr
11859 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11861 * configure: Regenerate.
11863 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11865 * Makefile.in: Regenerate.
11866 * configure: Regenerate.
11867 * aclocal.m4: Regenerate.
11868 * testsuite/Makefile.in: Regenerate.
11870 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11872 * config/linux/proc.c: New file.
11875 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11877 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11879 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11881 2007-04-16 Matthias Klose <doko@debian.org>
11883 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11884 flags if not building with -m64.
11885 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11886 flag for i?86-*-* targets, if current target matches -m64.
11888 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11890 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11891 * Makefile.in: Regenerate.
11893 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11896 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11898 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11900 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11902 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11904 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11905 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11906 (parse_affinity): New function.
11907 (initialize_env): Call it and gomp_init_affinity.
11908 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11909 create new pthread_attr_t and call gomp_init_thread_affinity
11910 on it for each thread before passing the attribute to pthread_create.
11911 * config/linux/affinity.c: New file.
11912 * config/posix/affinity.c: New file.
11913 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11914 * configure: Rebuilt.
11915 * config.h.in: Rebuilt.
11916 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11917 * Makefile.in: Rebuilt.
11919 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11921 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11923 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11924 and use it if found.
11926 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11928 * testsuite/config/default.exp: New file.
11929 * testsuite/lib/libgomp.exp: New file.
11930 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11931 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11932 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11933 (libgomp_load): Remove.
11934 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11935 always_ld_library_path, not ld_library_path. Set additional_flags
11936 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11937 (target_compile): Do not call libgomp_init. Append lang_library_path
11938 and lang_link_flags to options.
11939 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11940 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11942 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11943 always_ld_library_path. Set LD_LIBRARY_PATH here.
11944 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11945 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11946 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11948 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11949 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11950 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11951 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11952 * testsuite/libgomp.c/atomic-10.c: Ditto.
11954 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11956 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11957 dg-final cleanup-modules line.
11958 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11959 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11960 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11961 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11962 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11963 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11964 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11966 2007-03-18 Andreas Schwab <schwab@suse.de>
11968 * acinclude.m4: Adjust regular expression for ld version
11970 * configure: Regenerate.
11972 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11974 * Makefile.am: Add install-pdf target as copied from
11975 automake v1.10 rules.
11976 * Makefile.in: Regenerate
11978 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11981 * configure: Regenerate.
11984 * testsuite/libgomp.c++/pr30703.C: New test.
11986 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11989 2006-07-05 Eric Christopher <echristo@apple.com>
11990 * configure.ac: Depend addition of -pthread on host OS.
11991 * configure: Regenerate.
11993 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11995 * libgomp.texi: Fix spacing after abbreviations.
11997 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
12000 * configure.ac: Add check for makeinfo
12001 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12002 if an appropriate version of makeinfo is found.
12003 * aclocal.m4: Regenerated.
12004 * configure: Regenerated.
12005 * Makefile.in: Regenerated.
12006 * testsuite/Makefile.in: Regenerated.
12008 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
12011 * libgomp.texi: More about implementation-dependent settings.
12013 2007-01-26 Tobias Burnus <burnus@net-b.de>
12015 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12017 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12019 PR middle-end/30494
12020 * testsuite/libgomp.c/pr30494.c: New test.
12022 2007-01-15 Tom Tromey <tromey@redhat.com>
12024 * configure: Rebuilt.
12025 * configure.ac: Fixed comment.
12027 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
12029 * libgomp.texi: Document implementation specific default values of
12030 environment variables.
12032 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
12035 * libgomp.texi: New file.
12036 * configure.ac: Add --enable-generated-files-in-srcdir option.
12037 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12039 * Makefile.in: Regenerated.
12040 * config.h.in: Regenerated.
12041 * testsuite/Makefile.in: Regenerated.
12044 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
12047 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12049 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12051 * configure: Regenerate.
12053 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12056 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12057 start if there shouldn't be any loop iterations.
12058 (gomp_loop_ordered_static_start): Remove start == end test.
12059 * testsuite/libgomp.c/pr29947-1.c: New test.
12060 * testsuite/libgomp.c/pr29947-2.c: New test.
12062 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12064 * configure.tgt: Force initial-exec TLS model on Linux only.
12066 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12068 * configure: Regenerated.
12070 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
12072 * env.c (parse_schedule): Reject out of range values.
12073 (parse_unsigned_long): Reject out of range, negative or zero values.
12075 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12078 * testsuite/libgomp.fortran/pr29629.f90: New test.
12080 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12083 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12084 * config/posix95: New directory.
12085 * config/posix95/omp-lock.h: New file.
12086 * config/posix95/lock.c: Likewise.
12088 2006-10-14 Geoffrey Keating <geoffk@apple.com>
12090 * aclocal.m4: Regenerate.
12091 * configure: Regenerate.
12093 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12095 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12098 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12100 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12102 * configure: Regenerate.
12103 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12105 2006-09-26 Jakub Jelinek <jakub@redhat.com>
12107 PR middle-end/25261
12108 PR middle-end/28790
12109 * testsuite/libgomp.c/nestedfn-4.c: New test.
12110 * testsuite/libgomp.c/nestedfn-5.c: New test.
12111 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12114 * testsuite/libgomp.fortran/condinc1.f: New test.
12115 * testsuite/libgomp.fortran/condinc2.f: New test.
12116 * testsuite/libgomp.fortran/condinc3.f90: New test.
12117 * testsuite/libgomp.fortran/condinc4.f90: New test.
12118 * testsuite/libgomp.fortran/condinc1.inc: New file.
12120 2006-09-18 Tom Tromey <tromey@redhat.com>
12122 * configure: Rebuilt.
12124 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12127 PR preprocessor/14634
12128 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12130 * configure: Regenerate.
12132 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12134 * testsuite/libgomp.fortran/reduction3.f90: Change
12135 -2147483648 to -huge(i)-1 to avoid overflow.
12136 * testsuite/libgomp.fortran/reduction4.f90: Change
12137 Z'ffffffff' to not(0) to avoid overflow.
12139 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12142 * Makefile.am (libsubincludedir): New.
12143 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12144 * Makefile.in: Regenerate.
12146 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12149 * env.c: Include ctype.h.
12150 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12151 leading and/or trailing whitespace and compare strings case
12154 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12157 * testsuite/libgomp.fortran/pr28390.f: New test.
12159 2006-07-05 Eric Christopher <echristo@apple.com>
12161 * configure.ac: Depend addition of -pthread on host OS.
12162 * configure: Regenerate.
12164 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12166 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12167 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12170 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12174 * configure.ac: If neither --enable-linux-futex nor
12175 --disable-linux-futex is passed, determine the default by checking
12176 for compiling and/or running against NPTL. With --enable-linux-futex,
12177 check if SYS_gettid and SYS_futex are defined.
12178 * configure: Rebuilt.
12180 2006-06-14 Richard Henderson <rth@redhat.com>
12183 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12184 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12186 2006-06-09 Richard Henderson <rth@redhat.com>
12188 * env.c (gomp_nthreads_var): Change to unsigned long.
12189 (gomp_run_sched_chunk): Likewise.
12190 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12191 (initialize_env): Initialize gomp_thread_attr.
12192 * libgomp.h (gomp_nthreads_var): Update decl.
12193 (gomp_run_sched_chunk): Likewise.
12194 (gomp_thread_attr): Declare.
12195 * team.c (gomp_thread_attr): Export.
12196 (initialize_team): Don't initialize it.
12198 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12201 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12202 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12204 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12206 * config/mingw32/time.c: New file.
12207 * configure.tgt: Use it.
12209 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12211 * Makefile.am: Add install-html target. Add install-html to .PHONY
12212 * Makefile.in: Regenerate.
12214 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12217 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12218 * testsuite/libgomp.c/critical-1.c: Likewise.
12219 * testsuite/libgomp.c/loop-1.c: Likewise.
12220 * testsuite/libgomp.c/loop-2.c: Likewise.
12221 * testsuite/libgomp.c/single-1.c: Likewise.
12222 * testsuite/libgomp.c/ordered-1.c: Likewise.
12223 * testsuite/libgomp.c/ordered-2.c: Likewise.
12225 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12227 PR middle-end/27416
12228 * libgomp.fortran/pr27416-1.f90: New test.
12230 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12233 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12234 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12236 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12239 * testsuite/libgomp.c/pr26943-1.c: New test.
12240 * testsuite/libgomp.c/pr26943-2.c: New test.
12241 * testsuite/libgomp.c/pr26943-3.c: New test.
12242 * testsuite/libgomp.c/pr26943-4.c: New test.
12243 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12244 * testsuite/libgomp.c++/pr26943.C: New test.
12246 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12248 PR middle-end/27337
12249 * testsuite/libgomp.c++/pr27337.C: New test.
12251 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12254 * testsuite/libgomp.c/pr26171.c: New test.
12256 2006-04-25 Richard Henderson <rth@redhat.com>
12259 * configure.ac: Use GCC_CHECK_TLS.
12260 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12261 * Makefile.in, aclocal.m4, configure: Regenerate.
12263 2006-04-10 Matthias Klose <doko@debian.org>
12265 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12266 directory names containing underscores.
12268 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12271 * testsuite/libgomp.c++/pr26691.C: New test.
12273 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12275 * testsuite/libgomp.fortran/retval2.f90: New test.
12277 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12279 * testsuite/libgomp.c++: New directory.
12281 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12283 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12284 * config/posix/sem.c: Implement the above.
12286 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12288 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12289 define HAVE_BROKEN_POSIX_SEMAPHORES.
12290 * configure: Rebuilt.
12291 * config.h.in: Rebuilt.
12293 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12296 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12297 for the other pthread check.
12298 * configure: Regenerate.
12299 * config.h.in: Regenerate.
12301 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12305 * Makefile.am (fincludedir): New variable.
12306 (nodist_include_HEADERS): Remove Fortran files.
12307 (nodist_finclude_HEADERS): New variable.
12308 * Makefile.in: Regenerated.
12310 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12312 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12313 Remove tests for returning assumed character length arrays.
12315 2006-02-12 Roger Sayle <roger@eyesopen.com>
12316 John David Anglin <dave@hiauly1.hia.nrc.ca>
12319 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12321 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12323 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12325 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12327 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12328 part of LD_LIBRARY_PATH manually.
12330 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12333 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12336 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12339 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12340 * configure.ac (PERL): Don't set.
12341 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12342 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12343 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12344 * omp.h.in: Wrap the new configure substitutions with @ characters.
12345 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12346 * aclocal.m4, configure, Makefile.in: Regenerate.
12347 * mkomp_h.pl: Delete.
12349 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12352 * configure.ac: Use GCC_HEADER_STDINT.
12353 * libgomp.h: Include gstdint.h.
12354 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12355 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12357 2006-01-24 Richard Henderson <rth@redhat.com>
12360 * configure.ac: Add AM_MAINTAINER_MODE.
12361 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12363 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12365 * Makefile.in: Regenerate.
12366 * testsuite/Makefile.in: Regenerate.
12367 * aclocal.m4: Regenerate.
12369 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12371 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12373 * configure.ac: Add check for loadavg.h.
12374 (link_gomp): Adjust comment.
12375 * configure: Regenerate.
12376 * config.h.in: Regenerate.
12378 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12381 * configure.ac: Remove check for alloca.h.
12382 * configure: Regenerate.
12383 * config.h.in: Regenerate.
12384 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12385 * team.c: Remove use of alloca.h.
12386 Call gomp_alloca instead of alloca.
12388 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12391 * team.c: Add include of alloca.h.
12392 * configure.ac: Add check for alloca.h.
12393 * configure: Regenerate.
12394 * config.h.in: Regenerate.
12396 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12399 * testsuite/libgomp.fortran/pr25219.f90: New test.
12401 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12403 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12404 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12405 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12406 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12407 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12408 testsuite/libgomp.fortran/threadprivate1.f90,
12409 testsuite/libgomp.fortran/threadprivate2.f90,
12410 testsuite/libgomp.fortran/threadprivate3.f90,
12411 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12412 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12413 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12414 effective-target to TLS runtime.
12416 * testsuite/libgomp.fortran/pr25162.f: Require
12417 effective-target TLS runtime.
12419 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12421 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12422 * testsuite/libgomp.c/nestedfn-3.c: New test.
12424 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12427 * testsuite/libgomp.fortran/pr25162.f: New test.
12429 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12431 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12432 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12434 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12436 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12437 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12438 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12439 single.c, team.c, work.c, config/linux/alpha/futex.h,
12440 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12441 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12442 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12443 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12444 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12445 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12446 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12449 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12451 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12452 to nodist_noinst_HEADERS.
12453 * Makefile.in: Rebuilt.
12455 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12456 add integer count field.
12457 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12458 omp_nest_lock_t type change.
12459 (omp_init_nest_lock): Likewise. Initialize count to 0.
12460 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12462 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12464 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12465 Increment count if successful and return the new nesting level.
12466 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12467 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12468 * testsuite/libgomp.c/lib-1.c: New test.
12469 * testsuite/libgomp.fortran/lib1.f90: New test.
12470 * testsuite/libgomp.fortran/lib2.f: New test.
12471 * testsuite/libgomp.fortran/lib3.f: New test.
12473 2005-11-17 Richard Henderson <rth@redhat.com>
12476 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12477 * configure.ac (link_gomp): New. Substitute it.
12478 (AC_CONFIG_FILES): Add libgomp.spec.
12479 * libgomp.spec.in: New file.
12480 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12481 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12483 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12485 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12486 reduction(-:var) behaving the same as reduction(+:var).
12487 * testsuite/libgomp.c/reduction-4.c: New test.
12489 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12491 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12492 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12493 testsuite/libgomp.c/copyin-3.c,
12494 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12495 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12496 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12497 testsuite/libgomp.c++/pr24455.C,
12498 testsuite/libgomp.fortran/threadprivate1.f90,
12499 testsuite/libgomp.fortran/threadprivate2.f90,
12500 testsuite/libgomp.fortran/threadprivate3.f90,
12501 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12502 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12503 testsuite/libgomp.fortran/omp_parse3.f90: Require
12504 effective-target TLS.
12506 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12510 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12513 * team.c (initialize_team): Pass NULL rather than free as
12514 pthread_key_create destructor. Initialize thread specific data
12515 pointer in initial thread to a static local variable rather than
12518 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12520 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12521 its location to ld_library_path.
12523 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12525 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12527 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12529 * testsuite/libgomp.c: Rename from libgomp.dg.
12531 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12533 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12534 threadprivate variable 'i'.
12536 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12538 * config/linux/s390/futex.h: New file.
12539 * configure.tgt: Use it.
12541 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12542 before the parallel.
12544 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12547 * testsuite/libgomp.c++/master-1.C: New test.
12549 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12551 * testsuite/libgomp.dg/copyin-3.c: New test.
12553 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12555 * testsuite/libgomp.fortran/retval1.f90: New test.
12556 * testsuite/libgomp.fortran/vla7.f90: New test.
12558 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12560 * testsuite/libgomp.fortran/vla2.f90: New test.
12561 * testsuite/libgomp.fortran/vla3.f90: New test.
12562 * testsuite/libgomp.fortran/vla4.f90: New test.
12563 * testsuite/libgomp.fortran/vla5.f90: New test.
12564 * testsuite/libgomp.fortran/vla6.f90: New test.
12566 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12568 * config/linux/sparc/futex.h: New file.
12569 * configure.tgt: Use it.
12570 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12572 * critical.c: Include stdlib.h.
12573 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12574 ignoring return value.
12575 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12576 LIBGOMP_CHECK_SYNC_BUILTINS check.
12577 * configure: Rebuilt.
12579 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12581 * testsuite/libgomp.fortran/vla1.f90: New test.
12583 2005-10-31 Richard Henderson <rth@redhat.com>
12585 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12586 setting 's' in different threads.
12588 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12590 * libgomp.h (attribute_hidden, ialias): Define.
12591 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12592 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12593 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12594 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12595 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12596 omp_test_lock, omp_test_nest_lock): Likewise.
12597 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12598 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12599 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12600 omp_test_lock, omp_test_nest_lock): Likewise.
12601 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12602 omp_get_dynamic, omp_get_nested): Likewise.
12603 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12604 omp_get_thread_num, omp_in_parallel): Likewise.
12605 * fortran.c (ialias_redirect): Define.
12606 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12607 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12608 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12609 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12610 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12611 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12612 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12613 omp_get_wtime): Add ialias_redirect.
12615 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12617 * fortran.c: Include stdlib.h.
12619 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12621 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12622 * Makefile.in: Regenerated.
12624 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12626 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12627 * libgomp_f.h.in (omp_check_defines): New function.
12628 * env.c: Include libgomp_f.h.
12629 (initialize_env): Call omp_check_defines.
12631 * testsuite/libgomp.dg/copyin-2.c: New test.
12632 * testsuite/libgomp.c++/copyin-2.C: New test.
12633 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12635 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12636 * testsuite/libgomp.fortran/sharing2.f90: New test.
12638 * testsuite/libgomp.dg/copyin-1.c: New test.
12639 * testsuite/libgomp.c++/copyin-1.C: New test.
12641 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12643 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12645 * testsuite/libgomp.fortran/workshare1.f90: New test.
12647 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12649 * libgomp.fortran/sharing1.f90: New test.
12651 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12654 * testsuite/libgomp.c++/loop-7.C: New test.
12656 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12658 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12659 * testsuite/libgomp.fortran/reduction6.f90: New test.
12660 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12662 2005-10-23 Richard Henderson <rth@redhat.com>
12664 * testsuite/libgomp.c++/ctor-1.C: New.
12665 * testsuite/libgomp.c++/ctor-2.C: New.
12666 * testsuite/libgomp.c++/ctor-3.C: New.
12667 * testsuite/libgomp.c++/ctor-4.C: New.
12668 * testsuite/libgomp.c++/ctor-5.C: New.
12669 * testsuite/libgomp.c++/ctor-6.C: New.
12670 * testsuite/libgomp.c++/ctor-7.C: New.
12671 * testsuite/libgomp.c++/ctor-8.C: New.
12672 * testsuite/libgomp.c++/ctor-9.C: New.
12674 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12677 * testsuite/libgomp.c++/pr24455-1.C: New test.
12678 * testsuite/libgomp.c++/pr24455.C: New test.
12679 * testsuite/libgomp.dg/pr24455-1.c: New test.
12680 * testsuite/libgomp.dg/pr24455.c: New test.
12682 2005-10-20 Richard Henderson <rth@redhat.com>
12684 * testsuite/libgomp.c++/loop-6.C: New.
12685 * testsuite/libgomp.dg/loop-3.c: New.
12687 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12689 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12690 explicitly private.
12691 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12694 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12696 * testsuite/libgomp.fortran/jacobi.f: New test.
12698 2005-10-19 Richard Henderson <rth@redhat.com>
12700 * configure.tgt (i?86-linux): Default to with_arch instead of
12701 CFLAGS. Add -mtune to match target_cpu.
12702 (x86_64-linux): Tune to i686.
12704 * fortran.c (omp_test_nest_lock_): Fix typo.
12706 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12708 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12709 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12710 * testsuite/libgomp.dg/ordered-3.c: New test.
12712 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12713 Remove volatile keyword.
12715 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12716 in COMMON block to avoid warnings on 64-bit targets.
12718 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12720 * testsuite/libgomp.dg/shared-3.c: New test.
12722 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12724 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12725 * testsuite/libgomp.fortran/reduction5.f90: New test.
12727 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12729 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12731 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12732 flush loop now that __sync_synchronize has proper memory barrier.
12733 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12734 Add -ffixed-form to dg-options.
12736 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12738 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12739 from subdirectories.
12740 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12741 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12742 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12743 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12744 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12745 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12746 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12747 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12748 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12749 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12750 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12751 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12752 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12753 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12754 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12755 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12756 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12757 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12758 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12759 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12760 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12761 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12762 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12763 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12764 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12766 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12768 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12769 lang_library_path exists. Use find instead of glob to gather tests.
12770 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12772 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12774 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12775 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12776 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12777 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12778 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12779 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12780 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12781 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12782 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12783 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12784 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12785 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12786 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12788 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12790 * testsuite/libgomp.dg/vla-1.c: New test.
12792 * testsuite/libgomp.fortran/reference2.f90: New test.
12794 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12795 declaration of omp_get_thread_num.
12796 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12799 * testsuite/libgomp.fortran/reduction1.f90: New test.
12800 * testsuite/libgomp.fortran/reduction2.f90: New test.
12801 * testsuite/libgomp.fortran/reduction3.f90: New test.
12802 * testsuite/libgomp.fortran/reduction4.f90: New test.
12804 2005-10-13 Richard Henderson <rth@redhat.com>
12806 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12807 * Makefile.in: Regenerate.
12808 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12809 * libgomp.h: Include bar.h.
12810 (struct gomp_barrier): Remove.
12811 (struct gomp_team): Add barrier. Replace master_barrier with
12812 master_release. Replace threads with ordered_release.
12813 (struct gomp_thread): Replace barrier with release.
12814 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12815 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12816 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12817 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12818 (GOMP_single_copy_end): Likewise.
12819 * team.c (gomp_threads_dock): New.
12820 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12821 (gomp_thread_start): Use gomp_barrier_wait.
12822 (new_team, free_team): Update for gomp_team changes.
12823 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12824 (gomp_team_end): Use gomp_barrier_wait.
12825 (initialize_team): Update for gomp_thread changes.
12826 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12827 (gomp_work_share_end_nowait): Use atomic ops when available.
12828 * config/linux/bar.c, config/linux/bar.h: New files.
12829 * config/posix/bar.c, config/posix/bar.h: New files.
12831 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12833 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12834 * testsuite/libgomp.dg/single-2.c: New test.
12836 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12837 lang_link_flags): Unset, so that they aren't inherited from previously
12840 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12842 2005-10-12 Richard Henderson <rth@redhat.com>
12844 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12845 (libgomp_init): Use lang_test_file, lang_library_path, and
12846 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12848 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12849 (lang_test_file, lang_link_flags): New.
12850 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12852 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12853 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12854 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12855 testsuite/libgomp.c++/parallel-1.C,
12856 testsuite/libgomp.c++/reduction-1.C,
12857 testsuite/libgomp.c++/reduction-2.C,
12858 testsuite/libgomp.c++/reduction-3.C,
12859 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12860 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12861 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12862 New files, largely cribbed from the C testsuite.
12864 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12866 * testsuite/libgomp.fortran/character1.f90: New test.
12867 * testsuite/libgomp.fortran/character2.f90: New test.
12869 * testsuite/libgomp.dg/nested-1.c: New test.
12870 * testsuite/libgomp.dg/nested-2.c: New test.
12871 * testsuite/libgomp.fortran/do1.f90: New test.
12872 * testsuite/libgomp.fortran/do2.f90: New test.
12874 * testsuite/libgomp.fortran/reference1.f90: New test.
12876 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12878 * testsuite/libgomp.dg/reduction-1.c: New test.
12879 * testsuite/libgomp.dg/reduction-2.c: New test.
12880 * testsuite/libgomp.dg/reduction-3.c: New test.
12882 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12884 * testsuite/libgomp.dg/atomic-1.c: New test.
12885 * testsuite/libgomp.dg/atomic-2.c: New test.
12887 2005-10-09 Richard Henderson <rth@redhat.com>
12889 * critical.c (atomic_lock): New.
12890 (initialize_critical): Initialize it.
12891 (GOMP_atomic_start, GOMP_atomic_end): New.
12892 * libgomp.map: Export them.
12893 * libgomp_g.h: Declare them.
12895 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12897 2005-10-02 Richard Henderson <rth@redhat.com>
12899 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12900 to XCFLAGS instead of CFLAGS.
12902 2005-09-30 Richard Henderson <rth@redhat.com>
12904 * configure.ac: Determine whether -pthread or -lpthread is needed.
12905 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12906 * Makefile.in, configure: Rebuild.
12908 2005-09-28 Richard Henderson <rth@redhat.com>
12910 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12911 * testsuite/libgomp.dg/omp-single-3.c: New test.
12913 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12915 * testsuite/libgomp.dg/omp-single-2.c: New test.
12916 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12918 2005-09-27 Richard Henderson <rth@redhat.com>
12920 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12921 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12923 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12925 * testsuite/libgomp.dg/omp-loop03.c: New test.
12927 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12929 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12931 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12933 * testsuite/libgomp.dg/omp-single-1.c: New test.
12934 * testsuite/libgomp.dg/shared-1.c: Return 0.
12935 Add prototype for abort.
12936 * testsuite/libgomp.dg/shared-2.c: Likewise.
12938 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12940 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12943 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12945 * testsuite/libgomp.dg/shared-1.c: New test.
12946 * testsuite/libgomp.dg/shared-2.c: New test.
12948 2005-09-24 Richard Henderson <rth@redhat.com>
12950 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12952 2005-09-24 Richard Henderson <rth@redhat.com>
12954 * iter.c (gomp_iter_static_next): Round up when computing number
12955 of iterations. Don't bother distributing a remainder equally.
12957 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12958 Don't call srand. Zero b before testing.
12961 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12963 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12964 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12966 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12968 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12969 without !$omp end do, followed immediately by subroutine end.
12971 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12973 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12975 2005-09-22 Richard Henderson <rth@redhat.com>
12977 * critical.c (GOMP_critical_name_start): Change argument to void**.
12978 Reuse the pointer space if the mutex fits.
12979 (GOMP_critical_name_end): Likewise.
12980 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12981 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12982 (GOMP_critical_name_end): Likewise.
12983 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12984 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12986 2005-09-20 Richard Henderson <rth@redhat.com>
12988 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12989 (create_lock_lock): New.
12990 (initialize_critical): Initialize it.
12991 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12992 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12994 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12996 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12998 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13000 * testsuite/libgomp.dg/omp-loop01.c: New test.
13001 * testsuite/libgomp.dg/omp-loop02.c: New test.
13003 2005-09-20 Jakub Jelinek <jakub@redhat.com>
13005 * configure.ac (AC_PROG_FC): Add.
13006 (USE_FORTRAN): New automake conditional.
13007 * configure: Rebuilt.
13008 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13009 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13010 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13011 Add rules to build them.
13012 * Makefile.in: Rebuilt.
13013 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13014 OMP_NEST_LOCK_KIND.
13015 * libgomp.map: Add Fortran wrappers.
13016 * libgomp_f.h.in: New file.
13017 * omp_lib.h.in: New file.
13018 * omp_lib.f90.in: New file.
13019 * fortran.c: New file.
13020 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13021 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13022 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13023 libgfortran has been built.
13024 * testsuite/libgomp.fortran/fortran.exp: New file.
13025 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13026 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13027 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13028 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13029 * testsuite/libgomp.fortran/omp_hello.f: New test.
13030 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13031 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13032 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13033 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13034 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13035 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13036 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13037 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13039 2005-08-30 Richard Henderson <rth@redhat.com>
13041 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13042 function for when aliases are not usable.
13043 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13044 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13045 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13046 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13047 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13048 GOMP_loop_ordered_guided_next): Likewise.
13049 * ordered.c (GOMP_ordered_start): Likewise.
13051 2005-08-01 Diego Novillo <dnovillo@redhat.com>
13053 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13054 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13055 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13056 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13057 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13058 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13059 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13060 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13061 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13063 2005-07-07 Eric Christopher <echristo@redhat.com>
13064 Diego Novillo <dnovillo@redhat.com>
13066 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13067 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13069 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13070 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13071 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13072 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13073 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13074 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13075 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13077 2005-06-13 Diego Novillo <dnovillo@redhat.com>
13079 * TOPLEVEL.patch: Remove.
13081 2005-05-16 Richard Henderson <rth@redhat.com>
13083 * configure.ac: Test for clock_gettime.
13084 * config.h.in, configure: Rebuild.
13085 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13086 (omp_get_wtime): Use clock_gettime if available.
13087 (omp_get_wtick): Use clock_getres if available.
13089 2005-05-11 Richard Henderson <rth@redhat.com>
13091 * config/linux/ia64/futex.h: New file.
13092 * configure.tgt: Use it.
13094 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13096 2005-05-07 Richard Henderson <rth@redhat.com>
13098 * config/linux/powerpc/futex.h: New file.
13099 * configure.tgt: Use it.
13101 * config/linux/i486/futex.h: Merge ...
13102 * config/linux/x86_64/futex.h: ... into ...
13103 * config/linux/x86/futex.h: ... here.
13104 * configure.tgt: Update to match.
13106 2005-05-06 Richard Henderson <rth@redhat.com>
13108 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13109 * config/linux/i486/futex.h: Likewise.
13110 * config/linux/x86_64/futex.h: Likewise.
13112 * config/linux/lock.c: New file.
13113 * config/linux/omp-lock.h: New file.
13115 * critical.c, env.h: Don't include omp.h
13116 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13117 * config/posix/time.c: Likewise.
13118 * config/posix/omp-lock.h: New file.
13119 * libgomp.h: Include omp-lock.h and omp.h.
13120 * Makefile.am (nodist_include_HEADERS): New.
13122 * configure.ac (PERL): New.
13123 * mkomp_h.pl: New file.
13124 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13126 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13128 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13129 build directory. Re-add -march=i486 hack.
13131 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13132 (libgomp_link_flags): Remove.
13133 (libgomp_initialized): Remove.
13134 (libgomp_init): Don't protect from reinitialization. Copy code
13135 from libstdc++ for getting the multilib set correctly.
13137 2005-05-05 Richard Henderson <rth@redhat.com>
13139 * config/linux/alpha/futex.h: New file.
13140 * configure.tgt (alpha*-*-linux*): Use it.
13142 * config/posix/mutex.c: New file.
13143 * config/posix/sem.c: Use libgomp.h.
13145 * configure.tgt (x86_64-linux): Also test CC for -m32.
13146 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13148 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13151 * Makefile.am (SUBDIRS): New.
13152 (libgomp_la_LDFLAGS): Add -lpthread.
13153 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13154 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13156 * libgomp_g.h: New file.
13157 * libgomp.h: Split out all public declarations to libgomp_g.h.
13158 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13159 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13160 * config/linux/sem.h: Likewise.
13161 * config/posix/sem.h: Likewise.
13163 * Makefile.am (AM_LDFLAGS): New.
13164 (libgomp_version_script): Split out from ...
13165 (libgomp_la_LDFLAGS): ... here.
13166 (libgomp_version_info): New.
13167 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13168 (LIBGOMP_ENABLE): New.
13169 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13170 (LIBGOMP_ENABLE_SYMVERS): New.
13171 * configure.ac (AC_INIT): Version 1.0.
13172 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13173 (enable-linux-futex): Likewise. Rename from enable-futex.
13174 (libtool_VERSION): New.
13175 (LIBGOMP_ENABLE_SYMVERS): Use it.
13176 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13177 * Makefile.in, aclocal.m4, configure: Rebuild.
13179 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13180 (gomp_mutex_unlock_slow): Fix typo.
13181 * config/linux/sem.c: Similarly.
13182 (gomp_sem_post_slow): Fix typo.
13183 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13184 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13185 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13187 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13188 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13189 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13190 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13191 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13192 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13193 LDFLAGS. Pull enable_futex check to top-level.
13194 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13195 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13197 First attempt at real configury.
13198 * Makefile, config.h: Remove file.
13199 * Makefile.am, Makefile.in: New file.
13200 * acinclude.m4 aclocal.m4: New file.
13201 * configure.ac, configure.tgt, configure: New file.
13203 * config/posix/lock.c: Rename from sys-lock.c.
13204 * config/posix/mutex.h: Rename from sys-mutex.h.
13205 * config/posix/sem.c: Rename from sys-sem.c.
13206 * config/posix/sem.h: Rename from sys-sem.h.
13207 * config/posix/proc.c: Rename from sys-proc.c.
13208 * config/posix/time.c: Rename from sys-proc.c.
13210 * config/linux/mutex.c: New file.
13211 * config/linux/mutex.h: New file.
13212 * config/linux/sem.c: New file.
13213 * config/linux/sem.h: New file.
13214 * config/linux/i486/futex.h: New file.
13215 * config/linux/x86_64/futex.h: New file.
13217 2005-05-04 Richard Henderson <rth@redhat.com>
13219 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13220 * libgomp.h: Declare them.
13221 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13222 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13224 2005-05-04 Richard Henderson <rth@redhat.com>
13226 * libgomp-1 code drop
13228 2005-05-04 Richard Henderson <rth@redhat.com>
13230 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13231 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13232 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13233 (gomp_iter_static_next): Update.
13234 (gomp_ordered_static_next): Update.
13235 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13236 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13237 totally empty range.
13238 (gomp_loop_ordered_static_next): Refine test for calling
13239 gomp_ordered_static_next.
13240 * testsuite/ordered-1.c: Add case for more threads than iterations.
13242 * iter.c (gomp_iter_runtime_next_locked): Remove.
13243 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13244 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13245 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13246 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13247 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13248 gomp_loop_ordered_guided_next): Downcase name, make static, add
13249 an external alias with the old name.
13250 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13251 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13252 switch and call one of the above static functions.
13253 * libgomp.h: Update.
13255 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13256 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13257 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13258 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13259 GOMP_loop_ordered_guided_start): Update to match.
13260 * sections.c (GOMP_sections_start): Likewise.
13261 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13263 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13264 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13265 Use bounds check instead of modulus.
13266 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13267 (gomp_ordered_last): Don't sync with ordered_owner here.
13268 (gomp_ordered_next): Likewise.
13269 (gomp_ordered_static_loop_next): Likewise.
13270 * loop.c, libgomp.h: Update to match.
13272 * libgomp.h (GOMP_barrier): Declare.
13274 * testsuite/barrier-1.c: New file.
13275 * testsuite/critical-1.c: New file.
13276 * testsuite/ordered-2.c: New file.
13277 * testsuite/ordered-1.c: New file.
13278 * testsuite/sections-1.c: New file.
13279 * testsuite/single-1.c: New file.
13280 * testsuite/Makefile (TESTS): Add them.
13282 2005-05-04 Richard Henderson <rth@redhat.com>
13284 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13285 * loop.c (GOMP_loop_static_start): If not the startup thread,
13286 acquire the mutex to wait for initialization complete.
13287 (GOMP_loop_ordered_static_start): Likewise.
13288 (GOMP_loop_ordered_runtime_start): Likewise.
13289 (GOMP_loop_ordered_static_first): Remove.
13290 (GOMP_loop_ordered_dynamic_first): Remove.
13291 (GOMP_loop_ordered_guided_first): Remove.
13292 (GOMP_loop_ordered_runtime_first): Remove.
13293 * ordered.c (gomp_ordered_loop_first): Post to own release when
13294 we're the first thread.
13295 (gomp_ordered_loop_last): Wait on release if not owner.
13296 (gomp_ordered_loop_next): Likewise.
13297 (gomp_ordered_static_loop_init): New.
13298 (gomp_ordered_static_loop_next): Use ordered_owner.
13299 (GOMP_ordered_start): Likewise.
13300 * work.c (gomp_new_work_share): Initialize ordered_owner.
13302 2005-05-03 Richard Henderson <rth@redhat.com>
13304 * Makefile (OPT): New.
13307 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13308 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13309 * libgomp.h, libgomp.map, NOTES: Update to match.
13311 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13312 Add initialized and thr members.
13313 (gomp_thread_start): Pause when initially spawned to wait for
13314 the whole team to be created.
13315 (gomp_team_start): Release team members at the end.
13317 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13318 (f_foo_1): Use GOMP_loop_end.
13319 (f_foo_2): Use GOMP_loop_end_nowait.
13321 * testsuite/loop-2.c: New file.
13322 * testsuite/Makefile (TESTS): Add it.
13324 2005-05-03 Richard Henderson <rth@redhat.com>
13326 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13327 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13328 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13329 initial work_share.
13331 * testsuite/Makefile: New file.
13332 * testsuite/loop-1.c: New file.
13334 2005-05-03 Richard Henderson <rth@redhat.com>
13336 Initial implementation and checkin.
13338 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13340 Copying and distribution of this file, with or without modification,
13341 are permitted in any medium without royalty provided the copyright
13342 notice and this notice are preserved.