1 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
3 * configure: Regenerated.
5 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7 * testsuite/libgomp.c-c++-common/target-40.c: New test.
9 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
12 * testsuite/libgomp.fortran/pr66199-3.f90: New.
13 * testsuite/libgomp.fortran/pr66199-4.f90: New.
14 * testsuite/libgomp.fortran/pr66199-5.f90: New.
15 * testsuite/libgomp.fortran/pr66199-6.f90: New.
16 * testsuite/libgomp.fortran/pr66199-7.f90: New.
17 * testsuite/libgomp.fortran/pr66199-8.f90: New.
18 * testsuite/libgomp.fortran/pr66199-9.f90: New.
20 2020-05-12 Jakub Jelinek <jakub@redhat.com>
22 * testsuite/libgomp.c/target-39.c: New test.
24 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
26 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
27 * openacc.f90 (acc_device_current): Likewise.
28 * openacc.h (acc_device_current): Likewise.
29 * openacc_lib.h (acc_device_current): Likewise.
32 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
33 'dg-allow-blank-lines-in-output'.
35 * oacc-init.c (get_openacc_name): Handle 'gcn'.
36 * testsuite/lib/libgomp.exp
37 (offload_target_to_openacc_device_type) [amdgcn*]: Return
38 'radeon'. Adjust all users.
39 (check_effective_target_openacc_amdgcn_accel_present): Rename
41 (check_effective_target_openacc_radeon_accel_present): ... this.
43 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
44 (check_effective_target_openacc_radeon_accel_selected): ... this.
47 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
50 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
54 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
56 (GOMP_OFFLOAD_init_device): Check return values from both calls to
57 hsa_agent_iterate_regions.
59 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
62 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
65 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
68 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
71 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
74 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
76 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
79 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
81 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
83 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
85 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
87 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
89 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
91 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
93 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
95 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
97 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
99 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
101 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
103 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
105 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
107 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
109 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
111 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
113 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
115 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
117 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
119 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
121 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
123 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
125 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
127 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
129 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
131 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
133 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
135 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
137 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
139 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
141 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
144 2020-04-10 Julian Brown <julian@codesourcery.com>
145 Thomas Schwinge <thomas@codesourcery.com>
148 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
150 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
152 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
154 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
156 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
158 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
160 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
162 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
164 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
166 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
168 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
170 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
172 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
174 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
176 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
178 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
181 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
183 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
186 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
189 * libgomp.oacc-c++/declare-pr94120.C: New.
191 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
193 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
195 * configure: Regenerate.
196 * testsuite/libgomp-site-extra.exp.in: New file.
197 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
199 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
201 * testsuite/Makefile.in: Regenerate.
203 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
205 PR tree-optimization/89713
207 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
209 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
211 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
213 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
214 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
216 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
219 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
221 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
224 * target.c (gomp_load_image_to_device): Fix link
227 2020-03-19 Jakub Jelinek <jakub@redhat.com>
230 * testsuite/libgomp.c++/pr93931.C: New test.
232 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
234 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
235 dg-allow-blank-lines-in-output.
237 2020-03-18 Julian Brown <julian@codesourcery.com>
238 Tobias Burnus <tobias@codesourcery.com>
240 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
241 it work concurrently.
243 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
245 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
246 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
247 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
249 2020-03-14 Jakub Jelinek <jakub@redhat.com>
252 * testsuite/libgomp.c/pr93566.c: New test.
254 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
256 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
257 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
258 integer(acc_device_property) for the type of the return value of
261 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
263 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
264 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
265 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
266 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
267 (acc_set_device_num): Fix Fortran argument name, use same name for C.
268 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
269 corrections; add note about the previous interface and named constant.
270 (OpenACC library and environment variables): Fix two typos.
271 * openacc.f90: Use for all procedures the argument names from the spec
272 as for …_h they are user visible.
273 (openacc_kinds): Rename acc_device_property to
274 acc_device_property_kinds and change value to int32 ; and update users.
275 Re-add acc_device_property for for backward compatibility.
276 (acc_get_property_string_h): Clean up as acc_device_property_kind
278 (acc_get_property_h): Likewise and return c_size_t instead of
280 (openacc): Also export acc_device_property_kinds.
281 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
282 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
283 handling; check against /= 0 instead of == 1 to match C.
284 * openacc_lib.h: Use for all procedures the argument names from the spec
285 as for …_h they are user visible. Place !GCC$ into the first column to
286 be active also for fixed-form souce form.
287 (acc_device_current, acc_device_property_kind, acc_device_property,
288 acc_property_memory, acc_property_free_memory, acc_property_name,
289 acc_property_vendor, acc_property_driver): New named constants.
290 (acc_get_property, acc_get_property_string): New generic interface.
292 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
295 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
296 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
298 (gomp_target_task_fn): Assert "devicep->async_run_func".
299 (clear_unsupported_flags): New function to remove unsupported flags
300 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
301 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
302 * testsuite/libgomp.c/target-33.c:
303 Remove xfail for offload_target_nvptx.
304 * testsuite/libgomp.c/target-34.c: Likewise.
306 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
308 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
309 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
310 * testsuite/libgomp.c/target-34.c: Likewise.
311 * testsuite/libgomp.c/target-link-1.c: Add xfail for
312 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
314 2020-02-09 Jakub Jelinek <jakub@redhat.com>
316 * testsuite/libgomp.c/target-38.c: New test.
318 2020-02-06 Jakub Jelinek <jakub@redhat.com>
321 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
323 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
325 * testsuite/lib/libgomp.exp
326 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
327 and not as 'source' argument to libgomp_target_compile.
329 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
331 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
332 (gcn_gfx801_s): Remove.
333 (isa_hsa_name): Remove gfx801.
334 (isa_gcc_name): Remove gfx801/carizzo.
335 (isa_code): Remove gfx801.
337 2020-02-03 Julian Brown <julian@codesourcery.com>
338 Tobias Burnus <tobias@codesourcery.com>
340 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
341 and *_finalize variants; document acc_attach and acc_detach; update
342 references from OpenACC 2.0 to 2.6.
343 * openacc.f90 (openacc_version): Update to 201711.
344 * openacc_lib.h (openacc_version): Update to 201711.
345 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
346 openacc_version to 201711.
347 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
349 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
351 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
352 and vgpr_count fields.
353 (struct kernel_info): Add a field for a hsa_kernel_description.
354 (run_kernel): Reduce the number of threads/workers if the requested
355 number would require too many VGPRs.
356 (init_basic_kernel_info): Initialize description field with
357 the hsa_kernel_description entry for the kernel.
359 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
362 * plugin/configfrag.ac (enable_offload_targets): Skip
363 HSA and GCN plugin besides -m32 also for -mx32.
364 * configure: Regenerate.
366 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
368 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
370 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
372 * plugin-gcn.c (struct agent_info): Add fields "name" and
374 (GOMP_OFFLOAD_init_device): ... and init from here.
375 (struct hsa_context_info): Add field "driver_version_s" ...
376 (init_hsa_contest): ... and init from here.
377 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
379 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
380 Enable test execution for amdgcn and host offloading targets.
381 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
382 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
383 (expect_device_properties): Split function into ...
384 (expect_device_string_properties): ... this new function ...
385 (expect_device_memory): ... and this new function.
386 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
389 2020-01-28 Julian Brown <julian@codesourcery.com>
391 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
392 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
393 component/non-component variable refs in a single directive.
394 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
396 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
398 * configure.ac: Handle `--with-toolexeclibdir='.
399 * Makefile.in: Regenerate.
400 * aclocal.m4: Regenerate.
401 * configure: Regenerate.
402 * testsuite/Makefile.in: Regenerate.
404 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
406 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
407 (expect_device_properties): Remove "expected_free_mem" argument,
408 change "expected_total_mem" argument type to size_t;
409 change types of acc_get_property results to size_t,
410 adapt format strings.
411 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
412 Use %zu instead of %zd to print size_t values.
413 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
415 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
416 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
418 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
420 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
422 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
425 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
427 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
428 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
429 Adjust test dimensions for amdgcn.
430 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
431 gang/worker/vector expectations dynamically.
432 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
434 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
435 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
436 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
437 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
438 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
439 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
440 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
441 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
442 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
443 (acc_gang): Recognise acc_device_radeon.
444 (acc_worker): Likewise.
445 (acc_vector): Likewise.
446 (main): Set expectations for amdgcn.
447 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
448 (main): Adjust gang/worker/vector expectations dynamically.
449 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
450 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
451 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
452 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
455 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
457 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
460 * openacc.f90 (openacc_kinds): Likewise.
462 * openacc.h (acc_device_t): Likewise.
463 * openacc_lib.h: Likewise.
464 * testsuite/lib/libgomp.exp
465 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
466 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
467 (cb_compute_construct_end): Likewise.
468 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
469 (cb_enqueue_launch_start): Likewise.
470 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
471 (cb_enter_data_end): Likewise.
472 (cb_exit_data_start): Likewise.
473 (cb_exit_data_end): Likewise.
474 (cb_compute_construct_end): Likewise.
475 (cb_enqueue_launch_start): Likewise.
476 (cb_enqueue_launch_end): Likewise.
477 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
480 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
482 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
483 to use this instead of 'enum gomp_device_property'.
484 (GOMP_OFFLOAD_get_property): Rename to...
485 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
486 * libgomp.h (struct gomp_device_descr): Move
487 'GOMP_OFFLOAD_openacc_get_property'...
488 (struct acc_dispatch_t): ... here. Adjust all users.
489 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
491 * target.c (gomp_map_vars_internal)
492 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
495 2020-01-10 Jakub Jelinek <jakub@redhat.com>
498 * libgomp.h (gomp_print_string): Change return type from void to int.
499 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
500 not all characters have been written.
502 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
504 * libgomp.texi: Fix typos, use https.
506 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
508 * testsuite/libgomp.fortran/optional-map.f90: Add test for
509 unallocated/disassociated actual arguments to nonallocatable/nonpointer
510 dummy arguments; those are/shall be regarded as absent arguments.
511 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
512 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
514 2020-01-01 Jakub Jelinek <jakub@redhat.com>
516 Update copyright years.
518 * libgomp.texi: Bump @copying's copyright year.
520 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
523 * oacc-init.c (goacc_runtime_deinitialize): New function.
525 2019-12-28 Jakub Jelinek <jakub@redhat.com>
528 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
529 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
531 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
532 Frederik Harwath <frederik@codesourcery.com>
533 Thomas Schwinge <tschwinge@codesourcery.com>
535 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
536 * libgomp-plugin.h (gomp_device_property_value): New union.
537 (gomp_device_property_value): New prototype.
538 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
540 (acc_device_property_t): New enum.
541 (acc_get_property, acc_get_property_string): New prototypes.
542 * oacc-init.c (acc_get_device_type): Also assert that result
543 is not `acc_device_current'.
544 (get_property_any, acc_get_property, acc_get_property_string):
546 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
547 `acc_property_memory', `acc_property_free_memory',
548 `acc_property_name', `acc_property_vendor' and
549 `acc_property_driver' constants. Add `acc_device_property' data
551 (openacc_internal): Add `acc_get_property' and
552 `acc_get_property_string' interfaces. Add `acc_get_property_h',
553 `acc_get_property_string_h', `acc_get_property_l' and
554 `acc_get_property_string_l'.
555 * oacc-host.c (host_get_property): New function.
556 (host_dispatch): Wire it.
557 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
558 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
559 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
560 * libgomp.texi (OpenACC Runtime Library Routines): Add
562 (acc_get_property): New node.
563 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
565 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
566 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
567 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
569 (GOMP_OFFLOAD_get_property): New function.
570 (struct ptx_device): Add new field "name".
571 (cuda_driver_version_s): Add new static variable ...
572 (nvptx_init): ... and init from here.
574 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
575 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
576 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
577 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
578 with test helper functions.
580 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
582 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
584 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
587 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
589 * target.c (gomp_map_vars_internal): Restore 'omp declare target
592 2019-12-19 Julian Brown <julian@codesourcery.com>
594 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
595 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
596 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
598 2019-12-19 Julian Brown <julian@codesourcery.com>
599 Cesar Philippidis <cesar@codesourcery.com>
601 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
602 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
603 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
604 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
605 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
606 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
607 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
608 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
609 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
610 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
611 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
612 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
613 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
615 2019-12-19 Julian Brown <julian@codesourcery.com>
617 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
618 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
619 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
620 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
621 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
622 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
623 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
624 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
625 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
626 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
627 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
628 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
630 2019-12-19 Julian Brown <julian@codesourcery.com>
632 * libgomp.h (struct target_var_desc): Add do_detach flag.
633 * oacc-init.c (acc_shutdown_1): Free aux block if present.
634 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
635 struct components. Tidy up and add some new checks.
636 (goacc_enter_data_internal): Update call to find_group_last.
637 (goacc_exit_data_internal): Support detach operations and
639 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
640 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
641 attach/detach in enter/exit data detection code.
642 * target.c (gomp_map_vars_existing): Initialise do_detach field of
644 (gomp_map_vars_internal): Support attach.
645 (gomp_unmap_vars_internal): Support detach.
647 2019-12-19 Julian Brown <julian@codesourcery.com>
648 Thomas Schwinge <thomas@codesourcery.com>
650 * libgomp.h (struct splay_tree_aux): Add attach_count field.
651 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
652 * libgomp.map (OACC_2.6): New section. Add acc_attach,
653 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
654 acc_detach_finalize_async.
655 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
656 acc_detach, acc_detach_async, acc_detach_finalize,
657 acc_detach_finalize_async): New functions.
658 * openacc.h (acc_attach, acc_attach_async, acc_detach,
659 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
661 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
662 (gomp_remove_var_internal): Free attachment counts if present.
663 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
664 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
666 2019-12-19 Julian Brown <julian@codesourcery.com>
667 Cesar Philippidis <cesar@codesourcery.com>
669 * libgomp.h (gomp_map_val): Add prototype.
670 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
671 open-coding device-address calculation.
672 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
675 2019-12-19 Julian Brown <julian@codesourcery.com>
677 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
678 field for virtual_refcount.
679 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
680 (gomp_free_memmap): Remove prototype.
681 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
682 instead of calling gomp_free_memmap.
683 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
685 (acc_unmap_data): Open code instead of forcing target_mem_desc's
686 to_free field to NULL then calling gomp_unmap_vars. Handle
687 REFCOUNT_INFINITY on target blocks.
688 (goacc_enter_data): Rename to...
689 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
690 handling for mapping groups. Use virtual_refcount instead of
691 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
692 map_map_vars_async call. Re-do lookup for target pointer return value.
693 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
694 renamed goacc_enter_datum function.
695 (goacc_exit_data): Rename to...
696 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
697 (acc_delete, acc_delete_async, acc_delete_finalize,
698 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
699 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
700 goacc_exit_datum function.
701 (gomp_acc_remove_pointer, find_pointer): Remove functions.
702 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
704 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
705 goacc_exit_data_internal helper functions.
706 * target.c (gomp_map_vars_internal): Handle
707 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
709 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
710 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
711 virtual_refcount field instead of dynamic_refcount.
712 (gomp_free_memmap): Remove function.
713 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
714 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
715 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
717 2019-12-19 Julian Brown <julian@codesourcery.com>
718 Thomas Schwinge <thomas@codesourcery.com>
720 * libgomp.h (struct splay_tree_aux): New.
721 (struct splay_tree_key_s): Replace link_key field with aux pointer.
722 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
724 (gomp_remove_var_internal): Free aux block if present.
725 (gomp_load_image_to_device): Zero-initialise aux field instead of
727 (omp_target_associate_pointer): Zero-initialise aux field.
729 2019-12-18 Jakub Jelinek <jakub@redhat.com>
732 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
734 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
737 2019-12-19 Julian Brown <julian@codesourcery.com>
738 Maciej W. Rozycki <macro@codesourcery.com>
739 Tobias Burnus <tobias@codesourcery.com>
740 Thomas Schwinge <thomas@codesourcery.com>
742 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
743 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
744 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
745 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
746 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
747 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
748 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
749 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
750 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
752 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
754 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
756 (goacc_insert_pointer): ... from here, "present" case.
757 (goacc_insert_pointer): Inline function into...
758 (GOACC_enter_exit_data): ... here, and simplify.
760 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
762 (goacc_insert_pointer): ... from here, "not present" case.
764 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
767 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
768 'goacc_enter_data', 'goacc_exit_data'.
770 * oacc-mem.c (delete_copyout): Refactor into...
771 (goacc_exit_data): ... this. Adjust all users.
773 * oacc-mem.c (present_create_copy): Refactor into...
774 (goacc_enter_data): ... this. Adjust all users.
776 * target.c (gomp_unmap_vars_internal): Add a safeguard to
779 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
780 like 'GOMP_MAP_FROM'.
785 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
787 (GOACC_enter_exit_data): Simplify accordingly.
788 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
790 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
791 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
793 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
795 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
796 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
798 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
800 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
802 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
806 * oacc-mem.c (acc_map_data, present_create_copy)
807 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
808 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
809 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
810 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
811 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
812 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
813 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
814 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
817 * target.c (gomp_unmap_tgt): Make it 'static'.
818 * libgomp.h (gomp_unmap_tgt): Remove.
820 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
823 * testsuite/libgomp.c/pr86416-1.c: New.
824 * testsuite/libgomp.c/pr86416-2.c: New.
826 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
828 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
829 all symbols as public except for the 'use …, only' imported symbol,
831 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
832 all symbols from module openacc_kinds as PUBLIC
833 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
835 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
837 2019-12-13 Julian Brown <julian@codesourcery.com>
841 * libgomp.h (gomp_remove_var_async): Add prototype.
842 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
844 * target.c (gomp_unref_tgt): Change return type to bool, indicating
845 whether target_mem_desc was unmapped.
846 (gomp_unref_tgt_void): New.
847 (gomp_remove_var): Reimplement in terms of...
848 (gomp_remove_var_internal): ...this new helper function.
849 (gomp_remove_var_async): New, implemented using above helper function.
850 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
853 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
855 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
856 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
857 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
858 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
859 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
861 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
862 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
864 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
866 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
867 as public except for the 'use …, only' imported symbol, which is
869 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
870 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
871 attributes for acc_copyout_finalize and acc_delete_finalize.
873 2019-12-11 Jakub Jelinek <jakub@redhat.com>
876 * testsuite/libgomp.fortran/atomic1.f90: New test.
878 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
881 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
882 reference counting for structured 'REFCOUNT_INFINITY'. Add some
884 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
885 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
886 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
887 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
888 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
890 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
891 * oacc-mem.c: ... here.
892 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
893 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
894 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
896 * libgomp_g.h: Update.
898 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
899 * oacc-async.c: ... here.
900 * oacc-int.h (goacc_wait): Declare.
901 * libgomp_g.h: Update
904 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
906 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
908 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
910 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
912 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
914 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
917 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
918 Julian Brown <julian@codesourcery.com>
920 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
921 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
923 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
925 * omp_lib.h.in: Fix spelling of function declaration
926 omp_get_cancell(l)ation.
927 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
929 * env.c: Fix comment typos.
930 * oacc-host.c: Likewise.
931 * ordered.c: Likewise.
934 * config/gcn/task.c: Likewise.
935 * config/gcn/team.c: Likewise.
936 * config/nvptx/task.c: Likewise.
937 * config/nvptx/team.c: Likewise.
938 * plugin/plugin-gcn.c: Likewise.
939 * testsuite/libgomp.fortran/jacobi.f: Likewise.
940 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
941 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
943 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
945 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
946 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
947 unnecessary 'dg-additional-options "-w"'.
949 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
950 Julian Brown <julian@codesourcery.com>
955 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
956 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
958 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
960 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
962 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
964 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
967 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
968 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
970 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
972 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
974 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
976 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
978 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
980 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
981 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
982 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
983 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
984 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
985 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
986 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
987 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
988 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
989 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
992 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
993 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
994 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
996 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
998 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1000 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1001 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1004 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1006 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1008 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1010 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1012 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1013 ... with their content moved into, and extended in this new file.
1014 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1016 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1018 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1020 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1023 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1026 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1028 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1030 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1032 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
1034 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1036 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1037 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1038 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1039 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1041 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1042 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1044 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1046 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1048 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
1049 Kwok Cheung Yeung <kcy@codesourcery.com>
1051 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1052 if input it a NULL pointer.
1053 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1054 diagnostic of NULL pointer.
1055 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1056 * testsuite/libgomp.fortran/optional-map.f90: New.
1057 * testsuite/libgomp.fortran/use_device_addr-1.f90
1058 (test_dummy_opt_callee_1_absent): New.
1059 (test_dummy_opt_call_1): Call it.
1060 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1061 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1062 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1063 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1064 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1065 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1066 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1067 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1068 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1069 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1070 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1071 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1072 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1073 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1074 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1075 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1077 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1079 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1080 expect dg-output of 'Error termination.' for GCN.
1081 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1082 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1084 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1087 * testsuite/libgomp.fortran/teams1.f90: New test.
1088 * testsuite/libgomp.fortran/teams2.f90: New test.
1090 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
1092 * oacc-init.c (acc_known_device_type): Add function.
1093 (unknown_device_type_error): Add function.
1094 (name_of_acc_device_t): Change to call unknown_device_type_error
1096 (resolve_device): Use acc_known_device_type.
1097 (acc_init): Fail if acc_device_t argument is not valid.
1098 (acc_shutdown): Likewise.
1099 (acc_get_num_devices): Likewise.
1100 (acc_set_device_type): Likewise.
1101 (acc_get_device_num): Likewise.
1102 (acc_set_device_num): Likewise.
1103 (acc_on_device): Add comment that argument validity is not checked.
1105 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1107 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1109 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1110 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1111 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1112 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1113 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1115 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1118 * configure.tgt: Avoid IE tls on *-*-musl*.
1120 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
1122 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1123 adding a common-block test case.
1125 2019-11-29 Jakub Jelinek <jakub@redhat.com>
1128 * testsuite/libgomp.c++/udr-20.C: New test.
1129 * testsuite/libgomp.c++/udr-21.C: New test.
1131 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1133 * testsuite/lib/libgomp.exp
1134 (check_effective_target_offload_target_nvptx): New proc.
1135 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1137 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1138 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1139 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1141 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1143 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1144 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1145 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1146 * testsuite/libgomp.c/private-1.c: Likewise.
1147 * testsuite/libgomp.c/task-1.c: Likewise.
1148 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1150 2019-11-20 Julian Brown <julian@codesourcery.com>
1152 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1154 (queue_push_launch): Lock aq->mutex before calling
1155 wait_for_queue_nonfull.
1156 (queue_push_callback): Likewise.
1157 (queue_push_asyncwait): Likewise.
1158 (queue_push_placeholder): Likewise.
1160 2019-11-20 Julian Brown <julian@codesourcery.com>
1162 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1163 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1164 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1167 2019-11-20 Julian Brown <julian@codesourcery.com>
1171 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1172 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1173 in non-present/create case.
1174 (delete_copyout): Change error condition to fail only on copies outside
1175 of mapped block. Adjust error message accordingly.
1176 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1177 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1178 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1180 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1181 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1182 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1184 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
1186 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1187 libatomic in build-tree testing.
1189 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
1191 * testsuite/Makefile.in: Regenerate.
1193 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
1195 * testsuite/libgomp.c/target-print-1.c: New file.
1196 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1197 * testsuite/libgomp.oacc-c/print-1.c: New file.
1198 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1200 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1201 Kwok Cheung Yeung <kcy@codesourcery.com>
1202 Julian Brown <julian@codesourcery.com>
1203 Tom de Vries <tom@codesourcery.com>
1205 * plugin/Makefrag.am: Add amdgcn plugin support.
1206 * plugin/configfrag.ac: Likewise.
1207 * plugin/plugin-gcn.c: New file.
1208 * configure: Regenerate.
1209 * Makefile.in: Regenerate.
1210 * testsuite/Makefile.in: Regenerate.
1212 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1214 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1215 and use team_malloc variants.
1216 (gomp_gcn_exit_kernel): Use team_free.
1217 * libgomp.h (TEAM_ARENA_SIZE): Define.
1218 (TEAM_ARENA_START): Define.
1219 (TEAM_ARENA_FREE): Define.
1220 (TEAM_ARENA_END): Define.
1221 (team_malloc): New function.
1222 (team_malloc_cleared): New function.
1223 (team_free): New function.
1224 * team.c (gomp_new_team): Initialize and use team_malloc.
1225 (free_team): Use team_free.
1226 (gomp_free_thread): Use team_free.
1227 (gomp_pause_host): Use team_free.
1228 * work.c (gomp_init_work_share): Use team_malloc.
1229 (gomp_fini_work_share): Use team_free.
1231 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1232 Kwok Cheung Yeung <kcy@codesourcery.com>
1233 Julian Brown <julian@codesourcery.com>
1234 Tom de Vries <tom@codesourcery.com>
1236 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1237 * Makefile.in: Regenerate.
1238 * config.h.in (PLUGIN_GCN): Add new undef.
1239 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1240 * config/gcn/affinity-fmt.c: New file.
1241 * config/gcn/bar.c: New file.
1242 * config/gcn/bar.h: New file.
1243 * config/gcn/doacross.h: New file.
1244 * config/gcn/icv-device.c: New file.
1245 * config/gcn/oacc-target.c: New file.
1246 * config/gcn/simple-bar.h: New file.
1247 * config/gcn/target.c: New file.
1248 * config/gcn/task.c: New file.
1249 * config/gcn/team.c: New file.
1250 * config/gcn/time.c: New file.
1251 * configure.ac: Add amdgcn*-*-*.
1252 * configure: Regenerate.
1253 * configure.tgt: Add amdgcn*-*-*.
1254 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1255 * libgomp.h (gcn_thrs): Add amdgcn variant.
1256 (set_gcn_thrs): Likewise.
1257 (gomp_thread): Likewise.
1258 * oacc-int.h (goacc_thread): Likewise.
1259 * oacc-target.c: New file.
1260 * openacc.f90 (acc_device_gcn): New parameter.
1261 * openacc.h (acc_device_t): Add acc_device_gcn.
1262 * team.c (gomp_free_pool_helper): Add amdgcn support.
1264 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1265 Julian Brown <julian@codesourcery.com>
1267 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1269 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1271 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1272 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1275 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1277 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1278 * config/nvptx/libgomp-plugin.c: Move ...
1279 * config/accel/libgomp-plugin.c: ... to here.
1280 * config/nvptx/lock.c: Move ...
1281 * config/accel/lock.c: ... to here.
1282 * config/nvptx/mutex.c: Move ...
1283 * config/accel/mutex.c: ... to here.
1284 * config/nvptx/mutex.h: Move ...
1285 * config/accel/mutex.h: ... to here.
1286 * config/nvptx/oacc-async.c: Move ...
1287 * config/accel/oacc-async.c: ... to here.
1288 * config/nvptx/oacc-cuda.c: Move ...
1289 * config/accel/oacc-cuda.c: ... to here.
1290 * config/nvptx/oacc-host.c: Move ...
1291 * config/accel/oacc-host.c: ... to here.
1292 * config/nvptx/oacc-init.c: Move ...
1293 * config/accel/oacc-init.c: ... to here.
1294 * config/nvptx/oacc-mem.c: Move ...
1295 * config/accel/oacc-mem.c: ... to here.
1296 * config/nvptx/oacc-plugin.c: Move ...
1297 * config/accel/oacc-plugin.c: ... to here.
1298 * config/nvptx/omp-lock.h: Move ...
1299 * config/accel/omp-lock.h: ... to here.
1300 * config/nvptx/openacc.f90: Move ...
1301 * config/accel/openacc.f90: ... to here.
1302 * config/nvptx/pool.h: Move ...
1303 * config/accel/pool.h: ... to here.
1304 * config/nvptx/proc.c: Move ...
1305 * config/accel/proc.c: ... to here.
1306 * config/nvptx/ptrlock.c: Move ...
1307 * config/accel/ptrlock.c: ... to here.
1308 * config/nvptx/ptrlock.h: Move ...
1309 * config/accel/ptrlock.h: ... to here.
1310 * config/nvptx/sem.c: Move ...
1311 * config/accel/sem.c: ... to here.
1312 * config/nvptx/sem.h: Move ...
1313 * config/accel/sem.h: ... to here.
1314 * config/nvptx/thread-stacksize.h: Move ...
1315 * config/accel/thread-stacksize.h: ... to here.
1317 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1318 Tobias Burnus <tobias@codesourcery.com>
1319 Frederik Harwath <frederik@codesourcery.com>
1320 Thomas Schwinge <thomas@codesourcery.com>
1323 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1324 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1325 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1327 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1328 Kwok Cheung Yeung <kcy@codesourcery.com>
1330 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1331 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1333 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1335 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1337 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1339 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1340 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1342 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1344 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1345 Add expected warnings about missing reduction clauses.
1346 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1348 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1350 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1353 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1355 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1356 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1357 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1358 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1359 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1360 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1362 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1365 * testsuite/libgomp.fortran/allocatable2.f90: Use
1366 unique numbers with 'stop'.
1367 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1368 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1369 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1370 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1371 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1373 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1375 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1376 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1377 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1378 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1379 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1380 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1382 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1384 * testsuite/libgomp.fortran/target9.f90: New.
1386 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1388 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1389 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1390 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1391 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1392 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1393 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1394 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1395 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1396 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1397 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1398 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1399 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1400 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1401 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1402 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1403 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1404 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1405 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1406 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1407 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1408 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1409 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1410 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1411 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1412 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1413 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1414 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1415 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1416 * testsuite/libgomp.fortran/character1.f90: Ditto.
1417 * testsuite/libgomp.fortran/character2.f90: Ditto.
1418 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1419 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1420 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1421 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1422 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1423 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1424 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1425 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1426 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1427 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1428 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1429 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1430 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1431 * testsuite/libgomp.fortran/do1.f90: Ditto.
1432 * testsuite/libgomp.fortran/do2.f90: Ditto.
1433 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1434 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1435 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1436 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1437 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1438 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1439 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1440 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1441 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1442 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1443 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1444 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1445 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1446 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1447 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1448 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1449 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1450 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1451 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1452 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1453 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1454 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1455 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1456 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1457 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1458 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1459 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1460 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1461 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1462 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1463 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1464 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1465 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1466 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1467 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1468 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1469 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1470 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1471 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1472 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1473 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1474 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1475 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1476 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1477 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1478 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1479 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1480 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1481 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1482 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1483 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1484 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1485 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1486 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1487 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1488 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1489 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1490 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1491 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1492 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1493 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1494 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1495 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1496 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1497 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1498 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1499 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1500 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1501 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1502 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1503 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1504 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1505 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1506 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1507 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1508 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1509 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1510 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1511 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1512 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1513 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1514 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1515 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1516 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1517 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1518 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1519 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1520 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1521 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1522 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1523 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1524 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1525 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1526 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1527 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1528 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1529 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1530 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1531 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1532 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1533 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1534 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1535 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1536 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1537 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1538 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1539 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1540 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1541 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1542 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1543 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1544 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1545 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1546 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1547 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1548 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1549 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1550 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1551 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1552 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1553 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1554 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1555 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1556 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1557 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1558 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1559 * testsuite/libgomp.fortran/stack.f90: Ditto.
1560 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1561 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1562 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1563 * testsuite/libgomp.fortran/target1.f90: Ditto.
1564 * testsuite/libgomp.fortran/target2.f90: Ditto.
1565 * testsuite/libgomp.fortran/target3.f90: Ditto.
1566 * testsuite/libgomp.fortran/target4.f90: Ditto.
1567 * testsuite/libgomp.fortran/target5.f90: Ditto.
1568 * testsuite/libgomp.fortran/target6.f90: Ditto.
1569 * testsuite/libgomp.fortran/target7.f90: Ditto.
1570 * testsuite/libgomp.fortran/target8.f90: Ditto.
1571 * testsuite/libgomp.fortran/task1.f90: Ditto.
1572 * testsuite/libgomp.fortran/task2.f90: Ditto.
1573 * testsuite/libgomp.fortran/task3.f90: Ditto.
1574 * testsuite/libgomp.fortran/task4.f90: Ditto.
1575 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1576 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1577 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1578 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1579 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1580 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1581 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1582 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1583 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1584 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1585 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1586 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1587 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1588 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1589 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1590 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1591 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1592 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1593 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1594 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1595 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1596 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1597 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1598 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1599 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1600 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1601 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1602 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1603 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1604 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1605 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1606 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1607 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1608 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1610 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1612 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1613 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1614 Ditto; add 'dg-do run' for torture testing.
1615 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1616 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1617 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1618 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1619 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1620 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1621 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1622 * testsuite/libgomp.fortran/task2.f90: Ditto.
1623 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1624 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1625 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1626 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1627 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1628 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1630 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1632 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1633 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1634 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1635 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1636 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1637 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1638 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1639 Use 'stop' not abort().
1640 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1641 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1642 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1643 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1644 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1645 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1646 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1647 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1648 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1649 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1650 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1651 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1652 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1653 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1654 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1655 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1656 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1658 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1660 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1662 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1664 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1666 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1668 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1670 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1672 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1674 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1676 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1678 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1680 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1682 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1684 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1685 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1686 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1687 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1688 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1689 Likewise and also add 'dg-do run'.
1690 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1693 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1694 Tobias Burnus <tobias@codesourcery.com>
1696 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1697 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1698 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1700 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1703 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1706 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1708 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1709 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1711 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1714 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1717 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1720 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1722 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1724 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1727 * target.c (gomp_map_vars_internal): Readd the previous
1728 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1729 though do that just in the !not_found_cnt case.
1731 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1733 * gfortran.dg/gomp/target-simd.f90: New.
1735 2019-10-02 Julian Brown <julian@codesourcery.com>
1736 Cesar Philippidis <cesar@codesourcery.com>
1738 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1739 * target.c (FIELD_TGT_EMPTY): Define.
1740 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1741 as switch instead of list of ifs.
1742 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1744 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1746 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1747 include. Replace alloca () with __builtin_alloca ().
1748 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1750 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1752 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1753 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1754 * oacc-parallel.c: Don't include "libgomp_g.h".
1755 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1756 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1757 * aclocal.m4: Regenerated.
1758 * config.h.in: Regenerated.
1759 * configure: Regenerated.
1760 * Makefile.in: Regenerated.
1762 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1764 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1766 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1768 * configure: Regenerate.
1770 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1772 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1773 string is initialized.
1775 2019-09-06 Florian Weimer <fweimer@redhat.com>
1777 * configure: Regenerate.
1779 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1782 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1783 scanning to conform to the GNU Coding Standards.
1784 * configure: Regenerate.
1786 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1789 * testsuite/libgomp.c/scan-21.c: New test.
1790 * testsuite/libgomp.c/scan-22.c: New test.
1792 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1795 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1797 * testsuite/libgomp.c/scan-12.c: Likewise.
1798 * testsuite/libgomp.c/scan-13.c: Likewise.
1799 * testsuite/libgomp.c/scan-14.c: Likewise.
1800 * testsuite/libgomp.c/scan-15.c: Likewise.
1801 * testsuite/libgomp.c/scan-16.c: Likewise.
1802 * testsuite/libgomp.c/scan-17.c: Likewise.
1803 * testsuite/libgomp.c/scan-18.c: Likewise.
1804 * testsuite/libgomp.c/scan-19.c: Likewise.
1805 * testsuite/libgomp.c/scan-20.c: Likewise.
1806 * testsuite/libgomp.c++/scan-9.C: Likewise.
1807 * testsuite/libgomp.c++/scan-10.C: Likewise.
1808 * testsuite/libgomp.c++/scan-11.C: Likewise.
1809 * testsuite/libgomp.c++/scan-12.C: Likewise.
1810 * testsuite/libgomp.c++/scan-14.C: Likewise.
1811 * testsuite/libgomp.c++/scan-15.C: Likewise.
1812 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1813 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1814 * testsuite/libgomp.c++/scan-16.C: Likewise.
1816 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1819 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1820 -std=legacy so invalid code in the test case is accepted.
1822 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1825 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1828 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1830 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1831 perform the lookup in the first loop only if !not_found_cnt, otherwise
1832 perform lookups for it in the second loop guarded with
1833 if (not_found_cnt || has_firstprivate).
1834 * testsuite/libgomp.c/target-37.c: New test.
1835 * testsuite/libgomp.c++/target-22.C: New test.
1837 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1839 * testsuite/libgomp.c/target-18.c (struct S): New type.
1840 (foo): Use use_device_addr clause instead of use_device_ptr clause
1841 where required by OpenMP 5.0, add further tests for both use_device_ptr
1842 and use_device_addr clauses.
1843 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1844 (foo): Use use_device_addr clause instead of use_device_ptr clause
1845 where required by OpenMP 5.0, add further tests for both use_device_ptr
1846 and use_device_addr clauses. Add t and u arguments.
1847 (main): Adjust caller.
1849 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1851 * testsuite/libgomp.c++/loop-13.C: New test.
1852 * testsuite/libgomp.c++/loop-14.C: New test.
1853 * testsuite/libgomp.c++/loop-15.C: New test.
1855 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1858 * testsuite/libgomp.c++/for-27.C: New test.
1860 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1862 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1863 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1865 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1867 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1869 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1871 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1872 * testsuite/libgomp.c++/scan-16.C: Likewise.
1874 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1876 * testsuite/libgomp.c/scan-19.c: New test.
1877 * testsuite/libgomp.c/scan-20.c: New test.
1879 * testsuite/libgomp.c/scan-11.c: New test.
1880 * testsuite/libgomp.c/scan-12.c: New test.
1881 * testsuite/libgomp.c/scan-13.c: New test.
1882 * testsuite/libgomp.c/scan-14.c: New test.
1883 * testsuite/libgomp.c/scan-15.c: New test.
1884 * testsuite/libgomp.c/scan-16.c: New test.
1885 * testsuite/libgomp.c/scan-17.c: New test.
1886 * testsuite/libgomp.c/scan-18.c: New test.
1887 * testsuite/libgomp.c++/scan-9.C: New test.
1888 * testsuite/libgomp.c++/scan-10.C: New test.
1889 * testsuite/libgomp.c++/scan-11.C: New test.
1890 * testsuite/libgomp.c++/scan-12.C: New test.
1891 * testsuite/libgomp.c++/scan-13.C: New test.
1892 * testsuite/libgomp.c++/scan-14.C: New test.
1893 * testsuite/libgomp.c++/scan-15.C: New test.
1894 * testsuite/libgomp.c++/scan-16.C: New test.
1896 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1898 * testsuite/libgomp.c/scan-9.c: New test.
1899 * testsuite/libgomp.c/scan-10.c: New test.
1901 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1903 * testsuite/libgomp.c++/scan-1.C: New test.
1904 * testsuite/libgomp.c++/scan-2.C: New test.
1905 * testsuite/libgomp.c++/scan-3.C: New test.
1906 * testsuite/libgomp.c++/scan-4.C: New test.
1907 * testsuite/libgomp.c++/scan-5.C: New test.
1908 * testsuite/libgomp.c++/scan-6.C: New test.
1909 * testsuite/libgomp.c++/scan-7.C: New test.
1910 * testsuite/libgomp.c++/scan-8.C: New test.
1911 * testsuite/libgomp.c/scan-1.c: New test.
1912 * testsuite/libgomp.c/scan-2.c: New test.
1913 * testsuite/libgomp.c/scan-3.c: New test.
1914 * testsuite/libgomp.c/scan-4.c: New test.
1915 * testsuite/libgomp.c/scan-5.c: New test.
1916 * testsuite/libgomp.c/scan-6.c: New test.
1917 * testsuite/libgomp.c/scan-7.c: New test.
1918 * testsuite/libgomp.c/scan-8.c: New test.
1920 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1922 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1923 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1926 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1929 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1931 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1934 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1937 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1939 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1940 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1941 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1942 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1945 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1948 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1950 2019-06-16 Tom de Vries <tdevries@suse.de>
1952 PR tree-optimization/89376
1953 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1955 2019-06-15 Tom de Vries <tdevries@suse.de>
1957 PR tree-optimization/89713
1958 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1959 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1961 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1964 * testsuite/libgomp.c/pr90779.c: New test.
1965 * testsuite/libgomp.fortran/pr90779.f90: New test.
1967 2019-06-15 Tom de Vries <tdevries@suse.de>
1969 PR tree-optimization/90009
1970 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1972 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1974 PR tree-optimization/89713
1975 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1977 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1980 * testsuite/libgomp.c/pr90811.c: New test.
1982 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1984 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1985 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1987 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1989 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1990 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1991 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1992 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1994 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1996 * configure.ac: Call AX_COUNT_CPUS.
1997 Substitute CPU_COUNT.
1998 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2000 * aclocal.m4: Regenerate.
2001 * configure: Regenerate.
2002 * Makefile.in, testsuite/Makefile.in: Regenerate.
2004 2019-05-29 Jakub Jelinek <jakub@redhat.com>
2006 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2008 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2009 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2010 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2012 2019-05-27 Jakub Jelinek <jakub@redhat.com>
2014 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2016 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2019 * work.c (gomp_init_work_share): Instead of aligning final ordered
2020 value to multiples of long long alignment, align to that the
2021 first part (ordered team ids) and if inline_ordered_team_ids
2022 is not on a long long alignment boundary within the structure,
2023 use __alignof__ (long long) - 1 pad size always.
2024 * loop.c (GOMP_loop_start): Fix *mem computation if
2025 inline_ordered_team_ids is not aligned on long long alignment boundary
2026 within the structure.
2027 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2028 * sections.c (GOMP_sections2_start): Likewise.
2030 2019-05-24 Jakub Jelinek <jakub@redhat.com>
2032 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2033 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2036 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2037 HAVE_INTTYPES_H is defined.
2038 (print_uint64_t): New typedef.
2039 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2040 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2041 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2042 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2043 before casting to void *.
2044 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2045 * oacc-mem.c: Don't include config.h nor stdint.h.
2046 * target.c: Don't include config.h.
2047 * oacc-cuda.c: Likewise.
2048 * oacc-host.c: Don't include stdint.h.
2050 2019-05-20 Jakub Jelinek <jakub@redhat.com>
2053 * alloc.c (_GNU_SOURCE): Define.
2055 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2057 * acc_prof.h: New file.
2058 * oacc-profiling.c: Likewise.
2059 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2060 Add these, respectively.
2061 * Makefile.in: Regenerate.
2062 * env.c (initialize_env): Call goacc_profiling_initialize.
2063 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2064 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2065 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2066 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2067 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2068 acc_prof_register, acc_prof_unregister, and acc_register_library.
2069 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2070 GOMP_PLUGIN_goacc_thread.
2071 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2072 prof_callbacks_enabled members.
2073 (goacc_prof_enabled, goacc_profiling_initialize)
2074 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2075 (goacc_profiling_dispatch): Declare.
2076 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2077 (GOACC_PROFILING_SETUP_P): Define.
2078 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2079 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2080 OpenACC Profiling Interface.
2081 * oacc-cuda.c (acc_get_current_cuda_device)
2082 (acc_get_current_cuda_context, acc_get_cuda_stream)
2083 (acc_set_cuda_stream): Likewise.
2084 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2085 (acc_init, acc_set_device_type, acc_get_device_type)
2086 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2087 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2088 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2089 (acc_unmap_data, present_create_copy, delete_copyout)
2090 (update_dev_host): Likewise.
2091 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2092 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2094 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2095 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2097 * libgomp.texi: Update.
2098 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2100 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2101 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2103 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2105 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2107 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2110 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2112 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2113 (struct goacc_asyncqueue_list): Likewise.
2114 (goacc_aq): Likewise.
2115 (goacc_aq_list): Likewise.
2116 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2117 (GOMP_OFFLOAD_openacc_async_test): Remove.
2118 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2119 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2120 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2121 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2122 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2123 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2124 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2125 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2126 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2127 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2128 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2129 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2130 (GOMP_OFFLOAD_openacc_async_test): Declare.
2131 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2132 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2133 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2134 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2135 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2137 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2138 (gomp_acc_insert_pointer): Adjust declaration.
2139 (gomp_copy_host2dev): New declaration.
2140 (gomp_copy_dev2host): Likewise.
2141 (gomp_map_vars_async): Likewise.
2142 (gomp_unmap_tgt): Likewise.
2143 (gomp_unmap_vars_async): Likewise.
2144 (gomp_fini_device): Likewise.
2146 * oacc-async.c (get_goacc_thread): New function.
2147 (get_goacc_thread_device): New function.
2148 (lookup_goacc_asyncqueue): New function.
2149 (get_goacc_asyncqueue): New function.
2150 (acc_async_test): Adjust code to use new async design.
2151 (acc_async_test_all): Likewise.
2152 (acc_wait): Likewise.
2153 (acc_wait_async): Likewise.
2154 (acc_wait_all): Likewise.
2155 (acc_wait_all_async): Likewise.
2156 (goacc_async_free): New function.
2157 (goacc_init_asyncqueues): Likewise.
2158 (goacc_fini_asyncqueues): Likewise.
2159 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2161 (acc_set_cuda_stream): Likewise.
2162 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2163 (host_openacc_register_async_cleanup): Remove.
2164 (host_openacc_async_exec): New function.
2165 (host_openacc_async_test): Adjust parameters.
2166 (host_openacc_async_test_all): Remove.
2167 (host_openacc_async_wait): Remove.
2168 (host_openacc_async_wait_async): Remove.
2169 (host_openacc_async_wait_all): Remove.
2170 (host_openacc_async_wait_all_async): Remove.
2171 (host_openacc_async_set_async): Remove.
2172 (host_openacc_async_synchronize): New function.
2173 (host_openacc_async_serialize): New function.
2174 (host_openacc_async_host2dev): New function.
2175 (host_openacc_async_dev2host): New function.
2176 (host_openacc_async_queue_callback): New function.
2177 (host_openacc_async_construct): New function.
2178 (host_openacc_async_destruct): New function.
2179 (struct gomp_device_descr host_dispatch): Remove initialization of old
2180 interface, add initialization of new async sub-struct.
2181 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2182 (goacc_attach_host_thread_to_device): Remove old async code usage.
2183 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2184 (goacc_fini_asyncqueues): Likewise.
2185 (goacc_async_copyout_unmap_vars): Likewise.
2186 (goacc_async_free): Likewise.
2187 (get_goacc_asyncqueue): Likewise.
2188 (lookup_goacc_asyncqueue): Likewise.
2189 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2191 (present_create_copy): Adjust code to use new async design.
2192 (delete_copyout): Likewise.
2193 (update_dev_host): Likewise.
2194 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2196 (gomp_acc_remove_pointer): Adjust code to use new async design.
2197 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2199 (GOACC_enter_exit_data): Likewise.
2200 (goacc_wait): Likewise.
2201 (GOACC_update): Likewise.
2202 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2203 when called, warn as obsolete in comment.
2204 * target.c (goacc_device_copy_async): New function.
2205 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2206 add goacc_device_copy_async case.
2207 (gomp_copy_dev2host): Likewise.
2208 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2209 (gomp_map_pointer): Likewise.
2210 (gomp_map_fields_existing): Likewise.
2211 (gomp_map_vars_internal): New always_inline function, renamed from
2213 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2214 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2215 passing goacc_asyncqueue argument.
2216 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2217 (gomp_unref_tgt): New function.
2218 (gomp_unmap_vars_internal): New always_inline function, renamed from
2220 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2221 (gomp_unmap_vars_async): Implement by calling
2222 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2223 (gomp_fini_device): New function.
2224 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2225 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2226 new async interface.
2227 (gomp_target_fini): Adjust code to call gomp_fini_device.
2229 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2230 (struct ptx_stream): Remove.
2231 (struct nvptx_thread): Remove current_stream field.
2232 (cuda_map_create): Remove.
2233 (cuda_map_destroy): Remove.
2238 (struct goacc_asyncqueue): Define.
2239 (struct nvptx_callback): Define.
2240 (struct ptx_free_block): Define.
2241 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2242 stream_lock, and next fields.
2243 (enum ptx_event_type): Remove.
2244 (struct ptx_event): Remove.
2245 (ptx_event_lock): Remove.
2246 (ptx_events): Remove.
2247 (init_streams_for_device): Remove.
2248 (fini_streams_for_device): Remove.
2249 (select_stream_for_async): Remove.
2250 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2251 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2253 (nvptx_open_device): Add free_blocks initialization, remove
2254 init_streams_for_device call.
2255 (nvptx_close_device): Remove fini_streams_for_device call, add
2256 free_blocks destruct code.
2258 (event_add): Remove.
2259 (nvptx_exec): Adjust parameters and code.
2260 (nvptx_free): Likewise.
2261 (nvptx_host2dev): Remove.
2262 (nvptx_dev2host): Remove.
2263 (nvptx_set_async): Remove.
2264 (nvptx_async_test): Remove.
2265 (nvptx_async_test_all): Remove.
2266 (nvptx_wait): Remove.
2267 (nvptx_wait_async): Remove.
2268 (nvptx_wait_all): Remove.
2269 (nvptx_wait_all_async): Remove.
2270 (nvptx_get_cuda_stream): Remove.
2271 (nvptx_set_cuda_stream): Remove.
2272 (GOMP_OFFLOAD_alloc): Adjust code.
2273 (GOMP_OFFLOAD_free): Likewise.
2274 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2275 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2276 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2277 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2278 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2279 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2280 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2281 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2282 (cuda_free_argmem): New function.
2283 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2284 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2285 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2286 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2287 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2288 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2289 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2290 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2291 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2292 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2293 (cuda_callback_wrapper): New function.
2294 (cuda_memcpy_sanity_check): New function.
2295 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2296 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2297 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2298 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2300 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2303 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2305 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2307 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2309 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2311 * team.c (gomp_team_start): Initialize pool->threads[0].
2313 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2315 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2316 "-foffload=$offload_target".
2317 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2318 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2319 * testsuite/lib/libgomp.exp
2320 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2321 as (conceptually) merged into
2322 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2325 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2326 * testsuite/libgomp-test-support.exp.in: Adjust.
2327 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2328 openacc_device_types_s.
2329 (offload_target_to_openacc_device_type): New proc.
2330 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2331 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2332 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2333 * Makefile.in: Regenerate.
2334 * configure: Likewise.
2335 * testsuite/Makefile.in: Likewise.
2337 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2338 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2339 instead of OFFLOAD_TARGETS.
2340 * target.c (gomp_target_init): Adjust.
2341 * testsuite/libgomp-test-support.exp.in: Likewise.
2342 * testsuite/lib/libgomp.exp: Likewise. Populate
2343 openacc_device_types_s instead of offload_targets_s_openacc.
2344 (check_effective_target_openacc_nvidia_accel_selected)
2345 (check_effective_target_openacc_host_selected): Adjust.
2346 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2347 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2348 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2349 * Makefile.in: Regenerate.
2350 * config.h.in: Likewise.
2351 * configure: Likewise.
2352 * testsuite/Makefile.in: Likewise.
2354 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2355 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2356 "offloading: supported, but hardware not accessible".
2357 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2358 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2360 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2363 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2365 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2366 and related adjustment.
2368 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2371 * testsuite/libgomp.c++/pr88988.C: New test.
2373 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2376 * testsuite/libgomp.c/pr89002.c: New test.
2378 2019-01-28 Richard Biener <rguenther@suse.de>
2381 PR tree-optimization/86865
2382 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2384 2019-01-24 Tom de Vries <tdevries@suse.de>
2386 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2387 once instantiated_devices drops to 0.
2389 2019-01-23 Tom de Vries <tdevries@suse.de>
2392 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2394 (nvptx_exec): Don't call map_push if mapnum == 0.
2395 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2397 2019-01-23 Tom de Vries <tdevries@suse.de>
2401 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2402 (map_fini): Remove "assert (!s->map->active)".
2403 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2405 2019-01-23 Tom de Vries <tdevries@suse.de>
2408 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2409 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2411 2019-01-15 Tom de Vries <tdevries@suse.de>
2414 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2417 2019-01-12 Tom de Vries <tdevries@suse.de>
2419 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2420 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2421 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2422 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2424 2019-01-12 Tom de Vries <tdevries@suse.de>
2426 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2428 2019-01-12 Tom de Vries <tdevries@suse.de>
2430 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2431 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2432 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2434 2019-01-12 Tom de Vries <tdevries@suse.de>
2437 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2438 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2440 2019-01-12 Tom de Vries <tdevries@suse.de>
2443 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2444 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2446 2019-01-12 Tom de Vries <tdevries@suse.de>
2448 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2449 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2450 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2452 2019-01-12 Tom de Vries <tdevries@suse.de>
2454 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2455 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2456 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2458 2019-01-12 Tom de Vries <tdevries@suse.de>
2460 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2461 resources diagnostic.
2463 2019-01-12 Tom de Vries <tdevries@suse.de>
2465 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2466 vector length to be 128.
2467 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2468 length 2097152 to be reduced to 1024 instead of 32.
2470 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2471 James Norris <jnorris@codesourcery.com>
2473 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2474 Library Routines", and "Environment Variables".
2476 2019-01-11 Tom de Vries <tdevries@suse.de>
2478 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2481 2019-01-11 Tom de Vries <tdevries@suse.de>
2483 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2485 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2486 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2487 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2488 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2490 2019-01-11 Tom de Vries <tdevries@suse.de>
2492 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2495 2019-01-10 Nathan Sidwell <nathan@acm.org>
2496 Julian Brown <julian@codesourcery.com>
2499 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2500 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2502 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2504 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2507 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2509 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2510 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2513 2019-01-09 Tom de Vries <tdevries@suse.de>
2516 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2517 #define instead of "const int".
2518 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2519 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2520 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2521 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2523 2019-01-09 Tom de Vries <tdevries@suse.de>
2525 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2528 2019-01-07 Tom de Vries <tdevries@suse.de>
2530 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2531 GOMP_OPENACC_DIM argument.
2533 2019-01-03 Tom de Vries <tdevries@suse.de>
2535 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2536 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2538 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2540 Update copyright years.
2542 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2544 * libgomp.texi: Bump @copying's copyright year.
2546 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2548 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2549 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2550 (GOACC_declare): Redefine the "device" argument to "flags".
2552 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2553 Cesar Philippidis <cesar@codesourcery.com>
2555 * target.c (struct gomp_coalesce_chunk): New structure.
2556 (struct gomp_coalesce_buf): Update the chunks member to use that
2557 type. Adjust all users.
2559 2018-12-19 Tom de Vries <tdevries@suse.de>
2561 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2562 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2563 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2565 2018-12-19 Tom de Vries <tdevries@suse.de>
2567 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2568 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2569 gcc/testsuite/gcc.dg/goacc.
2570 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2572 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2573 Chung-Lin Tang <cltang@codesourcery.com>
2575 * oacc-mem.c (acc_present_or_create): Remove definition and change
2576 to alias of acc_create.
2577 (acc_present_or_copyin): Remove definition and change to alias of
2579 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2580 of acc_present_or_create.
2581 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2582 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2583 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2584 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2585 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2586 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2587 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2588 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2589 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2590 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2591 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2592 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2593 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2594 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2595 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2596 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2598 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2601 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2602 "identical parameters".
2603 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2604 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2607 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2608 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2611 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2612 (nvptx_wait_async): Unseen async-argument is a no-op.
2613 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2614 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2615 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2616 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2617 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2618 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2619 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2620 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2621 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2623 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2624 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2626 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2628 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2629 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2630 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2632 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2635 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2636 (acc_set_cuda_stream): Clarify.
2637 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2639 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2641 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2642 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2643 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2644 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2646 2018-12-14 Tom de Vries <tdevries@suse.de>
2648 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2649 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2650 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2651 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2652 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2654 2018-12-13 Tom de Vries <tdevries@suse.de>
2656 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2657 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2658 * fortran.c (omp_display_affinity_): ... here.
2659 * libgomp.h (gomp_print_string): Declare.
2660 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2661 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2664 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2667 * testsuite/libgomp.c++/for-24.C (results): Include it in
2668 omp declare target region.
2669 (main): Use map (always, tofrom: results) instead of
2670 map (tofrom: results).
2672 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2675 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2676 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2678 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2680 2018-12-12 Andreas Schwab <schwab@suse.de>
2682 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2685 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2688 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2690 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2691 Jakub Jelinek <jakub@redhat.com>
2693 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2694 devicep->host2dev_func.
2696 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2699 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2700 tls_runtime effective target.
2701 (t): New threadprivate variable.
2702 (main): Set t in threads which execute iterations of the worksharing
2703 loop. Propagate that to the task after the loop and don't abort
2704 if the current taskgroup hasn't been cancelled.
2706 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2708 * testsuite/libgomp.c/task-reduction-3.c: New test.
2710 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2712 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2715 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2716 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2718 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2720 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2722 2018-10-19 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/88182
2725 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2727 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2729 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2730 (RUNTEST): Don't define.
2731 (RUNTESTDEFAULTFLAGS): Add.
2732 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2733 (distclean-am): Depend on distclean-DEJAGNU.
2734 (check-am): If -j% option is present in MFLAGS and if
2735 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2736 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2737 * testsuite/Makefile.in: Regenerated.
2739 2018-11-26 Richard Biener <rguenther@suse.de>
2741 PR tree-optimization/88182
2742 * testsuite/libgomp.c++/pr88182.C: New testcase.
2744 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2747 * config/mingw32/affinity-fmt.c: New file.
2749 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2751 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2752 (gomp_display_affinity): Use __builtin_choose_expr to handle
2753 properly handle argument having integral, or pointer or some other
2754 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2755 with uint64_t type instead of %llx and unsigned long long.
2757 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2758 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2760 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2762 * affinity.c: Include <string.h>, <stdio.h>.
2763 (gomp_display_affinity_place): Remove cpusetp.
2764 * teams.c: Include <limits.h>.
2766 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2768 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2769 in_reduction clause for s[0].
2771 * affinity.c (gomp_display_affinity_place): New function.
2772 * affinity-fmt.c: New file.
2773 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2774 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2775 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2776 Move these functions to ...
2777 * config/nvptx/teams.c: ... here. New file.
2778 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2780 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2782 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2783 and _aligned_malloc.
2784 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2785 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2786 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2787 gomp_affinity_format_len): New variables.
2788 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2789 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2790 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2791 modifiers. Display (non-default) chunk sizes. Print
2792 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2793 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2794 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2795 * fortran.c: Include stdio.h and string.h.
2796 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2797 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2798 (omp_set_affinity_format_, omp_get_affinity_format_,
2799 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2800 omp_pause_resource_all_): New functions.
2801 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2803 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2805 * teams.c: ... here. New file.
2806 * libgomp_g.h: Include gstdint.h.
2807 (GOMP_loop_nonmonotonic_runtime_start,
2808 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2809 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2810 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2811 GOMP_parallel_loop_nonmonotonic_runtime,
2812 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2813 GOMP_loop_ull_nonmonotonic_runtime_start,
2814 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2815 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2816 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2817 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2818 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2819 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2820 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2821 GOMP_teams_reg): Declare.
2822 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2823 gomp_aligned_alloc uses fallback implementation.
2824 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2825 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2826 (struct gomp_doacross_work_share): Add extra field.
2827 (struct gomp_work_share): Add task_reductions field.
2828 (struct gomp_taskgroup): Add workshare and reductions fields.
2829 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2830 (gomp_thread_handle): New typedef.
2831 (gomp_display_affinity_place, gomp_set_affinity_format,
2832 gomp_display_string, gomp_display_affinity,
2833 gomp_display_affinity_thread): Declare.
2834 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2835 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2836 gomp_workshare_task_reduction_register): Declare.
2837 (gomp_team_start): Add taskgroup argument.
2838 (gomp_pause_host): Declare.
2839 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2841 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2842 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2843 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2844 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2845 GOMP_loop_ull_doacross_start,
2846 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2847 GOMP_loop_maybe_nonmonotonic_runtime_next,
2848 GOMP_loop_maybe_nonmonotonic_runtime_start,
2849 GOMP_loop_nonmonotonic_runtime_next,
2850 GOMP_loop_nonmonotonic_runtime_start,
2851 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2852 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2853 GOMP_loop_ull_nonmonotonic_runtime_next,
2854 GOMP_loop_ull_nonmonotonic_runtime_start,
2855 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2856 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2857 GOMP_taskgroup_reduction_register,
2858 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2859 GOMP_teams_reg and GOMP_taskwait_depend.
2860 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2861 omp_{capture,display}_affinity{,_}, and
2862 omp_[gs]et_affinity_format{,_}.
2863 * loop.c: Include string.h.
2864 (GOMP_loop_runtime_next): Add ialias.
2865 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2866 (gomp_loop_static_start, gomp_loop_dynamic_start,
2867 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2868 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2869 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2870 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2871 or gomp_doacross_init callers.
2872 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2873 GOMP_loop_doacross_start): New functions.
2874 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2875 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2876 Mask off GFS_MONOTONIC bit.
2877 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2878 GOMP_loop_maybe_nonmonotonic_runtime_start,
2879 GOMP_loop_nonmonotonic_runtime_next,
2880 GOMP_loop_nonmonotonic_runtime_start,
2881 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2882 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2884 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2886 * loop_ull.c: Include string.h.
2887 (GOMP_loop_ull_runtime_next): Add ialias.
2888 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2889 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2890 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2891 gomp_loop_ull_ordered_dynamic_start,
2892 gomp_loop_ull_ordered_guided_start,
2893 gomp_loop_ull_doacross_static_start,
2894 gomp_loop_ull_doacross_dynamic_start,
2895 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2896 and gomp_doacross_ull_init callers.
2897 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2898 GOMP_loop_ull_doacross_start): New functions.
2899 (GOMP_loop_ull_runtime_start,
2900 GOMP_loop_ull_ordered_runtime_start,
2901 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2902 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2903 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2904 GOMP_loop_ull_nonmonotonic_runtime_next,
2905 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2906 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2907 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2908 (omp_pause_resource_t, omp_depend_t): New typedefs.
2909 (enum omp_lock_hint_t): Renamed to ...
2910 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2911 enumerators using numbers and omp_lock_hint_* as their aliases.
2912 (omp_lock_hint_t): New typedef. Rename to ...
2913 (omp_sync_hint_t): ... this.
2914 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2915 omp_sync_hint_t instead of omp_lock_hint_t.
2916 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2917 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2919 (omp_target_is_present, omp_target_disassociate_ptr):
2920 Change first argument from void * to const void *.
2921 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2922 from void * to const void *.
2923 (omp_target_associate_ptr): Change first and second arguments from
2924 void * to const void *.
2925 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2926 omp_pause_hard): New parameters.
2927 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2928 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2930 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2931 omp_pause_hard): New parameters.
2932 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2933 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2935 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2936 EXTRA argument. If not needed to prepare array, if extra is 0,
2937 clear ws->doacross, otherwise allocate just doacross structure and
2938 extra payload. If array is needed, allocate also extra payload.
2939 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2940 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2942 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2944 (GOMP_parallel): Likewise. Formatting fix.
2945 (GOMP_parallel_reductions): New function.
2946 (GOMP_cancellation_point): If taskgroup has workshare
2947 flag set, check cancelled of prev taskgroup if any.
2948 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2949 on prev taskgroup if any.
2950 * sections.c: Include string.h.
2951 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2952 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2953 (GOMP_sections2_start): New function.
2954 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2955 Pass NULL as taskgroup to gomp_team_start.
2956 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2957 gomp_work_share_start callers.
2958 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2959 If taskgroup has workshare flag set, check cancelled on prev
2960 taskgroup if any. Guard all cancellation tests with
2961 gomp_cancel_var test.
2962 (omp_target_is_present, omp_target_disassociate_ptr):
2963 Change ptr argument from void * to const void *.
2964 (omp_target_memcpy): Change src argument from void * to const void *.
2965 (omp_target_memcpy_rect): Likewise.
2966 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2967 instead of char * where needed.
2968 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2969 from void * to const void *.
2970 (omp_pause_resource, omp_pause_resource_all): New functions.
2971 * task.c (gomp_task_handle_depend): Handle new depend array format
2972 in addition to the old. Handle mutexinoutset kinds the same as
2973 inout for now, handle unspecified kinds.
2974 (gomp_create_target_task): If taskgroup has workshare flag set, check
2975 cancelled on prev taskgroup if any. Guard all cancellation tests with
2976 gomp_cancel_var test. Handle new depend array format count in
2977 addition to the old.
2978 (GOMP_task): Likewise. Adjust function comment.
2979 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2980 cancelled on prev taskgroup if any. Guard all cancellation tests with
2981 gomp_cancel_var test.
2982 (GOMP_taskwait_depend): New function.
2983 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2984 format in addition to the old. Handle mutexinoutset kinds the same as
2985 inout for now, handle unspecified kinds. Fix a function comment typo.
2986 (gomp_taskgroup_init): New function.
2987 (GOMP_taskgroup_start): Use it.
2988 (gomp_reduction_register, gomp_create_artificial_team,
2989 GOMP_taskgroup_reduction_register,
2990 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2991 gomp_parallel_reduction_register,
2992 gomp_workshare_task_reduction_register,
2993 gomp_workshare_taskgroup_start,
2994 GOMP_workshare_task_reduction_unregister): New functions.
2995 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2996 check cancelled on prev taskgroup if any. Guard all cancellation
2997 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2998 by calling GOMP_taskgroup_reduction_register.
2999 * team.c (gomp_thread_attr): Remove comment.
3000 (struct gomp_thread_start_data): Add handle field.
3001 (gomp_thread_start): Call pthread_detach.
3002 (gomp_new_team): Adjust gomp_init_work_share caller.
3003 (gomp_free_pool_helper): Call pthread_detach.
3004 (gomp_team_start): Add taskgroup argument, initialize implicit
3005 tasks' taskgroup field to that. Don't call
3006 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3007 (gomp_team_end): Determine nesting by thr->ts.level != 0
3008 rather than thr->ts.team != NULL.
3009 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3010 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3011 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3012 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3013 if more than 1 allocate also extra payload at the end of array. Never
3014 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3015 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3016 return true instead of ws.
3017 * Makefile.in: Regenerated.
3018 * configure: Regenerated.
3019 * config.h.in: Regenerated.
3020 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3022 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3023 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3024 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3025 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3026 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3027 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3028 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3029 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3030 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3031 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3032 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3033 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3034 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3035 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3036 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3037 define a different N(test), don't define N(f0) to N(f14), but instead
3038 define N(f20) to N(f34) using != comparisons.
3039 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3040 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3041 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3042 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3043 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3044 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3045 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3046 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3047 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3048 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3049 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3050 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3051 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3052 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3053 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3054 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3055 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3056 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3057 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3058 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3059 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3060 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3061 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3062 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3063 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3064 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3065 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3066 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3067 * testsuite/libgomp.c++/depend-1.C: New test.
3068 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3069 * testsuite/libgomp.c++/depobj-1.C: New test.
3070 * testsuite/libgomp.c++/for-16.C: New test.
3071 * testsuite/libgomp.c++/for-21.C: New test.
3072 * testsuite/libgomp.c++/for-22.C: New test.
3073 * testsuite/libgomp.c++/for-23.C: New test.
3074 * testsuite/libgomp.c++/for-24.C: New test.
3075 * testsuite/libgomp.c++/for-25.C: New test.
3076 * testsuite/libgomp.c++/for-26.C: New test.
3077 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3078 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3079 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3080 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3081 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3082 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3083 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3084 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3085 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3086 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3087 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3088 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3089 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3090 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3091 * testsuite/libgomp.c/task-reduction-1.c: New test.
3092 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3093 * testsuite/libgomp.c/task-reduction-2.c: New test.
3094 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3095 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3096 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3097 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3098 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3099 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3100 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3101 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3102 * testsuite/libgomp.c/teams-1.c: New test.
3103 * testsuite/libgomp.c/teams-2.c: New test.
3104 * testsuite/libgomp.c/thread-limit-4.c: New test.
3105 * testsuite/libgomp.c/thread-limit-5.c: New test.
3106 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3108 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3110 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3111 acc_memcpy_to/from_device functions, now with async parameter.
3112 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3113 (acc_memcpy_from_device): Likewise.
3114 (acc_memcpy_to_device_async): New API function.
3115 (acc_memcpy_from_device_async): Likewise.
3116 (present_create_copy): Add async parameter and async setting/unsetting.
3117 (acc_create): Adjust present_create_copy call.
3118 (acc_copyin): Likewise.
3119 (acc_present_or_create): Likewise.
3120 (acc_present_or_copyin): Likewise.
3121 (acc_create_async): New API function.
3122 (acc_copyin_async): New API function.
3123 (delete_copyout): Add async parameter and async setting/unsetting.
3124 (acc_delete): Adjust delete_copyout call.
3125 (acc_copyout): Likewise.
3126 (acc_delete_async): New API function.
3127 (acc_copyout_async): Likewise.
3128 (update_dev_host): Add async parameter and async setting/unsetting.
3129 (acc_update_device): Adjust update_dev_host call.
3130 (acc_update_self): Likewise.
3131 (acc_update_device_async): New API function.
3132 (acc_update_self_async): Likewise.
3133 * openacc.h (acc_copyin_async): Declare new API function.
3134 (acc_create_async): Likewise.
3135 (acc_copyout_async): Likewise.
3136 (acc_delete_async): Likewise.
3137 (acc_update_device_async): Likewise.
3138 (acc_update_self_async): Likewise.
3139 (acc_memcpy_to_device_async): Likewise.
3140 (acc_memcpy_from_device_async): Likewise.
3141 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3142 (acc_copyin_async_64_h): New subroutine.
3143 (acc_copyin_async_array_h): New subroutine.
3144 (acc_create_async_32_h): New subroutine.
3145 (acc_create_async_64_h): New subroutine.
3146 (acc_create_async_array_h): New subroutine.
3147 (acc_copyout_async_32_h): New subroutine.
3148 (acc_copyout_async_64_h): New subroutine.
3149 (acc_copyout_async_array_h): New subroutine.
3150 (acc_delete_async_32_h): New subroutine.
3151 (acc_delete_async_64_h): New subroutine.
3152 (acc_delete_async_array_h): New subroutine.
3153 (acc_update_device_async_32_h): New subroutine.
3154 (acc_update_device_async_64_h): New subroutine.
3155 (acc_update_device_async_array_h): New subroutine.
3156 (acc_update_self_async_32_h): New subroutine.
3157 (acc_update_self_async_64_h): New subroutine.
3158 (acc_update_self_async_array_h): New subroutine.
3159 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3160 (acc_copyin_async_64_h): New subroutine.
3161 (acc_copyin_async_array_h): New subroutine.
3162 (acc_create_async_32_h): New subroutine.
3163 (acc_create_async_64_h): New subroutine.
3164 (acc_create_async_array_h): New subroutine.
3165 (acc_copyout_async_32_h): New subroutine.
3166 (acc_copyout_async_64_h): New subroutine.
3167 (acc_copyout_async_array_h): New subroutine.
3168 (acc_delete_async_32_h): New subroutine.
3169 (acc_delete_async_64_h): New subroutine.
3170 (acc_delete_async_array_h): New subroutine.
3171 (acc_update_device_async_32_h): New subroutine.
3172 (acc_update_device_async_64_h): New subroutine.
3173 (acc_update_device_async_array_h): New subroutine.
3174 (acc_update_self_async_32_h): New subroutine.
3175 (acc_update_self_async_64_h): New subroutine.
3176 (acc_update_self_async_array_h): New subroutine.
3177 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3178 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3179 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3180 acc_memcpy_to_device_async*, acc_update_device_async*, and
3181 acc_update_self_async* entries.
3182 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3183 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3184 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3186 2018-10-31 Joseph Myers <joseph@codesourcery.com>
3189 * Makefile.am: Include multilib.am
3190 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3191 (CLEANFILES): Remove libgomp.info.
3192 * configure.ac: Remove AC_PREREQ.
3193 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3194 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3197 2018-10-29 Joseph Myers <joseph@codesourcery.com>
3198 Julian Brown <julian@codesourcery.com>
3200 * testsuite/libgomp.oacc-c++/this.C: New.
3202 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3204 * plugin/plugin-nvptx.c (struct cuda_map): New.
3205 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3206 h_tail with (cuda_map *) map.
3207 (cuda_map_create): New function.
3208 (cuda_map_destroy): New function.
3209 (map_init): Update to use a linked list of cuda_map objects.
3210 (map_fini): Likewise.
3211 (map_pop): Likewise.
3212 (map_push): Likewise. Return CUdeviceptr instead of void.
3213 (init_streams_for_device): Remove stales references to ptx_stream
3215 (select_stream_for_async): Likewise.
3216 (nvptx_exec): Update call to map_init.
3218 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3219 Julian Brown <julian@codesourcery.com>
3222 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3224 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3225 Thomas Koenig <tkoenig@gcc.gnu.org>
3228 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3229 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3230 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3231 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3232 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3233 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3234 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3236 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3237 Tom de Vries <tdevries@suse.de>
3240 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3241 (cuOccupancyMaxPotentialBlockSize): Declare.
3242 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3243 CUDA_ONE_CALL_MAYBE_NULL.
3244 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3245 CUoccupancyB2DSize and declare
3246 cuOccupancyMaxPotentialBlockSize.
3247 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3248 default num_gangs and num_workers when the driver supports it.
3250 2018-08-08 Tom de Vries <tdevries@suse.de>
3252 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3253 CUDA_ONE_CALL_MAYBE_NULL.
3254 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3255 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3256 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3259 2018-08-08 Tom de Vries <tdevries@suse.de>
3261 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3262 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3265 2018-08-08 Tom de Vries <tdevries@suse.de>
3267 * plugin/plugin-nvptx.c
3268 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3269 (nvptx_open_device): Use
3270 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3272 2018-08-08 Tom de Vries <tdevries@suse.de>
3274 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3275 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3277 2018-08-07 Tom de Vries <tdevries@suse.de>
3279 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3280 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3281 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3282 corresponding call in CUDA_ONE_CALL. Add def/undef of
3283 CUDA_ONE_CALL_MAYBE_NULL.
3284 (CUDA_CALL_EXISTS): Define.
3286 2018-08-07 Tom de Vries <tdevries@suse.de>
3288 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3289 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3290 corresponding undefs right after.
3292 2018-08-04 Tom de Vries <tdevries@suse.de>
3294 * plugin/configfrag.ac: For --without-cuda-driver, set
3295 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3296 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3297 * configure: Regenerate.
3299 2018-08-02 Tom de Vries <tdevries@suse.de>
3302 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3303 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3304 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3306 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3307 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3308 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3310 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3311 Thomas Schwinge <thomas@codesourcery.com>
3313 * config/nvptx/oacc-parallel.c: Truncate.
3315 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3316 James Norris <jnorris@codesourcery.com>
3318 * plugin/plugin-nvptx.c (struct map): Removed.
3319 (map_init, map_pop): Remove use of struct map.
3320 (map_push): Likewise and change argument list.
3321 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3323 2018-08-01 Tom de Vries <tdevries@suse.de>
3325 * plugin/cuda-lib.def: New file. Factor out of ...
3326 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3327 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3330 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3332 Revert 'AsyncI/O patch committed'.
3333 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3334 Thomas Koenig <tkoenig@gcc.gnu.org>
3337 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3338 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3339 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3340 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3341 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3342 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3343 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3345 2018-07-30 Tom de Vries <tdevries@suse.de>
3347 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3348 (nvptx_exec): Ensure worker and vector default dims don't exceed
3349 targ_fn->max_threads_per_block.
3351 2018-07-30 Tom de Vries <tdevries@suse.de>
3353 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3354 (nvptx_open_device): Init default_dims for device.
3355 (nvptx_exec): Use default_dims from device.
3357 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3360 * testsuite/libgomp.c++/for-15.C (results): Include it in
3361 omp declare target region.
3362 (main): Use map (always, tofrom: results) instead of
3363 map (tofrom: results).
3366 * testsuite/libgomp.c/pr86660.c: New test.
3368 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3369 Tom de Vries <tdevries@suse.de>
3371 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3372 sufficient resources to launch a kernel, and give a hint on how to fix
3375 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3376 Tom de Vries <tdevries@suse.de>
3378 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3379 max_threads_per_block and max_threads_per_multiprocessor fields.
3380 (nvptx_open_device): Initialize new fields.
3381 (nvptx_exec): Use num_sms, and new fields.
3383 2018-07-26 Tom de Vries <tdevries@suse.de>
3385 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3386 to correct locations. Remove xfail.
3388 2018-07-26 Tom de Vries <tdevries@suse.de>
3390 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3391 acc_wait. Move acc_async_test calls to correct locations. Remove
3394 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3395 Thomas Koenig <tkoenig@gcc.gnu.org>
3398 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3399 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3400 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3401 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3402 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3403 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3404 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3406 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3409 * testsuite/libgomp.c++/pr86542.C: New test.
3412 * testsuite/libgomp.c++/pr86539.C: New test.
3414 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3417 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3418 (results): Make sure the variable is not inside declare target region.
3419 (qux): Remove unused function.
3421 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3424 * testsuite/libgomp.c++/for-15.C: New test.
3426 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3429 * testsuite/libgomp.c++/pr86291.C: New test.
3431 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3433 * libgomp.texi (Top): Move www.openmp.org to https.
3434 (Enabling OpenMP): Ditto.
3435 (omp_get_active_level): Ditto.
3436 (omp_get_ancestor_thread_num): Ditto.
3437 (omp_get_cancellation): Ditto.
3438 (omp_get_default_device): Ditto.
3439 (omp_get_dynamic): Ditto.
3440 (omp_get_level): Ditto.
3441 (omp_get_max_active_levels): Ditto.
3442 (omp_get_max_task_priority): Ditto.
3443 (omp_get_max_threads): Ditto.
3444 (omp_get_nested): Ditto.
3445 (omp_get_num_devices): Ditto.
3446 (omp_get_num_procs): Ditto.
3447 (omp_get_num_teams): Ditto.
3448 (omp_get_num_threads): Ditto.
3449 (omp_get_proc_bind): Ditto.
3450 (omp_get_schedule): Ditto.
3451 (omp_get_team_num): Ditto.
3452 (omp_get_team_size): Ditto.
3453 (omp_get_thread_limit): Ditto.
3454 (omp_get_thread_num): Ditto.
3455 (omp_in_parallel): Ditto.
3456 (omp_in_final): Ditto.
3457 (omp_is_initial_device): Ditto.
3458 (omp_set_default_device): Ditto.
3459 (omp_set_dynamic): Ditto.
3460 (omp_set_max_active_levels): Ditto.
3461 (omp_set_nested): Ditto.
3462 (omp_set_num_threads): Ditto.
3463 (omp_set_schedule): Ditto.
3464 (omp_init_lock): Ditto.
3465 (omp_set_lock): Ditto.
3466 (omp_test_lock): Ditto.
3467 (omp_unset_lock): Ditto.
3468 (omp_destroy_lock): Ditto.
3469 (omp_init_nest_lock): Ditto.
3470 (omp_set_nest_lock): Ditto.
3471 (omp_test_nest_lock): Ditto.
3472 (omp_unset_nest_lock): Ditto.
3473 (omp_destroy_nest_lock): Ditto.
3474 (omp_get_wtick): Ditto.
3475 (omp_get_wtime): Ditto.
3476 (OMP_CANCELLATION): Ditto.
3477 (OMP_DISPLAY_ENV): Ditto.
3478 (OMP_DEFAULT_DEVICE): Ditto.
3479 (OMP_DYNAMIC): Ditto.
3480 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3481 (OMP_MAX_TASK_PRIORITY): Ditto.
3482 (OMP_NESTED): Ditto.
3483 (OMP_NUM_THREADS): Ditto.
3484 (OMP_PROC_BIND): Ditto.
3485 (OMP_PLACES): Ditto.
3486 (OMP_STACKSIZE): Ditto.
3487 (OMP_SCHEDULE): Ditto.
3488 (OMP_THREAD_LIMIT): Ditto.
3489 (OMP_WAIT_POLICY): Ditto.
3491 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3492 James Norris <jnorris@codesourcery.com>
3493 Julian Brown <julian@codesourcery.com>
3494 Thomas Schwinge <thomas@codesourcery.com>
3495 Tom de Vries <tom@codesourcery.com>
3497 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3498 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3499 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3500 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3501 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3502 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3503 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3504 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3505 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3506 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3508 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3510 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3512 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3514 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3516 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3518 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3520 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3522 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3524 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3526 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3528 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3530 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3532 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3534 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3536 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3538 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3540 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3542 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3544 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3546 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3548 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3550 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3552 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3554 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3556 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3558 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3560 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3561 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3562 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3563 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3564 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3565 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3566 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3567 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3568 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3570 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3572 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3573 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3574 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3576 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3577 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3578 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3580 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3582 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3584 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3586 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3588 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3590 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3592 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3594 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3596 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3598 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3600 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3602 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3604 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3606 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3608 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3609 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3610 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3611 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3612 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3613 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3614 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3616 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3617 Thomas Schwinge <thomas@codesourcery.com>
3618 Cesar Philippidis <cesar@codesourcery.com>
3620 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3621 (gomp_acc_remove_pointer): Update declaration.
3622 (gomp_acc_declare_allocate): Declare.
3623 (gomp_remove_var): Declare.
3624 * libgomp.map (OACC_2.5): Define.
3625 * oacc-mem.c (acc_map_data): Update refcount.
3626 (acc_unmap_data): Likewise.
3627 (present_create_copy): Likewise.
3628 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3629 (acc_copyin): Likewise.
3630 (FLAG_FINALIZE): Define.
3631 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3632 (acc_delete_finalize): New function.
3633 (acc_delete_finalize_async): New function.
3634 (acc_copyout_finalize): New function.
3635 (acc_copyout_finalize_async): New function.
3636 (gomp_acc_insert_pointer): Update refcounts.
3637 (gomp_acc_remove_pointer): Return if data is not present on the
3639 * oacc-parallel.c (find_pset): Rename to find_pointer.
3640 (find_pointer): Add support for GOMP_MAP_POINTER.
3641 (handle_ftn_pointers): New function.
3642 (GOACC_parallel_keyed): Update refcounts of variables.
3643 (GOACC_enter_exit_data): Add support for finalized data mappings.
3644 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3646 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3647 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3648 for GOMP_MAP_FORCE_FROM.
3649 * openacc.f90 (module openacc_internal): Add
3650 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3651 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3652 acc_copyout_finalize and acc_delete_finalize.
3653 (acc_copyout_finalize_32_h): New subroutine.
3654 (acc_copyout_finalize_64_h): New subroutine.
3655 (acc_copyout_finalize_array_h): New subroutine.
3656 (acc_delete_finalize_32_h): New subroutine.
3657 (acc_delete_finalize_64_h): New subroutine.
3658 (acc_delete_finalize_array_h): New subroutine.
3659 * openacc.h (acc_copyout_finalize): Declare.
3660 (acc_copyout_finalize_async): Declare.
3661 (acc_delete_finalize): Declare.
3662 (acc_delete_finalize_async): Declare.
3663 * openacc_lib.h (acc_copyout_finalize): New interface.
3664 (acc_delete_finalize): New interface.
3665 * target.c (gomp_map_vars): Update dynamic_refcount.
3666 (gomp_remove_var): New function.
3667 (gomp_unmap_vars): Use it.
3668 (gomp_unload_image_from_device): Likewise.
3669 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3670 case to utilize OpenACC 2.5 data clause semantics.
3671 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3672 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3673 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3674 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3675 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3676 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3677 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3678 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3679 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3680 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3681 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3682 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3683 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3684 utilize OpenACC 2.5 data clause semantics.
3685 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3686 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3687 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3688 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3689 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3690 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3691 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3692 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3693 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3695 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3699 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3700 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3701 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3702 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3703 * testsuite/libgomp.fortran/task2.f90: Ditto.
3704 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3705 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3706 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3707 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3708 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3709 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3710 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3711 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3712 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3714 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3717 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3719 2018-05-09 Tom de Vries <tom@codesourcery.com>
3722 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3723 to GOACC_enter_exit_data.
3725 2018-05-09 Tom de Vries <tom@codesourcery.com>
3728 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3729 (async_synchronous_p): New function.
3730 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3732 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3733 async_valid_stream_id_p.
3734 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3735 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3737 2018-05-07 Tom de Vries <tom@codesourcery.com>
3740 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3741 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3743 2018-05-03 Tom de Vries <tom@codesourcery.com>
3746 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3747 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3748 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3749 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3751 2018-05-02 Tom de Vries <tom@codesourcery.com>
3754 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3755 GOMP_OPENACC_DIM ...
3756 * env.c (parse_gomp_openacc_dim): ... here. New function.
3757 (initialize_env): Call parse_gomp_openacc_dim.
3758 (goacc_default_dims): Define.
3759 * libgomp.h (goacc_default_dims): Declare.
3760 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3761 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3762 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3763 GOMP_PLUGIN_acc_default_dim.
3764 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3765 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3767 2018-05-02 Tom de Vries <tom@codesourcery.com>
3770 * testsuite/libgomp.c++/udr-9.C: Update.
3771 * testsuite/libgomp.c++/atomic-16.C: Remove.
3772 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3773 * testsuite/libgomp.c++/loop-13.C: Remove.
3774 * testsuite/libgomp.c++/loop-14.C: Remove.
3775 * testsuite/libgomp.c++/loop-15.C: Remove.
3776 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3777 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3778 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3779 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3780 * testsuite/libgomp.c++/ordered-1.C: Remove.
3781 * testsuite/libgomp.c++/pr45784.C: Remove.
3782 * testsuite/libgomp.c++/pr64824.C: Remove.
3783 * testsuite/libgomp.c++/pr64868.C: Remove.
3784 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3785 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3786 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3787 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3788 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3789 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3790 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3791 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3792 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3793 * testsuite/libgomp.c++/pr69389.C: Remove.
3794 * testsuite/libgomp.c++/simd10.C: Remove.
3795 * testsuite/libgomp.c++/simd11.C: Remove.
3796 * testsuite/libgomp.c++/simd12.C: Remove.
3797 * testsuite/libgomp.c++/simd13.C: Remove.
3798 * testsuite/libgomp.c++/target-1.C: Remove.
3799 * testsuite/libgomp.c++/target-3.C: Remove.
3800 * testsuite/libgomp.c++/target-4.C: Remove.
3801 * testsuite/libgomp.c++/target-5.C: Remove.
3802 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3803 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3804 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3805 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3806 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3807 * testsuite/libgomp.c++/udr-9.C: Remove.
3808 * testsuite/libgomp.c++/for-10.C: Remove.
3809 * testsuite/libgomp.c++/for-11.C: Remove.
3810 * testsuite/libgomp.c++/for-12.C: Remove.
3811 * testsuite/libgomp.c++/for-13.C: Remove.
3812 * testsuite/libgomp.c++/for-14.C: Remove.
3813 * testsuite/libgomp.c++/for-9.C: Remove.
3814 * testsuite/libgomp.c/atomic-18.c: Move ...
3815 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3816 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3817 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3818 * testsuite/libgomp.c/loop-13.c: Move ...
3819 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3820 * testsuite/libgomp.c/loop-14.c: Move ...
3821 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3822 * testsuite/libgomp.c/loop-15.c: Remove.
3823 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3824 * testsuite/libgomp.c/monotonic-1.c: Move ...
3825 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3826 * testsuite/libgomp.c/monotonic-2.c: Move ...
3827 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3828 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3829 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3830 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3831 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3832 * testsuite/libgomp.c/ordered-4.c: Move ...
3833 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3834 * testsuite/libgomp.c/pr45784.c: Move ...
3835 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3836 * testsuite/libgomp.c/pr64824.c: Move ...
3837 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3838 * testsuite/libgomp.c/pr64868.c: Move ...
3839 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3840 * testsuite/libgomp.c/pr66199-1.c: Move ...
3841 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3842 * testsuite/libgomp.c/pr66199-2.c: Move ...
3843 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3844 * testsuite/libgomp.c/pr66199-3.c: Move ...
3845 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3846 * testsuite/libgomp.c/pr66199-4.c: Move ...
3847 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3848 * testsuite/libgomp.c/pr66199-5.c: Move ...
3849 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3850 * testsuite/libgomp.c/pr66199-6.c: Move ...
3851 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3852 * testsuite/libgomp.c/pr66199-7.c: Move ...
3853 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3854 * testsuite/libgomp.c/pr66199-8.c: Move ...
3855 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3856 * testsuite/libgomp.c/pr66199-9.c: Move ...
3857 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3858 * testsuite/libgomp.c/pr69389.c: Move ...
3859 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3860 * testsuite/libgomp.c/simd-14.c: Move ...
3861 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3862 * testsuite/libgomp.c/simd-15.c: Move ...
3863 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3864 * testsuite/libgomp.c/simd-16.c: Move ...
3865 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3866 * testsuite/libgomp.c/simd-17.c: Move ...
3867 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3868 * testsuite/libgomp.c/target-1.c: Move ...
3869 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3870 * testsuite/libgomp.c/target-10.c: Move ...
3871 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3872 * testsuite/libgomp.c/target-13.c: Move ...
3873 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3874 * testsuite/libgomp.c/target-2.c: Move ...
3875 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3876 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3877 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3878 * testsuite/libgomp.c/taskloop-1.c: Move ...
3879 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3880 * testsuite/libgomp.c/taskloop-2.c: Move ...
3881 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3882 * testsuite/libgomp.c/taskloop-3.c: Move ...
3883 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3884 * testsuite/libgomp.c/taskloop-4.c: Move ...
3885 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3886 * testsuite/libgomp.c/udr-1.c: Move ...
3887 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3888 * testsuite/libgomp.c/for-1.c: Move ...
3889 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3890 * testsuite/libgomp.c/for-1.h: Move ...
3891 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3892 * testsuite/libgomp.c/for-2.c: Move ...
3893 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3894 * testsuite/libgomp.c/for-2.h: Move ...
3895 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3896 * testsuite/libgomp.c/for-3.c: Move ...
3897 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3898 * testsuite/libgomp.c/for-4.c: Move ...
3899 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3900 * testsuite/libgomp.c/for-5.c: Move ...
3901 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3902 * testsuite/libgomp.c/for-6.c: Move ...
3903 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3905 2018-05-02 Tom de Vries <tom@codesourcery.com>
3908 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3909 __builtin_goacc_parlevel_{id,size}.
3910 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3911 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3912 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3913 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3914 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3915 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3916 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3917 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3918 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3919 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3920 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3921 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3922 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3923 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3924 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3925 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3926 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3927 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3928 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3929 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3930 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3931 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3932 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3934 2018-05-02 Tom de Vries <tom@codesourcery.com>
3937 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3939 2018-05-02 Tom de Vries <tom@codesourcery.com>
3942 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3944 2018-04-29 Julian Brown <julian@codesourcery.com>
3945 Tom de Vries <tom@codesourcery.com>
3948 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3949 arbitrary order for iterations of atomic subtract check.
3951 2018-04-28 Tom de Vries <tom@codesourcery.com>
3954 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3955 atomic capture results obtained in parallel loop to an array, instead of
3958 2018-04-26 Tom de Vries <tom@codesourcery.com>
3961 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3962 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3963 (process_GOMP_NVPTX_JIT): New function.
3964 (link_ptx): Use process_GOMP_NVPTX_JIT.
3966 2018-04-26 Richard Biener <rguenther@suse.de>
3967 Tom de Vries <tom@codesourcery.com>
3970 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3972 2018-04-26 Tom de Vries <tom@codesourcery.com>
3975 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3976 recursion depth from 25 to 23.
3977 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3979 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3981 * configure: Regenerated.
3983 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3984 Tom de Vries <tom@codesourcery.com>
3987 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3989 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3992 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3993 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3994 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3995 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3996 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3997 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4000 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4002 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4004 2018-04-19 Jakub Jelinek <jakub@redhat.com>
4006 * configure: Regenerated.
4008 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4011 * configure: Regenerate.
4013 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4014 Tom de Vries <tom@codesourcery.com>
4017 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4018 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4020 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4024 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4025 test from gfortran.dg to here.
4027 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4029 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4030 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4032 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4035 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4036 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4038 2018-04-05 Tom de Vries <tom@codesourcery.com>
4041 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4043 2018-03-26 Tom de Vries <tom@codesourcery.com>
4045 PR tree-optimization/85063
4046 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4047 * testsuite/libgomp.c/switch-conversion.c: New test.
4048 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4049 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4051 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4054 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4055 call abort by STOP n.
4056 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4057 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4058 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4059 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4060 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4061 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4062 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4063 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4064 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4065 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4066 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4067 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4068 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4069 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4070 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4071 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4072 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4073 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4074 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4075 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4076 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4077 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4078 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4079 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4080 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4081 * testsuite/libgomp.fortran/character1.f90: Likewise.
4082 * testsuite/libgomp.fortran/character2.f90: Likewise.
4083 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4084 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4085 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4086 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4087 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4088 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4089 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4090 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4091 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4092 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4093 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4094 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4095 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4096 * testsuite/libgomp.fortran/do1.f90: Likewise.
4097 * testsuite/libgomp.fortran/do2.f90: Likewise.
4098 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4099 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4100 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4101 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4102 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4103 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4104 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4105 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4106 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4107 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4108 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4109 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4110 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4111 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4112 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4113 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4114 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4115 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4116 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4117 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4118 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4119 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4120 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4121 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4122 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4123 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4124 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4125 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4126 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4127 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4128 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4129 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4130 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4131 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4132 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4133 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4134 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4135 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4136 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4137 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4138 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4139 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4140 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4141 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4142 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4143 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4144 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4145 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4146 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4147 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4148 * testsuite/libgomp.fortran/lib2.f: Likewise.
4149 * testsuite/libgomp.fortran/lib3.f: Likewise.
4150 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4151 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4152 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4153 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4154 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4155 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4156 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4157 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4158 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4159 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4160 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4161 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4162 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4163 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4164 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4165 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4166 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4167 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4168 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4169 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4170 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4171 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4172 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4173 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4174 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4175 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4176 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4177 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4178 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4179 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4180 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4181 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4182 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4183 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4184 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4185 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4186 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4187 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4188 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4189 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4190 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4191 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4192 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4193 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4194 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4195 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4196 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4197 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4198 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4199 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4200 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4201 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4202 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4203 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4204 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4205 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4206 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4207 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4208 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4209 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4210 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4211 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4212 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4213 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4214 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4215 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4216 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4217 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4218 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4219 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4220 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4221 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4222 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4223 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4224 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4225 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4226 * testsuite/libgomp.fortran/stack.f90: Likewise.
4227 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4228 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4229 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4230 * testsuite/libgomp.fortran/target1.f90: Likewise.
4231 * testsuite/libgomp.fortran/target2.f90: Likewise.
4232 * testsuite/libgomp.fortran/target3.f90: Likewise.
4233 * testsuite/libgomp.fortran/target4.f90: Likewise.
4234 * testsuite/libgomp.fortran/target5.f90: Likewise.
4235 * testsuite/libgomp.fortran/target6.f90: Likewise.
4236 * testsuite/libgomp.fortran/target7.f90: Likewise.
4237 * testsuite/libgomp.fortran/target8.f90: Likewise.
4238 * testsuite/libgomp.fortran/task1.f90: Likewise.
4239 * testsuite/libgomp.fortran/task2.f90: Likewise.
4240 * testsuite/libgomp.fortran/task3.f90: Likewise.
4241 * testsuite/libgomp.fortran/task4.f90: Likewise.
4242 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4243 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4244 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4245 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4246 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4247 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4248 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4249 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4250 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4251 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4252 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4253 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4254 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4255 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4256 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4257 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4258 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4259 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4260 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4261 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4262 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4263 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4264 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4265 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4266 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4267 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4268 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4269 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4270 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4271 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4272 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4273 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4274 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4275 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4276 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4277 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4278 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4279 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4280 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4281 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4282 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4283 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4284 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4285 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4286 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4287 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4288 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4289 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4290 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4291 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4292 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4293 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4294 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4295 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4296 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4297 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4298 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4299 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4300 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4301 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4302 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4303 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4304 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4305 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4306 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4307 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4308 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4309 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4310 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4311 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4312 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4313 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4314 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4315 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4316 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4317 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4318 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4319 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4320 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4321 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4322 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4323 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4324 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4325 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4326 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4327 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4328 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4329 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4330 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4331 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4332 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4333 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4334 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4335 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4336 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4337 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4338 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4339 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4340 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4341 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4342 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4343 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4344 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4345 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4346 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4347 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4348 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4349 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4350 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4351 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4352 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4353 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4354 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4355 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4356 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4357 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4358 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4359 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4360 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4361 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4362 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4363 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4364 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4365 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4366 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4367 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4369 2018-03-20 Richard Biener <rguenther@suse.de>
4371 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4372 parallelizable loop.
4374 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4377 * configure: Regenerate.
4379 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4382 * libgomp.fortran/pr84418-1.f90: New test.
4383 * libgomp.fortran/pr84418-2.f90: New test.
4385 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4388 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4389 -std=f2003 -fall-intrinsics into dg-additional-options.
4391 2018-02-08 Martin Jambor <mjambor@suse.cz>
4393 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4396 2018-02-08 Martin Jambor <mjambor@suse.cz>
4398 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4400 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4402 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4403 [__cplusplus]: Declare extern "C".
4405 2018-02-07 Tom de Vries <tom@codesourcery.com>
4408 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4410 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4411 Jakub Jelinek <jakub@redhat.com>
4414 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4415 instead of omp_lock_t.
4417 2018-01-25 Tom de Vries <tom@codesourcery.com>
4420 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4422 2018-01-24 Tom de Vries <tom@codesourcery.com>
4425 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4427 2018-01-24 Tom de Vries <tom@codesourcery.com>
4430 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4432 2018-01-19 Tom de Vries <tom@codesourcery.com>
4433 Cesar Philippidis <cesar@codesourcery.com>
4436 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4437 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4439 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4441 Update copyright years.
4443 * libgomp.texi: Bump @copying's copyright year.
4445 2017-12-30 Tom de Vries <tom@codesourcery.com>
4448 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4449 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4451 2017-12-27 Tom de Vries <tom@codesourcery.com>
4454 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4455 (test_nonstatic): Fix return type to workaround PR83046.
4457 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4460 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4461 j suffix instead of i.
4462 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4465 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4467 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4468 call to acc_wait (1).
4470 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4473 * testsuite/libgomp.fortran/pr81304.f90: New test.
4475 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4478 * libgomp.fortran/pr81841.f90: New test.
4480 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4483 * target.c (gomp_target_init): Compute lengths just once and
4484 use them in both malloc size and subsequent copying.
4486 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4488 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4489 * acinclude.m4: Add cet.m4.
4490 * configure: Regenerate.
4491 * Makefile.in: Likewise.
4492 * testsuite/Makefile.in: Likewise.
4494 2017-11-15 Tom de Vries <tom@codesourcery.com>
4496 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4497 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4498 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4499 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4500 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4501 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4503 2017-11-14 Tom de Vries <tom@codesourcery.com>
4505 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4508 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4511 * testsuite/libgomp.c++/pr82835.C: New test.
4513 2017-11-06 Martin Liska <mliska@suse.cz>
4515 * testsuite/libgomp.c++/loop-2.C: Return a value
4516 for functions with non-void return type, or change type to void,
4517 or add -Wno-return-type for test.
4518 * testsuite/libgomp.c++/loop-4.C: Likewise.
4519 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4520 * testsuite/libgomp.c++/shared-1.C: Likewise.
4521 * testsuite/libgomp.c++/single-1.C: Likewise.
4522 * testsuite/libgomp.c++/single-2.C: Likewise.
4524 2017-10-31 Tom de Vries <tom@codesourcery.com>
4526 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4527 "do {} while (false)".
4528 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4529 after HSA_DEBUG call.
4531 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4533 * target.c (struct gomp_coalesce_buf): New type.
4534 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4535 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4536 (gomp_copy_host2dev): Add CBUF argument, if copying into
4537 the cached ranges, memcpy into buffer instead of copying
4539 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4540 Add CBUF argument, pass it through to other calls.
4541 (gomp_map_vars): Aggregate copies from host to device if small enough
4542 and with small enough gaps in between into memcpy into a buffer and
4543 fewer host to device copies from the buffer.
4544 (gomp_update): Adjust gomp_copy_host2dev caller.
4546 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4548 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4550 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4551 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4552 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4553 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4555 2017-10-16 Tom de Vries <tom@codesourcery.com>
4557 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4558 openacc_nvidia_accel_selected.
4559 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4560 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4561 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4562 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4563 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4564 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4565 openacc_nvidia_accel_selected. Skip for shared memory device.
4566 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4567 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4569 2017-10-09 Martin Jambor <mjambor@suse.cz>
4572 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4574 2017-10-07 Tom de Vries <tom@codesourcery.com>
4576 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4577 Remove acc_device_nvidia references.
4578 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4581 2017-10-05 Tom de Vries <tom@codesourcery.com>
4583 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4584 vector_length(32) clause from acc parallel directive.
4585 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4587 2017-10-04 Tom de Vries <tom@codesourcery.com>
4589 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4590 (main): Reduce sum of arr elements. Assert that hres is exactly
4591 representable in 32-bit floating point.
4592 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4593 (main): Reduce sum of arr elements. Assert that hres and hmres are
4594 exactly representable in 32-bit floating point.
4595 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4597 2017-09-28 Tom de Vries <tom@codesourcery.com>
4599 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4601 * testsuite/libgomp.c++/pr69393.C: Same.
4602 * testsuite/libgomp.c++/taskloop-1.C: Same.
4603 * testsuite/libgomp.c++/taskloop-3.C: Same.
4604 * testsuite/libgomp.c++/taskloop-4.C: Same.
4605 * testsuite/libgomp.c/for-4.c: Same.
4606 * testsuite/libgomp.c/pr66199-3.c: Same.
4607 * testsuite/libgomp.c/pr66199-4.c: Same.
4608 * testsuite/libgomp.c/pr66199-6.c: Same.
4609 * testsuite/libgomp.c/taskloop-1.c: Same.
4610 * testsuite/libgomp.c/taskloop-3.c: Same.
4611 * testsuite/libgomp.c/taskloop-4.c: Same.
4612 * testsuite/libgomp.fortran/aligned1.f03: Same.
4613 * testsuite/libgomp.fortran/condinc1.f: Same.
4614 * testsuite/libgomp.fortran/condinc3.f90: Same.
4615 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4616 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4617 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4618 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4619 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4620 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4621 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4622 * testsuite/libgomp.fortran/recursion1.f90: Same.
4623 * testsuite/libgomp.fortran/target2.f90: Same.
4624 * testsuite/libgomp.fortran/target5.f90: Same.
4625 * testsuite/libgomp.fortran/task3.f90: Same.
4627 2017-09-28 Tom de Vries <tom@codesourcery.com>
4629 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4630 vector_length(32) clause from acc parallel directive.
4631 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4633 2017-09-27 Tom de Vries <tom@codesourcery.com>
4635 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4636 Remove acc_device_nvidia references.
4638 2017-09-16 Tom de Vries <tom@codesourcery.com>
4641 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4643 2017-09-14 Tom de Vries <tom@codesourcery.com>
4645 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4646 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4647 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4648 * testsuite/libgomp.c/c.exp: Include test-cases from
4649 libgomp.c-c++-common.
4650 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4653 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4656 * testsuite/libgomp.c++/pr81314.C: New test.
4658 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4660 * libgomp.texi (Top): www.openacc.org now uses https.
4661 (Enabling OpenACC): Ditto.
4662 (acc_get_num_devices): Ditto.
4663 (acc_set_device_type): Ditto.
4664 (acc_get_device_type): Ditto.
4665 (acc_set_device_num): Ditto.
4666 (acc_get_device_num): Ditto.
4667 (acc_async_test): Ditto.
4668 (acc_async_test_all): Ditto.
4670 (acc_wait_all): Ditto.
4671 (acc_wait_all_async): Ditto.
4672 (acc_wait_async): Ditto.
4674 (acc_shutdown): Ditto.
4675 (acc_on_device): Ditto.
4676 (acc_malloc): Ditto.
4678 (acc_copyin): Ditto.
4679 (acc_present_or_copyin): Ditto.
4680 (acc_create): Ditto.
4681 (acc_present_or_create): Ditto.
4682 (acc_copyout): Ditto.
4683 (acc_delete): Ditto.
4684 (acc_update_device): Ditto.
4685 (acc_update_self): Ditto.
4686 (acc_map_data): Ditto.
4687 (acc_unmap_data): Ditto.
4688 (acc_deviceptr): Ditto.
4689 (acc_hostptr): Ditto.
4690 (acc_is_present): Ditto.
4691 (acc_memcpy_to_device): Ditto.
4692 (acc_memcpy_from_device): Ditto.
4693 (acc_get_current_cuda_device): Ditto.
4694 (acc_get_current_cuda_context): Ditto.
4695 (acc_get_cuda_stream): Ditto.
4696 (acc_set_cuda_stream): Ditto.
4697 (ACC_DEVICE_TYPE): Ditto.
4698 (ACC_DEVICE_NUM): Ditto.
4699 (OpenACC Library Interoperability): Ditto.
4701 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4704 * testsuite/libgomp.c/pr81687-1.c: New test.
4705 * testsuite/libgomp.c/pr81687-2.c: New test.
4707 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4710 * testsuite/libgomp.c/pr69389.c: New test.
4711 * testsuite/libgomp.c++/pr69389.C: New test.
4713 2017-08-07 Tom de Vries <tom@codesourcery.com>
4716 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4717 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4719 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4722 * testsuite/libgomp.c/pr45784.c: New test.
4723 * testsuite/libgomp.c++/pr45784.C: New test.
4725 2017-07-19 Tom de Vries <tom@codesourcery.com>
4727 * testsuite/libgomp.oacc-c/vec.c: New test.
4729 2017-07-03 Tom de Vries <tom@codesourcery.com>
4731 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4733 2017-06-27 Tom de Vries <tom@codesourcery.com>
4735 * plugin/plugin-nvptx.c (notify_var): New function.
4736 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4738 2017-06-27 Tom de Vries <tom@codesourcery.com>
4740 * env.c (parse_unsigned_long_1): Factor out of ...
4741 (parse_unsigned_long): ... here.
4742 (parse_int_1): Factor out of ...
4743 (parse_int): ... here.
4744 (parse_int_secure): New function.
4745 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4746 * secure_getenv.h: Factor out of ...
4747 * plugin/plugin-hsa.c: ... here.
4748 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4750 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4753 * testsuite/libgomp.c++/pr81130.C: New test.
4755 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4757 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4759 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4760 dg-xfail-run-if default args.
4762 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4764 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4765 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4767 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4770 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4771 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4772 sibling lists, depending on level just pick up what CPUs to put
4773 together into a place vs. whether add multiple ordered places.
4775 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4777 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4778 * libgomp.map (OACC_2.0.1): Add these.
4779 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4780 for "acc_wait", and "acc_wait_all", respectively.
4781 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4782 for "acc_wait", and "acc_wait_all", respectively.
4783 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4784 * libgomp.texi (acc_wait, acc_wait_all): Update.
4785 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4786 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4787 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4789 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4790 acc_present_or_copyin and acc_present_or_create procedures,
4792 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4793 generally different variants of OpenACC Runtime Library functions.
4794 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4796 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4797 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4799 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4800 of preprocessor definitions.
4801 * libgomp.h (strong_alias): Guard by "#ifdef
4802 HAVE_ATTRIBUTE_ALIAS".
4803 * oacc-mem.c: Provide "acc_pcreate" as alias for
4804 "acc_present_or_create", and "acc_pcopyin" as alias for
4805 "acc_present_or_copyin".
4806 * libgomp.map: New version "OACC_2.0.1".
4807 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4808 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4810 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4813 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4814 when disabling nvptx offloading.
4816 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4819 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4820 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4822 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4823 * testsuite/lib/libgomp.exp
4824 (check_effective_target_openacc_nvidia_accel_configured): New
4826 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4827 (check_effective_target_c++): New procs.
4828 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4829 (check_effective_target_c++): Likewise.
4831 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4834 * testsuite/libgomp.c/pr80809-2.c: New test.
4835 * testsuite/libgomp.c/pr80809-3.c: New test.
4838 * testsuite/libgomp.c/pr80809-1.c: New test.
4841 * testsuite/libgomp.c/pr80853.c: New test.
4843 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4845 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4846 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4847 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4848 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4849 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4851 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4852 Debug output for failure.
4854 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4856 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4858 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4861 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4862 bootstrap compare failures.
4864 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4866 * testsuite/libgomp.c/target-36.c: New testcase.
4868 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4870 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4873 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4876 * testsuite/libgomp.c/pr80394.c: New test.
4878 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4881 * config/posix/thread-stacksize.h: New file.
4882 * config/darwin/thread-stacksize.h: New file.
4883 * config/nvptx/thread-stacksize.h: New file.
4884 * env.c: Include thread-stacksize.h.
4885 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4886 instead of 0. Call pthread_attr_setstacksize even if
4887 GOMP_DEFAULT_STACKSIZE is non-zero.
4889 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4891 * env.c (initialize_env): Initialize stacksize to 0.
4893 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4896 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4898 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4901 * testsuite/libgomp.c/pr79940.c: New test.
4903 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4905 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4907 Add __float128 options.
4909 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4911 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4912 hppa*-*-* dg-skip-if directive.
4914 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4916 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4917 dg-skip-if directive into a comment.
4919 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4920 Chung-Lin Tang <cltang@codesourcery.com>
4922 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4923 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4924 add additional case.
4925 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4926 "openacc_nvidia_accel_selected".
4927 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4928 Add num_workers(8) clause.
4930 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4932 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4934 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4935 include complex.h on hppa*-*-hpux*.
4936 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4938 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4940 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4942 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4943 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4944 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4945 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4946 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4947 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4948 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4949 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4950 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4951 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4953 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4955 * libgomp-plugin.h: #include <stdbool.h>.
4956 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4957 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4958 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4959 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4960 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4961 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4962 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4963 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4964 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4965 (GOMP_OFFLOAD_openacc_async_test)
4966 (GOMP_OFFLOAD_openacc_async_test_all)
4967 (GOMP_OFFLOAD_openacc_async_wait)
4968 (GOMP_OFFLOAD_openacc_async_wait_async)
4969 (GOMP_OFFLOAD_openacc_async_wait_all)
4970 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4971 (GOMP_OFFLOAD_openacc_async_set_async)
4972 (GOMP_OFFLOAD_openacc_create_thread_data)
4973 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4974 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4975 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4976 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4977 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4978 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4980 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4981 (GOMP_OFFLOAD_unload_image): Fix argument types.
4983 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4985 * testsuite/lib/libgomp.exp
4986 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4987 check_compile invocation. Fix up removal of executable. Drop
4988 bogus "2>&1" argument.
4990 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4993 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4994 Martin Jambor <mjambor@suse.cz>
4996 * plugin/hsa.h: Moved to top level include.
4997 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4999 2017-01-21 Jakub Jelinek <jakub@redhat.com>
5002 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5003 of cat to get version from BASE-VER file.
5004 * testsuite/Makefile.in: Regenerated.
5006 2017-01-19 Jakub Jelinek <jakub@redhat.com>
5008 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5011 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5013 * plugin/hsa.h: Add GCC runtime library exception.
5014 * plugin/hsa_ext_finalize.h: Likewise.
5016 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5017 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5018 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5019 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5020 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5021 library to link ptx plugin against.
5022 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5023 (CUDA_CALLS): Define.
5024 (cuda_lib, cuda_lib_inited): New variables.
5025 (init_cuda_lib): New function.
5026 (CUDA_CALL_PREFIX): Define.
5027 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5028 (CUDA_CALL): Use FN instead of (FN).
5029 (CUDA_CALL_NOCHECK): Define.
5030 (cuda_error, fini_streams_for_device, select_stream_for_async,
5031 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5032 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5033 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5034 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5036 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5038 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5039 Use CUDA_CALL_NOCHECK.
5040 * plugin/cuda/cuda.h: New file.
5041 * config.h.in: Regenerated.
5042 * configure: Regenerated.
5045 * configure.ac: Add GCC_BASE_VER.
5046 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5047 get version from BASE-VER file.
5048 * testsuite/Makefile.in: Regenerated.
5049 * configure: Regenerated.
5050 * Makefile.in: Regenerated.
5052 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5055 * Makefile.am: Make fincludedir multilib-aware.
5056 * Makefile.in: Regenerate.
5058 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5060 Update copyright years.
5062 * libgomp.texi: Bump @copying's copyright year.
5064 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5066 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5067 pthread_spinlock_t instead of gomp_mutex_t lock.
5068 (gomp_get_thread_pool): Likewise.
5069 (gomp_release_thread_pool): Likewise.
5070 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5073 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5075 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5076 thread pool in case nthreads == 1.
5078 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5080 * config/nvptx/env.c: Delete.
5081 * icv.c: Move definitions of ICV variables back ...
5082 * env.c: ...here. Do not compile environment-related functionality if
5083 LIBGOMP_OFFLOADED_ONLY is set.
5085 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5087 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5088 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5089 * configure: Regenerate.
5090 * config.h.in: Likewise.
5092 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5094 * Makefile.in: Regenerate with automake-1.11.6.
5095 * aclocal.m4: Likewise.
5096 * configure: Likewise.
5097 * testsuite/Makefile.in: Likewise.
5099 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
5101 * config/nvptx/critical.c: Delete to use generic implementation.
5103 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5105 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5106 ../../affinity.c as fallback.
5107 * config/nvptx/affinity.c: Delete to use fallback implementation.
5109 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
5110 Jakub Jelinek <jakub@redhat.com>
5111 Dmitry Melnik <dm@ispras.ru>
5113 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5114 * Makefile.in. Regenerate.
5115 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5116 (LIBGOMP_USE_PTHREADS): ...here; new define.
5117 * configure: Regenerate.
5118 * config.h.in: Likewise.
5119 * config/posix/affinity.c: Move to...
5120 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5121 interface by LIBGOMP_USE_PTHREADS.
5122 * critical.c: Split out GOMP_atomic_{start,end} into...
5123 * atomic.c: ...here (new file).
5124 * env.c: Split out ICV definitions into...
5125 * icv.c: ...here (new file) and...
5126 * icv-device.c: ...here. New file.
5127 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5128 (gomp_destroy_lock_30): Ditto.
5129 (gomp_set_lock_30): Ditto.
5130 (gomp_unset_lock_30): Ditto.
5131 (gomp_test_lock_30): Ditto.
5132 (gomp_init_nest_lock_30): Ditto.
5133 (gomp_destroy_nest_lock_30): Ditto.
5134 (gomp_set_nest_lock_30): Ditto.
5135 (gomp_unset_nest_lock_30): Ditto.
5136 (gomp_test_nest_lock_30): Ditto.
5138 * config/nvptx/lock.c: New.
5139 * config/nvptx/bar.c: New.
5140 * config/nvptx/bar.h: New.
5141 * config/nvptx/doacross.h: New.
5142 * config/nvptx/error.c: New.
5143 * config/nvptx/icv-device.c: New.
5144 * config/nvptx/mutex.h: New.
5145 * config/nvptx/pool.h: New.
5146 * config/nvptx/proc.c: New.
5147 * config/nvptx/ptrlock.h: New.
5148 * config/nvptx/sem.h: New.
5149 * config/nvptx/simple-bar.h: New.
5150 * config/nvptx/target.c: New.
5151 * config/nvptx/task.c: New.
5152 * config/nvptx/team.c: New.
5153 * config/nvptx/time.c: New.
5154 * config/posix/simple-bar.h: New.
5155 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5156 (gomp_num_teams_var): Declare.
5157 (struct gomp_thread_pool): Change threads_dock member to
5158 gomp_simple_barrier_t.
5159 [__nvptx__] (gomp_thread): New implementation.
5160 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5161 (gomp_thread_destructor): Ditto.
5162 (gomp_init_thread_affinity): Ditto.
5163 * team.c: Guard uses of Pthreads-specific interfaces by
5164 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5165 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5166 * config/nvptx/alloc.c: Delete.
5167 * config/nvptx/barrier.c: Ditto.
5168 * config/nvptx/fortran.c: Ditto.
5169 * config/nvptx/iter.c: Ditto.
5170 * config/nvptx/iter_ull.c: Ditto.
5171 * config/nvptx/loop.c: Ditto.
5172 * config/nvptx/loop_ull.c: Ditto.
5173 * config/nvptx/ordered.c: Ditto.
5174 * config/nvptx/parallel.c: Ditto.
5175 * config/nvptx/priority_queue.c: Ditto.
5176 * config/nvptx/sections.c: Ditto.
5177 * config/nvptx/single.c: Ditto.
5178 * config/nvptx/splay-tree.c: Ditto.
5179 * config/nvptx/work.c: Ditto.
5180 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5181 -foffload=-lgfortran in addition to -lgfortran.
5182 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5183 * plugin/plugin-nvptx.c: Include <limits.h>.
5184 (struct targ_fn_descriptor): Add new fields.
5185 (struct ptx_device): Ditto. Set them...
5186 (nvptx_open_device): ...here.
5187 (nvptx_adjust_launch_bounds): New.
5188 (nvptx_host2dev): Allow NULL 'nvthd'.
5189 (nvptx_dev2host): Ditto.
5190 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5191 (link_ptx): Adjust log sizes.
5192 (nvptx_host2dev): Allow NULL 'nvthd'.
5193 (nvptx_dev2host): Ditto.
5194 (nvptx_set_clocktick): New. Use it...
5195 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5197 (GOMP_OFFLOAD_dev2dev): New.
5198 (nvptx_adjust_launch_bounds): New.
5199 (nvptx_stacks_size): New.
5200 (nvptx_stacks_alloc): New.
5201 (nvptx_stacks_free): New.
5202 (GOMP_OFFLOAD_run): New.
5203 (GOMP_OFFLOAD_async_run): New (stub).
5205 2016-11-23 Martin Jambor <mjambor@suse.cz>
5207 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5208 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5209 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5211 2016-11-23 Martin Liska <mliska@suse.cz>
5212 Martin Jambor <mjambor@suse.cz>
5214 * plugin/hsa.h: New file.
5215 * plugin/hsa_ext_finalize.h: New file.
5216 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5217 header file unistd.h, and functions secure_getenv, __secure_getenv,
5218 getuid, geteuid, getgid and getegid.
5219 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5221 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5222 Handle various cases of secure_getenv presence, add an implementation
5223 when we can test effective UID and GID.
5224 (struct hsa_runtime_fn_info): New structure.
5225 (hsa_runtime_fn_info hsa_fns): New variable.
5226 (hsa_runtime_lib): Likewise.
5227 (support_cpu_devices): Likewise.
5228 (init_enviroment_variables): Load newly introduced ENV
5230 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5231 (hsa_fatal): Likewise.
5232 (DLSYM_FN): New macro.
5233 (init_hsa_runtime_functions): New function.
5234 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5235 structure. Depending on environment, also allow CPU devices.
5236 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5237 (get_kernarg_memory_region): Likewise.
5238 (GOMP_OFFLOAD_init_device): Likewise.
5239 (destroy_hsa_program): Likewise.
5240 (init_basic_kernel_info): New function.
5241 (GOMP_OFFLOAD_load_image): Use it.
5242 (create_and_finalize_hsa_program): Call hsa run-time functions via
5244 (create_single_kernel_dispatch): Likewise.
5245 (release_kernel_dispatch): Likewise.
5246 (init_single_kernel): Likewise.
5247 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5248 (get_group_size): New function.
5249 (run_kernel): Likewise.
5250 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5251 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5253 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5254 * testsuite/libgomp-test-support.exp.in: Likewise.
5255 * Makefile.in: Regenerated.
5256 * aclocal.m4: Likewise.
5257 * config.h.in: Likewise.
5258 * configure: Likewise.
5259 * testsuite/Makefile.in: Likewise.
5261 2016-11-15 Martin Jambor <mjambor@suse.cz>
5262 Alexander Monakov <amonakov@ispras.ru>
5264 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5265 mapping clauses to target constructs.
5266 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5268 2016-11-15 Matthias Klose <doko@ubuntu.com>
5270 * configure: Regenerate.
5272 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5274 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5275 * omp_lib.h.in (openmp_version): Likewise.
5276 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5278 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5280 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5281 (fib_wrapper): Add map(from: x) clause.
5282 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5284 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5285 (accum): Add map(tmp) clause.
5286 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5287 (accum): Add map(tofrom: tmp) clause.
5288 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5289 (gramSchmidt): Likewise.
5290 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5291 map(tofrom: sum) clause.
5292 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5293 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5294 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5295 only allowed on the loop iterator.
5296 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5297 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5298 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5299 * testsuite/libgomp.fortran/doacross1.f90: New test.
5300 * testsuite/libgomp.fortran/doacross3.f90: New test.
5301 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5302 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5303 * testsuite/libgomp.fortran/doacross2.f90: New test.
5304 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5305 #pragma omp atomic read.
5306 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5307 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5309 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5310 Nathan Sidwell <nathan@acm.org>
5312 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5313 to determine default geometry.
5314 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5317 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5319 * hashtab.h: Use standard GPLv3 with runtime exception
5322 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5324 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5325 size when allocating new thread.
5327 2016-09-14 Marek Polacek <polacek@redhat.com>
5329 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5331 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5334 * testsuite/libgomp.fortran/pr71014.f90: New test.
5336 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5339 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5340 firstprivate clauses.
5341 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5343 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5344 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5345 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5346 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5347 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5348 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5349 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5350 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5351 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5352 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5353 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5354 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5356 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5359 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5361 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5364 * testsuite/libgomp.c++/pr58706.C: New test.
5366 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5368 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5369 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5370 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5372 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5373 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5375 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5377 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5378 test, and don't hardcode -O0.
5380 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5382 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5384 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5386 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5389 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5392 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5393 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5395 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5398 * testsuite/libgomp.fortran/associate3.f90: New test.
5400 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5402 * testsuite/libgomp.c++/target-21.C: New test.
5404 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5406 * testsuite/libgomp.c++/target-20.C: New test.
5408 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5409 Cesar Philippidis <cesar@codesourcery.com>
5412 * libgomp.oacc-c/nested-function-1.c: New file.
5413 * libgomp.oacc-c/nested-function-2.c: Likewise.
5414 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5415 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5416 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5418 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5421 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5422 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5423 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5425 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5427 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5428 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5430 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5433 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5435 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5437 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5438 instead of invalid schedule(static, 0).
5439 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5441 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5443 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5444 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5445 parameter, use to set async stream around call to gomp_unmap_vars,
5446 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5447 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5448 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5449 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5450 (event_add): Add int parameter, initialize 'val' field when
5451 adding new ptx_event struct.
5452 (nvptx_evec): Adjust event_add() call arguments.
5453 (nvptx_host2dev): Likewise.
5454 (nvptx_dev2host): Likewise.
5455 (nvptx_wait_async): Likewise.
5456 (nvptx_wait_all_async): Likewise.
5457 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5458 pass to event_add() call.
5459 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5461 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5462 call openacc.register_async_cleanup_func() hook.
5463 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5464 * target.c (gomp_copy_from_async): Delete function.
5465 (gomp_map_vars): Remove async_refcount.
5466 (gomp_unmap_vars): Likewise.
5467 (gomp_load_image_to_device): Likewise.
5468 (omp_target_associate_ptr): Likewise.
5469 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5470 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5471 (gomp_copy_from_async): Remove.
5473 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5475 * target.c (gomp_device_copy): New function.
5476 (gomp_copy_host2dev): Likewise.
5477 (gomp_copy_dev2host): Likewise.
5478 (gomp_free_device_memory): Likewise.
5479 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5480 (gomp_map_pointer): Likewise.
5481 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5482 NULL value from alloc_func plugin hook.
5483 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5484 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5485 (gomp_unmap_vars): Likewise.
5486 (gomp_update): Adjust to call gomp_copy_dev2host and
5487 gomp_copy_host2dev functions.
5488 (gomp_unload_image_from_device): Handle false value from
5489 unload_image_func plugin hook.
5490 (gomp_init_device): Handle false value from init_device_func
5492 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5493 (omp_target_free): Adjust to call gomp_free_device_memory.
5494 (omp_target_memcpy): Handle return values from host2dev_func,
5495 dev2host_func, and dev2dev_func plugin hooks.
5496 (omp_target_memcpy_rect_worker): Likewise.
5497 (gomp_target_fini): Handle false value from fini_device_func
5499 * libgomp.h (struct gomp_device_descr): Adjust return type of
5500 init_device_func, fini_device_func, unload_image_func, free_func,
5501 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5502 * oacc-init.c (acc_shutdown_1): Handle false value from
5503 fini_device_func plugin hook.
5504 * oacc-host.c (host_init_device): Change return type to bool.
5505 (host_fini_device): Likewise.
5506 (host_unload_image): Likewise.
5507 (host_free): Likewise.
5508 (host_dev2host): Likewise.
5509 (host_host2dev): Likewise.
5510 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5511 (acc_memcpy_to_device): Likewise.
5512 (acc_memcpy_from_device): Likewise.
5513 (delete_copyout): Add libfnname parameter, handle free_func
5514 hook fatal error case.
5515 (acc_delete): Adjust delete_copyout call.
5516 (acc_copyout): Likewise.
5517 (update_dev_host): Move gomp_mutex_unlock to after
5518 host2dev/dev2host hook calls.
5520 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5521 to 'hsa_error_msg', for clarity.
5522 (hsa_fatal): Likewise.
5523 (hsa_error): New function.
5524 (init_hsa_context): Change return type to bool, adjust to return
5526 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5528 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5529 return false on error.
5530 (get_agent_info): Adjust to return NULL on error.
5531 (destroy_hsa_program): Change return type to bool, adjust to
5532 return false on error.
5533 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5534 (destroy_module): Change return type to bool, adjust to
5535 return false on error.
5536 (GOMP_OFFLOAD_unload_image): Likewise.
5537 (GOMP_OFFLOAD_fini_device): Likewise.
5538 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5539 (GOMP_OFFLOAD_free): Change to return false when called.
5540 (GOMP_OFFLOAD_dev2host): Likewise.
5541 (GOMP_OFFLOAD_host2dev): Likewise.
5542 (GOMP_OFFLOAD_dev2dev): Likewise.
5544 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5545 (CUDA_CALL): Likewise.
5546 (CUDA_CALL_ASSERT): Likewise.
5547 (map_init): Change return type to bool, use CUDA_CALL* macros.
5548 (map_fini): Likewise.
5549 (init_streams_for_device): Change return type to bool, adjust
5551 (fini_streams_for_device): Change return type to bool, adjust
5553 (select_stream_for_async): Release stream_lock before calls to
5554 GOMP_PLUGIN_fatal, adjust call to map_init.
5555 (nvptx_init): Use CUDA_CALL* macros.
5556 (nvptx_attach_host_thread_to_device): Change return type to bool,
5557 use CUDA_CALL* macros.
5558 (nvptx_open_device): Use CUDA_CALL* macros.
5559 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5561 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5562 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5563 (nvptx_exec): Use CUDA_CALL* macros.
5564 (nvptx_alloc): Use CUDA_CALL* macros.
5565 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5566 (nvptx_host2dev): Likewise.
5567 (nvptx_dev2host): Likewise.
5568 (nvptx_wait): Use CUDA_CALL* macros.
5569 (nvptx_wait_async): Likewise.
5570 (nvptx_wait_all): Likewise.
5571 (nvptx_wait_all_async): Likewise.
5572 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5573 use CUDA_CALL* macros, adjust call to map_fini.
5574 (GOMP_OFFLOAD_init_device): Change return type to bool,
5575 adjust code accordingly.
5576 (GOMP_OFFLOAD_fini_device): Likewise.
5577 (GOMP_OFFLOAD_load_image): Adjust calls to
5578 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5579 use CUDA_CALL* macros.
5580 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5582 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5583 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5584 handle error return.
5585 (GOMP_OFFLOAD_dev2host): Likewise.
5586 (GOMP_OFFLOAD_host2dev): Likewise.
5587 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5588 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5590 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5592 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5593 (acc_free): Likewise.
5594 (acc_memcpy_to_device): Likewise.
5595 (acc_memcpy_from_device): Likewise.
5596 (acc_deviceptr): Likewise.
5597 (acc_hostptr): Likewise.
5598 (acc_is_present): Likewise.
5599 (acc_map_data): Likewise.
5600 (acc_unmap_data): Likewise.
5601 (present_create_copy): Likewise.
5602 (delete_copyout): Likewise.
5603 (update_dev_host): Likewise.
5604 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5605 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5606 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5607 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5608 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5609 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5610 it only runs on nvptx targets.
5611 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5612 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5613 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5614 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5615 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5616 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5617 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5618 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5619 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5620 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5621 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5622 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5623 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5624 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5625 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5626 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5627 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5628 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5629 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5630 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5631 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5632 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5633 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5635 2016-05-23 Martin Jambor <mjambor@suse.cz>
5637 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5639 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5641 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5642 to gomp_init_targets_once.
5643 (acc_set_device_type): Remove !cached_base_dev condition on call to
5644 gomp_init_targets_once, move call to before acc_device_lock acquire,
5646 (acc_get_device_num): Remove !cached_base_dev condition on call to
5647 gomp_init_targets_once.
5648 (acc_set_device_num): Likewise.
5650 2016-05-16 Martin Jambor <mjambor@suse.cz>
5652 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5654 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5656 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5657 expected partitioning.
5659 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5662 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5663 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5664 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5666 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5668 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5671 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5674 * testsuite/libgomp.c/pr70680-1.c: New test.
5675 * testsuite/libgomp.c/pr70680-2.c: New test.
5677 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5679 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5680 pass parameter variables to subroutines.
5682 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5685 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5687 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5690 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5691 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5693 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5695 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5696 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5697 GOACC_declare prototype.
5699 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5700 Merge this file, and...
5701 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5702 ... this file, and...
5703 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5704 ... this file, and...
5705 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5706 ... this file, and...
5707 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5708 ... this file, and...
5709 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5710 ... this file, and...
5711 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5712 ... this file, and...
5713 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5714 ... this file, and...
5715 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5716 ... this file, and...
5717 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5718 ... this file, and...
5719 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5720 ... this file, and...
5721 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5722 ... this file, and...
5723 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5724 ... this file into...
5725 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5728 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5729 Make failure observable.
5731 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5733 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5735 * target.c (gomp_target_fallback_firstprivate,
5736 gomp_target_unshare_firstprivate): Removed.
5737 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5738 before waiting for dependencies.
5739 (gomp_target_task_fn): Don't copy firstprivate vars here.
5740 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5741 firstprivate_copies here.
5742 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5743 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5744 explicit/implicit firstprivate.
5746 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5750 PR tree-optimization/70373
5754 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5756 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5758 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5760 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5762 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5764 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5766 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5768 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5770 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5772 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5773 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5774 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5775 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5777 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5779 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5781 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5783 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5785 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5786 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5787 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5788 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5789 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5790 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5792 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5793 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5794 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5795 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5796 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5797 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5798 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5799 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5800 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5801 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5802 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5803 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5804 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5805 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5806 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5808 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5809 James Norris <jnorris@codesourcery.com>
5810 Nathan Sidwell <nathan@codesourcery.com>
5811 Julian Brown <julian@codesourcery.com>
5812 Cesar Philippidis <cesar@codesourcery.com>
5813 Chung-Lin Tang <cltang@codesourcery.com>
5814 Tom de Vries <tom@codesourcery.com>
5816 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5817 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5818 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5819 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5820 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5821 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5822 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5823 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5824 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5826 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5828 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5830 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5831 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5832 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5833 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5835 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5837 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5840 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5841 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5842 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5843 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5844 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5845 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5846 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5848 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5849 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5850 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5852 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5854 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5856 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5858 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5860 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5861 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5862 ... this new file. Update.
5863 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5864 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5865 ... this new file. Update.
5866 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5867 file. Incorporate...
5868 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5870 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5872 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5874 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5876 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5878 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5879 set-torture-options.
5881 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5883 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5885 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5886 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5887 -fno-builtin-acc_on_device instead of -O0.
5888 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5890 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5891 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5893 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5894 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5895 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5896 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5897 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5898 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5899 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5900 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5901 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5902 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5903 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5906 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5907 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5908 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5909 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5910 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5912 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5914 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5917 2016-03-24 Martin Liska <mliska@suse.cz>
5919 * plugin/plugin-hsa.c (packet_store_release): New function
5920 that is taken from the HSA runtime manual.
5921 (GOMP_OFFLOAD_run): Use the function.
5923 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5926 * testsuite/libgomp.c++/pr70376.C: New test.
5928 2016-03-23 Tom de Vries <tom@codesourcery.com>
5930 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5931 initialization of lresult and lvresult.
5932 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5934 2016-03-23 James Norris <jnorris@codesourcery.com>
5935 Daichi Fukuoka <dc-fukuoka@sgi.com>
5938 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5939 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5940 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5941 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5943 2016-03-23 Martin Liska <mliska@suse.cz>
5946 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5947 argument just in case a dispatched kernel uses that argument.
5949 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5951 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5952 -ftree-parallelize-loops/-fopenacc changes.
5953 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5955 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5957 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5959 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5961 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5962 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5964 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5966 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5967 always_ld_library_path the path to libgcc_s.
5969 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5972 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5974 2016-03-09 Tom de Vries <tom@codesourcery.com>
5976 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5977 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5978 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5980 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5981 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5982 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5983 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5985 2016-03-07 Martin Jambor <mjambor@suse.cz>
5987 * testsuite/lib/libgomp.exp
5988 (check_effective_target_hsa_offloading_selected_nocache): New.
5989 (check_effective_target_hsa_offloading_selected): Likewise.
5990 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5991 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5992 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5993 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5994 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5995 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5996 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5997 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5998 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5999 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6000 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6001 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6002 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6003 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6004 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6005 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6006 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6008 2016-03-07 Martin Jambor <mjambor@suse.cz>
6010 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6011 non-shared memory accelerators.
6012 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6013 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6014 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6015 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6016 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6017 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6018 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6019 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6020 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6022 2016-03-07 Martin Jambor <mjambor@suse.cz>
6024 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6027 2016-03-02 Jakub Jelinek <jakub@redhat.com>
6030 * testsuite/libgomp.c++/pr69555-1.C: New test.
6031 * testsuite/libgomp.c++/pr69555-2.C: New test.
6033 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6034 Martin Jambor <mjambor@suse.cz>
6036 * testsuite/lib/libgomp.exp
6037 (check_effective_target_offload_device_shared_as): New proc.
6038 * testsuite/libgomp.c++/declare_target-1.C: New test.
6040 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6043 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6045 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6047 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6048 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6051 -ftree-parallelize-loops/-fopenacc changes.
6052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6055 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6057 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6059 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6061 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6063 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6065 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6068 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6070 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6071 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6073 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6074 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6077 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6079 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6081 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6084 * testsuite/libgomp.c/pr69805.c: New test.
6086 2016-02-16 Tom de Vries <tom@codesourcery.com>
6089 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6091 2016-02-09 Tom de Vries <tom@codesourcery.com>
6093 PR tree-optimization/69599
6094 * testsuite/libgomp.c/omp-nested-3.c: New test.
6095 * testsuite/libgomp.c/pr46032-2.c: New test.
6096 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6097 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6099 2016-02-09 Tom de Vries <tom@codesourcery.com>
6102 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6104 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6106 * testsuite/libgomp.c/target-31.c: Fix testcase.
6108 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6110 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6112 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6113 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6114 reduction and map clauses.
6115 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6117 2016-02-02 James Norris <jnorris@codesourcery.com>
6119 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6121 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6123 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6124 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6126 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6129 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6131 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6132 (hsa_kmt_lib): Set variables.
6133 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6134 always_ld_library_path.
6135 * Makefile.in: Regenerate.
6136 * configure: Likewise.
6137 * testsuite/Makefile.in: Likewise.
6139 * plugin/configfrag.ac (offload_additional_options)
6140 (offload_additional_lib_paths): Don't amend for hsa offloading.
6141 * configure: Regenerate.
6143 * plugin/configfrag.ac: Don't configure for offloading target if
6144 we don't build the corresponding plugin.
6145 * configure: Regenerate.
6147 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6149 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6150 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6152 2016-01-26 Tom de Vries <tom@codesourcery.com>
6154 PR tree-optimization/69110
6155 * testsuite/libgomp.c/pr69110.c: New test.
6157 2016-01-25 Richard Biener <rguenther@suse.de>
6160 * testsuite/libgomp.c++/pr69393.C: New testcase.
6162 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6164 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6165 function wasn't mapped to the device with non-shared memory.
6167 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6169 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6171 2016-01-19 Martin Jambor <mjambor@suse.cz>
6172 Martin Liska <mliska@suse.cz>
6174 * plugin/Makefrag.am: Add HSA plugin requirements.
6175 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6176 (HSA_RUNTIME_LIB): Likewise.
6177 (HSA_RUNTIME_CPPFLAGS): Likewise.
6178 (HSA_RUNTIME_INCLUDE): New substitution.
6179 (HSA_RUNTIME_LIB): Likewise.
6180 (HSA_RUNTIME_LDFLAGS): Likewise.
6181 (hsa-runtime): New configure option.
6182 (hsa-runtime-include): Likewise.
6183 (hsa-runtime-lib): Likewise.
6184 (PLUGIN_HSA): New substitution variable.
6185 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6187 (PLUGIN_HSA_CPPFLAGS): Likewise.
6188 (PLUGIN_HSA_LDFLAGS): Likewise.
6189 (PLUGIN_HSA_LIBS): Likewise.
6190 Check that we have access to HSA run-time.
6191 * libgomp-plugin.h (offload_target_type): New element
6192 OFFLOAD_TARGET_TYPE_HSA.
6193 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6195 (bool gomp_create_target_task): Updated.
6196 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6197 new field can_run_func.
6198 * libgomp_g.h (GOMP_target_ext): Update prototype.
6199 * oacc-host.c (host_run): Added a new parameter args.
6200 * target.c (calculate_firstprivate_requirements): New function.
6201 (copy_firstprivate_data): Likewise.
6202 (gomp_target_fallback_firstprivate): Use them.
6203 (gomp_target_unshare_firstprivate): New function.
6204 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6206 (GOMP_target): Do host fallback for all shared memory devices. Do not
6207 pass any args to plugins.
6208 (GOMP_target_ext): Introduce device-specific argument parameter args.
6209 Allow host fallback if device shares memory. Do not remap data if
6210 device has shared memory.
6211 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6212 like host fallback for mappings.
6213 (GOMP_target_data): Treat shared memory devices like host fallback.
6214 (GOMP_target_data_ext): Likewise.
6215 (GOMP_target_update): Likewise.
6216 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6217 gomp_create_target_task.
6218 (GOMP_target_enter_exit_data): Likewise.
6219 (omp_target_alloc): Treat shared memory devices like host fallback.
6220 (omp_target_free): Likewise.
6221 (omp_target_is_present): Likewise.
6222 (omp_target_memcpy): Likewise.
6223 (omp_target_memcpy_rect): Likewise.
6224 (omp_target_associate_ptr): Likewise.
6225 (gomp_load_plugin_for_device): Also load can_run.
6226 * task.c (GOMP_PLUGIN_target_task_completion): Free
6227 firstprivate_copies.
6228 (gomp_create_target_task): Accept new argument args and store it to
6230 * plugin/plugin-hsa.c: New file.
6232 2016-01-18 Tom de Vries <tom@codesourcery.com>
6234 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6235 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6236 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6237 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6238 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6239 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6240 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6241 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6242 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6243 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6244 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6246 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6248 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6249 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6250 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6251 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6252 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6253 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6254 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6255 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6257 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6259 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6261 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6263 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6265 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6267 2016-01-12 James Norris <jnorris@codesourcery.com>
6269 * libgomp.texi: Updates for OpenACC.
6271 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6273 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6275 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6278 * testsuite/libgomp.fortran/pr66680.f90: New test.
6280 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6283 * testsuite/libgomp.c/pr68960.c: New test.
6285 2016-01-06 Nathan Sidwell <nathan@acm.org>
6287 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6288 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6290 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6292 Update copyright years.
6294 * libgomp.texi: Bump @copying's copyright year.
6296 2015-12-31 Nathan Sidwell <nathan@acm.org>
6298 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6299 dg-additional-options syntax.
6300 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6301 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6302 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6303 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6304 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6305 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6307 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6319 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6321 * libgomp.h (REFCOUNT_LINK): Define.
6322 (struct splay_tree_key_s): Add link_key.
6323 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6324 Replace target address of the pointer with target address of newly
6325 mapped object in the splay tree. Set link pointer on target to the
6326 device address of the mapped object.
6327 (gomp_unmap_vars): Restore target address of the pointer in the splay
6328 tree for REFCOUNT_LINK objects after unmapping.
6329 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6330 declare target link" objects.
6331 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6332 "omp declare target link" objects, which were mapped for the image.
6333 (gomp_exit_data): Restore target address of the pointer in the splay
6334 tree for REFCOUNT_LINK objects after unmapping.
6335 * testsuite/libgomp.c/target-link-1.c: New file.
6337 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6339 * libgomp.h (gomp_device_state): New enum.
6340 (struct gomp_device_descr): Replace is_initialized with state.
6341 (gomp_fini_device): Remove declaration.
6342 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6343 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6344 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6345 (acc_set_device_type): Use state instead of is_initialized.
6346 (acc_set_device_num): Likewise.
6347 * target.c (resolve_device): Use state instead of is_initialized.
6348 Do not initialize finalized device.
6349 (gomp_map_vars): Do nothing if device is finalized.
6350 (gomp_unmap_vars): Likewise.
6351 (gomp_update): Likewise.
6352 (GOMP_offload_register_ver): Use state instead of is_initialized.
6353 (GOMP_offload_unregister_ver): Likewise.
6354 (gomp_init_device): Likewise.
6355 (gomp_unload_device): Likewise.
6356 (gomp_fini_device): Remove.
6357 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6358 (GOMP_target): Go to host fallback if device is finalized.
6359 (GOMP_target_ext): Likewise.
6360 (gomp_exit_data): Do nothing if device is finalized.
6361 (gomp_target_task_fn): Go to host fallback if device is finalized.
6362 (gomp_target_fini): New static function.
6363 (gomp_target_init): Use state instead of is_initialized.
6364 Call gomp_target_fini at exit.
6366 2015-12-09 Tom de Vries <tom@codesourcery.com>
6368 PR tree-optimization/68716
6369 * testsuite/libgomp.c/omp-nested-2.c: New test.
6371 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6373 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6374 target openacc_nvidia_accel_selected.
6375 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6377 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6378 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6380 2015-12-01 Julian Brown <julian@codesourcery.com>
6381 James Norris <James_Norris@mentor.com>
6383 * oacc-parallel.c (GOACC_host_data): New function.
6384 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6385 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6386 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6387 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6388 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6389 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6390 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6392 2015-11-30 James Norris <jnorris@codesourcery.com>
6393 Cesar Philippidis <cesar@codesourcery.com>
6396 * libgomp.oacc-fortran/routine-5.f90: New test.
6397 * libgomp.oacc-fortran/routine-7.f90: New test.
6398 * libgomp.oacc-fortran/routine-9.f90: New test.
6400 2015-11-30 Tom de Vries <tom@codesourcery.com>
6402 PR tree-optimization/46032
6403 * testsuite/libgomp.c/pr46032.c: New test.
6405 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6408 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6409 (gomp_create_target_task): Call it before freeing
6410 GOMP_TARGET_TASK_DATA tasks.
6413 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6414 in between case label and OpenMP standalone directives.
6415 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6417 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6419 * configure: Regenerate.
6421 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6423 * testsuite/libgomp.c/target-35.c: New test.
6425 2015-11-22 James Norris <jnorris@codesourcery.com>
6426 Cesar Philippidis <cesar@codesourcery.com>
6428 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6429 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6430 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6431 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6432 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6434 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6437 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6438 * testsuite/libgomp.c/reduction-12.c: Likewise.
6439 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6440 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6442 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6444 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6445 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6446 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6447 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6448 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6450 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6451 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6453 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6455 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6456 worker & gang cases.
6457 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6459 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6461 * config/nvptx/priority_queue.c: New file.
6463 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6465 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6468 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6469 Aldy Hernandez <aldyh@redhat.com>
6470 Ilya Verbin <ilya.verbin@intel.com>
6472 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6473 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6474 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6475 iterators or IV by chunk size.
6476 * parallel.c (gomp_resolve_num_threads): Don't assume that
6477 if thr->ts.team is non-NULL, then pool must be non-NULL.
6478 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6479 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6480 GOMP_PLUGIN_target_task_completion.
6481 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6482 * Makefile.in: Regenerate.
6483 * libgomp.h: Shuffle prototypes and forward definitions around so
6484 priority queues can be defined.
6485 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6486 (enum gomp_target_task_state): New enum.
6487 (struct gomp_target_task): Add state, tgt, task and team fields.
6488 (gomp_create_target_task): Change return type to bool, add
6490 (gomp_target_task_fn): Change return type to bool.
6491 (struct gomp_device_descr): Add async_run_func.
6492 (struct gomp_task): Remove children, next_child, prev_child,
6493 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6495 (struct gomp_taskgroup): Remove children.
6496 Add taskgroup_queue.
6497 (struct gomp_team): Change task_queue type to a priority queue.
6498 (splay_compare): Define inline.
6499 (priority_queue_offset): New.
6500 (priority_node_to_task): New.
6501 (task_to_priority_node): New.
6502 * oacc-mem.c: Do not include splay-tree.h.
6503 * priority_queue.c: New file.
6504 * priority_queue.h: New file.
6505 * splay-tree.c: Do not include splay-tree.h.
6506 (splay_tree_foreach_internal): New.
6507 (splay_tree_foreach): New.
6508 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6509 (splay_tree_callback): Define typedef.
6510 * target.c (splay_compare): Move to libgomp.h.
6511 (GOMP_target): Don't adjust *thr in any way around running offloaded
6513 (GOMP_target_ext): Likewise. Handle target nowait.
6514 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6515 return value from gomp_create_target_task, if false, fallthrough
6516 as if no dependencies exist.
6517 (gomp_target_task_fn): Change return type to bool, return true
6518 if the task should have another part scheduled later. Handle
6520 (gomp_load_plugin_for_device): Initialize async_run.
6521 * task.c (gomp_init_task): Initialize children_queue.
6522 (gomp_clear_parent_in_list): New.
6523 (gomp_clear_parent_in_tree): New.
6524 (gomp_clear_parent): Handle priorities.
6525 (GOMP_task): Likewise.
6526 (priority_queue_move_task_first,
6527 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6529 (gomp_create_target_task): Use priority queues. Change return type
6530 to bool, add state argument, return false if for async
6531 {{enter,exit} data,update} constructs no dependencies need to be
6532 waited for, handle target nowait. Set task->fn to NULL instead of
6533 gomp_target_task_fn.
6534 (verify_children_queue): Remove.
6535 (priority_list_upgrade_task): New.
6536 (priority_queue_upgrade_task): New.
6537 (verify_task_queue): Remove.
6538 (priority_list_downgrade_task): New.
6539 (priority_queue_downgrade_task): New.
6540 (gomp_task_run_pre): Use priority queues.
6541 Abstract code out to priority_queue_downgrade_task.
6542 (gomp_task_run_post_handle_dependers): Use priority queues.
6543 (gomp_task_run_post_remove_parent): Likewise.
6544 (gomp_task_run_post_remove_taskgroup): Likewise.
6545 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6547 (GOMP_taskwait): Likewise.
6548 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6549 priority-queue_upgrade_task.
6550 (GOMP_taskgroup_start): Use priority queues.
6551 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6552 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6554 * taskloop.c (GOMP_taskloop): Handle priorities.
6555 * team.c (gomp_new_team): Call priority_queue_init.
6556 (free_team): Call priority_queue_free.
6557 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6558 team created for target nowait in implicit parallel region.
6559 (gomp_team_start): For nested check, test thr->ts.level instead of
6560 thr->ts.team != NULL.
6561 * testsuite/libgomp.c/doacross-3.c: New test.
6562 * testsuite/libgomp.c/ordered-5.c: New test.
6563 * testsuite/libgomp.c/priority.c: New test.
6564 * testsuite/libgomp.c/target-31.c: New test.
6565 * testsuite/libgomp.c/target-32.c: New test.
6566 * testsuite/libgomp.c/target-33.c: New test.
6567 * testsuite/libgomp.c/target-34.c: New test.
6569 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6571 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6573 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6576 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6578 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6579 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6581 2015-11-12 James Norris <jnorris@codesourcery.com>
6582 Joseph Myers <joseph@codesourcery.com>
6584 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6585 * oacc-parallel.c (GOACC_declare): New function.
6586 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6587 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6588 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6589 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6590 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6592 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6594 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6596 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6598 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6599 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6601 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6603 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6606 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6608 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6609 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6610 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6611 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6612 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6614 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6616 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6617 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6619 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6620 Ilya Verbin <ilya.verbin@intel.com>
6622 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6623 GOMP_loop_nonmonotonic_dynamic_start,
6624 GOMP_loop_nonmonotonic_guided_next,
6625 GOMP_loop_nonmonotonic_guided_start,
6626 GOMP_loop_ull_nonmonotonic_dynamic_next,
6627 GOMP_loop_ull_nonmonotonic_dynamic_start,
6628 GOMP_loop_ull_nonmonotonic_guided_next,
6629 GOMP_loop_ull_nonmonotonic_guided_start,
6630 GOMP_parallel_loop_nonmonotonic_dynamic,
6631 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6632 (GOMP_target_41): Renamed to ...
6633 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6635 (GOMP_target_data_41): Renamed to ...
6636 (GOMP_target_data_ext): ... this.
6637 (GOMP_target_update_41): Renamed to ...
6638 (GOMP_target_update_ext): ... this.
6639 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6640 GOMP_target_data_ext and GOMP_target_update_ext instead of
6641 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6642 Export GOMP_loop_nonmonotonic_dynamic_next,
6643 GOMP_loop_nonmonotonic_dynamic_start,
6644 GOMP_loop_nonmonotonic_guided_next,
6645 GOMP_loop_nonmonotonic_guided_start,
6646 GOMP_loop_ull_nonmonotonic_dynamic_next,
6647 GOMP_loop_ull_nonmonotonic_dynamic_start,
6648 GOMP_loop_ull_nonmonotonic_guided_next,
6649 GOMP_loop_ull_nonmonotonic_guided_start,
6650 GOMP_parallel_loop_nonmonotonic_dynamic and
6651 GOMP_parallel_loop_nonmonotonic_guided.
6652 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6653 GOMP_parallel_loop_nonmonotonic_guided,
6654 GOMP_loop_nonmonotonic_dynamic_start,
6655 GOMP_loop_nonmonotonic_guided_start,
6656 GOMP_loop_nonmonotonic_dynamic_next,
6657 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6658 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6659 GOMP_loop_ull_nonmonotonic_guided_start,
6660 GOMP_loop_ull_nonmonotonic_dynamic_next,
6661 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6662 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6664 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6665 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6666 Use gomp_map_val function.
6667 (gomp_target_fallback_firstprivate): New static function.
6668 (GOMP_target_41): Renamed to ...
6669 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6670 arguments. Move firstprivate fallback handling into a new
6672 (GOMP_target_data_41): Renamed to ...
6673 (GOMP_target_data_ext): ... this.
6674 (GOMP_target_update_41): Renamed to ...
6675 (GOMP_target_update_ext): ... this.
6676 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6677 gomp_map_0len_lookup instead of gomp_map_lookup.
6678 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6680 * testsuite/libgomp.c/target-28.c: Likewise.
6681 * testsuite/libgomp.c/monotonic-1.c: New test.
6682 * testsuite/libgomp.c/monotonic-2.c: New test.
6683 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6684 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6685 * testsuite/libgomp.c/pr66199-5.c: New test.
6686 * testsuite/libgomp.c/pr66199-6.c: New test.
6687 * testsuite/libgomp.c/pr66199-7.c: New test.
6688 * testsuite/libgomp.c/pr66199-8.c: New test.
6689 * testsuite/libgomp.c/pr66199-9.c: New test.
6690 * testsuite/libgomp.c/reduction-11.c: New test.
6691 * testsuite/libgomp.c/reduction-12.c: New test.
6692 * testsuite/libgomp.c/reduction-13.c: New test.
6693 * testsuite/libgomp.c/reduction-14.c: New test.
6694 * testsuite/libgomp.c/reduction-15.c: New test.
6695 * testsuite/libgomp.c/target-12.c (main): Adjust for
6696 omp_target_is_present change for one-past-last element.
6697 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6698 the same var is both mapped and privatized.
6699 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6700 handling of zero-length array sections.
6701 * testsuite/libgomp.c/target-28.c: New test.
6702 * testsuite/libgomp.c/target-29.c: New test.
6703 * testsuite/libgomp.c/target-30.c: New test.
6704 * testsuite/libgomp.c/target-teams-1.c: New test.
6705 * testsuite/libgomp.c++/member-6.C: New test.
6706 * testsuite/libgomp.c++/member-7.C: New test.
6707 * testsuite/libgomp.c++/monotonic-1.C: New test.
6708 * testsuite/libgomp.c++/monotonic-2.C: New test.
6709 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6710 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6711 * testsuite/libgomp.c++/pr66199-3.C: New test.
6712 * testsuite/libgomp.c++/pr66199-4.C: New test.
6713 * testsuite/libgomp.c++/pr66199-5.C: New test.
6714 * testsuite/libgomp.c++/pr66199-6.C: New test.
6715 * testsuite/libgomp.c++/pr66199-7.C: New test.
6716 * testsuite/libgomp.c++/pr66199-8.C: New test.
6717 * testsuite/libgomp.c++/pr66199-9.C: New test.
6718 * testsuite/libgomp.c++/reduction-11.C: New test.
6719 * testsuite/libgomp.c++/reduction-12.C: New test.
6720 * testsuite/libgomp.c++/target-13.C: New test.
6721 * testsuite/libgomp.c++/target-14.C: New test.
6722 * testsuite/libgomp.c++/target-15.C: New test.
6723 * testsuite/libgomp.c++/target-16.C: New test.
6724 * testsuite/libgomp.c++/target-17.C: New test.
6725 * testsuite/libgomp.c++/target-18.C: New test.
6726 * testsuite/libgomp.c++/target-19.C: New test.
6728 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6730 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6732 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6733 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6734 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6735 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6736 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6737 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6738 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6739 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6740 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6741 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6742 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6743 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6744 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6745 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6747 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6749 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6750 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6751 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6752 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6753 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6754 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6755 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6756 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6758 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6760 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6761 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6762 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6763 * oacc-host.c (host_openacc_exec): Likewise.
6764 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6766 2015-11-03 Julian Brown <julian@codesourcery.com>
6767 Thomas Schwinge <thomas@codesourcery.com>
6769 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6770 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6771 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6773 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6774 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6776 2015-11-03 James Norris <jnorris@codesourcery.com>
6778 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6780 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6782 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6784 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6785 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6786 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6788 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6790 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6792 (enum acc_async_t): Reformat.
6793 (acc_on_device): Declare compatible with builtin and provide C++
6795 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6797 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6798 Cesar Philippidis <cesar@codesourcery.com>
6800 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6801 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6802 ... this. Add a description of the test at the top of the file.
6803 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6804 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6805 ... this. Add a description of the test at the top of the file.
6807 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6809 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6810 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6811 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6812 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6813 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6814 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6816 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6818 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6821 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6824 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6826 2015-10-27 James Norris <jnorris@codesourcery.com>
6828 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6829 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6831 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6833 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6834 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6837 acc_device_nvidia usage.
6838 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6842 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6843 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6846 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6850 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6851 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6853 2015-10-23 Tom de Vries <tom@codesourcery.com>
6856 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6858 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6860 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6862 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6864 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6865 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6867 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6868 to 0 when mapnum is 0.
6870 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6872 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6873 Cast to int from int32_t.
6875 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6876 Aldy Hernandez <aldyh@redhat.com>
6877 Ilya Verbin <ilya.verbin@intel.com>
6879 * config/linux/affinity.c (omp_get_place_num_procs,
6880 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6881 * config/linux/doacross.h: New file.
6882 * config/posix/affinity.c (omp_get_place_num_procs,
6883 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6884 * config/posix/doacross.h: New file.
6885 * env.c: Include gomp-constants.h.
6886 (struct gomp_task_icv): Rename run_sched_modifier to
6887 run_sched_chunk_size.
6888 (gomp_max_task_priority_var): New variable.
6889 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6890 (handle_omp_display_env): Change _OPENMP value from 201307 to
6891 201511. Print OMP_MAX_TASK_PRIORITY.
6892 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6893 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6894 chunk_size and run_sched_modifier to run_sched_chunk_size.
6895 (omp_get_max_task_priority, omp_get_initial_device,
6896 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6897 omp_get_partition_place_nums): New functions.
6898 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6899 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6901 (omp_get_num_places_, omp_get_place_num_procs_,
6902 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6903 omp_get_place_proc_ids_8_, omp_get_place_num_,
6904 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6905 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6906 omp_get_max_task_priority_): New functions.
6907 * libgomp_g.h (GOMP_loop_doacross_static_start,
6908 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6909 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6910 GOMP_loop_ull_doacross_dynamic_start,
6911 GOMP_loop_ull_doacross_guided_start,
6912 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6913 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6914 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6915 GOMP_target_data_41, GOMP_target_update_41,
6916 GOMP_target_enter_exit_data): New prototypes.
6917 (GOMP_task): Add prototype argument.
6918 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6919 (struct gomp_doacross_work_share): New type.
6920 (struct gomp_work_share): Add doacross field.
6921 (struct gomp_task_icv): Rename run_sched_modifier to
6922 run_sched_chunk_size.
6923 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6924 GOMP_TASK_UNDEFERRED. Add comments.
6925 (struct gomp_task_depend_entry): Add comments.
6926 (struct gomp_task): Likewise.
6927 (struct gomp_taskgroup): Likewise.
6928 (struct gomp_target_task): New type.
6929 (struct gomp_team): Add comment.
6930 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6931 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6932 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6933 (struct target_var_desc): New type.
6934 (struct target_mem_desc): Adjust comment. Use struct
6935 target_var_desc instead of splay_tree_key for list.
6936 (REFCOUNT_INFINITY): Define.
6937 (struct splay_tree_key_s): Remove copy_from field.
6938 (struct gomp_device_descr): Add dev2dev_func field.
6939 (enum gomp_map_vars_kind): New enum.
6940 (gomp_map_vars): Add one argument.
6941 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6942 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6943 omp_get_place_num_procs, omp_get_place_num_procs_,
6944 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6945 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6946 omp_get_place_num_, omp_get_partition_num_places,
6947 omp_get_partition_num_places_, omp_get_partition_place_nums,
6948 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6949 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6950 omp_target_free, omp_target_is_present, omp_target_memcpy,
6951 omp_target_memcpy_rect, omp_target_associate_ptr and
6952 omp_target_disassociate_ptr.
6953 (GOMP_4.0.2): Renamed to ...
6954 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6955 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6956 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6957 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6958 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6959 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6960 GOMP_loop_ull_doacross_guided_start,
6961 GOMP_loop_ull_doacross_runtime_start,
6962 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6963 GOMP_doacross_ull_wait.
6964 * libgomp.texi: Document omp_get_max_task_priority.
6965 Rename modifier argument to chunk_size for omp_set_schedule and
6966 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6967 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6968 to run_sched_chunk_size renaming.
6969 (GOMP_loop_ordered_runtime_start): Likewise.
6970 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6971 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6972 GOMP_parallel_loop_runtime_start): New functions.
6973 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6974 to run_sched_chunk_size renaming.
6975 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6976 GOMP_loop_doacross_guided_start): New functions or aliases.
6977 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6978 run_sched_modifier to run_sched_chunk_size renaming.
6979 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6980 (gomp_loop_ull_doacross_static_start,
6981 gomp_loop_ull_doacross_dynamic_start,
6982 gomp_loop_ull_doacross_guided_start,
6983 GOMP_loop_ull_doacross_runtime_start): New functions.
6984 (GOMP_loop_ull_doacross_static_start,
6985 GOMP_loop_ull_doacross_dynamic_start,
6986 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6987 * oacc-mem.c (acc_map_data, present_create_copy,
6988 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6990 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6991 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6992 instead of false to gomp_map_vars.
6993 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6994 * omp.h.in (omp_lock_hint_t): New type.
6995 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6996 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6997 omp_get_place_num, omp_get_partition_num_places,
6998 omp_get_partition_place_nums, omp_get_initial_device,
6999 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7000 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7001 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7003 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7004 (omp_lock_hint_none, omp_lock_hint_uncontended,
7005 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7006 omp_lock_hint_speculative): New parameters.
7007 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7008 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7009 omp_get_place_num, omp_get_partition_num_places,
7010 omp_get_partition_place_nums, omp_get_initial_device,
7011 omp_get_max_task_priority): New interfaces.
7012 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7014 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7015 (omp_lock_hint_none, omp_lock_hint_uncontended,
7016 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7017 omp_lock_hint_speculative): New parameters.
7018 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7019 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7020 omp_get_place_num, omp_get_partition_num_places,
7021 omp_get_partition_place_nums, omp_get_initial_device,
7022 omp_get_max_task_priority): New functions and subroutines.
7023 * ordered.c: Include stdarg.h and string.h.
7024 (MAX_COLLAPSED_BITS): Define.
7025 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7026 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7027 GOMP_doacross_ull_wait): New functions.
7028 * target.c: Include errno.h.
7029 (resolve_device): If device is not initialized, call
7030 gomp_init_device on it.
7031 (gomp_map_lookup): New function.
7032 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7033 Don't bump refcount if REFCOUNT_INFINITY. Handle
7034 GOMP_MAP_ALWAYS_TO_P.
7035 (get_kind): Rename is_openacc argument to short_mapkind.
7036 (gomp_map_pointer): Use gomp_map_lookup.
7037 (gomp_map_fields_existing): New function.
7038 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7039 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7040 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7041 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7042 Adjust for tgt->list changed type and copy_from living in there.
7043 (gomp_copy_from_async): Adjust for tgt->list changed type and
7044 copy_from living in there.
7045 (gomp_unmap_vars): Likewise.
7046 (gomp_update): Likewise. Rename is_openacc argument to
7047 short_mapkind. Don't fail if object is not mapped.
7048 (gomp_load_image_to_device): Initialize refcount to
7050 (gomp_target_fallback): New function.
7051 (gomp_get_target_fn_addr): Likewise.
7052 (GOMP_target): Adjust gomp_map_vars caller, use
7053 gomp_get_target_fn_addr and gomp_target_fallback.
7054 (GOMP_target_41): New function.
7055 (gomp_target_data_fallback): New function.
7056 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7057 (GOMP_target_data_41): New function.
7058 (GOMP_target_update): Adjust gomp_update caller.
7059 (GOMP_target_update_41): New function.
7060 (gomp_exit_data, GOMP_target_enter_exit_data,
7061 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7062 omp_target_is_present, omp_target_memcpy,
7063 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7064 omp_target_associate_ptr, omp_target_disassociate_ptr,
7065 gomp_load_plugin_for_device): New functions.
7066 * task.c: Include gomp-constants.h. Include taskloop.c
7067 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7068 (gomp_task_handle_depend): New function.
7069 (GOMP_task): Use it. Add priority argument. Use
7070 gomp-constant.h constants instead of hardcoded numbers.
7071 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7072 (gomp_create_target_task): New function.
7073 (verify_children_queue, verify_taskgroup_queue,
7074 verify_task_queue): New functions.
7075 (gomp_task_run_pre): Call verify_*_queue functions.
7076 If an upcoming tied task is about to leave the sibling or
7077 taskgroup queues in an invalid state, adjust appropriately.
7078 Remove taskgroup argument. Add comments.
7079 (gomp_task_run_post_handle_dependers): Add comments.
7080 (gomp_task_run_post_remove_parent): Likewise.
7081 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7082 (GOMP_taskwait): Likewise. Add comments.
7083 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7084 problem such that the first non parent_depends_on task does not
7085 end up at the end of the children queue.
7086 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7087 GOMP_TASK_UNDEFERRED.
7088 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7089 * taskloop.c: New file.
7090 * testsuite/lib/libgomp.exp
7091 (check_effective_target_offload_device_nonshared_as): New proc.
7092 * testsuite/libgomp.c/affinity-2.c: New test.
7093 * testsuite/libgomp.c/doacross-1.c: New test.
7094 * testsuite/libgomp.c/doacross-2.c: New test.
7095 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7096 Add map clause to target.
7097 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7098 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7099 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7100 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7101 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7103 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7104 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7105 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7106 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7107 not defined. Use those where needed.
7108 * testsuite/libgomp.c/for-4.c: New test.
7109 * testsuite/libgomp.c/for-5.c: New test.
7110 * testsuite/libgomp.c/for-6.c: New test.
7111 * testsuite/libgomp.c/linear-1.c: New test.
7112 * testsuite/libgomp.c/ordered-4.c: New test.
7113 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7114 only allowed on the loop iterator.
7115 * testsuite/libgomp.c/pr66199-3.c: New test.
7116 * testsuite/libgomp.c/pr66199-4.c: New test.
7117 * testsuite/libgomp.c/reduction-7.c: New test.
7118 * testsuite/libgomp.c/reduction-8.c: New test.
7119 * testsuite/libgomp.c/reduction-9.c: New test.
7120 * testsuite/libgomp.c/reduction-10.c: New test.
7121 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7123 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7124 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7125 * testsuite/libgomp.c/target-11.c: New test.
7126 * testsuite/libgomp.c/target-12.c: New test.
7127 * testsuite/libgomp.c/target-13.c: New test.
7128 * testsuite/libgomp.c/target-14.c: New test.
7129 * testsuite/libgomp.c/target-15.c: New test.
7130 * testsuite/libgomp.c/target-16.c: New test.
7131 * testsuite/libgomp.c/target-17.c: New test.
7132 * testsuite/libgomp.c/target-18.c: New test.
7133 * testsuite/libgomp.c/target-19.c: New test.
7134 * testsuite/libgomp.c/target-20.c: New test.
7135 * testsuite/libgomp.c/target-21.c: New test.
7136 * testsuite/libgomp.c/target-22.c: New test.
7137 * testsuite/libgomp.c/target-23.c: New test.
7138 * testsuite/libgomp.c/target-24.c: New test.
7139 * testsuite/libgomp.c/target-25.c: New test.
7140 * testsuite/libgomp.c/target-26.c: New test.
7141 * testsuite/libgomp.c/target-27.c: New test.
7142 * testsuite/libgomp.c/taskloop-1.c: New test.
7143 * testsuite/libgomp.c/taskloop-2.c: New test.
7144 * testsuite/libgomp.c/taskloop-3.c: New test.
7145 * testsuite/libgomp.c/taskloop-4.c: New test.
7146 * testsuite/libgomp.c++/ctor-13.C: New test.
7147 * testsuite/libgomp.c++/doacross-1.C: New test.
7148 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7149 Replace offload_device with offload_device_nonshared_as.
7150 * testsuite/libgomp.c++/for-12.C: New test.
7151 * testsuite/libgomp.c++/for-13.C: New test.
7152 * testsuite/libgomp.c++/for-14.C: New test.
7153 * testsuite/libgomp.c++/linear-1.C: New test.
7154 * testsuite/libgomp.c++/member-1.C: New test.
7155 * testsuite/libgomp.c++/member-2.C: New test.
7156 * testsuite/libgomp.c++/member-3.C: New test.
7157 * testsuite/libgomp.c++/member-4.C: New test.
7158 * testsuite/libgomp.c++/member-5.C: New test.
7159 * testsuite/libgomp.c++/ordered-1.C: New test.
7160 * testsuite/libgomp.c++/reduction-5.C: New test.
7161 * testsuite/libgomp.c++/reduction-6.C: New test.
7162 * testsuite/libgomp.c++/reduction-7.C: New test.
7163 * testsuite/libgomp.c++/reduction-8.C: New test.
7164 * testsuite/libgomp.c++/reduction-9.C: New test.
7165 * testsuite/libgomp.c++/reduction-10.C: New test.
7166 * testsuite/libgomp.c++/reference-1.C: New test.
7167 * testsuite/libgomp.c++/simd14.C: New test.
7168 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7169 * testsuite/libgomp.c++/target-5.C: New test.
7170 * testsuite/libgomp.c++/target-6.C: New test.
7171 * testsuite/libgomp.c++/target-7.C: New test.
7172 * testsuite/libgomp.c++/target-8.C: New test.
7173 * testsuite/libgomp.c++/target-9.C: New test.
7174 * testsuite/libgomp.c++/target-10.C: New test.
7175 * testsuite/libgomp.c++/target-11.C: New test.
7176 * testsuite/libgomp.c++/target-12.C: New test.
7177 * testsuite/libgomp.c++/taskloop-1.C: New test.
7178 * testsuite/libgomp.c++/taskloop-2.C: New test.
7179 * testsuite/libgomp.c++/taskloop-3.C: New test.
7180 * testsuite/libgomp.c++/taskloop-4.C: New test.
7181 * testsuite/libgomp.c++/taskloop-5.C: New test.
7182 * testsuite/libgomp.c++/taskloop-6.C: New test.
7183 * testsuite/libgomp.c++/taskloop-7.C: New test.
7184 * testsuite/libgomp.c++/taskloop-8.C: New test.
7185 * testsuite/libgomp.c++/taskloop-9.C: New test.
7186 * testsuite/libgomp.fortran/affinity1.f90: New test.
7187 * testsuite/libgomp.fortran/affinity2.f90: New test.
7189 2015-10-13 Tom de Vries <tom@codesourcery.com>
7191 PR tree-optimization/67476
7192 * testsuite/libgomp.c/autopar-3.c: New test.
7193 * testsuite/libgomp.c/autopar-4.c: New test.
7194 * testsuite/libgomp.c/autopar-5.c: New test.
7195 * testsuite/libgomp.c/autopar-6.c: New test.
7196 * testsuite/libgomp.c/autopar-7.c: New test.
7197 * testsuite/libgomp.c/autopar-8.c: New test.
7199 2015-10-12 James Norris <jnorris@codesourcery.com>
7201 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7204 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7206 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7209 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7211 * oacc-ptx.h: Remove file, moving its content into...
7212 * config/nvptx/fortran.c: ... here...
7213 * config/nvptx/oacc-init.c: ..., here...
7214 * config/nvptx/oacc-parallel.c: ..., and here.
7215 * config/nvptx/openacc.f90: New file.
7216 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7217 (link_ptx): Don't link in predefined bits of PTX code.
7219 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7220 Bernd Schmidt <bernds@codesourcery.com>
7222 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7223 (struct targ_ptx_obj): New.
7224 (nvptx_tdata): Move earlier, change data format.
7225 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7227 (GOMP_OFFLOAD_load_image): Adjust.
7229 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7231 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7232 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7233 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7234 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7235 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7236 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7237 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7238 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7239 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7240 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7241 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7242 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7243 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7244 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7245 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7246 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7247 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7248 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7249 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7250 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7251 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7252 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7253 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7254 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7255 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7256 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7257 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7258 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7259 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7260 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7261 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7262 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7263 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7264 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7265 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7266 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7267 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7268 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7269 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7270 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7271 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7272 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7273 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7274 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7275 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7276 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7277 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7278 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7279 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7280 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7281 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7282 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7283 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7284 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7285 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7286 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7287 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7288 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7289 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7290 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7291 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7292 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7293 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7295 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7297 * oacc-init.c (acc_on_device): Force optimization level.
7299 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7301 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7302 (cuda_errlist): Delete.
7303 (cuda_error): Reimplement.
7305 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7307 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7309 * libgomp.map (GOACC_parallel_keyed): New.
7310 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7312 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7313 and take keyed varargs list. Adjust call to exec_func.
7314 (GOACC_parallel): Force host fallback.
7315 * libgomp_g.h (GOACC_parallel): Remove.
7316 (GOACC_parallel_keyed): Declare.
7317 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7318 (struct targ_gn_descriptor): Replace name field with launch field.
7319 (nvptx_exec): Lose separate geometry args, take array. Process
7320 dynamic dimensions and adjust.
7321 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7322 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7324 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7326 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7329 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7332 * oacc-int.h (goacc_host_init): Add declaration.
7333 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7334 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7336 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7337 Sebastian Pop <s.pop@samsung.com>
7339 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7341 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7342 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7343 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7344 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7345 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7347 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7349 * configure.tgt: Add missing ;; in between nvptx and rtems
7352 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7354 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7355 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7356 (gomp_thread_pool_reservoir): Add priority member.
7357 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7359 (parse_thread_pools): Likewise.
7360 * team.c (gomp_team_start): Call configuration provided
7361 gomp_adjust_thread_attr(). Destroy thread attributes if
7363 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7365 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7367 * config/posix/pool.h: New.
7368 * config/rtems/pool.h: Likewise.
7369 * config/rtems/proc.c: Likewise.
7370 * libgomp.h (gomp_thread_destructor): Declare.
7371 * team.c: Include configuration provided "pool.h".
7372 (gomp_get_thread_pool): Define in configuration.
7373 (gomp_team_end): Call configuration defined
7374 gomp_release_thread_pool().
7376 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7378 * config/rtems/bar.c: New.
7379 * config/rtems/bar.h: Likewise.
7380 * config/rtems/mutex.c: Likewise.
7381 * config/rtems/mutex.h: Likewise.
7382 * config/rtems/sem.c: Likewise.
7383 * config/rtems/sem.h: Likewise.
7384 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7385 <sys/lock.h> header file.
7386 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7387 supported by Newlib.
7388 * configure: Regenerate.
7390 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7392 * team.c (gomp_new_thread_pool): Delete and move content to ...
7393 (gomp_get_thread_pool): ... new function. Allocate and
7394 initialize thread pool on demand.
7395 (get_last_team): Use gomp_get_thread_pool().
7396 (gomp_team_start): Delete thread pool initialization.
7398 2015-09-03 Tom de Vries <tom@codesourcery.com>
7400 PR tree-optimization/65637
7401 * testsuite/libgomp.c/autopar-2.c: New test.
7403 2015-08-29 Tom de Vries <tom@codesourcery.com>
7405 PR tree-optimization/46193
7406 * testsuite/libgomp.c/pr46193.c: New test.
7408 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7411 * libgomp.map: Add 4.0.2 version.
7412 * target.c (offload_image_descr): Add version field.
7413 (gomp_load_image_to_device): Add version argument. Adjust plugin
7414 call. Improve load mismatch diagnostic.
7415 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7417 (GOMP_offload_regster): Make stub function, move bulk to ...
7418 (GOMP_offload_register_ver): ... here. Process version argument.
7419 (GOMP_offload_unregister): Make stub function, move bulk to ...
7420 (GOMP_offload_unregister_ver): ... here. Process version argument.
7421 (gomp_init_device): Process version field.
7422 (gomp_unload_device): Process version field.
7423 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7424 macros. Check plugin version.
7425 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7426 loader and unloader types.
7427 * oacc-host.c: Include gomp-constants.h.
7428 (host_version): New.
7429 (host_load_image, host_unload_image): Adjust.
7430 (host_dispatch): Add host_version.
7431 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7432 (GOMP_OFFLOAD_version): New.
7433 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7434 (GOMP_OFFLOAD_unload_image): Likewise.
7435 * plugin/plugin-host.c: Include gomp-constants.h.
7436 (GOMP_OFFLOAD_version): New.
7437 (GOMP_OFFLOAD_load_image): Add version arg.
7438 (GOMP_OFFLOAD_unload_image): Likewise.
7440 2015-08-24 Tom de Vries <tom@codesourcery.com>
7442 PR tree-optimization/65468
7443 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7445 2015-08-24 Tom de Vries <tom@codesourcery.com>
7447 PR tree-optimization/65468
7448 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7450 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7454 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7455 (gomp_iter_guided_next): Idem.
7456 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7457 (gomp_iter_ull_guided_next): Idem.
7458 * config/linux/wait.h (do_spin): Idem.
7460 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7462 * libgomp-plugin.h (enum offload_target_type): Remove
7463 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7464 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7465 * openacc.h (enum acc_device_t): Likewise.
7466 * openacc_lib.h: Likewise.
7467 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7468 (acc_on_device): Just use __builtin_acc_on_device.
7469 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7470 of acc_on_device builtin.
7471 * plugin/plugin-host.h: Remove file.
7472 * plugin/plugin-host.c: Likewise, but salvage some content into...
7473 * oacc-host.c: ... this file.
7474 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7475 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7476 * Makefile.in: Regenerate.
7477 * configure: Likewise.
7478 * testsuite/lib/libgomp.exp
7479 (check_effective_target_openacc_host_nonshm_selected): Remove.
7480 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7481 ACC_DEVICE_TYPE=host_nonshm.
7482 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7483 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7484 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7485 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7486 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7487 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7489 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7490 Jakub Jelinek <jakub@redhat.com>
7492 * config/nvptx/affinity.c: New file.
7493 * config/nvptx/alloc.c: Likewise.
7494 * config/nvptx/bar.c: Likewise.
7495 * config/nvptx/barrier.c: Likewise.
7496 * config/nvptx/critical.c: Likewise.
7497 * config/nvptx/env.c: Likewise.
7498 * config/nvptx/error.c: Likewise.
7499 * config/nvptx/fortran.c: Likewise.
7500 * config/nvptx/iter.c: Likewise.
7501 * config/nvptx/iter_ull.c: Likewise.
7502 * config/nvptx/libgomp-plugin.c: Likewise.
7503 * config/nvptx/lock.c: Likewise.
7504 * config/nvptx/loop.c: Likewise.
7505 * config/nvptx/loop_ull.c: Likewise.
7506 * config/nvptx/mutex.c: Likewise.
7507 * config/nvptx/oacc-async.c: Likewise.
7508 * config/nvptx/oacc-cuda.c: Likewise.
7509 * config/nvptx/oacc-host.c: Likewise.
7510 * config/nvptx/oacc-init.c: Likewise.
7511 * config/nvptx/oacc-mem.c: Likewise.
7512 * config/nvptx/oacc-parallel.c: Likewise.
7513 * config/nvptx/oacc-plugin.c: Likewise.
7514 * config/nvptx/omp-lock.h: Likewise.
7515 * config/nvptx/ordered.c: Likewise.
7516 * config/nvptx/parallel.c: Likewise.
7517 * config/nvptx/proc.c: Likewise.
7518 * config/nvptx/ptrlock.c: Likewise.
7519 * config/nvptx/sections.c: Likewise.
7520 * config/nvptx/sem.c: Likewise.
7521 * config/nvptx/single.c: Likewise.
7522 * config/nvptx/splay-tree.c: Likewise.
7523 * config/nvptx/target.c: Likewise.
7524 * config/nvptx/task.c: Likewise.
7525 * config/nvptx/team.c: Likewise.
7526 * config/nvptx/time.c: Likewise.
7527 * config/nvptx/work.c: Likewise.
7528 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7529 * configure: Regenerate.
7530 * configure.tgt (config_path): Set to "nvptx" for target
7533 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7535 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7537 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7539 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7540 (cuda_errlist): Constify.
7541 (errmsg): Move into ...
7542 (cuda_error): ... here. Make smaller.
7543 (_XSTR, _STR): Delete.
7544 (cuda_synames): Delete.
7545 (verify_device_library): Delete.
7546 (nvptx_init): Don't call it.
7548 2015-07-28 Tom de Vries <tom@codesourcery.com>
7550 * testsuite/libgomp.c/uns-outer-4.c: New test.
7552 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7554 * testsuite/libgomp.c/pr66714.c: New test.
7556 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7559 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7560 (fib_ref): New function.
7561 (fib): Correct corner cases in the recursion.
7562 (main): Replace the non-simd loop with fib_ref call.
7563 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7565 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7566 for the last array element value. Replace the non-simd loop with
7567 fib_ref call. Remove redundant b_ref array. Remove the comparison
7568 of the last array element with according Fibonacci sequence element.
7569 (fib): Correct corner cases in the recursion.
7571 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7573 * target.c (gomp_offload_image_to_device): Rename to ...
7574 (gomp_load_image_to_device): ... here.
7575 (GOMP_offload_register): Adjust call.
7576 (gomp_init_device): Likewise.
7577 (gomp_unload_image_from_device): New. Broken out of ...
7578 (GOMP_offload_unregister): ... here. Call it.
7579 (gomp_unload_device): New.
7580 * libgomp.h (gomp_unload_device): Declare.
7581 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7584 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7586 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7588 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7590 (goacc_waits): Move !num_waits handling to ...
7591 (GOACC_wait): ... here, the only caller that might have zero waits.
7593 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7594 (struct ptx_image_data): Move earlier, add fns field.
7595 (struct ptx_device): Add images and image_lock fields.
7596 (ptx_images, ptx_image_lock): Delete.
7597 (nvptx_open_device): Initialize images and image_lock fields.
7598 (nvptx_close_device): Destroy image_lock.
7599 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7600 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7603 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7605 * target.c (GOMP_offload_register): Use int for device type arg.
7606 (GOMP_offload_unregister): Likewise.
7608 * target.c (struct_offload_image_descr): Constify host_table.
7609 (gomp_offload_image_to_device): Likewise.
7610 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7612 * libgomp.h (gomp_device_descr): Constify target data arguments.
7613 * target.c (struct offload_image_descr): Constify target_data.
7614 (gomp_offload_image_to_device): Likewise.
7615 (GOMP_offload_register): Likewise.
7616 (GOMP_offload_unregister): Likewise.
7617 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7618 GOMP_OFFLOAD_unload_image): Constify target data.
7619 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7620 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7622 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7624 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7625 Workaround driver library const error.
7626 (struct nvptx_tdata, nvptx_tdata_t): New.
7627 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7630 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7632 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7633 of EPS parameter from integer to real.
7634 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7635 type of EPS parameter from integer to real.
7637 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7639 * team.c (get_last_team): New.
7640 (gomp_new_team): Recycle last non-nested team if possible.
7641 (gomp_team_end): Move team work share list free lock destruction
7643 (free_team): ... here.
7645 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7647 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7648 and ref from int to double. Replaced their comparison with
7649 an inequality of their difference and EPS.
7650 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7651 comparison of pri and a reference number with an inequality of their
7653 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7654 the comparison of sum and sum_ref with an inequality of their
7656 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7657 the comparison of pri and a reference number with an inequality of
7658 their difference and EPS.
7660 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7662 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7663 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7664 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7665 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7666 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7667 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7668 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7669 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7670 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7671 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7672 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7673 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7674 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7676 (vec_mult): Likewise. Add #pragma omp taskwait.
7677 (main): Adjust caller.
7678 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7679 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7680 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7681 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7682 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7683 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7684 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7685 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7686 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7687 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7688 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7689 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7690 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7691 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7692 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7693 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7694 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7695 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7696 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7697 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7698 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7699 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7700 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7701 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7702 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7703 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7704 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7705 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7706 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7707 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7708 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7709 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7710 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7711 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7712 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7713 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7714 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7715 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7716 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7717 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7718 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7719 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7720 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7721 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7722 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7723 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7724 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7725 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7726 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7727 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7728 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7729 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7730 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7731 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7732 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7733 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7734 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7735 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7736 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7737 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7738 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7739 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7740 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7741 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7742 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7743 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7744 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7745 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7746 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7747 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7748 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7749 (vec_mult): Add !$omp taskwait.
7750 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7751 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7752 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7753 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7754 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7755 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7756 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7757 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7758 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7759 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7760 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7761 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7762 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7763 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7764 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7765 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7766 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7767 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7768 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7769 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7770 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7771 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7772 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7773 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7774 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7775 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7776 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7777 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7778 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7779 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7780 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7781 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7782 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7783 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7784 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7785 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7786 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7787 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7788 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7789 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7790 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7791 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7792 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7793 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7794 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7795 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7796 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7797 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7798 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7799 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7800 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7801 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7802 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7803 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7804 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7805 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7806 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7807 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7808 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7809 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7810 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7811 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7812 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7813 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7814 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7815 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7816 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7818 2015-07-10 Tom de Vries <tom@codesourcery.com>
7820 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7821 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7823 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7826 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7827 in a 64-bit configuration.
7828 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7829 offloading testing if no such device is available.
7830 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7831 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7833 2015-07-08 Tom de Vries <tom@codesourcery.com>
7835 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7837 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7839 2015-07-07 Tom de Vries <tom@codesourcery.com>
7841 PR tree-optimization/66642
7842 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7843 iteration count case.
7844 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7845 function, factor out of ...
7846 (main): ... here. Test low iteration count case.
7848 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7850 * libgomp.h (gomp_thread_pool): Comment last_team field.
7852 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7854 * testsuite/libgomp.c++/pr66702-1.C: Require
7855 vect_simd_clones effective target.
7856 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7858 2015-06-30 Tom de Vries <tom@codesourcery.com>
7860 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7861 already set. Use DEFAULT_CFLAGS in dg-runtest.
7862 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7865 2015-06-30 Tom de Vries <tom@codesourcery.com>
7867 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7868 already set. Use DEFAULT_CFLAGS in dg-runtest.
7869 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7870 * testsuite/libgomp.c++/pr64824.C: Same.
7871 * testsuite/libgomp.c++/pr64868.C: Same.
7872 * testsuite/libgomp.c++/pr66199-1.C: Same.
7873 * testsuite/libgomp.c++/pr66199-2.C: Same.
7874 * testsuite/libgomp.c++/target-2.C: Same.
7875 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7876 -std=<standard> option.
7877 * testsuite/libgomp.c++/udr-11.C: Same.
7878 * testsuite/libgomp.c++/udr-12.C: Same.
7879 * testsuite/libgomp.c++/udr-13.C: Same.
7880 * testsuite/libgomp.c++/udr-14.C: Same.
7881 * testsuite/libgomp.c++/udr-15.C: Same.
7882 * testsuite/libgomp.c++/udr-16.C: Same.
7883 * testsuite/libgomp.c++/udr-17.C: Same.
7884 * testsuite/libgomp.c++/udr-18.C: Same.
7885 * testsuite/libgomp.c++/udr-19.C: Same.
7886 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7887 * testsuite/libgomp.c++/simd-1.C: Same.
7888 * testsuite/libgomp.c++/simd-2.C: Same.
7889 * testsuite/libgomp.c++/simd-3.C: Same.
7890 * testsuite/libgomp.c++/simd-4.C: Same.
7891 * testsuite/libgomp.c++/simd-5.C: Same.
7892 * testsuite/libgomp.c++/simd-6.C: Same.
7893 * testsuite/libgomp.c++/simd-7.C: Same.
7894 * testsuite/libgomp.c++/simd-8.C: Same.
7895 * testsuite/libgomp.c++/simd-9.C: Same.
7896 * testsuite/libgomp.c++/simd10.C: Same.
7897 * testsuite/libgomp.c++/simd11.C: Same.
7898 * testsuite/libgomp.c++/simd12.C: Same.
7899 * testsuite/libgomp.c++/simd13.C: Same.
7901 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7904 * testsuite/libgomp.c++/pr66702-1.C: New test.
7905 * testsuite/libgomp.c++/pr66702-2.C: New test.
7907 2015-06-30 Tom de Vries <tom@codesourcery.com>
7909 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7910 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7911 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7912 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7914 2015-06-30 Tom de Vries <tom@codesourcery.com>
7916 PR tree-optimization/66652
7917 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7918 using restrict pointers.
7919 (main): Add arguments to calls to f.
7920 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7922 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7924 * configure.ac: Fix check for header <sys/sysctl.h>.
7925 * configure: Regenerate.
7926 * config.h.in: Likewise.
7928 2015-06-23 Tom de Vries <tom@codesourcery.com>
7930 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7932 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7934 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7936 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7940 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7941 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7943 2015-06-15 Tom de Vries <tom@codesourcery.com>
7945 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7946 dg-additional-options for any remaining options.
7947 * testsuite/libgomp.c/atomic-2.c: Same.
7948 * testsuite/libgomp.c/atomic-4.c: Same.
7949 * testsuite/libgomp.c/atomic-5.c: Same.
7950 * testsuite/libgomp.c/atomic-6.c: Same.
7951 * testsuite/libgomp.c/autopar-1.c: Same.
7952 * testsuite/libgomp.c/copyin-1.c: Same.
7953 * testsuite/libgomp.c/copyin-2.c: Same.
7954 * testsuite/libgomp.c/copyin-3.c: Same.
7955 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7956 * testsuite/libgomp.c/nestedfn-5.c: Same.
7957 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7958 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7959 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7960 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7961 * testsuite/libgomp.c/pr32362-1.c: Same.
7962 * testsuite/libgomp.c/pr32362-2.c: Same.
7963 * testsuite/libgomp.c/pr32362-3.c: Same.
7964 * testsuite/libgomp.c/pr39591-1.c: Same.
7965 * testsuite/libgomp.c/pr39591-2.c: Same.
7966 * testsuite/libgomp.c/pr39591-3.c: Same.
7967 * testsuite/libgomp.c/pr58392.c: Same.
7968 * testsuite/libgomp.c/pr58756.c: Same.
7969 * testsuite/libgomp.c/simd-1.c: Same.
7970 * testsuite/libgomp.c/simd-10.c: Same.
7971 * testsuite/libgomp.c/simd-11.c: Same.
7972 * testsuite/libgomp.c/simd-12.c: Same.
7973 * testsuite/libgomp.c/simd-13.c: Same.
7974 * testsuite/libgomp.c/simd-14.c: Same.
7975 * testsuite/libgomp.c/simd-15.c: Same.
7976 * testsuite/libgomp.c/simd-2.c: Same.
7977 * testsuite/libgomp.c/simd-3.c: Same.
7978 * testsuite/libgomp.c/simd-4.c: Same.
7979 * testsuite/libgomp.c/simd-5.c: Same.
7980 * testsuite/libgomp.c/simd-6.c: Same.
7981 * testsuite/libgomp.c/simd-7.c: Same.
7982 * testsuite/libgomp.c/simd-8.c: Same.
7983 * testsuite/libgomp.c/simd-9.c: Same.
7985 2015-06-15 Tom de Vries <tom@codesourcery.com>
7987 * testsuite/libgomp.c/pr35625.c: Fix typo.
7989 2015-06-15 Tom de Vries <tom@codesourcery.com>
7991 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7993 * testsuite/libgomp.c/atomic-3.c: Same.
7994 * testsuite/libgomp.c/debug-1.c: Same.
7995 * testsuite/libgomp.c/nqueens-1.c: Same.
7996 * testsuite/libgomp.c/pr26171.c: Same.
7997 * testsuite/libgomp.c/pr48591.c: Same.
7998 * testsuite/libgomp.c/pr64824.c: Same.
7999 * testsuite/libgomp.c/pr64868.c: Same.
8000 * testsuite/libgomp.c/pr66133.c: Same.
8001 * testsuite/libgomp.c/pr66199-1.c: Same.
8002 * testsuite/libgomp.c/pr66199-2.c: Same.
8003 * testsuite/libgomp.c/target-8.c: Same.
8005 2015-06-15 Tom de Vries <tom@codesourcery.com>
8007 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8009 * testsuite/libgomp.c/for-1.c: Same.
8010 * testsuite/libgomp.c/for-2.c: Same.
8011 * testsuite/libgomp.c/for-3.c: Same.
8012 * testsuite/libgomp.c/pr35625.c: Same.
8013 * testsuite/libgomp.c/pr39154.c: Same.
8014 * testsuite/libgomp.c/simd-16.c: Same.
8015 * testsuite/libgomp.c/simd-17.c: Same.
8017 2015-06-13 Tom de Vries <tom@codesourcery.com>
8019 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8021 2015-06-13 Tom de Vries <tom@codesourcery.com>
8023 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8024 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8025 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8027 (main): Use N instead of hardcoded constants.
8029 2015-06-05 Tom de Vries <tom@codesourcery.com>
8031 merge from gomp4 branch:
8032 2015-05-28 Tom de Vries <tom@codesourcery.com>
8034 PR tree-optimization/65443
8035 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8036 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8037 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8039 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8041 * testsuite/libgomp.graphite/bounds.c: Adjust for
8042 cleanup-tree-dump removal.
8043 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8044 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8045 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8046 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8047 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8048 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8049 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8050 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8051 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8052 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8054 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
8056 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8057 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8058 (futex_wake) [!__x86_64__]: Ditto.
8060 2015-05-28 Julian Brown <julian@codesourcery.com>
8062 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8063 function comment. Only call gomp_fatal if new argument is true.
8064 (acc_dev_num_out_of_range): New function.
8065 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8066 acc_dev_num_out_of_range as appropriate.
8067 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8068 (acc_get_device_num, acc_set_device_num): Update calls to
8070 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8073 2015-05-28 Julian Brown <julian@codesourcery.com>
8076 * oacc-init.c (plugin/plugin-host.h): Include.
8077 (acc_on_device): Check whether we're in an offloaded region for
8079 plugin. Don't use __builtin_acc_on_device.
8080 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8081 nonshm_exec flag in thread-local data.
8082 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8083 data for host_nonshm plugin.
8084 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8085 for host_nonshm plugin.
8086 * plugin/plugin-host.h: New.
8088 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8090 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8092 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8094 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8096 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8097 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8100 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8102 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8104 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8106 * target.c (gomp_map_pointer): New function abstracting out
8107 GOMP_MAP_POINTER handling.
8108 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8111 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8114 * testsuite/libgomp.c/pr66199-1.c: New test.
8115 * testsuite/libgomp.c/pr66199-2.c: New test.
8116 * testsuite/libgomp.c++/pr66199-1.C: New test.
8117 * testsuite/libgomp.c++/pr66199-2.C: New test.
8118 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8119 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8121 2015-05-19 Julian Brown <julian@codesourcery.com>
8123 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8126 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8129 * testsuite/libgomp.c/pr66133.c: New test.
8131 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8133 * Makefile.in: Regenerated with automake-1.11.6.
8134 * aclocal.m4: Likewise.
8135 * config.h.in: Likewise.
8136 * configure: Likewise.
8137 * testsuite/Makefile.in: Likewise.
8139 2015-05-08 Jason Merrill <jason@redhat.com>
8141 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8144 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8146 2015-05-06 Julian Brown <julian@codesourcery.com>
8148 * oacc-init.c (acc_device_lock): Add explanatory comment.
8149 (resolve_device): Add comment about locking requirement.
8150 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8151 gomp_init_device and gomp_fini_device calls.
8152 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8153 (acc_get_device_num, acc_set_device_num): Add locking around
8154 resolve_device and gomp_init_device calls.
8156 2015-05-06 Julian Brown <julian@codesourcery.com>
8158 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8159 goacc_thread_lock on error paths.
8160 * oacc-mem.c (lookup_host): Remove locking from function. Note
8161 locking requirement for caller in function comment.
8162 (lookup_dev): Likewise.
8163 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8164 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8165 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8168 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8172 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8173 don't expect "0x" prefix for "%p" format specifier, don't expect
8174 "(nil)" for NULL pointer.
8175 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8176 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8177 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8178 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8179 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8180 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8181 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8182 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8183 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8184 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8185 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8197 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8198 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8199 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8201 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8204 accurately specify what we're looking for.
8205 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8206 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8207 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8208 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8209 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8211 2015-04-30 James Norris <jnorris@codesourcery.com>
8214 * testsuite/lib/libgomp.exp
8215 (check_effective_target_openacc_host_selected)
8216 (check_effective_target_openacc_host_nonshm_selected): New
8218 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8220 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8221 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8261 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8264 2015-04-08 Julian Brown <julian@codesourcery.com>
8266 * libgomp.h (target_mem_desc: Remove mem_map field.
8267 (acc_dispatch_t): Remove open_device_func, close_device_func,
8268 get_device_num_func, set_device_num_func, target_data members.
8269 Change create_thread_data_func argument to device number instead of
8271 * oacc-async.c (assert.h): Include.
8272 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8273 (acc_wait_all, acc_wait_all_async): Use current host thread's
8274 active device, not base_dev.
8275 * oacc-cuda.c (acc_get_current_cuda_device)
8276 (acc_get_current_cuda_context, acc_get_cuda_stream)
8277 (acc_set_cuda_stream): Likewise.
8278 * oacc-host.c (host_dispatch): Don't set open_device_func,
8279 close_device_func, get_device_num_func or set_device_num_func.
8280 * oacc-init.c (base_dev, init_key): Remove.
8281 (cached_base_dev): New.
8282 (name_of_acc_device_t): New.
8283 (acc_init_1): Initialise default-numbered device, not zeroth.
8284 (acc_shutdown_1): Close all devices of a given type.
8285 (goacc_destroy_thread): Don't use base_dev.
8286 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8287 (goacc_attach_host_thread_to_device): New.
8288 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8289 (acc_get_num_devices): Don't use base_dev.
8290 (acc_set_device_type): Reimplement.
8291 (acc_get_device_type): Don't use base_dev.
8292 (acc_get_device_num): Tweak logic.
8293 (acc_set_device_num): Likewise.
8294 (acc_on_device): Use acc_get_device_type.
8295 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8296 (goacc_lazy_initialize): Reimplement with acc_init and
8297 goacc_attach_host_thread_to_device.
8298 * oacc-int.h (goacc_thread): Add base_dev field.
8299 (base_dev): Remove extern declaration.
8300 (goacc_attach_host_thread_to_device): Add prototype.
8301 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8303 (acc_free): Likewise.
8304 (acc_memcpy_to_device): Likewise.
8305 (acc_memcpy_from_device): Likewise.
8306 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8307 goacc_lazy_initialize (throughout).
8308 (GOACC_parallel): Use tgt_offset to locate target functions.
8309 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8310 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8311 (gomp_load_plugin_for_device): Remove open_device, close_device,
8312 get_device_num, set_device_num openacc hook initialisation. Don't set
8313 openacc.target_data.
8314 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8315 (GOMP_OFFLOAD_openacc_close_device)
8316 (GOMP_OFFLOAD_openacc_get_device_num)
8317 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8318 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8320 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8321 (instantiated_devices, ptx_dev_lock): New.
8322 (struct ptx_image_data): New.
8323 (ptx_devices, ptx_images, ptx_image_lock): New.
8324 (fini_streams_for_device): Reorder cuStreamDestroy call.
8325 (nvptx_get_num_devices): Remove forward declaration.
8326 (nvptx_init): Change return type to bool.
8327 (nvptx_fini): Remove.
8328 (nvptx_attach_host_thread_to_device): New.
8329 (nvptx_open_device): Return struct ptx_device* instead of void*.
8330 (nvptx_close_device): Change argument type to struct ptx_device*,
8331 return type to void.
8332 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8333 (kernel_target_data, kernel_host_table): Remove static globals.
8334 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8335 (GOMP_OFFLOAD_init_device): Reimplement.
8336 (GOMP_OFFLOAD_fini_device): Likewise.
8337 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8338 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8339 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8340 (GOMP_OFFLOAD_openacc_open_device)
8341 (GOMP_OFFLOAD_openacc_close_device)
8342 (GOMP_OFFLOAD_openacc_set_device_num)
8343 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8344 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8348 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8350 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8352 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8353 * libgomp.h (struct gomp_memory_mapping): Remove.
8354 (struct target_mem_desc): Change type of mem_map from
8355 gomp_memory_mapping * to splay_tree_s *.
8356 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8357 Add load_image_func, unload_image_func.
8358 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8359 Remove offload_regions_registered.
8360 (gomp_init_tables): Remove.
8361 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8363 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8364 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8365 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8366 offload_regions_registered.
8367 Initialize load_image_func, unload_image_func, mem_map.root.
8368 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8369 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8370 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8371 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8372 gomp_memory_mapping *. Use dev's lock and splay_tree.
8373 (lookup_dev): Use dev's lock.
8374 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8375 (acc_is_present): Likewise.
8376 (acc_map_data): Likewise.
8377 (acc_unmap_data): Likewise. Use dev's lock.
8378 (present_create_copy): Likewise.
8379 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8380 (update_dev_host): Likewise.
8381 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8382 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8383 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8384 (GOMP_OFFLOAD_get_table): Remove
8385 (GOMP_OFFLOAD_load_image): New function.
8386 (GOMP_OFFLOAD_unload_image): New function.
8387 * target.c (register_lock): New mutex for offload image registration.
8388 (num_devices): Do not guard with PLUGIN_SUPPORT.
8389 (gomp_realloc_unlock): New static function.
8390 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8392 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8393 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8394 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8396 (gomp_unmap_vars): Likewise.
8397 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8398 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8399 (gomp_offload_image_to_device): New static function.
8400 (GOMP_offload_register): Add mutex lock.
8401 Call gomp_offload_image_to_device for all initialized devices.
8402 Replace gomp_realloc with gomp_realloc_unlock.
8403 (GOMP_offload_unregister): New function.
8404 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8405 get_table_func from the plugin with calls to init_device_func and
8406 gomp_offload_image_to_device.
8407 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8409 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8410 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8411 (GOMP_target_data): Do not call gomp_init_tables.
8412 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8413 (gomp_load_plugin_for_device): Replace register_image and get_table
8414 with load_image and unload_image in DLSYM ().
8415 (gomp_register_images_for_device): Remove function.
8416 (gomp_target_init): Do not initialize current_device.mem_map.*,
8417 current_device.offload_regions_registered.
8418 Remove call to gomp_register_images_for_device.
8419 Do not free offload_images and num_offload_images.
8421 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8424 * testsuite/libgomp.fortran/pr65597.f90: New test.
8426 2015-03-27 Tom de Vries <tom@codesourcery.com>
8429 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8430 (init, check): New function.
8431 (foo): Change return type to void.
8432 (main): Call init and check.
8434 2015-03-27 Tom de Vries <tom@codesourcery.com>
8437 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8438 (foo): Use M for non-inner loops to scale down test-case.
8440 2015-03-25 Kai Tietz <ktietz@redhat.com>
8443 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8444 (GOACC_data_start): Likewise.
8445 * target.c (gomp_map_vars): Likewise.
8447 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8449 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8452 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8454 * testsuite/libgomp.c/target-10.c: New test.
8455 * testsuite/libgomp.c++/target-4.C: New test.
8457 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8459 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8460 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8462 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8464 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8465 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8466 (pthread.h): Check for this header file.
8467 * configure: Regenerate.
8469 2015-02-25 Tom de Vries <tom@codesourcery.com>
8471 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8472 (check_reduction_op, check_reduction_macro, max, min):
8474 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8476 (main): Use new functions.
8478 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8480 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8481 char * for variables holding dlerror return values.
8484 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8486 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8488 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8489 Cesar Philippidis <cesar@codesourcery.com>
8491 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8492 GOACC_ctaid, and GOACC_nctaid routines.
8494 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8497 * testsuite/libgomp.c/atomic-18.c: New test.
8498 * testsuite/libgomp.c++/atomic-16.C: New test.
8500 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8504 * testsuite/libgomp.c/pr64824.c: New test.
8505 * testsuite/libgomp.c/pr64868.c: New test.
8506 * testsuite/libgomp.c++/pr64824.C: New test.
8507 * testsuite/libgomp.c++/pr64868.C: New test.
8509 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8512 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8513 Link with -lpthread.
8514 * config/aix/plugin-suffix.h: Delete.
8516 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8519 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8520 (*-*-darwin*): Use config_path "bsd darwin posix".
8521 (*-*-hpux*): Use config_path "hpux posix".
8522 * target.c: Add include of plugin-suffix.h and use
8523 SONAME_SUFFIX macro.
8524 * config/aix/plugin-suffix.h: New file.
8525 * config/darwin/plugin-suffix.h: New file.
8526 * config/hpux/plugin-suffix.h: New file.
8527 * config/posix/plugin-suffix.h: New file.
8529 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8532 * libgomp.c/pr64734.c: New test.
8534 2015-01-23 Tom de Vries <tom@codesourcery.com>
8537 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8539 2015-01-23 Tom de Vries <tom@codesourcery.com>
8542 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8545 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8548 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8549 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8550 formal parameter. Update all users.
8551 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8552 Document unused formal parameter.
8554 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8556 * oacc-parallel.c: Don't include <alloca.h>.
8557 (GOACC_parallel): Use gomp_alloca instead of alloca.
8559 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8561 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8563 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8564 James Norris <jnorris@codesourcery.com>
8565 Tom de Vries <tom@codesourcery.com>
8566 Julian Brown <julian@codesourcery.com>
8567 Cesar Philippidis <cesar@codesourcery.com>
8568 Nathan Sidwell <nathan@codesourcery.com>
8569 Tobias Burnus <burnus@net-b.de>
8571 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8572 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8573 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8574 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8575 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8576 Include $(top_srcdir)/plugin/Makefrag.am.
8577 (nodist_libsubinclude_HEADERS): Add openacc.h.
8578 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8579 openacc.f90, openacc.mod, openacc_kinds.mod.
8580 (omp_lib.mod): Generalize into...
8581 (%.mod): ... this new rule.
8582 (openacc_kinds.mod, openacc.mod): New rules.
8583 * plugin/configfrag.ac: New file.
8584 * configure.ac: Move plugin/offloading support into it. Include
8585 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8586 * plugin/Makefrag.am: New file.
8587 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8588 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8590 (libgomp-test-support.exp): New rule.
8591 (all-local): Depend on it.
8592 * Makefile.in: Regenerate.
8593 * testsuite/Makefile.in: Regenerate.
8594 * config.h.in: Likewise.
8595 * configure: Likewise.
8596 * configure.tgt: Harden shell syntax.
8597 * env.c: Include "oacc-int.h".
8598 (parse_acc_device_type): New function.
8599 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8601 (initialize_env): Initialize those. Call
8602 goacc_runtime_initialize.
8603 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8604 (gomp_fatal): Call gomp_vfatal.
8605 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8606 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8607 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8608 (splay_tree_node, splay_tree, splay_tree_key)
8609 (struct target_mem_desc, struct splay_tree_key_s)
8610 (struct gomp_memory_mapping, struct acc_dispatch_t)
8611 (struct gomp_device_descr, gomp_acc_insert_pointer)
8612 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8613 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8614 (gomp_free_memmap, gomp_fini_device): New declarations.
8615 (gomp_vdebug, gomp_debug): New macros.
8616 Include "splay-tree.h".
8617 * libgomp.map (OACC_2.0): New symbol version. Use for
8618 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8619 acc_set_device_type_h_, acc_get_device_type,
8620 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8621 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8622 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8623 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8624 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8625 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8626 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8627 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8628 acc_copyin_array_h_, acc_present_or_copyin,
8629 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8630 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8631 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8632 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8633 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8634 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8635 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8636 acc_update_device, acc_update_device_32_h_,
8637 acc_update_device_64_h_, acc_update_device_array_h_,
8638 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8639 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8640 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8641 acc_is_present_64_h_, acc_is_present_array_h_,
8642 acc_memcpy_to_device, acc_memcpy_from_device,
8643 acc_get_current_cuda_device, acc_get_current_cuda_context,
8644 acc_get_cuda_stream, acc_set_cuda_stream.
8645 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8646 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8647 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8648 GOACC_get_num_threads.
8649 (GOMP_PLUGIN_1.0): New symbol version. Use for
8650 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8651 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8652 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8653 GOMP_PLUGIN_acc_thread.
8654 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8655 environment variable.
8656 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8657 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8658 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8659 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8660 (splay_tree_remove): New declarations.
8661 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8662 (splay_tree_remove, splay_tree_lookup): Move into...
8663 * splay-tree.c: ... this new file.
8664 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8665 (splay_tree_node, splay_tree, splay_tree_key)
8666 (struct target_mem_desc, struct splay_tree_key_s)
8667 (struct gomp_device_descr): Don't declare.
8668 (num_devices_openmp): New variable.
8669 (gomp_get_num_devices ): Use it.
8670 (gomp_init_targets_once): New function.
8671 (gomp_get_num_devices ): Use it.
8672 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8673 (gomp_fini_device, gomp_register_image_for_device): New functions.
8674 (gomp_map_vars): Add devaddrs parameter.
8675 (gomp_update): Add mm parameter.
8676 (gomp_init_device): Move most of it into...
8677 (gomp_init_tables): ... this new function.
8678 (gomp_register_images_for_device): Remove function.
8679 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8680 Make them hidden instead of static.
8681 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8682 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8683 (GOMP_target_end_data, GOMP_target_update)
8684 (gomp_load_plugin_for_device, gomp_target_init): Update for
8686 * oacc-async.c: New file.
8687 * oacc-cuda.c: Likewise.
8688 * oacc-host.c: Likewise.
8689 * oacc-init.c: Likewise.
8690 * oacc-int.h: Likewise.
8691 * oacc-mem.c: Likewise.
8692 * oacc-parallel.c: Likewise.
8693 * oacc-plugin.c: Likewise.
8694 * oacc-plugin.h: Likewise.
8695 * oacc-ptx.h: Likewise.
8696 * openacc.f90: Likewise.
8697 * openacc.h: Likewise.
8698 * openacc_lib.h: Likewise.
8699 * plugin/plugin-host.c: Likewise.
8700 * plugin/plugin-nvptx.c: Likewise.
8701 * libgomp-plugin.c: Likewise.
8702 * libgomp-plugin.h: Likewise.
8703 * libgomp_target.h: Remove file after merging content into the
8704 former file. Update all users.
8705 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8706 (offload_targets_s, offload_targets_s_openacc): New variables.
8707 (check_effective_target_openacc_nvidia_accel_present)
8708 (check_effective_target_openacc_nvidia_accel_selected): New
8710 (libgomp_init): Update for OpenACC changes.
8711 * testsuite/libgomp-test-support.exp.in: New file.
8712 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8713 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8714 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8715 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8716 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8717 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8718 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8719 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8720 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8721 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8722 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8723 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8724 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8725 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8726 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8727 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8728 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8729 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8730 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8731 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8732 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8733 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8734 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8735 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8736 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8738 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8739 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8740 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8741 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8742 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8743 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8744 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8745 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8746 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8748 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8749 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8750 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8751 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8752 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8753 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8754 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8764 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8765 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8766 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8767 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8768 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8769 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8770 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8771 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8772 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8777 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8794 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8802 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8806 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8808 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8809 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8810 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8811 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8812 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8813 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8814 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8816 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8818 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8820 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8821 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8822 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8823 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8824 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8825 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8826 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8828 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8829 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8830 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8831 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8832 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8833 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8834 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8835 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8836 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8837 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8838 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8839 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8840 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8841 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8842 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8843 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8844 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8845 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8846 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8847 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8848 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8849 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8850 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8851 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8853 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8854 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8855 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8856 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8857 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8858 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8859 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8860 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8861 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8862 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8863 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8864 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8865 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8866 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8867 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8868 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8869 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8870 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8871 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8872 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8873 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8874 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8875 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8876 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8877 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8878 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8879 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8880 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8881 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8882 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8883 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8884 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8885 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8886 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8887 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8888 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8889 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8890 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8891 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8892 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8893 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8894 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8895 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8896 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8897 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8898 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8899 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8900 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8901 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8902 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8903 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8904 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8905 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8906 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8907 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8909 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8910 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8911 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8912 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8914 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8915 Julian Brown <julian@codesourcery.com>
8916 David Malcolm <dmalcolm@redhat.com>
8918 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8919 to "GNU Offloading and Multi Processing Runtime Library". Change
8921 * configure: Regenerate.
8922 * libgomp.texi: Update.
8924 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8926 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8928 * configure: Regenerate.
8930 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8931 "intelmic" in $offload_targets.
8933 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8935 Update copyright years.
8937 * libgomp.texi: Bump @copying's copyright year.
8939 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8941 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8942 Move load of target-supports.exp earlier.
8944 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8946 * testsuite/libgomp.c/target-9.c: New test.
8948 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8950 * config.h.in: Regenerate.
8951 * configure: Regenerate.
8952 * configure.ac: Add GCC_CHECK_EMUTLS.
8953 * libgomp.h: Add check for USE_EMUTLS: this case
8954 is equal to HAVE_TLS.
8957 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8959 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8961 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8962 Ilya Verbin <ilya.verbin@intel.com>
8964 * testsuite/libgomp.c/target-critical-1.c: New test.
8966 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8968 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8969 to dg-options unless expensive testing is on.
8970 (TESTITERS): Define to N if not defined.
8971 (main): Use TESTITERS instead of N.
8972 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8973 dg-additional-options depending on whether expensive testing is on.
8974 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8975 Decrease N to 100000 and CHUNKSZ to 10000.
8977 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8980 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8981 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8983 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8985 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8987 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8990 * configure: Regenerated.
8992 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8994 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8995 vect_simd_clones effective target.
8996 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8998 2014-11-14 Jakub Jelinek <jakub@redhat.com>
9000 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9001 of 32 as block_size.
9002 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9003 instead of 32 as block_size.
9005 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9006 Ilya Verbin <ilya.verbin@intel.com>
9008 * Makefile.in: Regenerate.
9009 * configure: Regenerate.
9010 * configure.ac: Set up offload_additional_options,
9011 offload_additional_lib_paths and offload_targets.
9012 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9013 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9014 * testsuite/Makefile.in: Regenerate.
9015 * testsuite/lib/libgomp.exp (libgomp_init): Append
9016 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9017 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9018 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9020 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9021 Ilya Verbin <ilya.verbin@intel.com>
9022 Kirill Yukhin <kirill.yukhin@intel.com>
9023 Ilya Tocar <ilya.tocar@intel.com>
9025 * testsuite/lib/libgomp.exp
9026 (check_effective_target_offload_device): New.
9027 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9028 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9029 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9030 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9031 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9032 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9033 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9034 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9035 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9036 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9037 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9038 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9039 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9040 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9041 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9042 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9043 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9044 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9045 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9046 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9047 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9048 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9049 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9050 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9051 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9052 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9053 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9054 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9055 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9056 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9057 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9058 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9059 * testsuite/libgomp.c/target-7.c: Fix test.
9060 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9061 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9062 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9063 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9064 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9065 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9066 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9067 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9068 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9069 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9070 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9071 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9072 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9073 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9074 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9075 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9076 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9077 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9078 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9079 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9080 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9081 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9082 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9083 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9084 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9085 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9086 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9087 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9088 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9089 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9090 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9092 2014-11-13 Jakub Jelinek <jakub@redhat.com>
9093 Ilya Verbin <ilya.verbin@intel.com>
9094 Thomas Schwinge <thomas@codesourcery.com>
9095 Andrey Turetskiy <andrey.turetskiy@intel.com>
9097 * libgomp.map (GOMP_4.0.1): New symbol version.
9098 Add GOMP_offload_register.
9099 * libgomp_target.h: New file.
9100 * splay-tree.h: New file.
9101 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9102 (gomp_target_init): New forward declaration.
9103 (gomp_is_initialized): New static variable.
9104 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9105 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9107 (offload_images, num_offload_images, devices, num_devices): New static
9109 (splay_compare): New static function.
9110 (struct gomp_device_descr): New structure.
9111 (gomp_get_num_devices): Call gomp_target_init.
9112 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9113 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9114 (GOMP_offload_register): New function.
9115 (GOMP_target): Arrange for host callback to be performed in a separate
9116 initial thread and contention group, inheriting ICVs from
9117 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9118 Add device initialization and lookup for target function in splay tree.
9119 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9120 (GOMP_target_end_data): Call gomp_unmap_vars.
9121 (GOMP_target_update): Add device initialization and call gomp_update.
9122 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9123 (gomp_target_init): New static functions.
9125 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9126 Thomas Schwinge <thomas@codesourcery.com>
9127 Ilya Verbin <ilya.verbin@intel.com>
9128 Andrey Turetskiy <andrey.turetskiy@intel.com>
9130 * config.h.in: Regenerate.
9131 * configure: Regenerate.
9132 * configure.ac: Check for libdl, required for plugin support.
9133 (PLUGIN_SUPPORT): Define if plugins are supported.
9134 (enable_offload_targets): Support Intel MIC targets.
9135 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9137 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9140 * configure: Regenerate.
9142 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9144 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9146 2014-10-06 Marek Polacek <polacek@redhat.com>
9148 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9149 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9150 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9151 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9153 2014-10-06 Marek Polacek <polacek@redhat.com>
9155 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9156 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9157 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9158 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9159 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9160 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9161 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9162 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9163 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9164 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9165 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9166 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9167 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9168 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9169 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9170 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9171 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9172 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9175 2014-10-03 Jakub Jelinek <jakub@redhat.com>
9178 * testsuite/libgomp.c/pr61200.c: New test.
9180 2014-09-18 Jakub Jelinek <jakub@redhat.com>
9183 * testsuite/libgomp.c++/pr63248.C: New test.
9185 2014-08-04 Jakub Jelinek <jakub@redhat.com>
9187 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9188 is not zero, but taskgroup->children is NULL and there are
9189 any task->children, schedule those instead of waiting.
9190 * testsuite/libgomp.c/depend-6.c: New test.
9191 * testsuite/libgomp.c/depend-7.c: New test.
9192 * testsuite/libgomp.c/depend-8.c: New test.
9193 * testsuite/libgomp.c/depend-9.c: New test.
9194 * testsuite/libgomp.c/depend-10.c: New test.
9196 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9198 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9199 (struct gomp_taskwait): New type.
9200 (struct gomp_task): Add taskwait and parent_depends_on, remove
9201 in_taskwait and taskwait_sem fields.
9202 (gomp_finish_task): Don't destroy taskwait_sem.
9203 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9204 taskwait and parent_depends_on.
9205 (GOMP_task): For if (0) tasks with depend clause that depend on
9206 earlier tasks don't defer them, instead call
9207 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9208 Initialize redundant_out field, for redundant out entries just
9209 move them at the end of linked list instead of removing them
9210 completely, and set redundant_out flag instead of redundant.
9211 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9213 (gomp_task_run_post_handle_dependers): If parent is in
9214 gomp_task_maybe_wait_for_dependencies and newly runnable task
9215 is not parent_depends_on, queue it in parent->children linked
9216 list after all runnable tasks with parent_depends_on set.
9217 Adjust for addition of taskwait indirection.
9218 (gomp_task_run_post_remove_parent): If parent is in
9219 gomp_task_maybe_wait_for_dependencies and task to be removed
9220 is parent_depends_on, decrement n_depend and if needed awake
9221 parent. Adjust for addition of taskwait indirection.
9222 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9223 (gomp_task_maybe_wait_for_dependencies): New function.
9224 * testsuite/libgomp.c/depend-5.c: New test.
9226 2014-07-13 Tobias Burnus <burnus@net-b.de>
9228 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9229 with TS 18508/Fortran 2015.
9231 2014-07-06 Marek Polacek <polacek@redhat.com>
9234 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9236 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9238 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9239 matches regex $lang_source_re, add $lang_include_flags to options.
9240 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9241 * testsuite/libgomp.c++/c++.exp: Likewise.
9242 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9243 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9245 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9247 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9249 * testsuite/libgomp.fortran/fortran.exp: Explain
9250 gfortran-dg-runtest usage.
9252 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9254 * testsuite/libgomp.fortran/simd5.f90: New test.
9255 * testsuite/libgomp.fortran/simd6.f90: New test.
9256 * testsuite/libgomp.fortran/simd7.f90: New test.
9258 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9260 * testsuite/libgomp.c/for-2.c: Define SC to static for
9261 #pragma omp for simd testing.
9262 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9263 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9265 * testsuite/libgomp.c/simd-14.c: New test.
9266 * testsuite/libgomp.c/simd-15.c: New test.
9267 * testsuite/libgomp.c/simd-16.c: New test.
9268 * testsuite/libgomp.c/simd-17.c: New test.
9269 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9270 #pragma omp for simd testing.
9271 * testsuite/libgomp.c++/simd10.C: New test.
9272 * testsuite/libgomp.c++/simd11.C: New test.
9273 * testsuite/libgomp.c++/simd12.C: New test.
9274 * testsuite/libgomp.c++/simd13.C: New test.
9276 * testsuite/libgomp.fortran/aligned1.f03: New test.
9277 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9278 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9279 tasks with !$omp parallel !$omp single.
9280 * testsuite/libgomp.fortran/target8.f90: New test.
9281 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9282 not to use trim in the combiner, instead call elemental function.
9283 (fn): New elemental function.
9284 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9286 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9288 * testsuite/libgomp.fortran/udr12.f90: New test.
9289 * testsuite/libgomp.fortran/udr13.f90: New test.
9290 * testsuite/libgomp.fortran/udr14.f90: New test.
9291 * testsuite/libgomp.fortran/udr15.f90: New test.
9293 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9295 * omp_lib.f90.in (openmp_version): Set to 201307.
9296 * omp_lib.h.in (openmp_version): Likewise.
9297 * testsuite/libgomp.c/target-8.c: New test.
9298 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9299 and inbranch clauses.
9300 * testsuite/libgomp.fortran/depend-3.f90: New test.
9301 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9303 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9304 * testsuite/libgomp.fortran/target1.f90: New test.
9305 * testsuite/libgomp.fortran/target2.f90: New test.
9306 * testsuite/libgomp.fortran/target3.f90: New test.
9307 * testsuite/libgomp.fortran/target4.f90: New test.
9308 * testsuite/libgomp.fortran/target5.f90: New test.
9309 * testsuite/libgomp.fortran/target6.f90: New test.
9310 * testsuite/libgomp.fortran/target7.f90: New test.
9312 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9315 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9316 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9317 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9318 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9319 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9320 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9321 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9322 * testsuite/libgomp.fortran/associate1.f90: New test.
9323 * testsuite/libgomp.fortran/associate2.f90: New test.
9324 * testsuite/libgomp.fortran/procptr1.f90: New test.
9326 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9328 * testsuite/libgomp.fortran/simd1.f90: New test.
9329 * testsuite/libgomp.fortran/udr1.f90: New test.
9330 * testsuite/libgomp.fortran/udr2.f90: New test.
9331 * testsuite/libgomp.fortran/udr3.f90: New test.
9332 * testsuite/libgomp.fortran/udr4.f90: New test.
9333 * testsuite/libgomp.fortran/udr5.f90: New test.
9334 * testsuite/libgomp.fortran/udr6.f90: New test.
9335 * testsuite/libgomp.fortran/udr7.f90: New test.
9336 * testsuite/libgomp.fortran/udr8.f90: New test.
9337 * testsuite/libgomp.fortran/udr9.f90: New test.
9338 * testsuite/libgomp.fortran/udr10.f90: New test.
9339 * testsuite/libgomp.fortran/udr11.f90: New test.
9341 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9343 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9344 vect_simd_clones effective target.
9345 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9347 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9350 * testsuite/libgomp.c++/simd-9.C: New test.
9352 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9354 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9355 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9356 texts according to their @menu entry positions.
9358 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9360 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9361 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9362 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9363 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9364 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9365 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9366 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9367 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9368 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9369 * testsuite/libgomp.fortran/depend-1.f90: New test.
9370 * testsuite/libgomp.fortran/depend-2.f90: New test.
9371 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9372 * testsuite/libgomp.fortran/simd1.f90: New test.
9373 * testsuite/libgomp.fortran/simd2.f90: New test.
9374 * testsuite/libgomp.fortran/simd3.f90: New test.
9375 * testsuite/libgomp.fortran/simd4.f90: New test.
9376 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9378 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9380 * testsuite/libgomp.c/simd-10.c: New test.
9381 * testsuite/libgomp.c/simd-11.c: New test.
9382 * testsuite/libgomp.c/simd-12.c: New test.
9383 * testsuite/libgomp.c/simd-13.c: New test.
9385 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9387 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9388 atomic type clauses in any order and optional comma in between.
9389 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9390 * testsuite/libgomp.c/atomic-17.c: Likewise.
9392 * testsuite/libgomp.c/simd-7.c: New test.
9393 * testsuite/libgomp.c/simd-8.c: New test.
9394 * testsuite/libgomp.c/simd-9.c: New test.
9395 * testsuite/libgomp.c/loop-16.c: New test.
9397 2014-04-02 Richard Henderson <rth@redhat.com>
9399 * config/linux/futex.h (futex_wait): Get error value from errno.
9400 (futex_wake): Likewise.
9402 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9405 * testsuite/libgomp.c++/udr-11.C: New test.
9406 * testsuite/libgomp.c++/udr-12.C: New test.
9407 * testsuite/libgomp.c++/udr-13.C: New test.
9408 * testsuite/libgomp.c++/udr-14.C: New test.
9409 * testsuite/libgomp.c++/udr-15.C: New test.
9410 * testsuite/libgomp.c++/udr-16.C: New test.
9411 * testsuite/libgomp.c++/udr-17.C: New test.
9412 * testsuite/libgomp.c++/udr-18.C: New test.
9413 * testsuite/libgomp.c++/udr-19.C: New test.
9415 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9417 Update copyright years
9419 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9421 * hashtab.h: Use the standard form for the copyright notice.
9423 2014-01-02 Tobias Burnus <burnus@net-b.de>
9425 * libgomp.texi: Bump @copying's copyright year.
9427 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9429 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9430 alloca () with __builtin_alloca ().
9431 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9432 * testsuite/libgomp.c/lock-3.c: Likewise.
9433 * testsuite/libgomp.c/pr48591.c: Likewise.
9435 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9438 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9441 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9444 * testsuite/libgomp.c/pr58756.c: New test.
9446 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9449 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9452 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9454 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9456 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9457 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9458 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9459 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9462 * libgomp_g.h: Include <stddef.h> for size_t.
9464 * libgomp.spec.in: Update comment about libgomp's dependencies.
9465 * configure.ac: Likewise.
9466 * configure: Regenerate.
9468 2013-10-16 Tobias Burnus <burnus@net-b.de>
9470 * libgomp.texi: (Runtime Library Routines): Update references for
9471 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9472 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9473 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9474 (Environment Variables): Update references for OpenMP 4.0. Add
9475 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9476 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9479 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9481 * env.c (parse_bind_var): Initialize value to avoid
9482 (false positive) warning.
9484 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9487 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9489 (gomp_init_num_threads): Move i variable declaration into
9490 #ifdef CPU_ALLOC_SIZE block.
9491 * config/linux/affinity.c (gomp_affinity_init_level): Test
9492 gomp_places_list_len == 0 rather than gomp_places_list == 0
9493 when checking for topology reading error.
9494 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9495 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9496 gomp_places_list, only parse env var and always return false.
9497 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9498 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9499 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9500 and either of these variables were parsed correctly into a places
9503 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9504 Jakub Jelinek <jakub@redhat.com>
9506 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9507 of 5 loopfn matches.
9508 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9509 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9510 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9511 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9512 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9513 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9514 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9515 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9517 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9519 * Makefile.am (omp_lib.mod): Streamline rule.
9520 * Makefile.in: Regenerate.
9522 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9525 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9526 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9527 * testsuite/libgomp.fortran/lib2.f: Likewise.
9528 * testsuite/libgomp.fortran/lib3.f: Likewise.
9530 * configure.ac: Typo fix.
9531 * configure: Regenerate.
9533 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9534 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9536 * omp.h.in: Don't touch the user's namespace.
9538 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9539 Tobias Burnus <burnus@net-b.de>
9540 Richard Henderson <rth@redhat.com>
9542 * target.c: New file.
9543 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9544 * Makefile.in: Regenerated.
9545 * libgomp_g.h (GOMP_task): Add depend argument.
9546 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9547 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9548 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9549 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9550 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9551 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9552 GOMP_taskgroup_start, GOMP_taskgroup_end,
9553 GOMP_parallel_sections): New prototypes.
9554 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9555 (omp_is_initial_device_): New function.
9556 (ULP, STR1, STR2, ialias_redirect): Removed.
9557 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9558 omp_set_default_device_8_, omp_get_default_device_,
9559 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9561 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9562 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9563 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9565 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9566 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9567 omp_set_default_device, omp_set_default_device_,
9568 omp_set_default_device_8_, omp_get_default_device,
9569 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9570 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9571 omp_get_team_num_): Export @@OMP_4.0.
9572 * team.c (struct gomp_thread_start_data): Add place field.
9573 (gomp_thread_start): Clear thr->thread_pool and
9574 thr->task before returning. Use gomp_team_barrier_wait_final
9575 instead of gomp_team_barrier_wait. Initialize thr->place.
9576 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9577 team_cancelled and task_queued_count fields.
9578 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9579 before calling pthread_exit.
9580 (gomp_free_thread): No longer static. Use
9581 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9582 (gomp_team_start): Add flags argument. Set
9583 thr->thread_pool->threads_busy to nthreads immediately after creating
9584 new pool. Use gomp_managed_threads_lock instead of
9585 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9586 (gomp_team_end): Use gomp_managed_threads_lock instead of
9587 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9588 of gomp_team_barrier_wait. If team->team_cancelled, call
9589 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9590 rather than thr->ts.work_share.
9591 (initialize_team): Don't call gomp_sem_init here.
9592 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9594 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9595 * env.c (gomp_global_icv): Add default_device_var, target_data and
9596 bind_var initializers.
9597 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9598 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9599 gomp_places_list_len): New variables.
9600 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9601 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9603 (gomp_cancel_var): New global variable.
9604 (parse_int): New function.
9605 (handle_omp_display_env): New function.
9606 (initialize_env): Use it. Initialize default_device_var.
9607 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9608 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9609 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9610 been successfully parsed (and call gomp_init_affinity in that case).
9611 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9612 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9613 omp_get_team_num, omp_is_initial_device): New functions.
9614 * libgomp.h: Include stdlib.h.
9615 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9617 (struct target_mem_desc): Forward declare.
9618 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9619 and thread_limit_var fields.
9620 (gomp_get_num_devices): New prototype.
9621 (gomp_cancel_var): New extern decl.
9622 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9623 team_cancelled and task_queued_count fields. Add comments about
9624 task_{,queued_,running_}count.
9625 (gomp_cancel_kind): New enum.
9626 (gomp_work_share_end_cancel): New prototype.
9627 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9628 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9630 (struct gomp_taskgroup): New type.
9631 (struct gomp_task_depend_entry,
9632 struct gomp_dependers_vec): New types.
9633 (gomp_finish_task): Free depend_hash if non-NULL.
9634 (struct gomp_team_state): Add place_partition_off
9635 and place_partition_len fields.
9636 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9637 gomp_places_list_len): New extern decls.
9638 (struct gomp_thread): Add place field.
9639 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9640 (gomp_init_thread_affinity): Add place argument.
9641 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9642 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9643 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9644 gomp_affinity_init_level, gomp_affinity_print_place): New
9646 (gomp_team_start): Add flags argument.
9647 (gomp_thread_limit_var, gomp_remaining_threads_count,
9648 gomp_remaining_threads_lock): Remove.
9649 (gomp_managed_threads_lock): New variable.
9650 (struct gomp_thread_pool): Add threads_busy field.
9651 (gomp_free_thread): New prototype.
9652 * task.c: Include hashtab.h.
9653 (hash_entry_type): New typedef.
9654 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9655 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9656 copy_ctors_done and taskgroup fields.
9657 (GOMP_task): Add depend argument, handle depend clauses. If
9658 gomp_team_barrier_cancelled or if it's taskgroup has been
9659 cancelled, don't queue or start new tasks. Set copy_ctors_done
9660 field if needed. Initialize taskgroup field. If copy_ctors_done
9661 and already cancelled, don't discard the task. If taskgroup is
9662 non-NULL, enqueue the task into taskgroup queue. Increment
9663 num_children field in taskgroup. Increment task_queued_count.
9664 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9665 gomp_task_run_post_remove_taskgroup): New inline functions.
9666 (gomp_task_run_post_handle_depend_hash,
9667 gomp_task_run_post_handle_dependers,
9668 gomp_task_run_post_handle_depend): New functions.
9669 (GOMP_taskwait): Use them. If more than one new tasks
9670 have been queued, wake other threads if needed.
9671 (gomp_barrier_handle_tasks): Likewise. If
9672 gomp_team_barrier_cancelled, don't start any new tasks, just free
9674 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9676 (omp_proc_bind_kind, omp_proc_bind_false,
9677 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9678 omp_proc_bind_spread): New params.
9679 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9680 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9681 omp_get_team_num, omp_is_initial_device): New interfaces.
9682 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9683 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9684 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9685 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9686 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9687 useless use omp_lib_kinds.
9688 * omp.h.in (omp_proc_bind_t): New typedef.
9689 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9690 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9691 omp_get_team_num, omp_is_initial_device): New prototypes.
9692 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9693 through to gomp_team_start.
9694 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9695 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9696 Adjust gomp_parallel_loop_start callers.
9697 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9698 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9699 GOMP_loop_end_cancel): New functions.
9700 (GOMP_parallel_end): Add ialias_redirect.
9701 * hashtab.h: New file.
9702 * libgomp.texi (Environment Variables): Minor cleanup,
9703 update section refs to OpenMP 4.0rc2.
9704 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9705 environment variables.
9706 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9707 team->work_shares_to_free to thr->ts.work_share before calling
9709 (gomp_work_share_end_cancel): New function.
9710 * config/linux/proc.c: Include errno.h.
9711 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9712 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9713 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9714 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9715 gomp_cpuset_size is sizeof (cpu_set_t).
9716 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9717 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9718 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9719 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9720 contain any logical CPUs.
9721 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9722 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9723 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9724 pthread_getaffinity_np. Check gomp_places_list instead of
9725 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9726 * config/linux/bar.c (gomp_barrier_wait_end,
9727 gomp_barrier_wait_last): Use BAR_* defines.
9728 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9729 from state where needed. Set work_share_cancelled to 0 on last
9731 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9732 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9734 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9735 Add cpusetsize argument.
9736 (gomp_cpuset_size, gomp_cpusetp): Declare.
9737 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9738 (affinity_counter): Remove.
9739 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9740 if CPU_ALLOC_SIZE isn't defined.
9741 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9742 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9743 bind current thread to the first place.
9744 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9745 pthread_setaffinity_np to gomp_places_list[place].
9746 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9747 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9748 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9749 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9750 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9751 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9752 (gomp_barrier_t): Add awaited_final field.
9753 (gomp_barrier_init): Initialize awaited_final field.
9754 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9755 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9757 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9759 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9760 gomp_team_barrier_cancelled): New inline functions.
9761 (gomp_barrier_last_thread,
9762 gomp_team_barrier_set_task_pending,
9763 gomp_team_barrier_clear_task_pending,
9764 gomp_team_barrier_set_waiting_for_tasks,
9765 gomp_team_barrier_waiting_for_tasks,
9766 gomp_team_barrier_done): Use BAR_* defines.
9767 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9768 (gomp_barrier_wait_end): Use BAR_* defines.
9769 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9770 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9772 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9773 gomp_team_barrier_cancel): New functions.
9774 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9776 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9777 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9778 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9779 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9780 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9781 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9782 (gomp_barrier_t): Add cancellable field.
9783 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9784 gomp_team_barrier_cancel): New prototypes.
9785 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9786 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9787 gomp_team_barrier_cancelled): New inline functions.
9788 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9789 gomp_team_barrier_set_task_pending,
9790 gomp_team_barrier_clear_task_pending,
9791 gomp_team_barrier_set_waiting_for_tasks,
9792 gomp_team_barrier_waiting_for_tasks,
9793 gomp_team_barrier_done): Use BAR_* defines.
9794 * barrier.c (GOMP_barrier_cancel): New function.
9795 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9796 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9797 omp_proc_bind_spread): New params.
9798 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9799 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9800 omp_get_team_num, omp_is_initial_device): New externals.
9801 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9803 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9804 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9805 infinity. If not nested, just return minimum of max_num_threads
9806 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9807 to the returned value. Otherwise, don't update atomically
9808 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9809 (GOMP_parallel_end): Adjust for thread_limit now being in
9810 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9811 infinity. Adjust threads_busy in the pool rather than
9812 gomp_remaining_threads_count. Remember team->nthreads and call
9813 gomp_team_end before adjusting threads_busy, if not nested
9814 afterwards, just set it to 1 non-atomically. Add ialias.
9815 (GOMP_parallel_start): Adjust gomp_team_start caller.
9816 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9817 * testsuite/libgomp.c/affinity-1.c: New test.
9818 * testsuite/libgomp.c/atomic-15.c: New test.
9819 * testsuite/libgomp.c/atomic-16.c: New test.
9820 * testsuite/libgomp.c/atomic-17.c: New test.
9821 * testsuite/libgomp.c/cancel-for-1.c: New test.
9822 * testsuite/libgomp.c/cancel-for-2.c: New test.
9823 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9824 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9825 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9826 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9827 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9828 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9829 * testsuite/libgomp.c/depend-1.c: New test.
9830 * testsuite/libgomp.c/depend-2.c: New test.
9831 * testsuite/libgomp.c/depend-3.c: New test.
9832 * testsuite/libgomp.c/depend-4.c: New test.
9833 * testsuite/libgomp.c/for-1.c: New test.
9834 * testsuite/libgomp.c/for-1.h: New file.
9835 * testsuite/libgomp.c/for-2.c: New test.
9836 * testsuite/libgomp.c/for-2.h: New file.
9837 * testsuite/libgomp.c/for-3.c: New test.
9838 * testsuite/libgomp.c/pr58392.c: New test.
9839 * testsuite/libgomp.c/simd-1.c: New test.
9840 * testsuite/libgomp.c/simd-2.c: New test.
9841 * testsuite/libgomp.c/simd-3.c: New test.
9842 * testsuite/libgomp.c/simd-4.c: New test.
9843 * testsuite/libgomp.c/simd-5.c: New test.
9844 * testsuite/libgomp.c/simd-6.c: New test.
9845 * testsuite/libgomp.c/target-1.c: New test.
9846 * testsuite/libgomp.c/target-2.c: New test.
9847 * testsuite/libgomp.c/target-3.c: New test.
9848 * testsuite/libgomp.c/target-4.c: New test.
9849 * testsuite/libgomp.c/target-5.c: New test.
9850 * testsuite/libgomp.c/target-6.c: New test.
9851 * testsuite/libgomp.c/target-7.c: New test.
9852 * testsuite/libgomp.c/taskgroup-1.c: New test.
9853 * testsuite/libgomp.c/thread-limit-1.c: New test.
9854 * testsuite/libgomp.c/thread-limit-2.c: New test.
9855 * testsuite/libgomp.c/thread-limit-3.c: New test.
9856 * testsuite/libgomp.c/udr-1.c: New test.
9857 * testsuite/libgomp.c/udr-2.c: New test.
9858 * testsuite/libgomp.c/udr-3.c: New test.
9859 * testsuite/libgomp.c++/affinity-1.C: New test.
9860 * testsuite/libgomp.c++/atomic-10.C: New test.
9861 * testsuite/libgomp.c++/atomic-11.C: New test.
9862 * testsuite/libgomp.c++/atomic-12.C: New test.
9863 * testsuite/libgomp.c++/atomic-13.C: New test.
9864 * testsuite/libgomp.c++/atomic-14.C: New test.
9865 * testsuite/libgomp.c++/atomic-15.C: New test.
9866 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9867 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9868 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9869 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9870 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9871 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9872 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9873 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9874 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9875 * testsuite/libgomp.c++/cancel-test.h: New file.
9876 * testsuite/libgomp.c++/for-9.C: New test.
9877 * testsuite/libgomp.c++/for-10.C: New test.
9878 * testsuite/libgomp.c++/for-11.C: New test.
9879 * testsuite/libgomp.c++/simd-1.C: New test.
9880 * testsuite/libgomp.c++/simd-2.C: New test.
9881 * testsuite/libgomp.c++/simd-3.C: New test.
9882 * testsuite/libgomp.c++/simd-4.C: New test.
9883 * testsuite/libgomp.c++/simd-5.C: New test.
9884 * testsuite/libgomp.c++/simd-6.C: New test.
9885 * testsuite/libgomp.c++/simd-7.C: New test.
9886 * testsuite/libgomp.c++/simd-8.C: New test.
9887 * testsuite/libgomp.c++/target-1.C: New test.
9888 * testsuite/libgomp.c++/target-2.C: New test.
9889 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9890 * testsuite/libgomp.c++/target-3.C: New test.
9891 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9892 * testsuite/libgomp.c++/udr-1.C: New test.
9893 * testsuite/libgomp.c++/udr-2.C: New test.
9894 * testsuite/libgomp.c++/udr-3.C: New test.
9895 * testsuite/libgomp.c++/udr-4.C: New test.
9896 * testsuite/libgomp.c++/udr-5.C: New test.
9897 * testsuite/libgomp.c++/udr-6.C: New test.
9898 * testsuite/libgomp.c++/udr-7.C: New test.
9899 * testsuite/libgomp.c++/udr-8.C: New test.
9900 * testsuite/libgomp.c++/udr-9.C: New test.
9902 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9905 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9908 2013-09-20 Alan Modra <amodra@gmail.com>
9910 * configure: Regenerate.
9912 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9914 * testsuite/libgomp.c/sections-2.c: New test.
9916 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9918 * testsuite/libgomp.fortran/strassen.f90:
9919 Add dg-skip-if aarch64_tiny.
9921 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9922 Cesar Philippidis <cesar@codesourcery.com>
9924 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9925 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9926 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9927 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9928 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9929 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9930 Use dg-runtest rather than gfortran-dg-runtest.
9932 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9934 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9935 Linux-based x86 systems to cover all GNU systems.
9936 * testsuite/libgomp.c/lock-3.c: Likewise.
9937 * testsuite/libgomp.c/pr48591.c: Likewise.
9939 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9941 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9942 GNU/Hurd, as done for Linux-based systems.
9944 * config/posix/ptrlock.h: Fix comment.
9946 2013-05-27 Tobias Burnus <burnus@net-b.de>
9949 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9950 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9951 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9952 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9953 omp_destroy_nest_lock): Correct arguments to match the one in
9955 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9956 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9957 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9958 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9960 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9962 * testsuite/libgomp.c/loop-13.c: New test.
9963 * testsuite/libgomp.c/loop-14.c: New test.
9964 * testsuite/libgomp.c/loop-15.c: New test.
9965 * testsuite/libgomp.c++/loop-13.C: New test.
9966 * testsuite/libgomp.c++/loop-14.C: New test.
9967 * testsuite/libgomp.c++/loop-15.C: New test.
9969 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9972 * testsuite/libgomp.c++/pr56217.C: New test.
9974 2013-02-01 Alan Modra <amodra@gmail.com>
9976 * task.c (GOMP_task, GOMP_taskwait): Comment.
9978 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9979 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9982 * config/linux/wait.h (do_spin): Use atomic load for addr.
9983 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9984 for intptr and ptrlock.
9985 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9988 2013-01-22 Alan Modra <amodra@gmail.com>
9992 * task.c (GOMP_task): Revert 2011-12-09 change.
9993 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9994 barrier to read task->children..
9995 (gomp_barrier_handle_tasks): ..and matching atomic store with
9996 release barrier here when setting parent->children to NULL.
9998 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9999 Tobias Burnus <burnus@net-b.de>
10002 * testsuite/libgomp.fortran/fortran.exp: Use
10003 -fintrinsic-modules-path= instead of
10004 -fintrinsic-modules-path.
10006 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10008 Update copyright years.
10010 2012-12-19 Tobias Burnus <burnus@net-b.de>
10012 * testsuite/libgomp.fortran/fortran.exp: Set
10013 -fintrinsic-modules-path.
10015 2012-12-19 Tobias Burnus <burnus@net-b.de>
10017 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10018 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10020 2012-11-21 Jakub Jelinek <jakub@redhat.com>
10023 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10024 if pool had any threads_used.
10026 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10028 * testsuite/libgomp.c++/pr24455.C: Use
10029 -Wl,-undefined,dynamic_lookup on darwin.
10031 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
10033 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10035 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10037 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10039 2012-10-23 Ian Bolton <ian.bolton@arm.com>
10040 Jim MacArthur <jim.macarthur@arm.com>
10041 Marcus Shawcroft <marcus.shawcroft@arm.com>
10042 Nigel Stephens <nigel.stephens@arm.com>
10043 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10044 Richard Earnshaw <rearnsha@arm.com>
10045 Sofiane Naci <sofiane.naci@arm.com>
10046 Stephen Thomas <stephen.thomas@arm.com>
10047 Tejas Belagod <tejas.belagod@arm.com>
10048 Yufeng Zhang <yufeng.zhang@arm.com>
10050 * configure.tgt: Add AArch64.
10052 2012-10-04 Jason Merrill <jason@redhat.com>
10054 * testsuite/libgomp.c++/tls-init1.C: New.
10056 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10058 * configure: Regenerated.
10060 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10062 * config/linux/mips/futex.h (sys_futex0): Change to static
10063 function with noinline, nomips16 attributes under MIPS16. Adjust
10064 asm statement to place 'li v0,SYS_futex' immediately before
10067 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10069 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10070 conflict with index.html on case-insensitive file systems.
10072 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
10074 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10075 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10077 2012-07-02 Richard Guenther <rguenther@suse.de>
10078 Michael Matz <matz@suse.de>
10079 Tobias Grosser <tobias@grosser.es>
10080 Sebastian Pop <sebpop@gmail.com>
10082 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10083 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10084 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10085 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10087 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10089 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10091 2012-06-22 Richard Guenther <rguenther@suse.de>
10093 Merge from graphite branch
10094 2012-01-13 Tobias Grosser <tobias@grosser.es>
10096 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10097 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10099 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10101 PR middle-end/53580
10102 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10103 use GOMP_barrier () call instead.
10104 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10105 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10106 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10107 call GOMP_barrier instead.
10108 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10110 2012-06-06 Jakub Jelinek <jakub@redhat.com>
10113 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10114 argument to memset call.
10116 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10118 * configure: Regenerated.
10120 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10122 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10124 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10127 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10129 2012-03-22 Jakub Jelinek <jakub@redhat.com>
10131 PR middle-end/52547
10132 * testsuite/libgomp.c/pr52547.c: New test.
10134 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10136 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10138 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10140 * configure.tgt (mips-sgi-irix6*): Remove.
10142 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10144 * configure.tgt (alpha*-dec-osf*): Remove.
10146 * config/osf/sem.h: Remove.
10147 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10149 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10151 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10153 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10156 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10157 Remove ENABLE_SYMVERS_SOL2.
10158 * configure: Regenerate.
10159 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10160 (PREPROCESS): New variable.
10161 (libgomp.ver): New target.
10162 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10163 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10164 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10166 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10167 * Makefile.in: Regenerate.
10169 2012-02-14 Walter Lee <walt@tilera.com>
10171 * configure.tgt: Handle tilegx and tilepro.
10172 * config/linux/tile/futex.h: New file.
10174 2012-02-08 Richard Guenther <rguenther@suse.de>
10176 PR tree-optimization/46886
10177 * testsuite/libgomp.c/pr46886.c: New testcase.
10179 2012-01-25 Matthias Klose <doko@ubuntu.com>
10181 * config/linux/arm: Remove empty directory.
10182 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10184 2011-12-09 Alan Modra <amodra@gmail.com>
10187 * task.c (GOMP_taskwait): Don't access task->children outside of
10188 task_lock mutex region.
10189 (GOMP_task): Likewise.
10191 2011-12-06 Jakub Jelinek <jakub@redhat.com>
10194 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10196 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10197 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10198 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10199 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10200 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10202 2011-12-02 Alan Modra <amodra@gmail.com>
10204 * config/linux/affinity.c: Use atomic rather than sync builtin.
10205 * config/linux/lock.c: Likewise.
10206 * config/linux/ptrlock.h: Likewise.
10207 * config/linux/ptrlock.c: Likewise.
10208 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10209 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10210 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10211 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10212 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10213 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10214 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10215 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10216 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10217 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10219 2011-11-30 Alan Modra <amodra@gmail.com>
10222 * config/linux/bar.h: Use atomic rather than sync builtins.
10223 * config/linux/bar.c: Likewise. Add missing acquire
10224 synchronisation on generation field.
10225 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10228 2011-11-30 Alan Modra <amodra@gmail.com>
10230 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10231 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10232 * config/linux/mutex.h: Use atomic rather than sync builtins.
10233 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10234 * config/linux/omp-lock.h: Comment fix.
10235 * config/linux/arm/mutex.h: Delete.
10236 * config/linux/powerpc/mutex.h: Delete.
10237 * config/linux/ia64/mutex.h: Delete.
10238 * config/linux/mips/mutex.h: Delete.
10240 2011-11-30 Alan Modra <amodra@gmail.com>
10243 * config/linux/sem.h: Rewrite.
10244 * config/linux/sem.c: Rewrite.
10246 2011-11-28 Richard Henderson <rth@redhat.com>
10248 * libgomp.h (enum memmodel): New.
10250 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10252 * configure: Regenerate.
10254 2011-10-10 Matthias Klose <doko@ubuntu.com>
10256 * config/posix95: Remove empty directory.
10258 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10260 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10262 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10265 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10266 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10268 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10270 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10272 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10275 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10277 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10279 * config/linux/proc.h: New.
10280 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10281 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10282 (gomp_init_num_threads): Update call to cpuset_popcount.
10283 (get_num_procs): Ditto.
10284 * config/linux/affinity.c (gomp_init_affinity): Call
10285 gomp_cpuset_popcount.
10287 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10291 * omp.h.in (omp_in_final): New prototype.
10292 * omp_lib.f90.in (omp_in_final): New interface.
10293 (omp_integer_kind, omp_logical_kind): Remove
10294 and replace all its uses in the module with 4.
10295 (openmp_version): Change to 201107.
10296 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10297 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10298 kind for the parameters.
10299 (omp_in_final): New external.
10300 (openmp_version): Change to 201107.
10301 * task.c (omp_in_final): New function.
10302 (gomp_init_task): Initialize final_task.
10303 (GOMP_task): Remove unused attribute from flags. Handle final
10305 (GOMP_taskyield): New function.
10306 (omp_in_final): Return true if if (false) or final (true) task
10307 or descendant of final (true).
10308 * fortran.c (omp_in_final_): New function.
10309 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10310 (GOMP_3.0): Export GOMP_taskyield.
10311 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10313 (parse_unsigned_long_list): New function.
10314 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10315 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10316 even if parse_affinity returned false.
10317 * config/linux/affinity.c (gomp_init_affinity): Handle
10318 gomp_cpu_affinity_len == 0.
10319 * libgomp_g.h (GOMP_taskyield): New prototype.
10320 * libgomp.h (struct gomp_task): Add final_task field.
10321 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10322 * team.c (gomp_team_start): Override new task's nthreads_var icv
10323 if list form OMP_NUM_THREADS has been used and it has value for
10324 the new nesting level.
10326 * testsuite/libgomp.c/atomic-11.c: New test.
10327 * testsuite/libgomp.c/atomic-12.c: New test.
10328 * testsuite/libgomp.c/atomic-13.c: New test.
10329 * testsuite/libgomp.c/atomic-14.c: New test.
10330 * testsuite/libgomp.c/reduction-6.c: New test.
10331 * testsuite/libgomp.c/task-5.c: New test.
10332 * testsuite/libgomp.c++/atomic-2.C: New test.
10333 * testsuite/libgomp.c++/atomic-3.C: New test.
10334 * testsuite/libgomp.c++/atomic-4.C: New test.
10335 * testsuite/libgomp.c++/atomic-5.C: New test.
10336 * testsuite/libgomp.c++/atomic-6.C: New test.
10337 * testsuite/libgomp.c++/atomic-7.C: New test.
10338 * testsuite/libgomp.c++/atomic-8.C: New test.
10339 * testsuite/libgomp.c++/atomic-9.C: New test.
10340 * testsuite/libgomp.c++/task-8.C: New test.
10341 * testsuite/libgomp.c++/reduction-4.C: New test.
10342 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10343 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10344 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10345 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10346 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10347 * testsuite/libgomp.fortran/pointer1.f90: New test.
10348 * testsuite/libgomp.fortran/pointer2.f90: New test.
10349 * testsuite/libgomp.fortran/task4.f90: New test.
10351 2011-08-02 Tobias Burnus <burnus@net-b.de>
10353 * libgomp.texi: Update OpenMP spec references to 3.1.
10354 (omp_in_final,OMP_PROC_BIND): New sections.
10355 (OMP_NUM_THREADS): Document that the value can be now a list.
10356 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10358 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10360 * config/linux/x86/futex.h: Check __x86_64__ instead of
10363 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10365 PR middle-end/49897
10366 PR middle-end/49898
10367 * testsuite/libgomp.c/pr49897-1.c: New test.
10368 * testsuite/libgomp.c/pr49897-2.c: New test.
10369 * testsuite/libgomp.c/pr49898-1.c: New test.
10370 * testsuite/libgomp.c/pr49898-2.c: New test.
10372 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10374 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10375 for ia32 instead of ilp32.
10377 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10378 * testsuite/libgomp.c/atomic-6.c: Likewise.
10380 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10382 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10383 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10385 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10388 * config/osf/sem.h: New file.
10389 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10391 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10394 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10397 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10399 * config/linux/wait.h (do_spin): New inline, largely copied
10400 from do_wait, just don't do futex_wait here, instead return true if
10402 (do_wait): Implement using do_spin.
10403 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10405 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10406 __sync_bool_compare_and_swap, pass the oldval to
10407 gomp_mutex_lock_slow.
10408 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10409 If all mutex contenders are just spinning and not sleeping, don't
10410 change state to 2 unnecessarily. Optimize the loop when state has
10411 already become 2 to use just one atomic operation per loop instead
10413 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10415 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10416 __sync_bool_compare_and_swap, pass the oldval to
10417 gomp_mutex_lock_slow.
10419 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10422 * iter.c (gomp_iter_static_next): For chunk size 0
10423 only use n ceil/ nthreads size for the first
10424 n % nthreads threads in the team instead of
10425 all threads except for the last few ones which
10426 get less work or none at all.
10427 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10428 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10429 chunk argument, set run_sched_modifier to 0 for static
10430 resp. 1 for other kinds. If chunk argument is 0
10431 and not static, set value to 1.
10433 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10436 * testsuite/libgomp.c++/pr49043.C: New test.
10439 * testsuite/libgomp.c++/pr48869.C: New test.
10441 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10444 * fortran.c: Include limits.h.
10446 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10448 (omp_set_num_threads_8_, omp_set_schedule_8_,
10449 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10450 omp_get_team_size_8_): Use TO_INT macro.
10451 * testsuite/libgomp.fortran/pr48894.f90: New test.
10453 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10455 PR middle-end/48591
10456 * testsuite/libgomp.c/pr48591.c: New test.
10458 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10461 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10462 * configure: Regenerate.
10464 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10467 * testsuite/libgomp.fortran/task3.f90: New test.
10469 2011-02-24 Tobias Burnus <burnus@net-b.de>
10471 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10473 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10476 * libgomp.texi (omp_get_wtime): Don't say time in the past
10477 must be Unix Epoch.
10479 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10482 * testsuite/libgomp.fortran/fortran.exp: Check for both
10483 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10484 but $blddir != "", still append ${blddir}/${lang_library_path}
10485 to ld_library_path.
10487 2011-02-16 Tobias Burnus <burnus@net-b.de>
10490 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10491 of libquadmath.a before adding its libpath to ldflags.
10493 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10496 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10497 to FUTEX_WAIT futex syscall.
10498 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10500 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10502 * configure: Regenerate.
10504 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10507 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10509 2011-01-16 Gerald Pfeifer
10511 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10513 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10516 * libgomp.fortran/allocatable6.f90: New test.
10518 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10520 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10521 * configure: Regenerate.
10523 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10527 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10528 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10529 * aclocal.m4: Regenerate.
10530 * configure: Regenerate.
10531 * Makefile.in: Regenerate.
10532 * testsuite/Makefile.in: Regenerate.
10534 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10537 * libgomp.fortran/pr46753.f90: New test.
10540 * env.c (initialize_env): Default to spin count 300000
10541 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10545 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10546 at the end if sync builtins aren't supported.
10548 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10550 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10552 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10554 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10556 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10558 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10560 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10561 Tobias Burnus <burnus@net-b.de>
10565 * configure: Regenerate.
10567 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10569 * config/linux/futex.h: New.
10570 * config/linux/arm/mutex.h: New.
10571 * configure.tgt (arm*-*-linux*): Add config path.
10573 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10575 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10577 2010-09-23 Tobias Burnus <burnus@net-b.de>
10579 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10580 Change Fortran datatype to LOGICAL.
10581 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10582 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10584 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10586 * configure: Regenerate.
10588 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10590 * libgomp.texi: Add function keyword to a couple of Fortran
10591 interfaces, use integer instead of int for Fortran.
10593 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10595 * libgomp.texi: Fix spelling and pasto problems throughout.
10596 Adjust prototypes to match code.
10598 2010-07-24 Tobias Burnus <burnus@net-b.de>
10600 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10601 silence -fwhole-file warning.
10603 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10605 * configure.tgt (*-*-solaris2.[56]*): Removed.
10607 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10609 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10610 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10611 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10612 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10613 targetting solaris2*.
10614 * configure: Regenerate.
10615 * config.h.in: Regenerate.
10617 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10618 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10619 Add libgomp_version_dep.
10620 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10622 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10623 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10624 * Makefile.in: Regenerate.
10626 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10627 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10628 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10629 to common block, protected by
10630 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10632 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10634 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10636 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10639 * configure: Regenerate.
10641 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10644 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10645 * configure: Regenerate.
10646 * Makefile.in: Regenerate.
10647 * testsuite/Makefile.in: Regenerate.
10649 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10652 * testsuite/libgomp.c/pr43893.c: New test.
10653 * testsuite/libgomp.c++/pr43893.C: New test.
10655 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10657 PR middle-end/43570
10658 * testsuite/libgomp.fortran/vla8.f90: New test.
10660 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10663 * config/linux/affinity.c (gomp_init_affinity): Decrease
10664 gomp_available_cpus if affinity mask confines the process to fewer
10666 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10667 non-NULL, just return gomp_available_cpus.
10670 * sections.c (gomp_sections_init): Initialize ws->mode.
10672 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10674 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10675 not unused bar variable.
10676 * configure: Regenerate.
10678 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10680 * Makefile.in: Regenerate.
10681 * aclocal.m4: Regenerate.
10682 * testsuite/Makefile.in: Regenerate.
10684 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10687 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10688 (initialize_env): Adjust callers.
10689 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10690 when the argument is 0.
10692 * testsuite/libgomp.c/pr42942.c: New test.
10694 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10696 PR middle-end/42644
10697 PR middle-end/42130
10698 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10699 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10701 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10703 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10704 * testsuite/libgomp.c++/task-6.C: Likewise.
10706 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10708 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10710 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10712 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10713 * configure: Regenerate.
10715 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10718 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10720 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10722 * configure.ac: Test for executability of GFORTRAN.
10723 * configure: Regenerate.
10725 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10727 * configure: Regenerate.
10729 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10732 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10734 2010-01-03 Richard Guenther <rguenther@suse.de>
10736 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10738 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10740 * testsuite/libgomp.graphite/pr4118.c: New.
10742 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10744 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10745 for darwin, protect the test with require-effective-target tls_runtime.
10746 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10748 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10751 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10752 link spec %s substitutions for static libraries.
10754 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10757 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10759 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10761 * Makefile.in: Regenerate.
10762 * configure: Regenerate.
10763 * testsuite/Makefile.in: Regenerate.
10765 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10767 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10768 settings for LC_ALL and LANG.
10770 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10773 * testsuite/libgomp.fortran/pr42162.f90: New test.
10775 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10777 PR middle-end/42029
10778 * testsuite/libgomp.c/pr42029.c: New test.
10780 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10782 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10783 *s. Accept ld version without text in ()s.
10784 * configure: Regenerated.
10786 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10788 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10790 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10793 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10794 or a hyphen (happens with fortran language disabled).
10795 * configure: Regenerate.
10797 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10799 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10800 use sed script portable to Solaris /bin/sed for extracting ld
10802 * configure: Regenerate.
10804 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10806 * testsuite/libgomp.graphite/bounds.c: New test.
10808 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10810 * Makefile.am (libgomp_la_LINK): New.
10811 * Makefile.in: Regenerate.
10813 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10815 * configure.ac (AC_PREREQ): Bump to 2.64.
10817 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10819 * Makefile.am (install-html, install-pdf): Remove.
10820 * Makefile.in: Regenerate.
10822 * Makefile.in: Regenerate.
10823 * aclocal.m4: Regenerate.
10824 * config.h.in: Regenerate.
10825 * configure: Regenerate.
10826 * testsuite/Makefile.in: Regenerate.
10828 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10830 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10831 * Makefile.in: Regenerate.
10833 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10835 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10836 * Makefile.in: Regenerate.
10838 2009-08-19 Tobias Burnus <burnus@net-b.de>
10841 omp_lib.h.in: Fix -std=f95 errors.
10843 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10845 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10846 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10847 * testsuite/libgomp.graphite/graphite.exp: New.
10849 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10851 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10854 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10856 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10857 needed memory barrier semantics.
10858 * config/linux/mips/mutex.h: New file.
10860 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10862 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10864 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10866 * configure: Regenerate.
10868 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10873 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10874 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10875 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10877 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10879 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10880 options when choosing a multilib.
10882 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10884 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10885 ld_library_path. Use add_path. Add just find_libgcc_s to
10886 ld_library_path, not every libgcc multilib directory.
10887 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10888 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10889 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10891 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10893 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10895 * Makefile.am (LTLDFLAGS): Define.
10897 * Makefile.in: Regenerate.
10899 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10902 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10903 libgfortranbegin, check existence of libgfortran.a instead of
10904 libgfortranbegin.a.
10906 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10909 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10910 (gomp_free_pool_helper): Likewise.
10912 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10913 Jakub Jelinek <jakub@redhat.com>
10916 * testsuite/libgomp.fortran/workshare2.f90: New test.
10918 2009-04-09 Nick Clifton <nickc@redhat.com>
10920 * iter.c: Change copyright header to refer to version 3 of the
10921 GNU General Public License with version 3.1 of the GCC Runtime
10922 Library Exception and to point readers at the COPYING3 and
10923 COPYING3.RUNTIME files and the FSF's license web page.
10924 * alloc.c: Likewise.
10925 * barrier.c: Likewise.
10926 * config/bsd/proc.c: Likewise.
10927 * config/linux/affinity.c: Likewise.
10928 * config/linux/alpha/futex.h: Likewise.
10929 * config/linux/bar.c: Likewise.
10930 * config/linux/bar.h: Likewise.
10931 * config/linux/ia64/futex.h: Likewise.
10932 * config/linux/ia64/mutex.h: Likewise.
10933 * config/linux/lock.c: Likewise.
10934 * config/linux/mips/futex.h: Likewise.
10935 * config/linux/mutex.c: Likewise.
10936 * config/linux/mutex.h: Likewise.
10937 * config/linux/powerpc/futex.h: Likewise.
10938 * config/linux/proc.c: Likewise.
10939 * config/linux/ptrlock.c: Likewise.
10940 * config/linux/ptrlock.h: Likewise.
10941 * config/linux/s390/futex.h: Likewise.
10942 * config/linux/sem.c: Likewise.
10943 * config/linux/sem.h: Likewise.
10944 * config/linux/sparc/futex.h: Likewise.
10945 * config/linux/wait.h: Likewise.
10946 * config/linux/x86/futex.h: Likewise.
10947 * config/mingw32/proc.c: Likewise.
10948 * config/mingw32/time.c: Likewise.
10949 * config/posix/affinity.c: Likewise.
10950 * config/posix/bar.c: Likewise.
10951 * config/posix/bar.h: Likewise.
10952 * config/posix/lock.c: Likewise.
10953 * config/posix/mutex.h: Likewise.
10954 * config/posix/proc.c: Likewise.
10955 * config/posix/ptrlock.h: Likewise.
10956 * config/posix/sem.c: Likewise.
10957 * config/posix/sem.h: Likewise.
10958 * config/posix/time.c: Likewise.
10959 * config/posix95/lock.c: Likewise.
10960 * critical.c: Likewise.
10962 * error.c: Likewise.
10963 * fortran.c: Likewise.
10964 * iter_ull.c: Likewise.
10965 * libgomp.h: Likewise.
10966 * libgomp_f.h.in: Likewise.
10967 * libgomp_g.h: Likewise.
10968 * loop.c: Likewise.
10969 * loop_ull.c: Likewise.
10970 * omp.h.in: Likewise.
10971 * omp_lib.f90.in: Likewise.
10972 * omp_lib.h.in: Likewise.
10973 * ordered.c: Likewise.
10974 * parallel.c: Likewise.
10975 * sections.c: Likewise.
10976 * single.c: Likewise.
10977 * task.c: Likewise.
10978 * team.c: Likewise.
10979 * work.c: Likewise.
10981 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10983 * testsuite/config/default.exp: Change copyright header to refer to
10984 version 3 of the GNU General Public License and to point readers
10985 at the COPYING3 file and the FSF's license web page.
10987 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10989 PR middle-end/39573
10990 * libgomp.c++/pr39573.C: New test.
10992 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10995 * testsuite/libgomp.c/pr39591-1.c: New test.
10996 * testsuite/libgomp.c/pr39591-2.c: New test.
10997 * testsuite/libgomp.c/pr39591-3.c: New test.
10999 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
11001 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11002 * testsuite/libgomp.c/atomic-6.c: Ditto.
11004 2009-03-23 Jakub Jelinek <jakub@redhat.com>
11007 * testsuite/libgomp.c/loop-12.c: New test.
11008 * testsuite/libgomp.c/loop-11.c: New test.
11009 * testsuite/libgomp.c++/loop-11.C: New test.
11010 * testsuite/libgomp.c++/loop-12.C: New test.
11011 * testsuite/libgomp.c++/for-8.C: New test.
11013 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11015 * configure: Regenerate.
11017 2009-02-11 Jakub Jelinek <jakub@redhat.com>
11019 PR middle-end/39154
11020 * testsuite/libgomp.c/pr39154.c: New test.
11022 2009-01-30 Ian Lance Taylor <iant@google.com>
11024 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11025 libgomp_ld_is_gold. Get gold version number.
11026 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11027 * configure: Rebuild.
11029 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11031 * testsuite/lib/libgomp.exp: Add -B option for targets that
11032 use libgfortran.a%s in their specs.
11034 2009-01-07 Jakub Jelinek <jakub@redhat.com>
11037 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11038 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11039 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11040 * configure: Regenerated.
11041 * config.h.in: Likewise.
11043 2008-12-28 Jakub Jelinek <jakub@redhat.com>
11046 * testsuite/libgomp.c/pr38650.c: New test.
11047 * testsuite/libgomp.c++/pr38650.C: New test.
11049 2008-12-27 Jakub Jelinek <jakub@redhat.com>
11051 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11053 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
11055 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11057 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11059 * configure: Regenerate.
11061 2008-12-08 Jakub Jelinek <jakub@redhat.com>
11063 PR middle-end/36802
11064 * testsuite/libgomp.c/pr36802-1.c: New test.
11065 * testsuite/libgomp.c/pr36802-2.c: New test.
11066 * testsuite/libgomp.c/pr36802-3.c: New test.
11068 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11071 * config/linux/powerpc/mutex.h: New.
11073 2008-12-01 Jakub Jelinek <jakub@redhat.com>
11076 * testsuite/libgomp.c++/for-7.C: New test.
11079 * testsuite/libgomp.c++/for-6.C: New test.
11081 2008-11-26 Janis Johnson <janis187@us.ibm.com>
11084 * testsuite/lib/libgomp.exp: Include new timeout library files.
11085 (libgomp_target_compile): Set timeout value from new proc.
11087 2008-11-13 Steve Ellcey <sje@cup.hp.com>
11090 * config/linux/ia64/mutex.h: New.
11092 2008-11-04 Tobias Burnus <burnus@net-b.de>
11095 * libgomp.texi (Runtime library routines, environment variables):
11096 Update for OpenMP version 3.0.
11098 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11099 Steve Ellcey <sje@cup.hp.com>
11101 * configure: Regenerate for new libtool.
11102 * Makefile.in: Ditto.
11103 * testsuite/Makefile.in: Ditto.
11105 2008-09-19 Jakub Jelinek <jakub@redhat.com>
11106 Andreas Tobler <a.tobler@schweiz.org>
11108 * config/bsd/proc.c: New file.
11109 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11110 * configure.ac: Check for header <sys/sysctl.h>
11111 * configure: Regenerate.
11112 * config.h.in: Likewise.
11114 2008-09-05 Janis Johnson <janis187@us.ibm.com>
11116 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11118 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11120 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11121 * Makefile.in: Regenerated.
11122 * testsuite/Makefile.in: Regenerated.
11124 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
11126 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11127 depend on blddir if blddir exists.
11128 (libgomp_target_compile): Likewise.
11129 * testsuite/libgomp.c++/c++.exp: Likewise.
11130 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11132 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11134 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11135 Do not list GPL as Invariant Section.
11137 2008-07-28 Ilie Garbacea <ilie@mips.com>
11138 Chao-ying Fu <fu@mips.com>
11140 * configure.tgt: Enable futex for MIPS.
11141 * config/linux/mips/futex.h: New file.
11143 2008-07-16 Jakub Jelinek <jakub@redhat.com>
11145 * team.c (gomp_team_end): Free team immediately if it has
11148 2008-07-08 David Edelsohn <edelsohn@gnu.org>
11150 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11151 * testsuite/libgomp.fortran/fortran.exp: Same.
11152 * testsuite/libgomp.c/c.exp: Same.
11153 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11154 directory to library path first.
11156 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11158 * env.c (parse_stacksize): Add cast to avoid warning.
11159 (parse_spincount): Likewise.
11161 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11163 * testsuite/libgomp.c/loop-10.c: New test.
11164 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11165 * libgomp.c++/loop-6.C (main): Likewise.
11168 * testsuite/libgomp.c/debug-1.c: New test.
11170 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11172 * testsuite/libgomp.c/nqueens-1.c: New test.
11175 * testsuite/libgomp.c++/task-7.C: New function.
11177 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11179 * configure: Regenerate.
11181 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11183 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11184 mutex when HAVE_SYNC_BUILTINS isn't defined.
11186 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11188 * libgomp.texi (omp_test_lock): Fix typo.
11190 2008-06-12 Tobias Burnus <burnus@net-b.de>
11192 * omp_lib.f90.in: Add "implicit none".
11194 2008-06-12 Jakub Jelinek <jakub@redhat.com>
11196 PR middle-end/36506
11197 * testsuite/libgomp.c/reduction-5.c: New test.
11199 2008-06-11 Jakub Jelinek <jakub@redhat.com>
11201 * libgomp.h (struct gomp_task): Add in_tied_task field.
11202 * task.c (gomp_init_task): Initialize it.
11203 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11204 unconditionally. Don't call gomp_team_barrier_wake if
11205 current task is implicit or if(0) from implicit and number of
11206 running tasks is equal to nthreads - 1.
11209 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11210 omp_get_team_size_8): Fix pastos.
11213 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11214 * configure: Regenerated.
11215 * config.h.in: Regenerated.
11216 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11219 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11222 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11223 (GOMP_loop_ull_dynamic_start): Likewise.
11224 (GOMP_loop_ull_guided_start): Likewise.
11225 (GOMP_loop_ull_ordered_static_start): Likewise.
11226 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11227 (GOMP_loop_ull_ordered_guided_start): Likewise.
11229 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11230 Richard Henderson <rth@redhat.com>
11231 Ulrich Drepper <drepper@redhat.com>
11232 Jakob Blomer <jakob.blomer@ira.uka.de>
11234 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11235 Substitute also OMP_*LOCK_25*.
11236 * configure: Regenerated.
11237 * config.h.in: Regenerated.
11238 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11239 ptrlock.c and task.c.
11240 * Makefile.in: Regenerated.
11241 * testsuite/Makefile.in: Regenerated.
11242 * task.c: New file.
11243 * loop_ull.c: New file.
11244 * iter_ull.c: New file.
11245 * libgomp.h: Include ptrlock.h.
11246 (enum gomp_task_kind): New type.
11247 (struct gomp_team): Add task_lock, task_queue, task_count,
11248 task_running_count, single_count fields. Add
11249 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11250 Remove work_share_lock, generation_mask,
11251 oldest_live_gen, num_live_gen and init_work_shares fields, add
11252 work work_share_list_alloc, work_share_list_free and work_share_chunk
11253 fields. Change work_shares from pointer to pointers into an array.
11254 Change ordered_release field into gomp_sem_t ** from flexible array
11255 member. Add implicit_task and initial_work_shares fields.
11256 Move close to the end of the struct.
11257 (struct gomp_team_state): Add single_count, last_work_share,
11258 active_level and level fields, remove work_share_generation.
11259 (gomp_barrier_handle_tasks): New prototype.
11260 (gomp_finish_task): New inline function.
11261 (struct gomp_work_share): Move chunk_size, end, incr into
11262 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11263 next_ll fields. Reshuffle fields. Add next_alloc,
11264 next_ws, next_free and inline_ordered_team_ids fields, change
11265 ordered_team_ids into pointer from flexible array member.
11266 Add mode field. Put lock and next into a different cache line
11267 from most of the write-once fields.
11268 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11269 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11270 gomp_iter_ull_guided_next): New prototypes.
11271 (gomp_new_icv): New prototype.
11272 (struct gomp_thread): Add thread_pool and task fields.
11273 (struct gomp_thread_pool): New type.
11274 (gomp_new_team): New prototype.
11275 (gomp_team_start): Change type of last argument.
11276 (gomp_new_work_share): Removed.
11277 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11278 (gomp_work_share_init_done): New static inline.
11279 (gomp_throttled_spin_count_var, gomp_available_cpus,
11280 gomp_managed_threads): New extern decls.
11281 (gomp_init_task): New prototype.
11282 (gomp_spin_count_var): New extern var decl.
11283 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11284 or no alias support, or if not PIC.
11285 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11286 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11287 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11288 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11289 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11290 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11291 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11292 gomp_test_nest_lock_25): New prototypes.
11293 (omp_lock_symver, strong_alias): Define.
11294 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11296 (gomp_end_task): New.
11297 (struct gomp_task_icv, gomp_global_icv): New.
11298 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11299 (struct gomp_task): New.
11300 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11301 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11303 (gomp_schedule_type): Reorder enum to match
11305 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11307 (gomp_thread_start): Add gomp_team_barrier_wait call.
11308 For non-nested case remove clearing of docked thread thr fields.
11309 Use pool fields instead of global gomp_* variables. Use
11310 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11311 Create tasks for each member thread.
11312 (free_team): Only destroy team barrier, task_lock here and free it.
11313 (gomp_free_thread): Free last_team if non-NULL.
11314 (gomp_team_end): Call gomp_team_barrier_wait instead of
11315 gomp_barrier_wait. For nested case call one extra
11316 gomp_barrier_wait. Move here some destruction from free_team.
11317 Call free_team on pool->last_team if any, rather than freeing
11318 current team. Destroy work_share_list_free_lock ifndef
11319 HAVE_SYNC_BUILTINS.
11320 (gomp_new_icv): New function.
11321 (gomp_threads, gomp_threads_size, gomp_threads_used,
11322 gomp_threads_dock): Removed.
11323 (gomp_thread_destructor): New variable.
11324 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11326 (gomp_team_start): Create new pool if current thread doesn't have
11327 one. Use pool fields instead of global gomp_* variables.
11328 Initialize thread_pool field for new threads. Clear single_count.
11329 Change last argument from ws to team, don't create
11330 new team, set ts.work_share to &team->work_shares[0] and clear
11331 ts.last_work_share. Don't clear ts.work_share_generation.
11332 If number of threads changed, adjust atomically gomp_managed_threads.
11333 Use gomp_init_task instead of gomp_new_task,
11334 set thr->task to the corresponding implicit_task array entry.
11335 Create tasks for each member thread. Initialize ts.level.
11336 (initialize_team): Call pthread_key_create on
11337 gomp_thread_destructor.
11338 (team_destructor): New function.
11339 (new_team): Removed.
11340 (gomp_new_team): New function.
11341 (free_team): Free gomp_work_share blocks chained through next_alloc,
11342 instead of freeing work_shares and destroying work_share_lock.
11343 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11344 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11345 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11346 of gomp_barrier_wait.
11347 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11348 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11349 if gomp_work_share_start returned true. Don't unlock ws->lock.
11350 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11351 of gomp_barrier_wait.
11352 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11353 gomp_work_share_init_done if gomp_work_share_start returned true.
11354 Don't unlock ws->lock.
11355 * work.c: Include stddef.h.
11356 (free_work_share): Use work_share_list_free_lock instead
11357 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11358 Call gomp_fini_work_share and then either free ws if orphaned, or
11359 put it into work_share_list_free list of the current team.
11360 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11362 (gomp_work_share_start, gomp_work_share_end,
11363 gomp_work_share_end_nowait): Rewritten.
11364 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11365 (openmp_version): Set to 200805.
11366 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11367 omp_sched_guided, omp_sched_auto): New parameters.
11368 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11369 omp_set_max_active_levels, omp_get_max_active_levels,
11370 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11371 omp_get_active_level): New interfaces.
11372 * omp_lib.h.in (openmp_version): Set to 200805.
11373 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11374 omp_sched_guided, omp_sched_auto): New parameters.
11375 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11376 omp_set_max_active_levels, omp_get_max_active_levels,
11377 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11378 omp_get_active_level): New externals.
11379 * loop.c: Include limits.h.
11380 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11382 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11383 Likewise. Use gomp_icv.
11384 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11385 ts.static_trip here.
11386 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11387 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11388 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11389 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11390 don't unlock ws->lock, otherwise lock it.
11391 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11392 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11393 (gomp_parallel_loop_start): Call gomp_new_team instead of
11394 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11395 Adjust gomp_team_start caller. Pass 0 as second argument to
11396 gomp_resolve_num_threads.
11397 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11398 If adding ws->chunk_size nthreads + 1 times after end won't
11399 overflow, set ws->mode to 1.
11400 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11401 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11402 GOMP_loop_ull_ordered_static_start,
11403 GOMP_loop_ull_ordered_dynamic_start,
11404 GOMP_loop_ull_ordered_guided_start,
11405 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11406 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11407 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11408 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11409 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11411 * libgomp.map: Export lock routines also @@OMP_2.0.
11412 (GOMP_loop_ordered_dynamic_first,
11413 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11414 GOMP_loop_ordered_static_first): Remove.
11415 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11416 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11417 GOMP_loop_ull_ordered_dynamic_next,
11418 GOMP_loop_ull_ordered_dynamic_start,
11419 GOMP_loop_ull_ordered_guided_next,
11420 GOMP_loop_ull_ordered_guided_start,
11421 GOMP_loop_ull_ordered_runtime_next,
11422 GOMP_loop_ull_ordered_runtime_start,
11423 GOMP_loop_ull_ordered_static_next,
11424 GOMP_loop_ull_ordered_static_start,
11425 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11426 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11427 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11428 (omp_set_schedule, omp_get_schedule,
11429 omp_get_thread_limit, omp_set_max_active_levels,
11430 omp_get_max_active_levels, omp_get_level,
11431 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11432 omp_set_schedule_, omp_set_schedule_8_,
11433 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11434 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11435 omp_get_max_active_levels_, omp_get_level_,
11436 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11437 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11438 New exports @@OMP_3.0.
11439 * omp.h.in (omp_sched_t): New type.
11440 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11441 omp_set_max_active_levels, omp_get_max_active_levels,
11442 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11443 omp_get_active_level): New prototypes.
11444 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11445 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11446 gomp_thread_limit_var, gomp_remaining_threads_count,
11447 gomp_remaining_threads_lock): New variables.
11448 (parse_spincount): New function.
11449 (initialize_env): Call gomp_init_num_threads unconditionally.
11450 Initialize gomp_available_cpus. Call parse_spincount,
11451 initialize gomp_{,throttled_}spin_count_var
11452 depending on presence and value of OMP_WAIT_POLICY and
11453 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11454 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11455 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11456 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11457 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11458 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11459 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11460 (gomp_global_icv): New.
11461 (parse_schedule): Use it. Parse "auto".
11462 (omp_set_num_threads): Use gomp_icv.
11463 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11465 (omp_get_max_threads): Move from parallel.c.
11466 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11467 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11469 (parse_stacksize, parse_wait_policy): New functions.
11470 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11471 both wrappers for compatibility and new locks.
11472 (omp_set_schedule, omp_get_schedule,
11473 omp_get_thread_limit, omp_set_max_active_levels,
11474 omp_get_max_active_levels, omp_get_level,
11475 omp_get_ancestor_thread_num, omp_get_team_size,
11476 omp_get_active_level): New ialias_redirect.
11477 (omp_set_schedule_, omp_set_schedule_8_,
11478 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11479 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11480 omp_get_max_active_levels_, omp_get_level_,
11481 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11482 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11484 * parallel.c: Include limits.h.
11485 (gomp_resolve_num_threads): Add count argument. Rewritten.
11486 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11487 argument to gomp_team_start. Pass 0 as second argument to
11488 gomp_resolve_num_threads.
11489 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11490 if gomp_thread_limit_var != ULONG_MAX.
11491 (omp_in_parallel): Implement using ts.active_level.
11492 (omp_get_max_threads): Move to env.c.
11493 (omp_get_level, omp_get_ancestor_thread_num,
11494 omp_get_team_size, omp_get_active_level): New functions,
11496 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11497 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11498 gomp_iter_dynamic_next instead of the _locked variant and don't take
11499 lock around it, otherwise acquire it before calling
11500 gomp_iter_dynamic_next_locked.
11501 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11502 gomp_iter_dynamic_next instead of the _locked variant and don't take
11504 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11505 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11506 Adjust gomp_team_start caller. Pass count as second argument to
11507 gomp_resolve_num_threads, don't adjust num_threads after the call.
11509 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11510 ws->chunk_size by incr.
11511 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11513 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11515 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11516 (omp_check_defines): Check even the compat defines.
11517 * config/linux/ptrlock.c: New file.
11518 * config/linux/ptrlock.h: New file.
11519 * config/linux/wait.h: New file.
11520 * config/posix/ptrlock.c: New file.
11521 * config/posix/ptrlock.h: New file.
11522 * config/linux/bar.h (gomp_team_barrier_wait,
11523 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11524 (gomp_team_barrier_set_task_pending,
11525 gomp_team_barrier_clear_task_pending,
11526 gomp_team_barrier_set_waiting_for_tasks,
11527 gomp_team_barrier_waiting_for_tasks,
11528 gomp_team_barrier_done): New inlines.
11529 (gomp_barrier_t): Rewritten.
11530 (gomp_barrier_state_t): New typedef.
11531 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11532 gomp_barrier_wait_start): Rewritten.
11533 (gomp_barrier_wait_end): Change second argument to
11534 gomp_barrier_state_t.
11535 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11537 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11539 (gomp_barrier_wait_end): Rewritten.
11540 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11541 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11542 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11543 (gomp_barrier_state_t): New typedef.
11544 (gomp_team_barrier_wait,
11545 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11546 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11547 into the return value. Return gomp_barrier_state_t.
11548 (gomp_team_barrier_set_task_pending,
11549 gomp_team_barrier_clear_task_pending,
11550 gomp_team_barrier_set_waiting_for_tasks,
11551 gomp_team_barrier_waiting_for_tasks,
11552 gomp_team_barrier_done): New inlines.
11553 (gomp_barrier_wait_end): Change second argument to
11554 gomp_barrier_state_t.
11555 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11557 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11558 (gomp_barrier_wait_end): Change second argument to
11559 gomp_barrier_state_t.
11560 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11561 gomp_team_barrier_wake): New functions.
11562 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11564 (gomp_futex_wake, gomp_futex_wait): New variables.
11565 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11566 * config/linux/lock.c: Rewrite to make locks task owned,
11567 for backwards compatibility provide the old entrypoints
11568 if symbol versioning. Include wait.h instead of libgomp.h and
11570 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11571 * config/posix95/lock.c: Rewrite to make locks task owned,
11572 for backwards compatibility provide the old entrypoints
11573 if symbol versioning.
11574 * config/posix/lock.c: Rewrite to make locks task owned,
11575 for backwards compatibility provide the old entrypoints
11576 if symbol versioning.
11577 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11578 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11579 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11580 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11581 (sys_futex0): Return error code.
11582 (futex_wake, futex_wait): If ENOSYS was returned, clear
11583 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11584 (cpu_relax, atomic_write_barrier): New static inlines.
11585 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11586 (futex_wake, futex_wait): If ENOSYS was returned, clear
11587 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11588 (cpu_relax, atomic_write_barrier): New static inlines.
11589 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11590 (sys_futex0): Return error code.
11591 (futex_wake, futex_wait): If ENOSYS was returned, clear
11592 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11593 (cpu_relax, atomic_write_barrier): New static inlines.
11594 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11595 (sys_futex0): Return error code.
11596 (futex_wake, futex_wait): If ENOSYS was returned, clear
11597 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11598 (cpu_relax, atomic_write_barrier): New static inlines.
11599 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11600 (sys_futex0): Return error code.
11601 (futex_wake, futex_wait): If ENOSYS was returned, clear
11602 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11603 (cpu_relax, atomic_write_barrier): New static inlines.
11604 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11605 (sys_futex0): Return error code.
11606 (futex_wake, futex_wait): If ENOSYS was returned, clear
11607 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11608 (cpu_relax, atomic_write_barrier): New static inlines.
11609 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11611 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11612 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11613 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11615 (omp_nest_lock_t): Change owner into void *, add lock field.
11616 * config/posix95/omp-lock.h: Include semaphore.h.
11617 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11618 (omp_lock_t): Use sem_t instead of mutex if semaphores
11620 (omp_nest_lock_t): Likewise. Change owner to void *.
11621 * config/posix/omp-lock.h: Include semaphore.h.
11622 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11623 (omp_lock_t): Use sem_t instead of mutex if semaphores
11625 (omp_nest_lock_t): Likewise. Add owner field.
11627 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11629 * testsuite/libgomp.c/collapse-1.c: New test.
11630 * testsuite/libgomp.c/collapse-2.c: New test.
11631 * testsuite/libgomp.c/collapse-3.c: New test.
11632 * testsuite/libgomp.c/icv-1.c: New test.
11633 * testsuite/libgomp.c/icv-2.c: New test.
11634 * testsuite/libgomp.c/lib-2.c: New test.
11635 * testsuite/libgomp.c/lock-1.c: New test.
11636 * testsuite/libgomp.c/lock-2.c: New test.
11637 * testsuite/libgomp.c/lock-3.c: New test.
11638 * testsuite/libgomp.c/loop-4.c: New test.
11639 * testsuite/libgomp.c/loop-5.c: New test.
11640 * testsuite/libgomp.c/loop-6.c: New test.
11641 * testsuite/libgomp.c/loop-7.c: New test.
11642 * testsuite/libgomp.c/loop-8.c: New test.
11643 * testsuite/libgomp.c/loop-9.c: New test.
11644 * testsuite/libgomp.c/nested-3.c: New test.
11645 * testsuite/libgomp.c/nestedfn-6.c: New test.
11646 * testsuite/libgomp.c/sort-1.c: New test.
11647 * testsuite/libgomp.c/task-1.c: New test.
11648 * testsuite/libgomp.c/task-2.c: New test.
11649 * testsuite/libgomp.c/task-3.c: New test.
11650 * testsuite/libgomp.c/task-4.c: New test.
11651 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11652 to C++ testsuite default compiler options.
11653 * testsuite/libgomp.c++/collapse-1.C: New test.
11654 * testsuite/libgomp.c++/collapse-2.C: New test.
11655 * testsuite/libgomp.c++/ctor-10.C: New test.
11656 * testsuite/libgomp.c++/for-1.C: New test.
11657 * testsuite/libgomp.c++/for-2.C: New test.
11658 * testsuite/libgomp.c++/for-3.C: New test.
11659 * testsuite/libgomp.c++/for-4.C: New test.
11660 * testsuite/libgomp.c++/for-5.C: New test.
11661 * testsuite/libgomp.c++/loop-8.C: New test.
11662 * testsuite/libgomp.c++/loop-9.C: New test.
11663 * testsuite/libgomp.c++/loop-10.C: New test.
11664 * testsuite/libgomp.c++/task-1.C: New test.
11665 * testsuite/libgomp.c++/task-2.C: New test.
11666 * testsuite/libgomp.c++/task-3.C: New test.
11667 * testsuite/libgomp.c++/task-4.C: New test.
11668 * testsuite/libgomp.c++/task-5.C: New test.
11669 * testsuite/libgomp.c++/task-6.C: New test.
11670 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11671 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11672 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11673 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11674 * testsuite/libgomp.fortran/collapse1.f90: New test.
11675 * testsuite/libgomp.fortran/collapse2.f90: New test.
11676 * testsuite/libgomp.fortran/collapse3.f90: New test.
11677 * testsuite/libgomp.fortran/collapse4.f90: New test.
11678 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11679 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11680 * testsuite/libgomp.fortran/lib4.f90: New test.
11681 * testsuite/libgomp.fortran/lock-1.f90: New test.
11682 * testsuite/libgomp.fortran/lock-2.f90: New test.
11683 * testsuite/libgomp.fortran/nested1.f90: New test.
11684 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11685 * testsuite/libgomp.fortran/strassen.f90: New test.
11686 * testsuite/libgomp.fortran/tabs1.f90: New test.
11687 * testsuite/libgomp.fortran/tabs2.f: New test.
11688 * testsuite/libgomp.fortran/task1.f90: New test.
11689 * testsuite/libgomp.fortran/task2.f90: New test.
11690 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11691 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11692 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11693 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11694 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11696 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11699 * testsuite/libgomp.c++/ctor-11.C: New test.
11700 * testsuite/libgomp.c++/ctor-12.C: New test.
11702 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11704 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11706 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11708 PR middle-end/36106
11709 * testsuite/libgomp.c/atomic-5.c: New test.
11710 * testsuite/libgomp.c/atomic-6.c: New test.
11711 * testsuite/libgomp.c/autopar-1.c: New test.
11713 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11715 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11716 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11717 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11718 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11719 * configure: Regenerate.
11720 * Makefile.in, testsuite/Makefile.in: Likewise.
11722 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11725 * aclocal.m4: Regenerate.
11726 * configure: Regenerate.
11728 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11730 PR middle-end/35611
11731 * testsuite/libgomp.c/atomic-4.c: New test.
11734 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11735 (gomp_iter_guided_next): Likewise.
11736 * testsuite/libgomp.c/pr35625.c: New test.
11738 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11740 * aclocal.m4: Regenerate.
11741 * configure: Likewise.
11742 * Makefile.in: Likewise.
11743 * testsuite/Makefile.in: Likewise.
11745 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11747 PR middle-end/35185
11748 * testsuite/libgomp.c++/pr35185.C: New test.
11750 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11752 PR middle-end/35549
11753 * testsuite/libgomp.c/pr35549.c: New test.
11755 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11757 * testsuite/libgomp.c/atomic-3.c: New test.
11759 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11762 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11763 .F08 file suffixes.
11765 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11768 * configure.ac: Add ACX_HEADER_STRING.
11769 * env.c: Include strings.h.
11770 * aclocal.m4: Regenerate.
11771 * config.h.in: Regenerate.
11772 * configure: Regenerate.
11773 * Makefile.in: Regenerate.
11774 * testsuite/Makefile.in: Regenerate.
11776 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11778 PR middle-end/35196
11779 * testsuite/libgomp.c/pr35196.c: New test.
11781 PR middle-end/35130
11782 * testsuite/libgomp.fortran/pr35130.f90: New test.
11783 * testsuite/libgomp.c/pr35130.c: New test.
11785 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11787 PR middle-end/33880
11788 * testsuite/libgomp.c/pr33880.c: New test.
11789 * testsuite/libgomp.fortran/pr33880.f90: New test.
11791 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11793 * configure: Regenerate.
11795 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11797 * configure.ac: Move futex checking into ../config/futex.m4.
11798 * configure: Rebuilt.
11799 * aclocal.m4: Rebuilt.
11800 * Makefile.in: Rebuilt.
11802 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11803 2007-10-15 ../config/tls.m4 change.
11805 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11808 * testsuite/libgomp.c/pr34513.c: New test.
11809 * testsuite/libgomp.c++/pr34513.C: New test.
11811 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11814 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11816 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11818 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11820 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11822 * testsuite/libgomp.c/private-1.c: New test.
11824 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11825 Paolo Bonzini <bonzini@gnu.org>
11827 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11828 instead of 'VPATH ='.
11829 * Makefile.in: Regenerate.
11831 2007-11-23 Matthias Klose <doko@ubuntu.com>
11833 * configure.ac: Adjust makeinfo version check.
11834 * configure: Regenerate.
11836 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11839 * testsuite/libgomp.fortran/pr34020.f90: New test.
11841 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11844 * testsuite/libgomp.c++/atomic-1.C: New test.
11846 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11849 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11850 Make x and y integers rather than (implicit) reals. Add private (j)
11851 clause to the last omp parallel.
11853 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11855 * configure: Regenerate following changes to ../config/tls.m4.
11857 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11859 * testsuite/libgomp.fortran/stack.f90: New test.
11861 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11863 * config/mingw32/proc.c: New file.
11865 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11867 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11868 (main): Use __get_cpuid to get i386 target fetaures.
11869 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11870 (main): Use __get_cpuid to get x86_64 target fetaures.
11872 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11875 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11876 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11878 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11881 * testsuite/libgomp.fortran/pr32550.f90: New test.
11882 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11884 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11886 * aclocal.m4: Regenerated.
11888 2007-07-05 Tobias Burnus <burnus@net-b.de>
11891 * testsuite/libgomp.fortran/pr32359.f90: New.
11893 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11896 * sections.c (GOMP_parallel_sections_start): Only decrease
11897 number of threads to COUNT if dyn_var is true.
11898 * testsuite/libgomp.c/pr32468.c: New test.
11900 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11903 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11905 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11907 PR middle-end/32362
11908 * testsuite/libgomp.c/pr32362-1.c: New test.
11909 * testsuite/libgomp.c/pr32362-2.c: New test.
11910 * testsuite/libgomp.c/pr32362-3.c: New test.
11912 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11914 * team.c (gomp_team_start): Fix setting up thread_attr
11917 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11919 * configure: Regenerate.
11921 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11923 * Makefile.in: Regenerate.
11924 * configure: Regenerate.
11925 * aclocal.m4: Regenerate.
11926 * testsuite/Makefile.in: Regenerate.
11928 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11930 * config/linux/proc.c: New file.
11933 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11935 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11937 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11939 2007-04-16 Matthias Klose <doko@debian.org>
11941 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11942 flags if not building with -m64.
11943 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11944 flag for i?86-*-* targets, if current target matches -m64.
11946 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11948 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11949 * Makefile.in: Regenerate.
11951 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11954 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11956 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11958 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11960 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11962 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11963 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11964 (parse_affinity): New function.
11965 (initialize_env): Call it and gomp_init_affinity.
11966 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11967 create new pthread_attr_t and call gomp_init_thread_affinity
11968 on it for each thread before passing the attribute to pthread_create.
11969 * config/linux/affinity.c: New file.
11970 * config/posix/affinity.c: New file.
11971 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11972 * configure: Rebuilt.
11973 * config.h.in: Rebuilt.
11974 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11975 * Makefile.in: Rebuilt.
11977 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11979 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11981 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11982 and use it if found.
11984 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11986 * testsuite/config/default.exp: New file.
11987 * testsuite/lib/libgomp.exp: New file.
11988 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11989 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11990 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11991 (libgomp_load): Remove.
11992 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11993 always_ld_library_path, not ld_library_path. Set additional_flags
11994 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11995 (target_compile): Do not call libgomp_init. Append lang_library_path
11996 and lang_link_flags to options.
11997 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11998 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12000 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12001 always_ld_library_path. Set LD_LIBRARY_PATH here.
12002 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12003 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12004 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12006 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12007 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12008 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12009 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12010 * testsuite/libgomp.c/atomic-10.c: Ditto.
12012 2007-03-21 Jakub Jelinek <jakub@redhat.com>
12014 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12015 dg-final cleanup-modules line.
12016 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12017 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12018 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12019 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12020 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12021 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12022 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12024 2007-03-18 Andreas Schwab <schwab@suse.de>
12026 * acinclude.m4: Adjust regular expression for ld version
12028 * configure: Regenerate.
12030 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12032 * Makefile.am: Add install-pdf target as copied from
12033 automake v1.10 rules.
12034 * Makefile.in: Regenerate
12036 2007-02-07 Jakub Jelinek <jakub@redhat.com>
12039 * configure: Regenerate.
12042 * testsuite/libgomp.c++/pr30703.C: New test.
12044 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12047 2006-07-05 Eric Christopher <echristo@apple.com>
12048 * configure.ac: Depend addition of -pthread on host OS.
12049 * configure: Regenerate.
12051 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12053 * libgomp.texi: Fix spacing after abbreviations.
12055 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
12058 * configure.ac: Add check for makeinfo
12059 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12060 if an appropriate version of makeinfo is found.
12061 * aclocal.m4: Regenerated.
12062 * configure: Regenerated.
12063 * Makefile.in: Regenerated.
12064 * testsuite/Makefile.in: Regenerated.
12066 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
12069 * libgomp.texi: More about implementation-dependent settings.
12071 2007-01-26 Tobias Burnus <burnus@net-b.de>
12073 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12075 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12077 PR middle-end/30494
12078 * testsuite/libgomp.c/pr30494.c: New test.
12080 2007-01-15 Tom Tromey <tromey@redhat.com>
12082 * configure: Rebuilt.
12083 * configure.ac: Fixed comment.
12085 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
12087 * libgomp.texi: Document implementation specific default values of
12088 environment variables.
12090 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
12093 * libgomp.texi: New file.
12094 * configure.ac: Add --enable-generated-files-in-srcdir option.
12095 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12097 * Makefile.in: Regenerated.
12098 * config.h.in: Regenerated.
12099 * testsuite/Makefile.in: Regenerated.
12102 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
12105 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12107 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12109 * configure: Regenerate.
12111 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12114 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12115 start if there shouldn't be any loop iterations.
12116 (gomp_loop_ordered_static_start): Remove start == end test.
12117 * testsuite/libgomp.c/pr29947-1.c: New test.
12118 * testsuite/libgomp.c/pr29947-2.c: New test.
12120 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12122 * configure.tgt: Force initial-exec TLS model on Linux only.
12124 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12126 * configure: Regenerated.
12128 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
12130 * env.c (parse_schedule): Reject out of range values.
12131 (parse_unsigned_long): Reject out of range, negative or zero values.
12133 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12136 * testsuite/libgomp.fortran/pr29629.f90: New test.
12138 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12141 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12142 * config/posix95: New directory.
12143 * config/posix95/omp-lock.h: New file.
12144 * config/posix95/lock.c: Likewise.
12146 2006-10-14 Geoffrey Keating <geoffk@apple.com>
12148 * aclocal.m4: Regenerate.
12149 * configure: Regenerate.
12151 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12153 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12156 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12158 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12160 * configure: Regenerate.
12161 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12163 2006-09-26 Jakub Jelinek <jakub@redhat.com>
12165 PR middle-end/25261
12166 PR middle-end/28790
12167 * testsuite/libgomp.c/nestedfn-4.c: New test.
12168 * testsuite/libgomp.c/nestedfn-5.c: New test.
12169 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12172 * testsuite/libgomp.fortran/condinc1.f: New test.
12173 * testsuite/libgomp.fortran/condinc2.f: New test.
12174 * testsuite/libgomp.fortran/condinc3.f90: New test.
12175 * testsuite/libgomp.fortran/condinc4.f90: New test.
12176 * testsuite/libgomp.fortran/condinc1.inc: New file.
12178 2006-09-18 Tom Tromey <tromey@redhat.com>
12180 * configure: Rebuilt.
12182 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12185 PR preprocessor/14634
12186 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12188 * configure: Regenerate.
12190 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12192 * testsuite/libgomp.fortran/reduction3.f90: Change
12193 -2147483648 to -huge(i)-1 to avoid overflow.
12194 * testsuite/libgomp.fortran/reduction4.f90: Change
12195 Z'ffffffff' to not(0) to avoid overflow.
12197 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12200 * Makefile.am (libsubincludedir): New.
12201 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12202 * Makefile.in: Regenerate.
12204 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12207 * env.c: Include ctype.h.
12208 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12209 leading and/or trailing whitespace and compare strings case
12212 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12215 * testsuite/libgomp.fortran/pr28390.f: New test.
12217 2006-07-05 Eric Christopher <echristo@apple.com>
12219 * configure.ac: Depend addition of -pthread on host OS.
12220 * configure: Regenerate.
12222 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12224 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12225 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12228 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12232 * configure.ac: If neither --enable-linux-futex nor
12233 --disable-linux-futex is passed, determine the default by checking
12234 for compiling and/or running against NPTL. With --enable-linux-futex,
12235 check if SYS_gettid and SYS_futex are defined.
12236 * configure: Rebuilt.
12238 2006-06-14 Richard Henderson <rth@redhat.com>
12241 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12242 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12244 2006-06-09 Richard Henderson <rth@redhat.com>
12246 * env.c (gomp_nthreads_var): Change to unsigned long.
12247 (gomp_run_sched_chunk): Likewise.
12248 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12249 (initialize_env): Initialize gomp_thread_attr.
12250 * libgomp.h (gomp_nthreads_var): Update decl.
12251 (gomp_run_sched_chunk): Likewise.
12252 (gomp_thread_attr): Declare.
12253 * team.c (gomp_thread_attr): Export.
12254 (initialize_team): Don't initialize it.
12256 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12259 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12260 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12262 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12264 * config/mingw32/time.c: New file.
12265 * configure.tgt: Use it.
12267 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12269 * Makefile.am: Add install-html target. Add install-html to .PHONY
12270 * Makefile.in: Regenerate.
12272 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12275 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12276 * testsuite/libgomp.c/critical-1.c: Likewise.
12277 * testsuite/libgomp.c/loop-1.c: Likewise.
12278 * testsuite/libgomp.c/loop-2.c: Likewise.
12279 * testsuite/libgomp.c/single-1.c: Likewise.
12280 * testsuite/libgomp.c/ordered-1.c: Likewise.
12281 * testsuite/libgomp.c/ordered-2.c: Likewise.
12283 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12285 PR middle-end/27416
12286 * libgomp.fortran/pr27416-1.f90: New test.
12288 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12291 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12292 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12294 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12297 * testsuite/libgomp.c/pr26943-1.c: New test.
12298 * testsuite/libgomp.c/pr26943-2.c: New test.
12299 * testsuite/libgomp.c/pr26943-3.c: New test.
12300 * testsuite/libgomp.c/pr26943-4.c: New test.
12301 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12302 * testsuite/libgomp.c++/pr26943.C: New test.
12304 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12306 PR middle-end/27337
12307 * testsuite/libgomp.c++/pr27337.C: New test.
12309 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12312 * testsuite/libgomp.c/pr26171.c: New test.
12314 2006-04-25 Richard Henderson <rth@redhat.com>
12317 * configure.ac: Use GCC_CHECK_TLS.
12318 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12319 * Makefile.in, aclocal.m4, configure: Regenerate.
12321 2006-04-10 Matthias Klose <doko@debian.org>
12323 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12324 directory names containing underscores.
12326 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12329 * testsuite/libgomp.c++/pr26691.C: New test.
12331 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12333 * testsuite/libgomp.fortran/retval2.f90: New test.
12335 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12337 * testsuite/libgomp.c++: New directory.
12339 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12341 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12342 * config/posix/sem.c: Implement the above.
12344 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12346 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12347 define HAVE_BROKEN_POSIX_SEMAPHORES.
12348 * configure: Rebuilt.
12349 * config.h.in: Rebuilt.
12351 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12354 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12355 for the other pthread check.
12356 * configure: Regenerate.
12357 * config.h.in: Regenerate.
12359 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12363 * Makefile.am (fincludedir): New variable.
12364 (nodist_include_HEADERS): Remove Fortran files.
12365 (nodist_finclude_HEADERS): New variable.
12366 * Makefile.in: Regenerated.
12368 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12370 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12371 Remove tests for returning assumed character length arrays.
12373 2006-02-12 Roger Sayle <roger@eyesopen.com>
12374 John David Anglin <dave@hiauly1.hia.nrc.ca>
12377 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12379 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12381 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12383 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12385 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12386 part of LD_LIBRARY_PATH manually.
12388 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12391 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12394 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12397 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12398 * configure.ac (PERL): Don't set.
12399 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12400 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12401 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12402 * omp.h.in: Wrap the new configure substitutions with @ characters.
12403 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12404 * aclocal.m4, configure, Makefile.in: Regenerate.
12405 * mkomp_h.pl: Delete.
12407 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12410 * configure.ac: Use GCC_HEADER_STDINT.
12411 * libgomp.h: Include gstdint.h.
12412 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12413 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12415 2006-01-24 Richard Henderson <rth@redhat.com>
12418 * configure.ac: Add AM_MAINTAINER_MODE.
12419 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12421 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12423 * Makefile.in: Regenerate.
12424 * testsuite/Makefile.in: Regenerate.
12425 * aclocal.m4: Regenerate.
12427 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12429 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12431 * configure.ac: Add check for loadavg.h.
12432 (link_gomp): Adjust comment.
12433 * configure: Regenerate.
12434 * config.h.in: Regenerate.
12436 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12439 * configure.ac: Remove check for alloca.h.
12440 * configure: Regenerate.
12441 * config.h.in: Regenerate.
12442 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12443 * team.c: Remove use of alloca.h.
12444 Call gomp_alloca instead of alloca.
12446 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12449 * team.c: Add include of alloca.h.
12450 * configure.ac: Add check for alloca.h.
12451 * configure: Regenerate.
12452 * config.h.in: Regenerate.
12454 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12457 * testsuite/libgomp.fortran/pr25219.f90: New test.
12459 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12461 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12462 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12463 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12464 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12465 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12466 testsuite/libgomp.fortran/threadprivate1.f90,
12467 testsuite/libgomp.fortran/threadprivate2.f90,
12468 testsuite/libgomp.fortran/threadprivate3.f90,
12469 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12470 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12471 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12472 effective-target to TLS runtime.
12474 * testsuite/libgomp.fortran/pr25162.f: Require
12475 effective-target TLS runtime.
12477 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12479 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12480 * testsuite/libgomp.c/nestedfn-3.c: New test.
12482 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12485 * testsuite/libgomp.fortran/pr25162.f: New test.
12487 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12489 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12490 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12492 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12494 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12495 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12496 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12497 single.c, team.c, work.c, config/linux/alpha/futex.h,
12498 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12499 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12500 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12501 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12502 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12503 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12504 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12507 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12509 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12510 to nodist_noinst_HEADERS.
12511 * Makefile.in: Rebuilt.
12513 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12514 add integer count field.
12515 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12516 omp_nest_lock_t type change.
12517 (omp_init_nest_lock): Likewise. Initialize count to 0.
12518 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12520 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12522 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12523 Increment count if successful and return the new nesting level.
12524 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12525 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12526 * testsuite/libgomp.c/lib-1.c: New test.
12527 * testsuite/libgomp.fortran/lib1.f90: New test.
12528 * testsuite/libgomp.fortran/lib2.f: New test.
12529 * testsuite/libgomp.fortran/lib3.f: New test.
12531 2005-11-17 Richard Henderson <rth@redhat.com>
12534 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12535 * configure.ac (link_gomp): New. Substitute it.
12536 (AC_CONFIG_FILES): Add libgomp.spec.
12537 * libgomp.spec.in: New file.
12538 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12539 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12541 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12543 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12544 reduction(-:var) behaving the same as reduction(+:var).
12545 * testsuite/libgomp.c/reduction-4.c: New test.
12547 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12549 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12550 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12551 testsuite/libgomp.c/copyin-3.c,
12552 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12553 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12554 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12555 testsuite/libgomp.c++/pr24455.C,
12556 testsuite/libgomp.fortran/threadprivate1.f90,
12557 testsuite/libgomp.fortran/threadprivate2.f90,
12558 testsuite/libgomp.fortran/threadprivate3.f90,
12559 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12560 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12561 testsuite/libgomp.fortran/omp_parse3.f90: Require
12562 effective-target TLS.
12564 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12568 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12571 * team.c (initialize_team): Pass NULL rather than free as
12572 pthread_key_create destructor. Initialize thread specific data
12573 pointer in initial thread to a static local variable rather than
12576 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12578 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12579 its location to ld_library_path.
12581 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12583 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12585 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12587 * testsuite/libgomp.c: Rename from libgomp.dg.
12589 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12591 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12592 threadprivate variable 'i'.
12594 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12596 * config/linux/s390/futex.h: New file.
12597 * configure.tgt: Use it.
12599 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12600 before the parallel.
12602 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12605 * testsuite/libgomp.c++/master-1.C: New test.
12607 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12609 * testsuite/libgomp.dg/copyin-3.c: New test.
12611 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12613 * testsuite/libgomp.fortran/retval1.f90: New test.
12614 * testsuite/libgomp.fortran/vla7.f90: New test.
12616 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12618 * testsuite/libgomp.fortran/vla2.f90: New test.
12619 * testsuite/libgomp.fortran/vla3.f90: New test.
12620 * testsuite/libgomp.fortran/vla4.f90: New test.
12621 * testsuite/libgomp.fortran/vla5.f90: New test.
12622 * testsuite/libgomp.fortran/vla6.f90: New test.
12624 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12626 * config/linux/sparc/futex.h: New file.
12627 * configure.tgt: Use it.
12628 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12630 * critical.c: Include stdlib.h.
12631 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12632 ignoring return value.
12633 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12634 LIBGOMP_CHECK_SYNC_BUILTINS check.
12635 * configure: Rebuilt.
12637 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12639 * testsuite/libgomp.fortran/vla1.f90: New test.
12641 2005-10-31 Richard Henderson <rth@redhat.com>
12643 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12644 setting 's' in different threads.
12646 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12648 * libgomp.h (attribute_hidden, ialias): Define.
12649 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12650 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12651 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12652 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12653 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12654 omp_test_lock, omp_test_nest_lock): Likewise.
12655 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12656 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12657 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12658 omp_test_lock, omp_test_nest_lock): Likewise.
12659 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12660 omp_get_dynamic, omp_get_nested): Likewise.
12661 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12662 omp_get_thread_num, omp_in_parallel): Likewise.
12663 * fortran.c (ialias_redirect): Define.
12664 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12665 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12666 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12667 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12668 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12669 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12670 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12671 omp_get_wtime): Add ialias_redirect.
12673 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12675 * fortran.c: Include stdlib.h.
12677 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12679 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12680 * Makefile.in: Regenerated.
12682 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12684 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12685 * libgomp_f.h.in (omp_check_defines): New function.
12686 * env.c: Include libgomp_f.h.
12687 (initialize_env): Call omp_check_defines.
12689 * testsuite/libgomp.dg/copyin-2.c: New test.
12690 * testsuite/libgomp.c++/copyin-2.C: New test.
12691 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12693 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12694 * testsuite/libgomp.fortran/sharing2.f90: New test.
12696 * testsuite/libgomp.dg/copyin-1.c: New test.
12697 * testsuite/libgomp.c++/copyin-1.C: New test.
12699 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12701 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12703 * testsuite/libgomp.fortran/workshare1.f90: New test.
12705 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12707 * libgomp.fortran/sharing1.f90: New test.
12709 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12712 * testsuite/libgomp.c++/loop-7.C: New test.
12714 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12716 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12717 * testsuite/libgomp.fortran/reduction6.f90: New test.
12718 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12720 2005-10-23 Richard Henderson <rth@redhat.com>
12722 * testsuite/libgomp.c++/ctor-1.C: New.
12723 * testsuite/libgomp.c++/ctor-2.C: New.
12724 * testsuite/libgomp.c++/ctor-3.C: New.
12725 * testsuite/libgomp.c++/ctor-4.C: New.
12726 * testsuite/libgomp.c++/ctor-5.C: New.
12727 * testsuite/libgomp.c++/ctor-6.C: New.
12728 * testsuite/libgomp.c++/ctor-7.C: New.
12729 * testsuite/libgomp.c++/ctor-8.C: New.
12730 * testsuite/libgomp.c++/ctor-9.C: New.
12732 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12735 * testsuite/libgomp.c++/pr24455-1.C: New test.
12736 * testsuite/libgomp.c++/pr24455.C: New test.
12737 * testsuite/libgomp.dg/pr24455-1.c: New test.
12738 * testsuite/libgomp.dg/pr24455.c: New test.
12740 2005-10-20 Richard Henderson <rth@redhat.com>
12742 * testsuite/libgomp.c++/loop-6.C: New.
12743 * testsuite/libgomp.dg/loop-3.c: New.
12745 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12747 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12748 explicitly private.
12749 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12752 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12754 * testsuite/libgomp.fortran/jacobi.f: New test.
12756 2005-10-19 Richard Henderson <rth@redhat.com>
12758 * configure.tgt (i?86-linux): Default to with_arch instead of
12759 CFLAGS. Add -mtune to match target_cpu.
12760 (x86_64-linux): Tune to i686.
12762 * fortran.c (omp_test_nest_lock_): Fix typo.
12764 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12766 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12767 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12768 * testsuite/libgomp.dg/ordered-3.c: New test.
12770 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12771 Remove volatile keyword.
12773 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12774 in COMMON block to avoid warnings on 64-bit targets.
12776 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12778 * testsuite/libgomp.dg/shared-3.c: New test.
12780 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12782 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12783 * testsuite/libgomp.fortran/reduction5.f90: New test.
12785 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12787 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12789 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12790 flush loop now that __sync_synchronize has proper memory barrier.
12791 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12792 Add -ffixed-form to dg-options.
12794 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12796 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12797 from subdirectories.
12798 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12799 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12800 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12801 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12802 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12803 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12804 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12805 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12806 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12807 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12808 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12809 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12810 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12811 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12812 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12813 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12814 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12815 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12816 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12817 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12818 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12819 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12820 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12821 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12822 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12824 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12826 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12827 lang_library_path exists. Use find instead of glob to gather tests.
12828 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12830 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12832 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12833 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12834 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12835 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12836 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12837 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12838 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12839 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12840 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12841 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12842 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12843 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12844 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12846 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12848 * testsuite/libgomp.dg/vla-1.c: New test.
12850 * testsuite/libgomp.fortran/reference2.f90: New test.
12852 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12853 declaration of omp_get_thread_num.
12854 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12857 * testsuite/libgomp.fortran/reduction1.f90: New test.
12858 * testsuite/libgomp.fortran/reduction2.f90: New test.
12859 * testsuite/libgomp.fortran/reduction3.f90: New test.
12860 * testsuite/libgomp.fortran/reduction4.f90: New test.
12862 2005-10-13 Richard Henderson <rth@redhat.com>
12864 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12865 * Makefile.in: Regenerate.
12866 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12867 * libgomp.h: Include bar.h.
12868 (struct gomp_barrier): Remove.
12869 (struct gomp_team): Add barrier. Replace master_barrier with
12870 master_release. Replace threads with ordered_release.
12871 (struct gomp_thread): Replace barrier with release.
12872 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12873 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12874 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12875 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12876 (GOMP_single_copy_end): Likewise.
12877 * team.c (gomp_threads_dock): New.
12878 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12879 (gomp_thread_start): Use gomp_barrier_wait.
12880 (new_team, free_team): Update for gomp_team changes.
12881 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12882 (gomp_team_end): Use gomp_barrier_wait.
12883 (initialize_team): Update for gomp_thread changes.
12884 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12885 (gomp_work_share_end_nowait): Use atomic ops when available.
12886 * config/linux/bar.c, config/linux/bar.h: New files.
12887 * config/posix/bar.c, config/posix/bar.h: New files.
12889 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12891 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12892 * testsuite/libgomp.dg/single-2.c: New test.
12894 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12895 lang_link_flags): Unset, so that they aren't inherited from previously
12898 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12900 2005-10-12 Richard Henderson <rth@redhat.com>
12902 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12903 (libgomp_init): Use lang_test_file, lang_library_path, and
12904 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12906 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12907 (lang_test_file, lang_link_flags): New.
12908 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12910 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12911 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12912 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12913 testsuite/libgomp.c++/parallel-1.C,
12914 testsuite/libgomp.c++/reduction-1.C,
12915 testsuite/libgomp.c++/reduction-2.C,
12916 testsuite/libgomp.c++/reduction-3.C,
12917 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12918 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12919 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12920 New files, largely cribbed from the C testsuite.
12922 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12924 * testsuite/libgomp.fortran/character1.f90: New test.
12925 * testsuite/libgomp.fortran/character2.f90: New test.
12927 * testsuite/libgomp.dg/nested-1.c: New test.
12928 * testsuite/libgomp.dg/nested-2.c: New test.
12929 * testsuite/libgomp.fortran/do1.f90: New test.
12930 * testsuite/libgomp.fortran/do2.f90: New test.
12932 * testsuite/libgomp.fortran/reference1.f90: New test.
12934 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12936 * testsuite/libgomp.dg/reduction-1.c: New test.
12937 * testsuite/libgomp.dg/reduction-2.c: New test.
12938 * testsuite/libgomp.dg/reduction-3.c: New test.
12940 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12942 * testsuite/libgomp.dg/atomic-1.c: New test.
12943 * testsuite/libgomp.dg/atomic-2.c: New test.
12945 2005-10-09 Richard Henderson <rth@redhat.com>
12947 * critical.c (atomic_lock): New.
12948 (initialize_critical): Initialize it.
12949 (GOMP_atomic_start, GOMP_atomic_end): New.
12950 * libgomp.map: Export them.
12951 * libgomp_g.h: Declare them.
12953 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12955 2005-10-02 Richard Henderson <rth@redhat.com>
12957 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12958 to XCFLAGS instead of CFLAGS.
12960 2005-09-30 Richard Henderson <rth@redhat.com>
12962 * configure.ac: Determine whether -pthread or -lpthread is needed.
12963 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12964 * Makefile.in, configure: Rebuild.
12966 2005-09-28 Richard Henderson <rth@redhat.com>
12968 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12969 * testsuite/libgomp.dg/omp-single-3.c: New test.
12971 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12973 * testsuite/libgomp.dg/omp-single-2.c: New test.
12974 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12976 2005-09-27 Richard Henderson <rth@redhat.com>
12978 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12979 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12981 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12983 * testsuite/libgomp.dg/omp-loop03.c: New test.
12985 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12987 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12989 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12991 * testsuite/libgomp.dg/omp-single-1.c: New test.
12992 * testsuite/libgomp.dg/shared-1.c: Return 0.
12993 Add prototype for abort.
12994 * testsuite/libgomp.dg/shared-2.c: Likewise.
12996 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12998 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13001 2005-09-26 Diego Novillo <dnovillo@redhat.com>
13003 * testsuite/libgomp.dg/shared-1.c: New test.
13004 * testsuite/libgomp.dg/shared-2.c: New test.
13006 2005-09-24 Richard Henderson <rth@redhat.com>
13008 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13010 2005-09-24 Richard Henderson <rth@redhat.com>
13012 * iter.c (gomp_iter_static_next): Round up when computing number
13013 of iterations. Don't bother distributing a remainder equally.
13015 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13016 Don't call srand. Zero b before testing.
13019 2005-09-24 Jakub Jelinek <jakub@redhat.com>
13021 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13022 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13024 2005-09-23 Jakub Jelinek <jakub@redhat.com>
13026 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13027 without !$omp end do, followed immediately by subroutine end.
13029 2005-09-23 Diego Novillo <dnovillo@redhat.com>
13031 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13033 2005-09-22 Richard Henderson <rth@redhat.com>
13035 * critical.c (GOMP_critical_name_start): Change argument to void**.
13036 Reuse the pointer space if the mutex fits.
13037 (GOMP_critical_name_end): Likewise.
13038 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13039 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13040 (GOMP_critical_name_end): Likewise.
13041 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13042 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13044 2005-09-20 Richard Henderson <rth@redhat.com>
13046 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13047 (create_lock_lock): New.
13048 (initialize_critical): Initialize it.
13049 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13050 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13052 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13054 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13056 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13058 * testsuite/libgomp.dg/omp-loop01.c: New test.
13059 * testsuite/libgomp.dg/omp-loop02.c: New test.
13061 2005-09-20 Jakub Jelinek <jakub@redhat.com>
13063 * configure.ac (AC_PROG_FC): Add.
13064 (USE_FORTRAN): New automake conditional.
13065 * configure: Rebuilt.
13066 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13067 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13068 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13069 Add rules to build them.
13070 * Makefile.in: Rebuilt.
13071 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13072 OMP_NEST_LOCK_KIND.
13073 * libgomp.map: Add Fortran wrappers.
13074 * libgomp_f.h.in: New file.
13075 * omp_lib.h.in: New file.
13076 * omp_lib.f90.in: New file.
13077 * fortran.c: New file.
13078 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13079 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13080 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13081 libgfortran has been built.
13082 * testsuite/libgomp.fortran/fortran.exp: New file.
13083 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13084 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13085 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13086 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13087 * testsuite/libgomp.fortran/omp_hello.f: New test.
13088 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13089 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13090 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13091 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13092 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13093 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13094 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13095 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13097 2005-08-30 Richard Henderson <rth@redhat.com>
13099 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13100 function for when aliases are not usable.
13101 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13102 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13103 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13104 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13105 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13106 GOMP_loop_ordered_guided_next): Likewise.
13107 * ordered.c (GOMP_ordered_start): Likewise.
13109 2005-08-01 Diego Novillo <dnovillo@redhat.com>
13111 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13112 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13113 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13114 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13115 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13116 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13117 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13118 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13119 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13121 2005-07-07 Eric Christopher <echristo@redhat.com>
13122 Diego Novillo <dnovillo@redhat.com>
13124 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13125 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13127 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13128 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13129 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13130 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13131 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13132 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13133 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13135 2005-06-13 Diego Novillo <dnovillo@redhat.com>
13137 * TOPLEVEL.patch: Remove.
13139 2005-05-16 Richard Henderson <rth@redhat.com>
13141 * configure.ac: Test for clock_gettime.
13142 * config.h.in, configure: Rebuild.
13143 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13144 (omp_get_wtime): Use clock_gettime if available.
13145 (omp_get_wtick): Use clock_getres if available.
13147 2005-05-11 Richard Henderson <rth@redhat.com>
13149 * config/linux/ia64/futex.h: New file.
13150 * configure.tgt: Use it.
13152 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13154 2005-05-07 Richard Henderson <rth@redhat.com>
13156 * config/linux/powerpc/futex.h: New file.
13157 * configure.tgt: Use it.
13159 * config/linux/i486/futex.h: Merge ...
13160 * config/linux/x86_64/futex.h: ... into ...
13161 * config/linux/x86/futex.h: ... here.
13162 * configure.tgt: Update to match.
13164 2005-05-06 Richard Henderson <rth@redhat.com>
13166 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13167 * config/linux/i486/futex.h: Likewise.
13168 * config/linux/x86_64/futex.h: Likewise.
13170 * config/linux/lock.c: New file.
13171 * config/linux/omp-lock.h: New file.
13173 * critical.c, env.h: Don't include omp.h
13174 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13175 * config/posix/time.c: Likewise.
13176 * config/posix/omp-lock.h: New file.
13177 * libgomp.h: Include omp-lock.h and omp.h.
13178 * Makefile.am (nodist_include_HEADERS): New.
13180 * configure.ac (PERL): New.
13181 * mkomp_h.pl: New file.
13182 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13184 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13186 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13187 build directory. Re-add -march=i486 hack.
13189 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13190 (libgomp_link_flags): Remove.
13191 (libgomp_initialized): Remove.
13192 (libgomp_init): Don't protect from reinitialization. Copy code
13193 from libstdc++ for getting the multilib set correctly.
13195 2005-05-05 Richard Henderson <rth@redhat.com>
13197 * config/linux/alpha/futex.h: New file.
13198 * configure.tgt (alpha*-*-linux*): Use it.
13200 * config/posix/mutex.c: New file.
13201 * config/posix/sem.c: Use libgomp.h.
13203 * configure.tgt (x86_64-linux): Also test CC for -m32.
13204 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13206 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13209 * Makefile.am (SUBDIRS): New.
13210 (libgomp_la_LDFLAGS): Add -lpthread.
13211 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13212 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13214 * libgomp_g.h: New file.
13215 * libgomp.h: Split out all public declarations to libgomp_g.h.
13216 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13217 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13218 * config/linux/sem.h: Likewise.
13219 * config/posix/sem.h: Likewise.
13221 * Makefile.am (AM_LDFLAGS): New.
13222 (libgomp_version_script): Split out from ...
13223 (libgomp_la_LDFLAGS): ... here.
13224 (libgomp_version_info): New.
13225 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13226 (LIBGOMP_ENABLE): New.
13227 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13228 (LIBGOMP_ENABLE_SYMVERS): New.
13229 * configure.ac (AC_INIT): Version 1.0.
13230 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13231 (enable-linux-futex): Likewise. Rename from enable-futex.
13232 (libtool_VERSION): New.
13233 (LIBGOMP_ENABLE_SYMVERS): Use it.
13234 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13235 * Makefile.in, aclocal.m4, configure: Rebuild.
13237 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13238 (gomp_mutex_unlock_slow): Fix typo.
13239 * config/linux/sem.c: Similarly.
13240 (gomp_sem_post_slow): Fix typo.
13241 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13242 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13243 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13245 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13246 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13247 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13248 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13249 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13250 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13251 LDFLAGS. Pull enable_futex check to top-level.
13252 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13253 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13255 First attempt at real configury.
13256 * Makefile, config.h: Remove file.
13257 * Makefile.am, Makefile.in: New file.
13258 * acinclude.m4 aclocal.m4: New file.
13259 * configure.ac, configure.tgt, configure: New file.
13261 * config/posix/lock.c: Rename from sys-lock.c.
13262 * config/posix/mutex.h: Rename from sys-mutex.h.
13263 * config/posix/sem.c: Rename from sys-sem.c.
13264 * config/posix/sem.h: Rename from sys-sem.h.
13265 * config/posix/proc.c: Rename from sys-proc.c.
13266 * config/posix/time.c: Rename from sys-proc.c.
13268 * config/linux/mutex.c: New file.
13269 * config/linux/mutex.h: New file.
13270 * config/linux/sem.c: New file.
13271 * config/linux/sem.h: New file.
13272 * config/linux/i486/futex.h: New file.
13273 * config/linux/x86_64/futex.h: New file.
13275 2005-05-04 Richard Henderson <rth@redhat.com>
13277 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13278 * libgomp.h: Declare them.
13279 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13280 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13282 2005-05-04 Richard Henderson <rth@redhat.com>
13284 * libgomp-1 code drop
13286 2005-05-04 Richard Henderson <rth@redhat.com>
13288 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13289 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13290 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13291 (gomp_iter_static_next): Update.
13292 (gomp_ordered_static_next): Update.
13293 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13294 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13295 totally empty range.
13296 (gomp_loop_ordered_static_next): Refine test for calling
13297 gomp_ordered_static_next.
13298 * testsuite/ordered-1.c: Add case for more threads than iterations.
13300 * iter.c (gomp_iter_runtime_next_locked): Remove.
13301 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13302 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13303 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13304 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13305 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13306 gomp_loop_ordered_guided_next): Downcase name, make static, add
13307 an external alias with the old name.
13308 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13309 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13310 switch and call one of the above static functions.
13311 * libgomp.h: Update.
13313 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13314 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13315 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13316 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13317 GOMP_loop_ordered_guided_start): Update to match.
13318 * sections.c (GOMP_sections_start): Likewise.
13319 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13321 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13322 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13323 Use bounds check instead of modulus.
13324 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13325 (gomp_ordered_last): Don't sync with ordered_owner here.
13326 (gomp_ordered_next): Likewise.
13327 (gomp_ordered_static_loop_next): Likewise.
13328 * loop.c, libgomp.h: Update to match.
13330 * libgomp.h (GOMP_barrier): Declare.
13332 * testsuite/barrier-1.c: New file.
13333 * testsuite/critical-1.c: New file.
13334 * testsuite/ordered-2.c: New file.
13335 * testsuite/ordered-1.c: New file.
13336 * testsuite/sections-1.c: New file.
13337 * testsuite/single-1.c: New file.
13338 * testsuite/Makefile (TESTS): Add them.
13340 2005-05-04 Richard Henderson <rth@redhat.com>
13342 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13343 * loop.c (GOMP_loop_static_start): If not the startup thread,
13344 acquire the mutex to wait for initialization complete.
13345 (GOMP_loop_ordered_static_start): Likewise.
13346 (GOMP_loop_ordered_runtime_start): Likewise.
13347 (GOMP_loop_ordered_static_first): Remove.
13348 (GOMP_loop_ordered_dynamic_first): Remove.
13349 (GOMP_loop_ordered_guided_first): Remove.
13350 (GOMP_loop_ordered_runtime_first): Remove.
13351 * ordered.c (gomp_ordered_loop_first): Post to own release when
13352 we're the first thread.
13353 (gomp_ordered_loop_last): Wait on release if not owner.
13354 (gomp_ordered_loop_next): Likewise.
13355 (gomp_ordered_static_loop_init): New.
13356 (gomp_ordered_static_loop_next): Use ordered_owner.
13357 (GOMP_ordered_start): Likewise.
13358 * work.c (gomp_new_work_share): Initialize ordered_owner.
13360 2005-05-03 Richard Henderson <rth@redhat.com>
13362 * Makefile (OPT): New.
13365 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13366 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13367 * libgomp.h, libgomp.map, NOTES: Update to match.
13369 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13370 Add initialized and thr members.
13371 (gomp_thread_start): Pause when initially spawned to wait for
13372 the whole team to be created.
13373 (gomp_team_start): Release team members at the end.
13375 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13376 (f_foo_1): Use GOMP_loop_end.
13377 (f_foo_2): Use GOMP_loop_end_nowait.
13379 * testsuite/loop-2.c: New file.
13380 * testsuite/Makefile (TESTS): Add it.
13382 2005-05-03 Richard Henderson <rth@redhat.com>
13384 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13385 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13386 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13387 initial work_share.
13389 * testsuite/Makefile: New file.
13390 * testsuite/loop-1.c: New file.
13392 2005-05-03 Richard Henderson <rth@redhat.com>
13394 Initial implementation and checkin.
13396 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13398 Copying and distribution of this file, with or without modification,
13399 are permitted in any medium without royalty provided the copyright
13400 notice and this notice are preserved.