1 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
3 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
4 (f75, f80, f): Add '__attribute__ ((noipa))'.
5 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
6 (gfx908, gfx90a, f): Likewise.
8 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
9 Andrew Jenner <andrew@codesourcery.com>
11 * plugin/plugin-gcn.c (max_isa_vgprs): New.
12 (run_kernel): CDNA2 devices have more VGPRs.
14 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
16 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
17 renamed section from TR11.
19 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
21 * config/linux/target-indirect.c: Move to...
22 * target-indirect.c: ...here.
24 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
26 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
27 * Makefile.in: Regenerate.
28 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
29 (GOMP_OFFLOAD_load_image): Add extra argument.
30 * libgomp.h (struct indirect_splay_tree_key_s): New.
31 (indirect_splay_tree_node, indirect_splay_tree,
32 indirect_splay_tree_key): New.
33 (indirect_splay_compare): New.
34 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
35 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
36 calls in target region and on indirect clause.
37 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
38 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
39 * oacc-host.c (host_load_image): Add extra argument.
40 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
41 enough, read host indirect functions table and pass to
43 * config/accel/target-indirect.c: New.
44 * config/linux/target-indirect.c: New.
45 * config/gcn/team.c (build_indirect_map): Add prototype.
46 (gomp_gcn_enter_kernel): Initialize support for indirect
47 function calls on GCN target.
48 * config/nvptx/team.c (build_indirect_map): Add prototype.
49 (gomp_nvptx_main): Initialize support for indirect function
50 calls on NVPTX target.
51 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
52 indirect functions count.
53 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
54 is high enough, build address translation table and copy it to target
56 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
58 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
59 is high enough, Build address translation table and copy it to target
61 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
62 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
63 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
65 2023-11-05 Jakub Jelinek <jakub@redhat.com>
67 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
70 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
72 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
73 'acc_map_data' variant.
75 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
77 * oacc-parallel.c (GOACC_data_start): Handle
78 'GOACC_FLAG_LOCAL_DEVICE'.
79 (GOACC_parallel_keyed): Simplify accordingly.
80 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
82 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
84 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
85 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
86 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
87 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
88 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
90 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
92 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
93 GOACC_FLAG_LOCAL_DEVICE case.
94 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
96 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
98 * Makefile.am: Handle Darwin rpaths.
99 * Makefile.in: Regenerate.
100 * configure: Regenerate.
101 * configure.ac: Handle Darwin rpaths
103 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
105 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
106 (isa_hsa_name): Recognise gfx1030.
107 (isa_code): Likewise.
108 * team.c (defined): Remove s_endpgm.
110 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
112 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
115 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
117 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
118 improve wording especially for Fortran; mention -fopenmp-simd.
119 (Enabling OpenACC): Minor cleanup; remove conditional compilation
122 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
124 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
125 Actually document what the function does.
126 (GCC_ACC_NOTIFY): Remove unused env var.
128 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
130 * libgomp.texi: Replace most future tense by present tense.
132 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
134 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
135 dg-additional-options "-fdump-tree-gimple"; fix scan.
137 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
139 * libgomp.texi: Fix some typos.
140 (Memory Management Routines): Document remaining 5.x routines.
141 (Memory allocation): Make clear when the section applies.
143 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
145 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
146 supports the allocate directive for stack variables.
147 * testsuite/libgomp.fortran/allocate-5.f90: New test.
148 * testsuite/libgomp.fortran/allocate-6.f90: New test.
149 * testsuite/libgomp.fortran/allocate-7.f90: New test.
150 * testsuite/libgomp.fortran/allocate-8.f90: New test.
152 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
154 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
156 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
157 clarify MANDATORY behavior.
159 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
161 * env.c (initialize_env): Use do_adjust_default_spincount.
162 * config/linux/x86/spincount.h: New file.
164 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
166 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
168 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
170 * libgomp.texi (Device Memory Routines): New.
172 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
174 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
175 and that other target archs have no 'arch'/'isa' traits implemented.
177 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
179 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
180 implemented for C only.
181 * testsuite/libgomp.c/allocate-4.c: New test.
182 * testsuite/libgomp.c/allocate-5.c: New test.
183 * testsuite/libgomp.c/allocate-6.c: New test.
185 2023-09-20 Jakub Jelinek <jakub@redhat.com>
188 * libgomp.texi: Mark decl attribute was added to the C++ attribute
189 syntax as implemented.
191 2023-09-19 Jakub Jelinek <jakub@redhat.com>
194 * env.c (initialize_env): Don't dereference environ if it is NULL.
197 2023-09-18 Richard Biener <rguenther@suse.de>
199 PR tree-optimization/111294
200 * team.c (gomp_team_start): Assert alloca size to avoid false
201 positive alloc-size diagnostic.
203 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
204 Chung-Lin Tang <cltang@codesourcery.com>
208 * configure.ac: Revert earlier changes, instead
209 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
210 * Makefile.in: Regenerate.
211 * configure: Likewise.
212 * testsuite/Makefile.in: Likewise.
213 * testsuite/lib/libgomp.exp (libgomp_init): Remove
214 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
215 If '--with-build-sysroot=[...]' was specified, use it for
217 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
218 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
219 (SYSROOT_CFLAGS_FOR_TARGET): Set.
220 * testsuite/libgomp.c++/c++.exp (lang_source_re)
221 (lang_include_flags): Set for build-tree testing.
222 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
223 (lang_include_flags): Likewise.
225 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
227 * libgomp.texi (Memory Management Routines): New; add documentation for
228 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
229 omp_get_default_allocator.
230 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
232 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
234 * target.c (gomp_unload_device): Remove tailing whitespace.
236 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
237 Thomas Schwinge <thomas@codesourcery.com>
239 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
241 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
243 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
245 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
247 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
248 * testsuite/libgomp.fortran/imperfect1.f90: New.
249 * testsuite/libgomp.fortran/imperfect2.f90: New.
250 * testsuite/libgomp.fortran/imperfect3.f90: New.
251 * testsuite/libgomp.fortran/imperfect4.f90: New.
252 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
253 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
254 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
255 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
257 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
259 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
260 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
261 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
262 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
263 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
264 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
265 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
266 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
267 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
268 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
270 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
272 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
273 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
274 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
275 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
276 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
277 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
278 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
279 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
280 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
281 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
282 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
283 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
284 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
286 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
288 * testsuite/lib/libgomp.exp: Add effective target.
289 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
292 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
294 * libgomp.texi (OpenMP 5.2 status): Add depobj with
295 destroy-var argument as 'N'. Mark defaultmap with
296 'all' category as 'Y'.
298 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
301 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
303 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
306 * allocator.c (gomp_init_libnuma): Call numa_available; if
307 not available or not returning 0, disable libnuma usage.
309 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
311 * configure: Regenerate.
313 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
315 * configure: Regenerate.
317 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
319 * configure: Regenerate.
321 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
323 * configure: Regenerate.
325 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
327 * configure: Regenerate.
329 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
331 * configure: Regenerate.
333 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
335 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
336 GOMP_OFFLOAD_CAP_SHARED_MEM.
337 (omp_target_memcpy_rect_copy): Likewise for lock condition.
338 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
340 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
341 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
342 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
344 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
346 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
347 GOMP_OFFLOAD_memcpy3d): New prototypes.
348 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
350 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
351 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
352 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
353 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
354 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
355 GOMP_OFFLOAD_memcpy3d): New.
356 * target.c (omp_target_memcpy_rect_worker):
357 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
358 Permit all device-to-device copyies; invoke new plugins for
359 2D and 3D copying when available.
360 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
361 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
362 * testsuite/libgomp.fortran/target-12.f90: Likewise.
363 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
365 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
367 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
368 (Tasking Routines): Document omp_in_explicit_task.
369 (Implementation-defined ICV Initialization): Use @ref not @code.
371 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
373 * libgomp.texi (OpenMP Runtime Library Routines):
374 Split long list by adding sections and moving routines there.
375 (OMP_ALLOCATORS): Fix typo.
377 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
380 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
381 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
383 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
384 test file; tests are in non-rectangular-loop-1.f90.
385 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
386 testcase to use a non-constant step to retain the 'sorry' test.
387 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
389 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
390 Chung-Lin Tang <cltang@codesourcery.com>
392 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
393 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
395 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
397 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
398 the traits. Add crossref to 'Memory allocation'.
399 (Memory allocation): Refer to OMP_ALLOCATOR for the available
400 traits and allocators/mem spaces; document the default value
401 for the pool_size trait.
403 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
405 * allocator.c (omp_init_allocator): Check whether symbol from
406 dlopened libnuma is available before using libnuma for
409 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
411 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
412 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
413 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
415 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
417 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
418 'Memory allocation' section which contains the full status.
419 (TR11): Remove differently worded duplicated entry.
421 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
423 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
424 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
425 add GOMP_MEMKIND_LIBNUMA.
426 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
427 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
428 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
429 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
431 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
432 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
433 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
434 updated for libnuma usage.
435 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
436 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
438 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
440 * allocator.c (omp_init_allocator): Use malloc for
441 omp_high_bw_mem_space when the memkind lib is unavailable
442 instead of returning omp_null_allocator.
443 * libgomp.texi (OpenMP 5.0): Fix typo.
444 (Memory allocation with libmemkind): Document implementation
447 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
449 * libgomp.texi: Use @var for ICV vars.
450 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
451 document which ICV is set and which scope the ICV has; extend/cleanup
453 (Implementation-defined ICV Initialization): New.
454 (nvptx): Document the implementation-defined used per-warp stack size.
456 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
458 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
461 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
463 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
464 as expected dg-output.
466 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
469 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
470 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
471 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
472 * testsuite/libgomp.c/target-19.c: Update expected value.
473 * testsuite/libgomp.c++/target-18.C: Likewise.
474 * testsuite/libgomp.c++/target-19.C: Likewise.
475 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
476 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
477 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
479 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
481 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
482 gomp_init_targets_once was called before using default-device-var.
483 * testsuite/libgomp.c/target-55.c: New test.
484 * testsuite/libgomp.c/target-55a.c: New test.
486 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
488 * env.c (gomp_def_allocator_envvar): New var.
489 (parse_allocator): Handle OpenMP 5.1 syntax.
491 (omp_display_env): Output gomp_def_allocator_envvar
492 for an allocator with traits.
493 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
494 OMP_DISPLAY_AFFINITY): New.
495 * testsuite/libgomp.c/allocator-1.c: New test.
496 * testsuite/libgomp.c/allocator-2.c: New test.
497 * testsuite/libgomp.c/allocator-3.c: New test.
498 * testsuite/libgomp.c/allocator-4.c: New test.
499 * testsuite/libgomp.c/allocator-5.c: New test.
500 * testsuite/libgomp.c/allocator-6.c: New test.
502 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
504 * target.c (resolve_device): Align a
505 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
506 * testsuite/libgomp.c/target-51.c: Adjust.
508 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
510 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
512 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
514 * testsuite/libgomp.c/simd-math-1.c: Remove
515 '-foffload-options=-lm'.
516 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
518 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
521 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
523 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
524 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
527 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
529 * testsuite/libgomp.c/target-51.c: Fix typo.
531 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
533 * env.c (gomp_default_icv_values): Init default_device_var to
534 an nonconforming value - INT_MIN.
535 (initialize_env): After env-var parsing, set default_device_var to
536 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
537 (omp_display_env): If default_device_var is INT_MIN, call
538 gomp_init_targets_once.
539 * icv-device.c (omp_get_default_device): Likewise.
540 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
541 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
542 * target.c (resolve_device): Improve error message device-num < 0
543 with 'mandatory' and no no-host devices available.
544 (gomp_target_init): Set default-device-var if INT_MIN.
545 * testsuite/libgomp.c/target-48.c: New test.
546 * testsuite/libgomp.c/target-49.c: New test.
547 * testsuite/libgomp.c/target-50.c: New test.
548 * testsuite/libgomp.c/target-50a.c: New test.
549 * testsuite/libgomp.c/target-51.c: New test.
550 * testsuite/libgomp.c/target-52.c: New test.
551 * testsuite/libgomp.c/target-53.c: New test.
552 * testsuite/libgomp.c/target-54.c: New test.
554 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
557 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
558 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
560 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
562 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
563 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
564 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
566 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
567 changed error message.
568 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
569 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
570 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
571 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
572 extend testcase to check that data is copied when needed.
573 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
574 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
576 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
577 Tobias Burnus <tobias@codesourcery.com>
579 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
580 also for non-offload_device targets; check that it runs
581 successfully for those and for all until a checkpoint for all
582 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
583 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
584 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
585 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
586 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
587 add missing vars to map clause.
589 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
591 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
592 unified_address requirement as supported.
593 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
594 'unified_address' from the not-supported requirements.
596 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
597 Tobias Burnus <tobias@codesourcery.com>
599 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
600 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
601 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
603 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
604 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
605 Emit runtime error if memory region not present.
606 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
607 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
608 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
609 * testsuite/libgomp.fortran/target-present-1.f90: New test.
610 * testsuite/libgomp.fortran/target-present-2.f90: New test.
611 * testsuite/libgomp.fortran/target-present-3.f90: New test.
613 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
616 * testsuite/lib/libgomp.exp: 'flock' through stdout.
617 * testsuite/flock: New.
618 * configure.ac (FLOCK): Point to that if no 'flock' available, but
620 * configure: Regenerate.
622 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
624 * configure.ac (PERL): Remove.
625 * configure: Regenerate.
626 * Makefile.in: Likewise.
627 * testsuite/Makefile.in: Likewise.
629 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
631 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
633 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
635 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
637 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
640 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
641 * config/nvptx/target.c (GOMP_teams4): Likewise.
642 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
643 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
644 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
645 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
647 2023-05-19 Jakub Jelinek <jakub@redhat.com>
650 * configure.ac (link_gomp): Include also $DL_LIBS.
651 * configure: Regenerated.
653 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
655 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
657 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
658 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
659 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
660 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
662 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
665 * configure.ac: Look for 'flock'.
666 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
667 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
668 * testsuite/lib/libgomp.exp: ... but here, instead.
669 (libgomp_load): Override for parallel testing.
670 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
671 * configure: Regenerate.
672 * Makefile.in: Regenerate.
673 * testsuite/Makefile.in: Regenerate.
675 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676 Thomas Schwinge <thomas@codesourcery.com>
679 * testsuite/Makefile.am (PWD_COMMAND): New variable.
680 (%/site.exp): New target.
681 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
682 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
683 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
685 (check_DEJAGNU_libgomp_targets): New variables.
686 ($(check_DEJAGNU_libgomp_targets)): New target.
687 ($(check_DEJAGNU_libgomp_targets)): New dependency.
688 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
689 * testsuite/Makefile.in: Regenerate.
690 * testsuite/lib/libgomp.exp: For parallel testing,
691 'load_file ../libgomp-test-support.exp'.
693 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
696 * configure.ac: 'AC_SUBST(CXX)'.
697 * configure: Regenerate.
698 * Makefile.in: Likewise.
699 * testsuite/Makefile.in: Likewise.
700 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
701 (GFORTRAN_UNDER_TEST): Set.
702 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
703 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
704 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
705 * testsuite/libgomp.fortran/fortran.exp: Use
706 'GFORTRAN_UNDER_TEST'.
707 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
709 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
712 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
714 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
715 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
716 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
717 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
719 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
720 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
721 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
724 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
727 * testsuite/libgomp.c++/target-map-class-1.C: New test.
728 * testsuite/libgomp.c++/target-map-class-2.C: New test.
730 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
732 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
733 'lang_library_path' into a list of 'lang_library_paths'.
734 * testsuite/libgomp.c++/c++.exp: Adjust.
735 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
736 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
738 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
740 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
742 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
743 at 'lang_test_file_found'.
744 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
745 'return' early if not able to test. Simplify 'ld_library_path' setup.
746 * testsuite/libgomp.fortran/fortran.exp: Likewise.
747 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
748 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
750 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
752 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
754 * testsuite/libgomp.fortran/fortran.exp: Likewise.
755 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
756 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
758 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
760 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
761 * testsuite/libgomp.c/c.exp: Likewise.
762 * testsuite/libgomp.fortran/fortran.exp: Likewise.
763 * testsuite/libgomp.graphite/graphite.exp: Likewise.
764 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
765 * testsuite/libgomp.oacc-c/c.exp: Likewise.
766 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
768 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
770 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
771 * testsuite/libgomp.fortran/fortran.exp: Likewise.
772 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
773 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
774 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
776 * testsuite/libgomp.oacc-c/c.exp: Likewise.
777 * testsuite/libgomp.graphite/graphite.exp: Likewise.
778 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
779 'lang_test_file_found' instead of 'lang_test_file'.
781 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
783 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
785 * testsuite/libgomp.c++/c++.exp: Likewise.
786 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
788 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
790 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
791 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
793 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
795 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
796 of 'libstdcxx_includes'.
797 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
799 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
801 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
802 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
803 * libgomp.h (gomp_target_rev): Adjust.
804 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
805 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
806 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
807 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
808 (rev_off_host_to_dev_cpy): Remove.
809 (GOMP_OFFLOAD_run): Adjust.
811 2023-05-04 Julian Brown <julian@codesourcery.com>
814 * testsuite/libgomp.fortran/pr109622.f90: Move test...
815 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
816 vector length warning.
817 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
818 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
819 missing copyin/copyout variable. Ignore vector length warnings.
820 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
821 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
822 vector length warnings.
823 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
825 2023-04-28 Julian Brown <julian@codesourcery.com>
828 * testsuite/libgomp.fortran/pr109622.f90: New test.
829 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
830 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
832 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
834 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
835 * testsuite/libgomp.c/scan-23.c: New test.
836 * testsuite/libgomp.fortran/scan-2.f90: New test.
838 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
840 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
841 weak_undefined options.
843 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
845 * libgomp.texi (Offload-Target Specifics): Grammar fix.
847 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
850 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
853 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
856 * target.c (gomp_map_vars_internal): Allow for
857 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
858 * oacc-parallel.c (GOACC_parallel_keyed): Pass
859 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
860 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
861 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
863 (gomp_offload_free): Remove.
864 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
865 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
866 (cuda_free_argmem): Remove.
867 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
870 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
872 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
873 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
876 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
878 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
879 'GOMP_MAP_IF_PRESENT'.
880 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
881 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
882 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
883 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
884 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
886 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
888 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
890 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
893 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
895 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
896 another aspect of OpenACC 'async' semantics.
898 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
900 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
902 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
903 Verify 'acc_ev_alloc', 'acc_ev_free'.
905 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
908 * env.c (wait_policy): Initialize to -1.
909 (initialize_icvs): Initialize icvs->wait_policy to -1.
910 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
912 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
914 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
916 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
917 Paul-Antoine Arras <pa@codesourcery.com>
919 * testsuite/libgomp.c/simd-math-1.c: New testcase.
921 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
924 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
925 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
927 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
929 * testsuite/libgomp.fortran/alloc-10.f90: Use
930 '-Wno-complain-wrong-lang'.
931 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
932 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
933 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
934 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
935 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
936 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
937 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
938 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
939 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
940 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
942 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
944 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
945 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
946 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
947 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
950 2023-02-16 Jakub Jelinek <jakub@redhat.com>
952 * libgomp.texi: Fix typos - theads -> threads.
954 2023-02-16 Jakub Jelinek <jakub@redhat.com>
956 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
957 comment typo and improve its wording.
959 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
961 * target.c (gomp_target_rev): Dereference ptr
962 to get device address.
963 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
964 for unallocated allocatable.
966 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
968 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
970 (GOMP_target_enter_exit_data): If the next map item is
971 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
972 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
974 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
977 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
978 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
979 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
980 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
981 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
982 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
984 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
986 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
987 offloading compilation.
989 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
991 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
992 freeing not allocated memory.
993 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
995 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
997 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
999 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1000 reverse-offload requirement.
1002 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1004 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1005 (DEFAULT_TEAM_ARENA_SIZE): New define.
1006 (struct heap): Move to this file.
1007 (struct kernargs_abi): Likewise.
1008 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1010 * libgomp.h: Include libgomp-gcn.h.
1011 (TEAM_ARENA_SIZE): Remove.
1012 (team_malloc): Update the error message.
1013 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1014 struct kernargs_abi.
1015 (struct agent_info): Rename team arenas to ephemeral memories.
1016 (struct team_arena_list): Rename ....
1017 (struct ephemeral_memories_list): to this.
1018 (struct heap): Delete.
1019 (team_arena_size): New variable.
1020 (stack_size): New variable.
1021 (print_kernel_dispatch): Update debug messages.
1022 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1023 Read GCN_STACK_SIZE.
1024 (get_team_arena): Rename ...
1025 (configure_ephemeral_memories): ... to this, and set up stacks.
1026 (release_team_arena): Rename ...
1027 (release_ephemeral_memories): ... to this.
1028 (destroy_team_arenas): Rename ...
1029 (destroy_ephemeral_memories): ... to this.
1030 (create_kernel_dispatch): Add num_threads parameter.
1031 Adjust for kernargs_abi refactor and ephemeral memories.
1032 (release_kernel_dispatch): Adjust for ephemeral memories.
1033 (run_kernel): Pass thread-count to create_kernel_dispatch.
1034 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1035 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1037 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1039 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1041 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1043 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1044 usage, remove unused -fdump-tree-original.
1045 * testsuite/libgomp.fortran/allocate-4.f90: New.
1047 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1049 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1050 (GCN): Add item about 'omp requires'.
1051 (nvptx): Likewise; add item about reverse offload.
1053 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1056 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1058 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1060 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1061 loop nest back to 'P' as Fortran support is incomplete.
1063 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1065 PR middle-end/108459
1066 * testsuite/libgomp.c/pr108459.c: New test.
1068 2023-01-17 Martin Liska <mliska@suse.cz>
1070 * Makefile.in: Regenerate.
1071 * configure: Regenerate.
1073 2023-01-07 LIU Hao <lh_mouse@126.com>
1075 PR middle-end/108300
1076 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1079 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1082 * testsuite/libgomp.c++/pr108286.C: New test.
1084 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1086 * libgomp.texi: Bump @copying's copyright year.
1088 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1091 * config/nvptx/bar.c (generation_to_barrier): Remove.
1092 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1093 (GOMP_WAIT_H): Remove.
1094 (#include "../linux/bar.c"): Remove.
1095 (gomp_barrier_wait_end): New function.
1096 (gomp_barrier_wait): Likewise.
1097 (gomp_barrier_wait_last): Likewise.
1098 (gomp_team_barrier_wait_end): Likewise.
1099 (gomp_team_barrier_wait): Likewise.
1100 (gomp_team_barrier_wait_final): Likewise.
1101 (gomp_team_barrier_wait_cancel_end): Likewise.
1102 (gomp_team_barrier_wait_cancel): Likewise.
1103 (gomp_team_barrier_cancel): Likewise.
1104 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1105 (gomp_barrier_init): Remove init of waiters, lock fields.
1106 (gomp_team_barrier_wake): Remove prototype, add new static inline
1109 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1112 * testsuite/libgomp.c++/pr108180.C: New test.
1114 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1116 PR libfortran/108056
1117 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1118 accidentally added file.
1120 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1122 PR libfortran/108056
1123 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1125 2022-12-14 Julian Brown <julian@codesourcery.com>
1127 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1130 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1132 * libgomp.h (struct target_mem_desc): Predeclare; move
1133 below after 'reverse_splay_tree_node' and add rev_array
1135 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1136 (reverse_splay_tree_node, reverse_splay_tree,
1137 reverse_splay_tree_key): New typedef.
1138 (struct gomp_device_descr): Add mem_map_rev member.
1139 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1140 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1141 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1142 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1143 splay_tree_callback but returning int not void.
1144 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1145 taking splay_tree_callback_stop as argument.
1146 * splay-tree.c (splay_tree_foreach_internal_lazy,
1147 splay_tree_foreach_lazy): New; but early exit if callback returns
1149 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1150 (gomp_map_lookup_rev): New.
1151 (gomp_load_image_to_device): Handle reverse-offload function
1153 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1154 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1155 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1156 gomp_map_cdata_lookup): New auxiliary structs and functions for
1158 (gomp_target_rev): Implement reverse offloading and its mapping.
1159 (gomp_target_init): Init current_device.mem_map_rev.root.
1160 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1161 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1162 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1163 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1164 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1165 mapping of on-device allocated variables.
1167 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1169 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1170 item about 'align'; mark clause as 'Y' and directive as 'N'.
1171 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1172 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1174 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1176 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1177 allow processing of device-specific values.
1178 (omp_set_teams_thread_limit): Likewise.
1180 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1181 (omp_set_teams_thread_limit): Likewise.
1183 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1185 (omp_set_teams_thread_limit): Likewise.
1186 * icv.c (omp_set_teams_thread_limit): Removed.
1187 (omp_get_teams_thread_limit): Likewise.
1189 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1190 to the limitation of the number of teams.
1191 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1192 the number of teams by twice the number of compute units.
1193 (parse_target_attributes): Limit the number of teams on gcn offload
1195 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1197 (gomp_load_image_to_device): Added a size check for the ICVs struct
1199 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1200 copy back the ICV values from device to host.
1201 (GOMP_target_ext): Update the number of teams and threads in the kernel
1202 args also considering device-specific values.
1203 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1204 of OMP_TEAMS_THREAD_LIMIT from the environment.
1205 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1206 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1207 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1208 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1209 * testsuite/libgomp.fortran/icv-5.f90: New test.
1210 * testsuite/libgomp.fortran/icv-6.f90: New test.
1212 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1214 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1215 (TR11): Add missing '@tab N @tab'.
1217 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1219 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1221 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1223 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1224 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1225 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1226 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1227 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1228 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1229 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1231 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1233 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1235 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1237 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1238 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1239 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1240 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1242 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1244 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1245 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1246 as valid and the code having no reverse-offload code.
1247 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1249 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1251 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1252 and status for Technical Report (TR) 11.
1254 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1256 * config/gcn/libgomp-gcn.h (struct output):
1257 Remove 'msg_u64' from the union, change
1258 value_u64[2] to value_u64[6].
1259 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1260 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1263 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1265 * config/gcn/libgomp-gcn.h: New file; contains
1266 struct output, declared previously in plugin-gcn.c.
1267 * config/gcn/target.c: Include it.
1268 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1269 (GOMP_target_ext): Handle reverse offload.
1270 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1271 (struct kernargs): Replace struct def by the one
1272 from libgomp-gcn.h for output_data.
1273 (process_reverse_offload): New.
1274 (console_output): Call it.
1276 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1277 Andrew Stubbs <ams@codesourcery.com>
1279 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1280 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1282 2022-11-14 Martin Liska <mliska@suse.cz>
1285 2022-11-14 Martin Liska <mliska@suse.cz>
1287 * doc/amd-radeon-gcn.rst: New file.
1288 * doc/conf.py: New file.
1289 * doc/copyright.rst: New file.
1290 * doc/cuda-streams-usage.rst: New file.
1291 * doc/enabling-openacc.rst: New file.
1292 * doc/enabling-openmp.rst: New file.
1293 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1294 * doc/first-invocation-openacc-library-api.rst: New file.
1295 * doc/funding.rst: New file.
1296 * doc/general-public-license-3.rst: New file.
1297 * doc/gnu-free-documentation-license.rst: New file.
1298 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1299 * doc/index.rst: New file.
1300 * doc/indices-and-tables.rst: New file.
1301 * doc/introduction.rst: New file.
1302 * doc/memory-allocation-with-libmemkind.rst: New file.
1303 * doc/nvptx.rst: New file.
1304 * doc/offload-target-specifics.rst: New file.
1305 * doc/openacc-environment-variables.rst: New file.
1306 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1307 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1308 * doc/openacc-environment-variables/accproflib.rst: New file.
1309 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1310 * doc/openacc-introduction.rst: New file.
1311 * doc/openacc-library-and-environment-variables.rst: New file.
1312 * doc/openacc-library-interoperability.rst: New file.
1313 * doc/openacc-profiling-interface.rst: New file.
1314 * doc/openacc-runtime-library-routines.rst: New file.
1315 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1316 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1317 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1318 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1319 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1320 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1321 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1322 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1323 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1324 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1325 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1326 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1327 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1328 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1329 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1330 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1331 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1332 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1333 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1334 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1335 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1336 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1337 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1338 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1339 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1340 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1341 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1342 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1343 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1344 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1345 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1346 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1347 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1348 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1349 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1350 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1351 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1352 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1353 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1354 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1355 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1356 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1357 * doc/openmp-context-selectors.rst: New file.
1358 * doc/openmp-environment-variables.rst: New file.
1359 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1360 * doc/openmp-environment-variables/gompdebug.rst: New file.
1361 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1362 * doc/openmp-environment-variables/gompspincount.rst: New file.
1363 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1364 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1365 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1366 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1367 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1368 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1369 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1370 * doc/openmp-environment-variables/ompnested.rst: New file.
1371 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1372 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1373 * doc/openmp-environment-variables/ompplaces.rst: New file.
1374 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1375 * doc/openmp-environment-variables/ompschedule.rst: New file.
1376 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1377 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1378 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1379 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1380 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1381 * doc/openmp-implementation-specifics.rst: New file.
1382 * doc/openmp-implementation-status.rst: New file.
1383 * doc/openmp-implementation-status/openmp-45.rst: New file.
1384 * doc/openmp-implementation-status/openmp-50.rst: New file.
1385 * doc/openmp-implementation-status/openmp-51.rst: New file.
1386 * doc/openmp-implementation-status/openmp-52.rst: New file.
1387 * doc/openmp-runtime-library-routines.rst: New file.
1388 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1389 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1390 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1391 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1392 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1393 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1394 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1395 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1396 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1397 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1398 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1399 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1400 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1401 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1402 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1403 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1404 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1405 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1406 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1407 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1408 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1409 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1410 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1411 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1412 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1413 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1414 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1415 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1416 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1417 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1418 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1419 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1420 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1421 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1422 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1423 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1424 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1425 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1426 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1427 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1428 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1429 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1430 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1431 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1432 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1433 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1434 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1435 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1436 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1437 * doc/reporting-bugs.rst: New file.
1438 * doc/the-libgomp-abi.rst: New file.
1439 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1440 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1441 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1442 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1444 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1445 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1446 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1447 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1448 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1449 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1450 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1451 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1452 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1453 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1454 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1456 2022-11-14 Martin Liska <mliska@suse.cz>
1459 2022-11-14 Martin Liska <mliska@suse.cz>
1461 * Makefile.in: Support Sphinx based documentation.
1463 2022-11-14 Martin Liska <mliska@suse.cz>
1466 2022-11-14 Martin Liska <mliska@suse.cz>
1468 * libgomp.texi: Removed.
1470 2022-11-14 Martin Liska <mliska@suse.cz>
1473 2022-11-14 Martin Liska <mliska@suse.cz>
1475 * Makefile.in: Support --with-sphinx-build.
1476 * configure.ac: Likewise..
1477 * configure: Regenerate.
1479 2022-11-14 Martin Liska <mliska@suse.cz>
1482 2022-11-09 Martin Liska <mliska@suse.cz>
1484 * Makefile.in: Build info pages conditionally.
1486 2022-11-14 Martin Liska <mliska@suse.cz>
1489 2022-11-14 Martin Liska <mliska@suse.cz>
1491 * doc/amd-radeon-gcn.rst:
1492 Add trailing newline.
1493 * doc/copyright.rst:
1494 Add trailing newline.
1495 * doc/cuda-streams-usage.rst:
1496 Add trailing newline.
1497 * doc/enabling-openacc.rst:
1498 Add trailing newline.
1499 * doc/enabling-openmp.rst:
1500 Add trailing newline.
1501 * doc/first-invocation-nvidia-cublas-library-api.rst:
1502 Add trailing newline.
1503 * doc/first-invocation-openacc-library-api.rst:
1504 Add trailing newline.
1506 Add trailing newline.
1507 * doc/general-public-license-3.rst:
1508 Add trailing newline.
1509 * doc/gnu-free-documentation-license.rst:
1510 Add trailing newline.
1511 * doc/implementation-status-and-implementation-defined-behavior.rst:
1512 Add trailing newline.
1514 Add trailing newline.
1515 * doc/indices-and-tables.rst:
1516 Add trailing newline.
1517 * doc/introduction.rst:
1518 Add trailing newline.
1519 * doc/memory-allocation-with-libmemkind.rst:
1520 Add trailing newline.
1522 Add trailing newline.
1523 * doc/offload-target-specifics.rst:
1524 Add trailing newline.
1525 * doc/openacc-environment-variables.rst:
1526 Add trailing newline.
1527 * doc/openacc-environment-variables/accdevicenum.rst:
1528 Add trailing newline.
1529 * doc/openacc-environment-variables/accdevicetype.rst:
1530 Add trailing newline.
1531 * doc/openacc-environment-variables/accproflib.rst:
1532 Add trailing newline.
1533 * doc/openacc-environment-variables/gccaccnotify.rst:
1534 Add trailing newline.
1535 * doc/openacc-introduction.rst:
1536 Add trailing newline.
1537 * doc/openacc-library-and-environment-variables.rst:
1538 Add trailing newline.
1539 * doc/openacc-library-interoperability.rst:
1540 Add trailing newline.
1541 * doc/openacc-profiling-interface.rst:
1542 Add trailing newline.
1543 * doc/openacc-runtime-library-routines.rst:
1544 Add trailing newline.
1545 * doc/openacc-runtime-library-routines/accasynctest.rst:
1546 Add trailing newline.
1547 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1548 Add trailing newline.
1549 * doc/openacc-runtime-library-routines/accattach.rst:
1550 Add trailing newline.
1551 * doc/openacc-runtime-library-routines/acccopyin.rst:
1552 Add trailing newline.
1553 * doc/openacc-runtime-library-routines/acccopyout.rst:
1554 Add trailing newline.
1555 * doc/openacc-runtime-library-routines/acccreate.rst:
1556 Add trailing newline.
1557 * doc/openacc-runtime-library-routines/accdelete.rst:
1558 Add trailing newline.
1559 * doc/openacc-runtime-library-routines/accdetach.rst:
1560 Add trailing newline.
1561 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1562 Add trailing newline.
1563 * doc/openacc-runtime-library-routines/accfree.rst:
1564 Add trailing newline.
1565 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1566 Add trailing newline.
1567 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1568 Add trailing newline.
1569 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1570 Add trailing newline.
1571 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1572 Add trailing newline.
1573 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1574 Add trailing newline.
1575 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1576 Add trailing newline.
1577 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1578 Add trailing newline.
1579 * doc/openacc-runtime-library-routines/acchostptr.rst:
1580 Add trailing newline.
1581 * doc/openacc-runtime-library-routines/accinit.rst:
1582 Add trailing newline.
1583 * doc/openacc-runtime-library-routines/accispresent.rst:
1584 Add trailing newline.
1585 * doc/openacc-runtime-library-routines/accmalloc.rst:
1586 Add trailing newline.
1587 * doc/openacc-runtime-library-routines/accmapdata.rst:
1588 Add trailing newline.
1589 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1590 Add trailing newline.
1591 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1592 Add trailing newline.
1593 * doc/openacc-runtime-library-routines/accondevice.rst:
1594 Add trailing newline.
1595 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1596 Add trailing newline.
1597 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1598 Add trailing newline.
1599 * doc/openacc-runtime-library-routines/accproflookup.rst:
1600 Add trailing newline.
1601 * doc/openacc-runtime-library-routines/accprofregister.rst:
1602 Add trailing newline.
1603 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1604 Add trailing newline.
1605 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1606 Add trailing newline.
1607 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1608 Add trailing newline.
1609 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1610 Add trailing newline.
1611 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1612 Add trailing newline.
1613 * doc/openacc-runtime-library-routines/accshutdown.rst:
1614 Add trailing newline.
1615 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1616 Add trailing newline.
1617 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1618 Add trailing newline.
1619 * doc/openacc-runtime-library-routines/accupdateself.rst:
1620 Add trailing newline.
1621 * doc/openacc-runtime-library-routines/accwait.rst:
1622 Add trailing newline.
1623 * doc/openacc-runtime-library-routines/accwaitall.rst:
1624 Add trailing newline.
1625 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1626 Add trailing newline.
1627 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1628 Add trailing newline.
1629 * doc/openmp-context-selectors.rst:
1630 Add trailing newline.
1631 * doc/openmp-environment-variables.rst:
1632 Add trailing newline.
1633 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1634 Add trailing newline.
1635 * doc/openmp-environment-variables/gompdebug.rst:
1636 Add trailing newline.
1637 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1638 Add trailing newline.
1639 * doc/openmp-environment-variables/gompspincount.rst:
1640 Add trailing newline.
1641 * doc/openmp-environment-variables/gompstacksize.rst:
1642 Add trailing newline.
1643 * doc/openmp-environment-variables/ompcancellation.rst:
1644 Add trailing newline.
1645 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1646 Add trailing newline.
1647 * doc/openmp-environment-variables/ompdisplayenv.rst:
1648 Add trailing newline.
1649 * doc/openmp-environment-variables/ompdynamic.rst:
1650 Add trailing newline.
1651 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1652 Add trailing newline.
1653 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1654 Add trailing newline.
1655 * doc/openmp-environment-variables/ompnested.rst:
1656 Add trailing newline.
1657 * doc/openmp-environment-variables/ompnumteams.rst:
1658 Add trailing newline.
1659 * doc/openmp-environment-variables/ompnumthreads.rst:
1660 Add trailing newline.
1661 * doc/openmp-environment-variables/ompplaces.rst:
1662 Add trailing newline.
1663 * doc/openmp-environment-variables/ompprocbind.rst:
1664 Add trailing newline.
1665 * doc/openmp-environment-variables/ompschedule.rst:
1666 Add trailing newline.
1667 * doc/openmp-environment-variables/ompstacksize.rst:
1668 Add trailing newline.
1669 * doc/openmp-environment-variables/omptargetoffload.rst:
1670 Add trailing newline.
1671 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1672 Add trailing newline.
1673 * doc/openmp-environment-variables/ompthreadlimit.rst:
1674 Add trailing newline.
1675 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1676 Add trailing newline.
1677 * doc/openmp-implementation-specifics.rst:
1678 Add trailing newline.
1679 * doc/openmp-implementation-status.rst:
1680 Add trailing newline.
1681 * doc/openmp-implementation-status/openmp-45.rst:
1682 Add trailing newline.
1683 * doc/openmp-implementation-status/openmp-50.rst:
1684 Add trailing newline.
1685 * doc/openmp-implementation-status/openmp-51.rst:
1686 Add trailing newline.
1687 * doc/openmp-implementation-status/openmp-52.rst:
1688 Add trailing newline.
1689 * doc/openmp-runtime-library-routines.rst:
1690 Add trailing newline.
1691 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1692 Add trailing newline.
1693 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1694 Add trailing newline.
1695 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1696 Add trailing newline.
1697 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1698 Add trailing newline.
1699 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1700 Add trailing newline.
1701 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1702 Add trailing newline.
1703 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1704 Add trailing newline.
1705 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1706 Add trailing newline.
1707 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1708 Add trailing newline.
1709 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1710 Add trailing newline.
1711 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1712 Add trailing newline.
1713 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1714 Add trailing newline.
1715 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1716 Add trailing newline.
1717 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1718 Add trailing newline.
1719 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1720 Add trailing newline.
1721 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1722 Add trailing newline.
1723 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1724 Add trailing newline.
1725 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1726 Add trailing newline.
1727 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1728 Add trailing newline.
1729 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1730 Add trailing newline.
1731 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1732 Add trailing newline.
1733 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1734 Add trailing newline.
1735 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1736 Add trailing newline.
1737 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1738 Add trailing newline.
1739 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1740 Add trailing newline.
1741 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1742 Add trailing newline.
1743 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1744 Add trailing newline.
1745 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1746 Add trailing newline.
1747 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1748 Add trailing newline.
1749 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1750 Add trailing newline.
1751 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1752 Add trailing newline.
1753 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1754 Add trailing newline.
1755 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1756 Add trailing newline.
1757 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1758 Add trailing newline.
1759 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1760 Add trailing newline.
1761 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1762 Add trailing newline.
1763 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1764 Add trailing newline.
1765 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1766 Add trailing newline.
1767 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1768 Add trailing newline.
1769 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1770 Add trailing newline.
1771 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1772 Add trailing newline.
1773 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1774 Add trailing newline.
1775 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1776 Add trailing newline.
1777 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1778 Add trailing newline.
1779 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1780 Add trailing newline.
1781 * doc/openmp-runtime-library-routines/omptestlock.rst:
1782 Add trailing newline.
1783 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1784 Add trailing newline.
1785 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1786 Add trailing newline.
1787 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1788 Add trailing newline.
1789 * doc/reporting-bugs.rst:
1790 Add trailing newline.
1791 * doc/the-libgomp-abi.rst:
1792 Add trailing newline.
1793 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1794 Add trailing newline.
1795 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1796 Add trailing newline.
1797 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1798 Add trailing newline.
1799 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1800 Add trailing newline.
1801 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1802 Add trailing newline.
1803 * doc/the-libgomp-abi/implementing-for-construct.rst:
1804 Add trailing newline.
1805 * doc/the-libgomp-abi/implementing-master-construct.rst:
1806 Add trailing newline.
1807 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1808 Add trailing newline.
1809 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1810 Add trailing newline.
1811 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1812 Add trailing newline.
1813 * doc/the-libgomp-abi/implementing-private-clause.rst:
1814 Add trailing newline.
1815 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1816 Add trailing newline.
1817 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1818 Add trailing newline.
1819 * doc/the-libgomp-abi/implementing-single-construct.rst:
1820 Add trailing newline.
1821 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1822 Add trailing newline.
1824 2022-11-14 Martin Liska <mliska@suse.cz>
1827 2022-11-09 Martin Liska <mliska@suse.cz>
1829 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1831 2022-11-14 Martin Liska <mliska@suse.cz>
1834 2022-11-14 Martin Liska <mliska@suse.cz>
1836 * doc/conf.py: Add newline at last line.
1838 2022-11-14 Martin Liska <mliska@suse.cz>
1841 2022-11-14 Martin Liska <mliska@suse.cz>
1844 * configure: Regenerate.
1845 * configure.ac: Always set sphinx-build.
1847 2022-11-13 Martin Liska <mliska@suse.cz>
1850 * configure: Regenerate.
1851 * configure.ac: Always set sphinx-build.
1853 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1856 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1857 unsigned long. Change type of upper from unsigned to unsigned long.
1859 2022-11-10 Martin Liska <mliska@suse.cz>
1861 * doc/conf.py: Add newline at last line.
1863 2022-11-09 Martin Liska <mliska@suse.cz>
1865 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1867 2022-11-09 Martin Liska <mliska@suse.cz>
1869 * doc/amd-radeon-gcn.rst:
1870 Add trailing newline.
1871 * doc/copyright.rst:
1872 Add trailing newline.
1873 * doc/cuda-streams-usage.rst:
1874 Add trailing newline.
1875 * doc/enabling-openacc.rst:
1876 Add trailing newline.
1877 * doc/enabling-openmp.rst:
1878 Add trailing newline.
1879 * doc/first-invocation-nvidia-cublas-library-api.rst:
1880 Add trailing newline.
1881 * doc/first-invocation-openacc-library-api.rst:
1882 Add trailing newline.
1884 Add trailing newline.
1885 * doc/general-public-license-3.rst:
1886 Add trailing newline.
1887 * doc/gnu-free-documentation-license.rst:
1888 Add trailing newline.
1889 * doc/implementation-status-and-implementation-defined-behavior.rst:
1890 Add trailing newline.
1892 Add trailing newline.
1893 * doc/indices-and-tables.rst:
1894 Add trailing newline.
1895 * doc/introduction.rst:
1896 Add trailing newline.
1897 * doc/memory-allocation-with-libmemkind.rst:
1898 Add trailing newline.
1900 Add trailing newline.
1901 * doc/offload-target-specifics.rst:
1902 Add trailing newline.
1903 * doc/openacc-environment-variables.rst:
1904 Add trailing newline.
1905 * doc/openacc-environment-variables/accdevicenum.rst:
1906 Add trailing newline.
1907 * doc/openacc-environment-variables/accdevicetype.rst:
1908 Add trailing newline.
1909 * doc/openacc-environment-variables/accproflib.rst:
1910 Add trailing newline.
1911 * doc/openacc-environment-variables/gccaccnotify.rst:
1912 Add trailing newline.
1913 * doc/openacc-introduction.rst:
1914 Add trailing newline.
1915 * doc/openacc-library-and-environment-variables.rst:
1916 Add trailing newline.
1917 * doc/openacc-library-interoperability.rst:
1918 Add trailing newline.
1919 * doc/openacc-profiling-interface.rst:
1920 Add trailing newline.
1921 * doc/openacc-runtime-library-routines.rst:
1922 Add trailing newline.
1923 * doc/openacc-runtime-library-routines/accasynctest.rst:
1924 Add trailing newline.
1925 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1926 Add trailing newline.
1927 * doc/openacc-runtime-library-routines/accattach.rst:
1928 Add trailing newline.
1929 * doc/openacc-runtime-library-routines/acccopyin.rst:
1930 Add trailing newline.
1931 * doc/openacc-runtime-library-routines/acccopyout.rst:
1932 Add trailing newline.
1933 * doc/openacc-runtime-library-routines/acccreate.rst:
1934 Add trailing newline.
1935 * doc/openacc-runtime-library-routines/accdelete.rst:
1936 Add trailing newline.
1937 * doc/openacc-runtime-library-routines/accdetach.rst:
1938 Add trailing newline.
1939 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1940 Add trailing newline.
1941 * doc/openacc-runtime-library-routines/accfree.rst:
1942 Add trailing newline.
1943 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1944 Add trailing newline.
1945 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1946 Add trailing newline.
1947 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1948 Add trailing newline.
1949 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1950 Add trailing newline.
1951 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1952 Add trailing newline.
1953 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1954 Add trailing newline.
1955 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1956 Add trailing newline.
1957 * doc/openacc-runtime-library-routines/acchostptr.rst:
1958 Add trailing newline.
1959 * doc/openacc-runtime-library-routines/accinit.rst:
1960 Add trailing newline.
1961 * doc/openacc-runtime-library-routines/accispresent.rst:
1962 Add trailing newline.
1963 * doc/openacc-runtime-library-routines/accmalloc.rst:
1964 Add trailing newline.
1965 * doc/openacc-runtime-library-routines/accmapdata.rst:
1966 Add trailing newline.
1967 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1968 Add trailing newline.
1969 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1970 Add trailing newline.
1971 * doc/openacc-runtime-library-routines/accondevice.rst:
1972 Add trailing newline.
1973 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1974 Add trailing newline.
1975 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1976 Add trailing newline.
1977 * doc/openacc-runtime-library-routines/accproflookup.rst:
1978 Add trailing newline.
1979 * doc/openacc-runtime-library-routines/accprofregister.rst:
1980 Add trailing newline.
1981 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1982 Add trailing newline.
1983 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1984 Add trailing newline.
1985 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1986 Add trailing newline.
1987 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1988 Add trailing newline.
1989 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1990 Add trailing newline.
1991 * doc/openacc-runtime-library-routines/accshutdown.rst:
1992 Add trailing newline.
1993 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1994 Add trailing newline.
1995 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1996 Add trailing newline.
1997 * doc/openacc-runtime-library-routines/accupdateself.rst:
1998 Add trailing newline.
1999 * doc/openacc-runtime-library-routines/accwait.rst:
2000 Add trailing newline.
2001 * doc/openacc-runtime-library-routines/accwaitall.rst:
2002 Add trailing newline.
2003 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2004 Add trailing newline.
2005 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2006 Add trailing newline.
2007 * doc/openmp-context-selectors.rst:
2008 Add trailing newline.
2009 * doc/openmp-environment-variables.rst:
2010 Add trailing newline.
2011 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2012 Add trailing newline.
2013 * doc/openmp-environment-variables/gompdebug.rst:
2014 Add trailing newline.
2015 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2016 Add trailing newline.
2017 * doc/openmp-environment-variables/gompspincount.rst:
2018 Add trailing newline.
2019 * doc/openmp-environment-variables/gompstacksize.rst:
2020 Add trailing newline.
2021 * doc/openmp-environment-variables/ompcancellation.rst:
2022 Add trailing newline.
2023 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2024 Add trailing newline.
2025 * doc/openmp-environment-variables/ompdisplayenv.rst:
2026 Add trailing newline.
2027 * doc/openmp-environment-variables/ompdynamic.rst:
2028 Add trailing newline.
2029 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2030 Add trailing newline.
2031 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2032 Add trailing newline.
2033 * doc/openmp-environment-variables/ompnested.rst:
2034 Add trailing newline.
2035 * doc/openmp-environment-variables/ompnumteams.rst:
2036 Add trailing newline.
2037 * doc/openmp-environment-variables/ompnumthreads.rst:
2038 Add trailing newline.
2039 * doc/openmp-environment-variables/ompplaces.rst:
2040 Add trailing newline.
2041 * doc/openmp-environment-variables/ompprocbind.rst:
2042 Add trailing newline.
2043 * doc/openmp-environment-variables/ompschedule.rst:
2044 Add trailing newline.
2045 * doc/openmp-environment-variables/ompstacksize.rst:
2046 Add trailing newline.
2047 * doc/openmp-environment-variables/omptargetoffload.rst:
2048 Add trailing newline.
2049 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2050 Add trailing newline.
2051 * doc/openmp-environment-variables/ompthreadlimit.rst:
2052 Add trailing newline.
2053 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2054 Add trailing newline.
2055 * doc/openmp-implementation-specifics.rst:
2056 Add trailing newline.
2057 * doc/openmp-implementation-status.rst:
2058 Add trailing newline.
2059 * doc/openmp-implementation-status/openmp-45.rst:
2060 Add trailing newline.
2061 * doc/openmp-implementation-status/openmp-50.rst:
2062 Add trailing newline.
2063 * doc/openmp-implementation-status/openmp-51.rst:
2064 Add trailing newline.
2065 * doc/openmp-implementation-status/openmp-52.rst:
2066 Add trailing newline.
2067 * doc/openmp-runtime-library-routines.rst:
2068 Add trailing newline.
2069 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2070 Add trailing newline.
2071 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2072 Add trailing newline.
2073 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2074 Add trailing newline.
2075 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2076 Add trailing newline.
2077 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2078 Add trailing newline.
2079 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2080 Add trailing newline.
2081 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2082 Add trailing newline.
2083 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2084 Add trailing newline.
2085 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2086 Add trailing newline.
2087 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2088 Add trailing newline.
2089 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2090 Add trailing newline.
2091 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2092 Add trailing newline.
2093 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2094 Add trailing newline.
2095 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2096 Add trailing newline.
2097 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2098 Add trailing newline.
2099 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2100 Add trailing newline.
2101 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2102 Add trailing newline.
2103 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2104 Add trailing newline.
2105 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2106 Add trailing newline.
2107 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2108 Add trailing newline.
2109 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2110 Add trailing newline.
2111 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2112 Add trailing newline.
2113 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2114 Add trailing newline.
2115 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2116 Add trailing newline.
2117 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2118 Add trailing newline.
2119 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2120 Add trailing newline.
2121 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2122 Add trailing newline.
2123 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2124 Add trailing newline.
2125 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2126 Add trailing newline.
2127 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2128 Add trailing newline.
2129 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2130 Add trailing newline.
2131 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2132 Add trailing newline.
2133 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2134 Add trailing newline.
2135 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2136 Add trailing newline.
2137 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2138 Add trailing newline.
2139 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2140 Add trailing newline.
2141 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2142 Add trailing newline.
2143 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2144 Add trailing newline.
2145 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2146 Add trailing newline.
2147 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2148 Add trailing newline.
2149 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2150 Add trailing newline.
2151 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2152 Add trailing newline.
2153 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2154 Add trailing newline.
2155 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2156 Add trailing newline.
2157 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2158 Add trailing newline.
2159 * doc/openmp-runtime-library-routines/omptestlock.rst:
2160 Add trailing newline.
2161 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2162 Add trailing newline.
2163 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2164 Add trailing newline.
2165 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2166 Add trailing newline.
2167 * doc/reporting-bugs.rst:
2168 Add trailing newline.
2169 * doc/the-libgomp-abi.rst:
2170 Add trailing newline.
2171 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2172 Add trailing newline.
2173 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2174 Add trailing newline.
2175 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2176 Add trailing newline.
2177 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2178 Add trailing newline.
2179 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2180 Add trailing newline.
2181 * doc/the-libgomp-abi/implementing-for-construct.rst:
2182 Add trailing newline.
2183 * doc/the-libgomp-abi/implementing-master-construct.rst:
2184 Add trailing newline.
2185 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2186 Add trailing newline.
2187 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2188 Add trailing newline.
2189 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2190 Add trailing newline.
2191 * doc/the-libgomp-abi/implementing-private-clause.rst:
2192 Add trailing newline.
2193 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2194 Add trailing newline.
2195 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2196 Add trailing newline.
2197 * doc/the-libgomp-abi/implementing-single-construct.rst:
2198 Add trailing newline.
2199 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2200 Add trailing newline.
2202 2022-11-09 Martin Liska <mliska@suse.cz>
2204 * Makefile.in: Build info pages conditionally.
2206 2022-11-09 Martin Liska <mliska@suse.cz>
2208 * Makefile.in: Support --with-sphinx-build.
2209 * configure.ac: Likewise..
2210 * configure: Regenerate.
2212 2022-11-09 Martin Liska <mliska@suse.cz>
2214 * libgomp.texi: Removed.
2216 2022-11-09 Martin Liska <mliska@suse.cz>
2218 * Makefile.in: Support Sphinx based documentation.
2220 2022-11-09 Martin Liska <mliska@suse.cz>
2222 * doc/amd-radeon-gcn.rst: New file.
2223 * doc/conf.py: New file.
2224 * doc/copyright.rst: New file.
2225 * doc/cuda-streams-usage.rst: New file.
2226 * doc/enabling-openacc.rst: New file.
2227 * doc/enabling-openmp.rst: New file.
2228 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2229 * doc/first-invocation-openacc-library-api.rst: New file.
2230 * doc/funding.rst: New file.
2231 * doc/general-public-license-3.rst: New file.
2232 * doc/gnu-free-documentation-license.rst: New file.
2233 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2234 * doc/index.rst: New file.
2235 * doc/indices-and-tables.rst: New file.
2236 * doc/introduction.rst: New file.
2237 * doc/memory-allocation-with-libmemkind.rst: New file.
2238 * doc/nvptx.rst: New file.
2239 * doc/offload-target-specifics.rst: New file.
2240 * doc/openacc-environment-variables.rst: New file.
2241 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2242 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2243 * doc/openacc-environment-variables/accproflib.rst: New file.
2244 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2245 * doc/openacc-introduction.rst: New file.
2246 * doc/openacc-library-and-environment-variables.rst: New file.
2247 * doc/openacc-library-interoperability.rst: New file.
2248 * doc/openacc-profiling-interface.rst: New file.
2249 * doc/openacc-runtime-library-routines.rst: New file.
2250 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2251 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2252 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2253 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2254 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2255 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2256 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2257 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2258 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2259 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2260 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2261 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2262 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2263 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2264 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2265 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2266 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2267 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2268 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2269 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2270 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2271 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2272 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2273 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2274 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2275 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2276 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2277 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2278 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2279 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2280 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2281 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2282 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2283 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2284 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2285 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2286 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2287 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2288 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2289 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2290 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2291 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2292 * doc/openmp-context-selectors.rst: New file.
2293 * doc/openmp-environment-variables.rst: New file.
2294 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2295 * doc/openmp-environment-variables/gompdebug.rst: New file.
2296 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2297 * doc/openmp-environment-variables/gompspincount.rst: New file.
2298 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2299 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2300 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2301 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2302 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2303 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2304 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2305 * doc/openmp-environment-variables/ompnested.rst: New file.
2306 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2307 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2308 * doc/openmp-environment-variables/ompplaces.rst: New file.
2309 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2310 * doc/openmp-environment-variables/ompschedule.rst: New file.
2311 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2312 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2313 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2314 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2315 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2316 * doc/openmp-implementation-specifics.rst: New file.
2317 * doc/openmp-implementation-status.rst: New file.
2318 * doc/openmp-implementation-status/openmp-45.rst: New file.
2319 * doc/openmp-implementation-status/openmp-50.rst: New file.
2320 * doc/openmp-implementation-status/openmp-51.rst: New file.
2321 * doc/openmp-implementation-status/openmp-52.rst: New file.
2322 * doc/openmp-runtime-library-routines.rst: New file.
2323 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2324 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2325 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2326 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2327 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2328 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2329 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2330 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2331 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2332 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2333 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2334 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2335 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2336 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2337 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2338 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2339 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2340 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2341 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2342 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2343 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2344 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2345 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2346 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2347 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2348 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2349 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2350 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2351 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2352 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2353 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2354 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2355 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2356 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2357 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2358 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2359 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2360 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2361 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2362 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2363 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2364 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2365 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2366 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2367 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2368 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2369 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2370 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2371 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2372 * doc/reporting-bugs.rst: New file.
2373 * doc/the-libgomp-abi.rst: New file.
2374 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2375 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2376 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2377 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2379 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2380 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2381 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2382 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2383 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2384 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2385 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2386 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2387 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2388 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2389 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2391 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2393 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2394 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2396 * plugin/configfrag.ac <enable_offload_targets>
2397 [*-intelmic-* | *-intelmicemul-*]: Remove.
2398 * configure: Regenerate.
2399 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2401 (offload_target_to_openacc_device_type)
2402 [$offload_target = *-intelmic*]: Remove.
2403 (check_effective_target_offload_device_intel_mic)
2404 (check_effective_target_offload_device_any_intel_mic): Remove.
2405 * testsuite/libgomp.c-c++-common/on_device_arch.h
2406 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2407 (any_device_arch_intel_mic): Remove.
2408 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2409 'offload_device_any_intel_mic' XFAIL.
2410 * testsuite/libgomp.fortran/target10.f90: Likewise.
2412 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2414 * testsuite/libgomp.fortran/target-11.f90: New test.
2415 * testsuite/libgomp.fortran/target-13.f90: New test.
2417 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2421 * oacc-mem.c (goacc_enter_data_internal): Support
2422 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2423 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2425 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2427 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2430 * oacc-mem.c (goacc_enter_data_internal): Support
2431 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2432 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2434 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2437 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2439 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2442 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2444 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2447 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2448 Thomas Schwinge <thomas@codesourcery.com>
2450 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2452 2022-10-28 Julian Brown <julian@codesourcery.com>
2453 Thomas Schwinge <thomas@codesourcery.com>
2456 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2457 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2458 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2459 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2460 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2462 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2464 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2465 'ptx_dev->rev_data'.
2467 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2469 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2470 'static' for this variable.
2471 * config/nvptx/libgomp-nvptx.h: New file.
2472 * config/nvptx/target.c: Include it.
2473 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2474 (GOMP_REV_OFFLOAD_VAR): Declare var.
2475 (GOMP_target_ext): Handle reverse offload.
2476 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2477 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2478 * target.c (gomp_target_rev): ... this new stub function.
2479 * libgomp.h (gomp_target_rev): Declare.
2480 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2481 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2482 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2483 (struct ptx_device): Add rev_data member.
2484 (nvptx_open_device): Remove async_engines query, last used in
2485 r10-304-g1f4c5b9b; add unified-address assert check.
2486 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2488 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2489 offload functions exist. Make offload var available
2491 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2492 (GOMP_OFFLOAD_run): Handle reverse offload.
2494 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2496 PR tree-optimization/107195
2498 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2501 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2503 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2505 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2506 on_device_arch_gcn): New.
2507 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2508 requires-4.c but using heap-allocated memory.
2510 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2513 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2515 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2517 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2518 '-foffload-options' syntax.
2520 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2522 * testsuite/libgomp.fortran/task-7.f90: New test.
2523 * testsuite/libgomp.fortran/task-8.f90: New test.
2524 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2525 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2526 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2527 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2528 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2530 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2532 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2533 in deprecation bullet.
2535 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2537 * omp.h.in (omp_in_explicit_task): Declare.
2538 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2539 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2540 * libgomp.map (OMP_5.2): New symbol version, export
2541 omp_in_explicit_task and omp_in_explicit_task_.
2542 * task.c (omp_in_explicit_task): New function.
2543 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2544 (omp_in_explicit_task_): New function.
2545 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2546 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2547 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2548 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2550 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2552 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2553 from within explicit task.
2554 * target.c (GOMP_target_ext): Likewise.
2555 * testsuite/libgomp.c/task-7.c: New test.
2556 * testsuite/libgomp.c/task-8.c: New test.
2557 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2558 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2560 2022-10-12 Martin Liska <mliska@suse.cz>
2562 * configure: Regenerate.
2564 2022-10-11 Olivier Hainque <hainque@adacore.com>
2565 Olivier Hainque <hainque@adacore.com>
2567 * configure: Regenerate.
2569 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2571 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2573 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2575 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2576 Mark as implemented.
2578 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2581 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2583 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2585 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2586 for C/C++. Remove duplicated 'begin declare target' entry.
2588 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2591 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2593 2022-09-14 Julian Brown <julian@codesourcery.com>
2595 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2596 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2597 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2598 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2599 test to here, make "run" test.
2601 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2604 * env.c (get_icv_member_addr): Cast false to void * before assigning
2605 it to icv_addr[1], and comment the whole assignment out.
2607 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2609 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2612 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2614 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2615 that reverse offload requires >= -march=sm_35.
2616 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2618 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2619 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2620 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2621 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2622 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2624 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2626 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2627 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2629 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2632 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2633 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2634 is in the environment, or for OMP_NUM_TEAMS on the device
2635 OMP_NUM_TEAMS_DEV_?.
2637 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2639 * env.c (initialize_env): Include libiberty environ.h.
2641 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2643 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2644 function address table '$offload_func_table' if rev_fn_table
2647 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2649 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2650 .offload_func_table to populate rev_fn_table when requested.
2652 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2654 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2655 'uint64_t **rev_fn_table' argument.
2656 * oacc-host.c (host_load_image): Likewise.
2657 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2659 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2660 * target.c (gomp_load_image_to_device): Update call but pass
2663 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2666 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2667 char * for dest[1] initialization from params[1]. Formatting fixes.
2669 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2672 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2674 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2676 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2677 section; move OpenMP Context Selectors from ...
2678 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2681 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2683 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2685 (omp_get_max_teams): Added for GCN devices.
2686 (omp_set_num_teams): Likewise.
2688 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2690 (omp_get_max_teams): Added for NVPTX devices.
2691 (omp_set_num_teams): Likewise.
2693 * env.c (struct gomp_icv_list): New struct to store entries of initial
2695 (struct gomp_offload_icv_list): New struct to store entries of device-
2696 specific ICV values that are copied to the device and back.
2697 (struct gomp_default_icv_values): New struct to store default values of
2698 ICVs according to the OpenMP standard.
2699 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2700 (print_env_var_error): Function that prints an error for invalid values
2702 (parse_unsigned_long_1): Removed getenv. Generalized.
2703 (parse_unsigned_long): Likewise.
2704 (parse_int_1): Likewise.
2705 (parse_int): Likewise.
2706 (parse_int_secure): Likewise.
2707 (parse_unsigned_long_list): Likewise.
2708 (parse_target_offload): Likewise.
2709 (parse_bind_var): Likewise.
2710 (parse_stacksize): Likewise.
2711 (parse_boolean): Likewise.
2712 (parse_wait_policy): Likewise.
2713 (parse_allocator): Likewise.
2714 (omp_display_env): Extended to output different variants of environment
2716 (print_schedule): New helper function for omp_display_env which prints
2717 the values of run_sched_var.
2718 (print_proc_bind): New helper function for omp_display_env which prints
2719 the values of proc_bind_var.
2720 (enum gomp_parse_type): Collection of types used for parsing environment
2722 (ENTRY): Preprocess string lengths of environment variables.
2723 (OMP_VAR_CNT): Preprocess table size.
2724 (OMP_HOST_VAR_CNT): Likewise.
2725 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2727 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2728 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2729 (print_device_specific_icvs): New helper function for omp_display_env to
2730 print device specific ICV values.
2731 (get_device_num): New helper function for parse_device_specific.
2732 Extracts the device number from an environment variable name.
2733 (get_icv_member_addr): Gets the memory address for a particular member
2735 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2736 (initialize_icvs): New function to initialize a gomp_initial_icvs
2738 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2739 (startswith): Checks if a string starts with a given prefix.
2740 (initialize_env): Extended to parse the new syntax of environment
2742 * icv-device.c (omp_get_max_teams): Added.
2744 (omp_set_num_teams): Likewise.
2745 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2746 (omp_get_max_teams): Likewise.
2748 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2749 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2750 holds the designated ICVs of the target device.
2751 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2752 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2754 (enum gomp_env_suffix): Collection of possible suffixes of environment
2756 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2758 (struct gomp_default_icv):New struct to hold ICVs for which we need
2759 to store initial values.
2760 (struct gomp_icv_list): Definition of a linked list that is used for
2761 storing ICVs for the devices and also for _DEV, _ALL, and without
2763 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2765 (struct gomp_offload_icv_list): Definition of a linked list that holds
2766 device-specific ICVs that are copied to devices.
2767 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2768 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2769 * libgomp.texi: Updated.
2770 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2771 further ICVs from the offload image.
2772 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2773 * target.c (gomp_get_offload_icv_item): Get a list item of
2774 gomp_offload_icv_list.
2775 (get_gomp_offload_icvs): New. Returns the ICV values
2776 depending on the device num and the variable hierarchy.
2777 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2778 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2779 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2780 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2781 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2782 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2783 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2785 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2787 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2789 * testsuite/libgomp.c/doacross-4.c: New test.
2790 * testsuite/libgomp.c/doacross-5.c: New test.
2791 * testsuite/libgomp.c/doacross-6.c: New test.
2792 * testsuite/libgomp.c/doacross-7.c: New test.
2794 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2796 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2798 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2800 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2801 refer to 'requires'.
2802 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2803 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2804 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2805 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2807 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2809 PR middle-end/106548
2810 * testsuite/libgomp.c/linear-2.c: New test.
2812 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2814 * splay-tree.h: Fix splay_* macro unsetting if
2815 splay_tree_prefix is defined.
2817 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2819 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2821 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2823 PR middle-end/106449
2824 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2826 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2828 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2830 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2832 PR middle-end/101551
2833 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2834 'offloading_enabled' diagnostics issue.
2836 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2838 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2839 '_Pragma' diagnostics verification.
2841 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2843 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2844 improved warning locations.
2845 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2847 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2849 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2850 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2851 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2852 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2853 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2855 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2857 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2858 Denote as legacy entry points.
2859 * testsuite/lib/libgomp.exp
2860 (check_effective_target_offload_target_any): New proc.
2861 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2862 'offload_target_any'.
2863 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2864 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2865 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2867 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2869 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2870 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2872 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2874 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2876 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2878 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2880 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2882 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2883 Jakub Jelinek <jakub@redhat.com>
2885 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2887 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2888 Chung-Lin Tang <cltang@codesourcery.com>
2889 Thomas Schwinge <thomas@codesourcery.com>
2891 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2892 omp_requires_mask arg.
2893 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2894 return -1 when device available but omp_requires_mask != 0.
2895 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2896 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2898 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2899 goacc_attach_host_thread_to_device, acc_get_num_devices,
2900 acc_set_device_num, get_property_any): Likewise.
2901 * target.c (omp_requires_mask): New global var.
2902 (gomp_requires_to_name): New.
2903 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2904 (gomp_target_init): Handle omp_requires_mask.
2905 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2906 (OpenMP 5.1): Add a missed item.
2907 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2908 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2909 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2910 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2911 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2912 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2913 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2914 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2915 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2916 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2917 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2918 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2919 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2920 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2921 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2922 * testsuite/libgomp.fortran/requires-1.f90: New test.
2924 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2926 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2927 with fromto as implemented.
2929 2022-06-28 Martin Liska <mliska@suse.cz>
2931 * acinclude.m4: Fix typo in mold linker detection.
2932 * Makefile.in: Regenerate.
2933 * configure: Regenerate.
2935 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2936 Paul Iannetta <piannetta@kalrayinc.com>
2939 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2941 2022-06-17 Martin Liska <mliska@suse.cz>
2943 * libgomp.texi: Add table header for new features of
2946 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2948 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2949 q to ddress of an automatic variable. Use -5 instead of -1 in
2950 omp_get_mapped_ptr call. Add test with omp_initial_device.
2951 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2952 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2953 Renumber stop arguments afterwards.
2955 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2957 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2958 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2960 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2961 * target.c (resolve_device): Add remapped argument, handle
2962 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2963 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2964 if remapped, otherwise treat omp_initial_device that way. For
2965 omp_invalid_device, always emit gomp_fatal, even when
2966 OMP_TARGET_OFFLOAD isn't mandatory.
2967 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2968 GOMP_target_update, GOMP_target_update_ext,
2969 GOMP_target_enter_exit_data): Pass true as remapped argument to
2971 (omp_target_alloc, omp_target_free, omp_target_is_present,
2972 omp_target_memcpy_check, omp_target_associate_ptr,
2973 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2974 omp_target_is_accessible): Pass false as remapped argument to
2975 resolve_device. Treat omp_initial_device the same as
2976 gomp_get_num_devices (). Don't bypass resolve_device calls if
2977 device_num is negative.
2978 (omp_pause_resource): Treat omp_initial_device the same as
2979 gomp_get_num_devices (). Call resolve_device.
2980 * icv-device.c (omp_set_default_device): Always set to device_num
2981 even when it is negative.
2982 * libgomp.texi: Document that Conforming device numbers,
2983 omp_initial_device and omp_invalid_device is implemented.
2984 * testsuite/libgomp.c/target-41.c (main): Add test with
2986 * testsuite/libgomp.c/target-45.c: New test.
2987 * testsuite/libgomp.c/target-46.c: New test.
2988 * testsuite/libgomp.c/target-47.c: New test.
2989 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2990 test with omp_initial_device. Use -5 instead of -1 for negative value
2992 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2993 Likewise. Reorder stop numbers.
2995 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2997 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2998 rather than "libmemkind.so".
3000 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3002 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3003 * plugin/configfrag.ac (--with-cuda-driver)
3004 (--with-cuda-driver-include, --with-cuda-driver-lib)
3005 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3006 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3008 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3009 (cuda_driver_lib): Remove.
3010 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3011 * Makefile.in: Regenerate.
3012 * configure: Likewise.
3013 * testsuite/Makefile.in: Likewise.
3015 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3017 * config/linux/allocator.c: Fix up #include directive.
3019 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3021 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3022 (enum gomp_memkind_kind): New type.
3023 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3025 (struct gomp_memkind_data): New type.
3026 (memkind_data, memkind_data_once): New variables.
3027 (gomp_init_memkind, gomp_get_memkind): New functions.
3028 (omp_init_allocator): Initialize data.memkind, don't fail for
3029 omp_high_bw_mem_space if libmemkind supports it.
3030 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3031 memkind support of LIBGOMP_USE_MEMKIND is defined.
3032 * config/linux/allocator.c: New file.
3034 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3036 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3037 * testsuite/libgomp.fortran/scope-2.f90: New test.
3039 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3041 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3043 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3045 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3046 scope construct with allocate clause.
3047 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3048 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3050 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3052 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3053 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3054 explicit 'to' and 'enter' clause.
3055 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3057 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3060 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3061 defined(HAVE__ALIGNED_MALLOC) case.
3062 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3063 handling as last option before fallback instead of first.
3064 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3067 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3069 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3071 * testsuite/libgomp.c/target-41.c: Likewise.
3073 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3075 * libgomp.texi (Other new OpenMP 5.1 features): Add
3076 'begin declare target'.
3077 (Other new OpenMP 5.2 features): New.
3079 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3081 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3082 is the last task taskwait depend depends on, wake it up.
3083 Similarly if it is the last child of a taskgroup, use atomic
3084 store instead of decrement and awak taskgroup wait if any.
3085 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3087 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3089 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3090 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3091 (gcn_gfx90a_s): New.
3092 (isa_hsa_name): Support gfx90a.
3093 (isa_code): Likewise.
3095 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3098 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3099 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3101 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3104 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3105 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3106 * task.c (empty_task): New function.
3107 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3108 (gomp_task_run_post_handle_depend): Declare.
3109 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3111 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3112 (GOMP_taskwait_depend_nowait): New function.
3113 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3115 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3118 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3119 Support attach for GOMP_MAP_FIRSTPRIVATE.
3120 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3121 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3122 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3124 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3126 * libgomp.map: Added omp_target_memcpy_async and
3127 omp_target_memcpy_rect_async.
3128 * libgomp.texi: Both functions are now supported.
3129 * omp.h.in: Added omp_target_memcpy_async and
3130 omp_target_memcpy_rect_async.
3131 * omp_lib.f90.in: Added interfaces for both new functions.
3132 * omp_lib.h.in: Likewise.
3133 * target.c (ialias_redirect): Added for GOMP_task.
3134 (omp_target_memcpy): Restructured into check and copy part.
3135 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3136 omp_target_memcpy_async that checks requirements.
3137 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3138 omp_target_memcpy_async that performs the memcpy.
3139 (omp_target_memcpy_async_helper): New helper function that is used in
3140 omp_target_memcpy_async for the asynchronous task.
3141 (omp_target_memcpy_async): Added.
3142 (omp_target_memcpy_rect): Restructured into check and copy part.
3143 (omp_target_memcpy_rect_check): New helper function for
3144 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3146 (omp_target_memcpy_rect_copy): New helper function for
3147 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3149 (omp_target_memcpy_rect_async_helper): New helper function that is used
3150 in omp_target_memcpy_rect_async for the asynchronous task.
3151 (omp_target_memcpy_rect_async): Added.
3152 * task.c (ialias): Added for GOMP_task.
3153 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3154 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3155 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3156 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3157 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3158 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3159 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3160 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3162 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3164 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3165 (OpenMP Context Selectors): Add missing comma.
3166 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3167 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3168 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3169 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3171 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3173 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3174 comment for omp_display_env feature.
3176 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3178 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3179 to document OpenMP context selectors.
3181 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3183 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3184 from bool to unsigned char.
3185 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3186 Ignore dependencies where
3187 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3188 rather than just task->depend[i].is_in && ent->is_in. Remember
3189 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3191 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3192 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3193 rather than just elem.is_in && ent->is_in.
3194 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3195 inoutset depend-kind.
3196 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3197 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3198 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3200 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3202 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3204 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3206 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3207 * testsuite/libgomp.fortran/depend-5.f90: New test.
3208 * testsuite/libgomp.fortran/depend-6.f90: New test.
3209 * testsuite/libgomp.fortran/depend-7.f90: New test.
3211 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3213 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3214 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3215 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3217 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3219 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3221 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3223 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3225 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3227 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3228 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3229 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3230 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3231 * Makefile.in: Regenerate.
3233 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3235 * Makefile.am (libgomp_la_LIBADD): Initialize.
3236 * plugin/configfrag.ac (DL_LIBS): New.
3237 (PLUGIN_GCN_LIBS): Remove.
3238 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3239 * plugin/Makefrag.am (libgomp_la_LIBADD)
3240 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3241 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3242 * Makefile.in: Regenerate.
3243 * config.h.in: Likewise.
3244 * configure: Likewise.
3245 * testsuite/Makefile.in: Likewise.
3247 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3249 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3250 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3251 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3252 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3253 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3254 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3255 * Makefile.in: Regenerate.
3256 * config.h.in: Likewise.
3257 * configure: Likewise.
3259 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3261 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3262 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3263 * Makefile.in: Regenerate.
3264 * config.h.in: Likewise.
3265 * configure: Likewise.
3266 * testsuite/Makefile.in: Likewise.
3268 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3270 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3271 * task.c (gomp_init_task): Initialize depend_all_memory.
3272 (gomp_task_handle_depend): Handle omp_all_memory.
3273 (gomp_task_run_post_handle_depend_hash): Clear
3274 parent->depend_all_memory if equal to current task.
3275 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3276 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3277 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3278 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3280 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3282 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3283 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3284 * Makefile.in: Regenerate.
3285 * configure: Likewise.
3286 * testsuite/Makefile.in: Likewise.
3288 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3290 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3291 consider 'PLUGIN_GCN_CPPFLAGS'.
3292 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3293 'PLUGIN_GCN_LDFLAGS'.
3294 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3296 * Makefile.in: Regenerate.
3297 * configure: Likewise.
3298 * testsuite/Makefile.in: Likewise.
3300 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3302 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3303 (HSA_RUNTIME_LDFLAGS): Remove.
3304 * configure: Regenerate.
3306 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3308 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3309 'append always_ld_library_path ":$hsa_runtime_lib"'.
3310 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3312 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3314 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3315 multi-device testing.
3317 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3319 * libgomp.map: Added omp_target_is_accessible.
3320 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3321 * omp.h.in: Added omp_target_is_accessible.
3322 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3323 * omp_lib.h.in: Likewise.
3324 * target.c (omp_target_is_accessible): Added implementation of
3325 omp_target_is_accessible.
3326 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3327 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3329 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3331 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3333 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3335 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3337 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3339 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3341 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3343 * libgomp.map: Added omp_get_mapped_ptr.
3344 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3345 * omp.h.in: Added omp_get_mapped_ptr.
3346 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3347 * omp_lib.h.in: Likewise.
3348 * target.c (omp_get_mapped_ptr): Added implementation of
3350 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3351 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3352 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3353 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3354 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3355 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3356 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3357 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3359 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3362 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3363 privatization scanning. For GCN offloading compilation, raise
3364 '-mgang-private-size'.
3366 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3369 * work.c (gomp_init_work_share): Don't mask of adjustment for
3370 dynamic long long realignment if struct gomp_work_share has smaller
3371 alignof than long long.
3372 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3373 struct gomp_work_share has smaller alignof than long long or if
3374 sizeof (struct gomp_work_share) is smaller than
3375 INLINE_ORDERED_TEAM_IDS_OFF.
3376 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3377 * sections.c (GOMP_sections2_start): Likewise.
3379 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3380 Thomas Schwinge <thomas@codesourcery.com>
3383 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3385 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3387 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3389 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3391 * plugin/cuda/cuda.h: Remove file.
3392 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3393 "cuda/cuda.h" instead of <cuda.h>.
3394 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3395 'PLUGIN_NVPTX_CPPFLAGS'.
3396 * configure: Regenerate.
3398 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3400 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3402 2022-04-04 Tom de Vries <tdevries@suse.de>
3404 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3405 on_device_arch_nvptx instead of offload_target_nvptx.
3406 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3408 2022-04-01 Tom de Vries <tdevries@suse.de>
3410 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3412 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3414 2022-04-01 Tom de Vries <tdevries@suse.de>
3416 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3419 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3420 Lulu Cheng <chenglulu@loongson.cn>
3422 * configure.tgt: Add LoongArch triplet.
3424 2022-03-28 Tom de Vries <tdevries@suse.de>
3426 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3427 instead of /libexec/.
3428 * configure: Regenerate.
3430 2022-03-25 Tom de Vries <tdevries@suse.de>
3433 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3435 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3436 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3438 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3440 PR middle-end/104285
3441 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3442 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3443 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3444 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3445 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3446 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3448 2022-03-22 Tom de Vries <tdevries@suse.de>
3452 * testsuite/libgomp.c/pr104783-2.c: New test.
3454 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3457 * testsuite/libgomp.fortran/associate4.f90: New test.
3459 2022-03-18 Tom de Vries <tdevries@suse.de>
3462 * testsuite/libgomp.c/pr104952-1.c: New test.
3463 * testsuite/libgomp.c/pr104952-2.c: New test.
3465 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3467 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3468 variable next to pl variable.
3470 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3472 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3475 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3477 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3480 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3481 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3483 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3485 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3486 omp_set_max_active_levels.
3487 * testsuite/libgomp.fortran/icv-8.f90: New test.
3489 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3492 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3494 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3496 * libgomp.texi: Fix typo.
3498 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3500 PR middle-end/100280
3501 PR middle-end/104892
3502 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3503 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3504 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3506 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3508 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3509 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3510 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3513 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3515 PR middle-end/104892
3516 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3518 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3519 enable '--param=openacc-kernels=decompose' and adjust.
3520 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3522 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3523 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3526 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3529 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3530 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3532 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3534 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3536 PR middle-end/100280
3537 PR middle-end/104086
3538 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3540 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3542 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3544 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3547 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3549 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3550 trait. Test last index in w and v array. Remove redundant
3551 assignment to V(1). Move alignment checks at the end of
3554 2022-03-10 Tom de Vries <tdevries@suse.de>
3556 * testsuite/libgomp.c/pr104783.c: New test.
3558 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3561 PR middle-end/102330
3562 PR middle-end/104774
3563 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3565 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3567 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3569 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3571 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3573 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3575 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3591 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3592 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3593 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3595 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3598 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3599 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3600 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3601 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3603 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3606 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3607 expected diagnostics.
3609 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3611 PR middle-end/104784
3612 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3613 Test with '--param=openacc-kernels=decompose'.
3614 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3616 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3634 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3636 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3638 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3642 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3644 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3646 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3648 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3650 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3652 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3654 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3656 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3658 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3660 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3662 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3664 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3666 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3668 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3670 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3672 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3674 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3676 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3679 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3681 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3682 Test '-fopt-info-omp-all'.
3683 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3685 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3687 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3689 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3691 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3693 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3695 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3697 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3699 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3701 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3721 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3723 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3725 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3727 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3729 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3731 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3733 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3735 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3737 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3739 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3741 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3743 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3745 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3748 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3750 PR middle-end/100280
3751 PR middle-end/104132
3752 PR middle-end/104133
3753 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3756 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3758 PR middle-end/100280
3759 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3760 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3763 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3765 PR middle-end/100280
3766 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3767 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3770 2022-02-28 Tom de Vries <tdevries@suse.de>
3772 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3773 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3774 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3775 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3776 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3777 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3779 2022-02-24 Tom de Vries <tdevries@suse.de>
3781 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3782 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3783 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3784 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3785 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3786 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3787 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3789 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3791 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3792 gang-redundant execution.
3794 2022-02-22 Tom de Vries <tdevries@suse.de>
3797 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3798 from config/rtems/bar.c.
3799 (futex_wait, futex_wake): New function.
3800 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3801 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3802 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3803 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3804 and replace with include of config/linux/bar.c.
3805 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3806 (gomp_barrier_init): Init new fields.
3807 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3809 * testsuite/libgomp.c/pr99555-1.c: Same.
3810 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3812 2022-02-22 Tom de Vries <tdevries@suse.de>
3815 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3816 -foffload=-Wa,--verify for nvptx.
3817 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3819 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3821 * testsuite/libgomp.fortran/depend-4.f90: New test.
3823 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3826 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3828 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3830 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3831 * target.c (copy_firstprivate_data): Copy only if host address is not
3833 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3834 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3835 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3836 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3837 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3838 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3839 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3840 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3841 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3842 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3844 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3847 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3849 * testsuite/libgomp.c/pr104385.c: New test.
3851 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3853 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3854 STOP of previous commit.
3856 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3858 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3859 from is_64bit_aligned_.
3860 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3861 and use it, more implicit none, remove unused argument.
3863 2022-02-03 David Seifert <soap@gentoo.org>
3864 Jakub Jelinek <jakub@redhat.com>
3866 * configure.ac: Support --disable-werror.
3867 * configure: Regenerate.
3869 2022-02-01 Tom de Vries <tdevries@suse.de>
3871 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3873 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3874 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3876 2022-02-01 Tom de Vries <tdevries@suse.de>
3878 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3879 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3881 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3883 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3885 2022-02-01 Tom de Vries <tdevries@suse.de>
3887 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3889 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3891 2022-01-31 Martin Liska <mliska@suse.cz>
3893 * acinclude.m4: Detect *_ld_is_mold and use it.
3894 * configure: Regenerate.
3896 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3898 * libgomp.texi (OpenMP 5.0): Update implementation status.
3900 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3902 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3903 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3904 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3905 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3906 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3907 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3908 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3909 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3910 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3911 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3912 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3913 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3914 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3915 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3916 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3918 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3920 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3921 "static") to make the device num available in the offload image.
3923 2022-01-19 Martin Liska <mliska@suse.cz>
3924 Thomas Schwinge <thomas@codesourcery.com>
3926 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3928 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3929 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3931 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3932 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3933 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3934 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3935 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3937 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3939 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3941 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3943 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3945 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3947 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3948 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3949 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3951 2022-01-18 Martin Liska <mliska@suse.cz>
3953 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3955 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3956 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3957 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3958 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3959 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3960 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3961 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3962 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3963 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3964 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3965 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3966 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3967 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3968 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3969 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3971 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3973 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3974 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3975 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3977 2022-01-17 Julian Brown <julian@codesourcery.com>
3978 Thomas Schwinge <thomas@codesourcery.com>
3980 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3981 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3982 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3984 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3985 Andrew Stubbs <ams@codesourcery.com>
3987 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3988 the number of teams and threads if necessary.
3989 (gcn_exec): Automatically set the number of gangs and workers if
3992 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3994 * testsuite/libgomp.fortran/allocate-1.c: New test.
3995 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3996 * libgomp.texi: Remove string that says that allocate clause
3997 support is for C/C++ only.
3999 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4001 * testsuite/libgomp.c-c++-common/on_device_arch.h
4002 (any_device_arch, any_device_arch_intel_mic): New.
4003 * testsuite/lib/libgomp.exp
4004 (check_effective_target_offload_device_any_intel_mic): New.
4005 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4006 * testsuite/libgomp.fortran/target10.f90: Likewise.
4008 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4010 PR tree-optimization/102192
4011 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4012 '-Wuninitialized' diagnostics.
4014 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4016 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4017 current '-Wuninitialized' diagnostics.
4018 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4019 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4020 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4021 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4022 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4023 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4024 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4025 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4026 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4027 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4028 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4031 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4033 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4034 for 'offload_device_intel_mic'.
4036 2022-01-13 Julian Brown <julian@codesourcery.com>
4037 Thomas Schwinge <thomas@codesourcery.com>
4039 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4040 offloading execution XFAIL.
4042 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4044 PR middle-end/100280
4045 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4047 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4048 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4051 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4053 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4055 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4057 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4058 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4059 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4060 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4061 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4063 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4064 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4065 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4066 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4068 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4070 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4071 * testsuite/libgomp.fortran/target10.f90: Likewise.
4073 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4075 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4076 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4077 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4079 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4081 * libgomp.texi: Bump @copying's copyright year.
4083 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4085 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4086 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4088 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4090 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4091 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4092 table, not individual symbols.
4094 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4096 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4097 "target offload_device_nonshared_as"
4098 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4099 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4101 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4103 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4104 not overwritten during cross-host/device copying.
4105 (gomp_update): Likewise.
4106 (gomp_exit_data): Likewise.
4107 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4108 * testsuite/libgomp.c++/target-12.C: Likewise.
4109 * testsuite/libgomp.c++/target-15.C: Likewise.
4110 * testsuite/libgomp.c++/target-16.C: Likewise.
4111 * testsuite/libgomp.c++/target-17.C: Likewise.
4112 * testsuite/libgomp.c++/target-21.C: Likewise.
4113 * testsuite/libgomp.c++/target-23.C: Likewise.
4114 * testsuite/libgomp.c/target-23.c: Likewise.
4115 * testsuite/libgomp.c/target-29.c: Likewise.
4116 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4118 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4121 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4122 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4123 (goacc_enter_data_internal): Likewise.
4124 * target.c (gomp_map_vars_existing): Update assert condition to
4125 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4126 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4127 parameter, add support for mapping a pointer with NULL target.
4128 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4129 parameter, add support for attaching a pointer with NULL target.
4130 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4131 gomp_attach_pointer, add handling for
4132 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4133 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4134 * testsuite/libgomp.c++/target-23.C: New testcase.
4135 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4136 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4137 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4138 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4139 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4140 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4141 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4143 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4145 * libgomp.texi (OpenMP 5.1): Update status.
4147 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4149 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4151 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4154 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4155 * testsuite/libgomp.fortran/pr90030.f90: New test.
4157 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4158 Thomas Schwinge <thomas@codesourcery.com>
4160 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4163 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4164 Thomas Schwinge <thomas@codesourcery.com>
4166 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4169 2021-11-29 Richard Biener <rguenther@suse.de>
4171 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4174 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4176 PR middle-end/103384
4177 * testsuite/libgomp.c/declare-variant-2.c: New test.
4179 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4181 * alloc.c (gomp_aligned_alloc): Fix typo.
4183 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4186 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4187 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4188 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4189 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4190 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4191 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4192 gomp_aligned_alloc instead of team_malloc.
4194 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4197 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4198 memalign over posix_memalign over aligned_alloc over fallback
4199 with malloc instead of aligned_alloc over _aligned_alloc over
4200 posix_memalign over memalign over fallback with malloc. For
4201 aligned_alloc, round up size up to multiple of al.
4203 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4205 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4206 construct as implemented.
4208 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4210 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4212 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4214 * task.c (gomp_create_target_task): Copy args array as well.
4215 * target.c (gomp_target_fallback): Add args argument.
4216 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4217 (GOMP_target): Adjust gomp_target_fallback caller.
4218 (GOMP_target_ext): Likewise.
4219 (gomp_target_task_fn): Likewise.
4220 * config/nvptx/team.c (gomp_nvptx_main): Set
4221 gomp_global_icv.thread_limit_var.
4222 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4224 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4226 * config/nvptx/team.c (__gomp_team_num): Define as
4227 __attribute__((shared)) var.
4228 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4229 * config/nvptx/target.c (__gomp_team_num): Declare as
4230 extern __attribute__((shared)) var.
4231 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4232 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4233 is bigger than num_blocks, use num_teams_lower teams and arrange for
4234 bumping of __gomp_team_num if !first and returning false once we run
4236 * config/nvptx/teams.c (__gomp_team_num): Declare as
4237 extern __attribute__((shared)) var.
4238 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4240 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4242 * testsuite/libgomp.c/teams-5.c: New test.
4244 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4247 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4249 * config/gcn/teams.c: ... here. New file.
4251 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4253 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4254 implicit map handling to allow a "superset" existing map as valid case.
4255 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4256 (get_implicit): New function to extract implicit status.
4257 (gomp_map_fields_existing): Adjust arguments in calls to
4258 gomp_map_vars_existing, and add uses of get_implicit.
4259 (gomp_map_vars_internal): Likewise.
4260 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4262 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4264 * libgomp_g.h (GOMP_teams4): Declare.
4265 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4266 * target.c (GOMP_teams4): New function.
4267 * config/nvptx/target.c (GOMP_teams): Remove.
4268 (GOMP_teams4): New function.
4269 * config/gcn/target.c (GOMP_teams): Remove.
4270 (GOMP_teams4): New function.
4271 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4272 teams instead of <= 2.
4273 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4275 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4277 * testsuite/libgomp.fortran/teams-1.f90: New test.
4279 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4281 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4282 * team.c (struct gomp_thread_start_data): Likewise.
4283 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4284 (gomp_team_start): Initialize start_data->num_teams and
4285 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4286 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4287 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4288 instead of gomp_num_teams and gomp_team_num.
4289 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4290 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4291 * testsuite/libgomp.c/teams-4.c: New test.
4293 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4295 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4297 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4299 * env.c (parse_gomp_openacc_dim): Restore parsing.
4301 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4303 PR middle-end/102972
4304 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4306 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4307 * testsuite/libgomp.c/target-3.c: Likewise.
4308 * testsuite/libgomp.c/target-5.c: Likewise.
4309 * testsuite/libgomp.c/target-6.c: Likewise.
4310 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4311 * testsuite/libgomp.c/teams-1.c: Likewise.
4312 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4313 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4314 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4315 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4316 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4317 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4318 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4320 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4322 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4323 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4325 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4327 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4328 aren't implemented for Fortran yet.
4330 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4332 * testsuite/libgomp.c/loop-26.c: New test.
4333 * testsuite/libgomp.c/loop-27.c: New test.
4335 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4338 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4339 instead of #include <alloca.h> + alloca.
4341 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4343 * libgomp.texi (Support of strictly structured blocks in Fortran):
4345 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4347 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4349 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4350 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4352 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4355 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4356 (struct gomp_work_share): Only use aligned(64) attribute if
4357 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4358 add padding before lock to ensure lock is at offset 64 bytes
4360 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4361 New poor man's static assertions.
4362 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4363 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4365 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4366 Richard Biener <rguenther@suse.de>
4368 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4370 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4372 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4373 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4375 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4384 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4386 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4388 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4389 type from char [50] to const char *.
4390 (places_array): Add a testcase for simplified syntax place followed
4391 by length or length and stride.
4393 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4395 * env.c (parse_one_place): Handle non-negative-number the same
4396 as { non-negative-number }. Reject even !number:1 and
4397 !number:1:stride or !place:1 or !place:1:stride instead of just
4398 length other than 1.
4399 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4400 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4401 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4403 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4406 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4408 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4409 clearly reject return value 0 as invalid handle the case where end
4410 pointer is the same as first argument as invalid.
4411 (parse_unsigned_long_1): Likewise.
4412 (parse_one_place): Likewise.
4413 (parse_places_var): Likewise.
4414 (parse_stacksize): Likewise.
4415 (parse_spincount): Likewise.
4416 (parse_affinity): Likewise.
4417 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4418 Make code valid C89.
4419 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4420 For strtoul calls which don't clearly reject return value 0 as
4421 invalid handle the case where end pointer is the same as first
4422 argument as invalid.
4423 (gomp_affinity_init_level_1): Likewise.
4424 (gomp_affinity_init_numa_domains): Likewise.
4425 * config/rtems/proc.c (parse_thread_pools): Likewise.
4427 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4429 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4430 after creating count places clean up and return immediately.
4431 * testsuite/libgomp.c/places-6.c: New test.
4432 * testsuite/libgomp.c/places-7.c: New test.
4433 * testsuite/libgomp.c/places-8.c: New test.
4434 * testsuite/libgomp.c/places-9.c: New test.
4435 * testsuite/libgomp.c/places-10.c: New test.
4437 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4439 * env.c (parse_places_var): Handle numa_domains as level 5.
4440 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4442 (gomp_affinity_init_level): Use it instead of
4443 gomp_affinity_init_level_1 for level == 5.
4444 * testsuite/libgomp.c/places-5.c: New test.
4446 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4448 * env.c (parse_places_var): Handle ll_caches as level 4.
4449 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4451 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4453 (gomp_affinity_init_level): Likewise.
4454 * testsuite/libgomp.c/places-1.c: New test.
4455 * testsuite/libgomp.c/places-2.c: New test.
4456 * testsuite/libgomp.c/places-3.c: New test.
4457 * testsuite/libgomp.c/places-4.c: New test.
4459 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4461 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4464 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4466 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4468 2021-10-12 Julian Brown <julian@codesourcery.com>
4470 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4473 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4475 * testsuite/libgomp.fortran/icv-3.f90: New.
4476 * testsuite/libgomp.fortran/icv-4.f90: New.
4478 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4480 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4481 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4482 OMP_TEAMS_THREAD_LIMIT): Document.
4484 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4486 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4487 to avoid makeinfo warnings.
4489 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4491 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4492 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4494 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4498 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4499 allocation sizes from 420 to 320 and from 768 to 568.
4500 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4501 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4502 for cr from 16 to 4.
4504 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4506 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4507 * testsuite/libgomp.c/scan-12.c: Likewise.
4508 * testsuite/libgomp.c/scan-13.c: Likewise.
4509 * testsuite/libgomp.c/scan-14.c: Likewise.
4510 * testsuite/libgomp.c/scan-15.c: Likewise.
4511 * testsuite/libgomp.c/scan-16.c: Likewise.
4512 * testsuite/libgomp.c/scan-17.c: Likewise.
4513 * testsuite/libgomp.c/scan-18.c: Likewise.
4514 * testsuite/libgomp.c/scan-19.c: Likewise.
4515 * testsuite/libgomp.c/scan-20.c: Likewise.
4516 * testsuite/libgomp.c/scan-21.c: Likewise.
4517 * testsuite/libgomp.c/scan-22.c: Likewise.
4518 * testsuite/libgomp.c++/scan-9.C: Likewise.
4519 * testsuite/libgomp.c++/scan-10.C: Likewise.
4520 * testsuite/libgomp.c++/scan-11.C: Likewise.
4521 * testsuite/libgomp.c++/scan-12.C: Likewise.
4522 * testsuite/libgomp.c++/scan-13.C: Likewise.
4523 * testsuite/libgomp.c++/scan-14.C: Likewise.
4524 * testsuite/libgomp.c++/scan-15.C: Likewise.
4525 * testsuite/libgomp.c++/scan-16.C: Likewise.
4527 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4529 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4531 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4533 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4535 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4536 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4537 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4538 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4540 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4542 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4543 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4544 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4545 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4546 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4547 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4548 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4549 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4550 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4551 omp_set_teams_thread_limit{,_,_8_}.
4552 * icv.c (omp_set_num_teams, omp_get_max_teams,
4553 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4555 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4556 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4557 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4559 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4560 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4561 is not specified, use gomp_nteams_var.
4562 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4563 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4565 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4566 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4567 omp_get_teams_thread_limit_): New functions.
4569 2021-10-09 liuhongt <hongtao.liu@intel.com>
4571 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4572 * testsuite/libgomp.c++/scan-11.C: Ditto.
4573 * testsuite/libgomp.c++/scan-12.C: Ditto.
4574 * testsuite/libgomp.c++/scan-13.C: Ditto.
4575 * testsuite/libgomp.c++/scan-14.C: Ditto.
4576 * testsuite/libgomp.c++/scan-15.C: Ditto.
4577 * testsuite/libgomp.c++/scan-16.C: Ditto.
4578 * testsuite/libgomp.c++/scan-9.C: Ditto.
4579 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4580 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4581 * testsuite/libgomp.c/scan-11.c: Ditto.
4582 * testsuite/libgomp.c/scan-12.c: Ditto.
4583 * testsuite/libgomp.c/scan-13.c: Ditto.
4584 * testsuite/libgomp.c/scan-14.c: Ditto.
4585 * testsuite/libgomp.c/scan-15.c: Ditto.
4586 * testsuite/libgomp.c/scan-16.c: Ditto.
4587 * testsuite/libgomp.c/scan-17.c: Ditto.
4588 * testsuite/libgomp.c/scan-18.c: Ditto.
4589 * testsuite/libgomp.c/scan-19.c: Ditto.
4590 * testsuite/libgomp.c/scan-20.c: Ditto.
4591 * testsuite/libgomp.c/scan-21.c: Ditto.
4592 * testsuite/libgomp.c/scan-22.c: Ditto.
4594 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4596 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4597 structured block sequences in C/C++. Mention support for
4598 unconstrained/reproducible modifiers on order clause.
4599 Mention partial (C/C++ only) support of extentensions to atomics
4600 construct. Mention partial (C/C++ on clause only) support of
4601 align/allocator modifiers on allocate clause.
4603 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4605 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4606 based on libgomp.c-c++-common/order-reproducible-1.c.
4607 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4608 * testsuite/libgomp.fortran/my-usleep.c: New test.
4610 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4612 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4613 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4614 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4615 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4616 based on libgomp.c-c++-common/alloc-9.c.
4618 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4620 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4621 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4623 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4625 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4627 * env.c (handle_omp_display_env): Use ialias_call.
4628 * icv-device.c: Move ialias right below each function.
4629 (omp_get_device_num): Use ialias_call.
4630 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4631 * icv.c (omp_get_active_level): Add ialias_redirect.
4633 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4635 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4636 __alloc_align__ (1) attribute.
4637 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4639 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4641 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4642 for -fintrinsic-modules-path= warning of the C compiler.
4643 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4644 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4646 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4648 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4649 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4650 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4652 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4654 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4655 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4656 * testsuite/libgomp.fortran/alloc-7.c: New test.
4657 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4658 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4659 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4661 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4663 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4664 omp_realloc): New prototypes.
4665 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4667 * allocator.c: Include string.h.
4668 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4669 variable and use it instead of alignment so that when retrying the old
4670 alignment is used again. Don't retry if new alignment is the same
4671 as old alignment, unless allocator had pool size.
4672 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4673 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4674 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4675 omp_aligned_calloc and omp_realloc.
4676 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4677 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4678 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4679 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4680 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4681 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4683 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4686 * configure.ac: Only check for int-type = 2*size_t support when
4687 building with Fortran support.
4688 * configure: Regenerate.
4690 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4692 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4693 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4695 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4697 * team.c: Initialize start_data.
4698 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4699 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4701 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4703 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4704 dg-message back to dg-note.
4706 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4709 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4710 expected dg-note output.
4712 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4715 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4716 r12-3722 by removing -Wno-missing-include-dirs.
4717 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4719 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4721 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4722 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4724 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4727 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4729 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4731 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4733 * testsuite/libgomp.c++/default-1.C: New test.
4734 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4735 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4736 to default clause in C and C++" as implemented.
4738 2021-09-17 Julian Brown <julian@codesourcery.com>
4740 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4742 2021-09-17 Julian Brown <julian@codesourcery.com>
4744 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4746 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4748 * libgomp.texi (OpenMP 5.1): Spelling fix,
4749 declare variante -> declare variant.
4751 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4753 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4754 Use /* */ comments instead of //.
4755 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4756 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4757 * testsuite/libgomp.c++/atomic-16.C: New test.
4758 * testsuite/libgomp.c++/atomic-17.C: New test.
4760 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4762 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4763 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4764 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4766 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4768 * libgomp.texi (OpenMP Implementation Status): Extend
4770 (OpenACC Profiling Interface): Fix typo.
4772 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4774 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4775 not to 4.5; link to new section.
4776 (OpenMP Implementation Status): New.
4778 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4780 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4782 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4784 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4786 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4788 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4789 Jakub Jelinek <jakub@redhat.com>
4791 * testsuite/libgomp.c/address-space-1.c: New file.
4793 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4795 * testsuite/lib/libgomp.exp
4796 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4797 (check_effective_target_offload_device_intel_mic): New 'proc'.
4798 * testsuite/libgomp.c-c++-common/on_device_arch.h
4799 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4800 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4802 * testsuite/libgomp.fortran/target10.f90: Likewise.
4804 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4806 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4807 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4808 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4809 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4811 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4813 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4814 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4815 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4817 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4819 * config/nvptx/error.c (fwrite, exit): Override, too.
4820 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4821 of offloading testing.
4822 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4824 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4826 * testsuite/libgomp.fortran/error-1.f90: New test.
4828 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4830 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4831 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4832 * error.c (GOMP_warning, GOMP_error): New functions.
4833 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4835 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4837 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4838 omp_target_free. omp_target_is_present, omp_target_memcpy,
4839 omp_target_memcpy_rect, omp_target_associate_ptr,
4840 omp_target_disassociate_ptr): Add interface.
4841 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4842 omp_target_free. omp_target_is_present, omp_target_memcpy,
4843 omp_target_memcpy_rect, omp_target_associate_ptr,
4844 omp_target_disassociate_ptr): Add interface.
4845 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4846 interface block for omp_alloc + omp_free.
4847 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4848 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4849 * testsuite/libgomp.fortran/target-12.f90: New test.
4851 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4853 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4855 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4857 * testsuite/libgomp.fortran/scope-1.f90: New test.
4858 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4860 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4862 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4863 * Makefile.in: Regenerated.
4864 * libgomp_g.h (GOMP_scope_start): Declare.
4865 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4866 * scope.c: New file.
4867 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4868 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4870 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4872 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4875 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4877 * testsuite/libgomp.fortran/masked-1.f90: New test.
4879 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4881 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4883 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4885 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4887 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4889 * env.c (parse_bind_var): Accept 'primary' as alias for
4891 (omp_display_env): Add TODO comment to
4892 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4893 * libgomp.texi: Change 'master thread' to 'primary thread'
4894 in line with OpenMP 5.1.
4895 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4896 omp_proc_bind_master is an alias of it.
4897 (OMP_PROC_BIND): Mention 'PRIMARY'.
4898 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4899 (omp_proc_bind_primary): Add.
4900 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4901 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4902 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4903 * omp_lib.h.in (omp_proc_bind_primary): Add.
4904 * testsuite/libgomp.c/affinity-1.c: Check that
4905 'primary' works and is identical to 'master'.
4907 2021-08-09 Julian Brown <julian@codesourcery.com>
4908 Kwok Cheung Yeung <kcy@codesourcery.com>
4909 Thomas Schwinge <thomas@codesourcery.com>
4911 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4913 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4914 [acc_device_radeon]: Update.
4915 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4916 [ACC_DEVICE_TYPE_radeon]: Likewise.
4917 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4918 [acc_device_radeon]: Likewise.
4919 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4920 [ACC_DEVICE_TYPE_radeon]: Likewise.
4921 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4922 'openacc_radeon_accel_selected' and '-O0'.
4923 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4925 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4927 * icv-device.c (omp_get_device_num): New API function, host side.
4928 * fortran.c (omp_get_device_num_): New interface function.
4929 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4930 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4931 omp_get_device_num_.
4932 * libgomp.texi (omp_get_device_num): Add documentation for new API
4934 * omp.h.in (omp_get_device_num): Add declaration.
4935 * omp_lib.f90.in (omp_get_device_num): Likewise.
4936 * omp_lib.h.in (omp_get_device_num): Likewise.
4937 * target.c (gomp_load_image_to_device): If additional entry for device
4938 number exists at end of returned entries from 'load_image_func' hook,
4939 copy the assigned device number over to the device variable.
4940 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4941 (omp_get_device_num): New API function, device side.
4942 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4943 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4944 at end of returned 'target_table' entries.
4945 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4946 (omp_get_device_num): New API function, device side.
4947 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4948 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4949 at end of returned 'target_table' entries.
4950 * testsuite/lib/libgomp.exp
4951 (check_effective_target_offload_target_intelmic): New function for
4952 testing for intelmic offloading.
4953 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4954 * testsuite/libgomp.fortran/target10.f90: New test.
4956 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4957 Ulrich Drepper <drepper@redhat.com>
4959 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4960 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4962 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4963 Julian Brown <julian@codesourcery.com>
4964 Kwok Cheung Yeung <kcy@codesourcery.com>
4966 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4967 's%oaccdevlow%oaccloops%g'.
4968 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4969 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4970 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4972 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4974 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4976 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4978 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4980 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4982 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4984 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4986 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4988 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4990 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4992 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4994 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4996 * env.c (wait_policy, stacksize): New static variables,
4997 move out of handle_omp_display_env.
4998 (omp_display_env): New function. The meat of the old
4999 handle_omp_display_env function.
5000 (handle_omp_display_env): Change to not take parameters
5001 and instead use the global variables. Only perform
5002 parsing, defer to omp_display_env for the implementation.
5003 (initialize_env): Remove local variables wait_policy and
5004 stacksize. Don't pass parameters to handle_omp_display_env.
5005 * fortran.c: Add ialias_redirect for omp_display_env.
5006 (omp_display_env_, omp_display_env_8_): New functions.
5007 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5008 omp_display_env_, and omp_display_env_8_.
5009 * omp.h.in: Declare omp_display_env.
5010 * omp_lib.f90.in: Likewise.
5011 * omp_lib.h.in: Likewise.
5013 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5014 Julian Brown <julian@codesourcery.com>
5016 * target.c (gomp_coalesce_buf_add): Update comment.
5017 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5019 (gomp_map_vars_internal): Only 'if (!aq)', do
5020 'gomp_coalesce_buf_add'.
5021 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5024 2021-07-27 Julian Brown <julian@codesourcery.com>
5025 Thomas Schwinge <thomas@codesourcery.com>
5027 * libgomp.h (gomp_copy_host2dev): Update prototype.
5028 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5029 argument to gomp_copy_host2dev (false).
5030 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5031 (copy_data): Don't free src.
5032 (queue_push_copy): Remove free_src handling.
5033 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5034 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5036 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5038 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5039 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5040 data when true, and set up deferred freeing of temporary buffer.
5041 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5042 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5043 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5044 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5045 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5048 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5049 Tom de Vries <tom@codesourcery.com>
5051 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5052 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5054 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5056 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5057 sequencing of 'async' data copying vs. profiling events.
5058 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5061 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5062 Julian Brown <julian@codesourcery.com>
5064 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5065 'async'/'wait' issue.
5066 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5067 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5068 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5070 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5071 Joseph Myers <joseph@codesourcery.com>
5072 Cesar Philippidis <cesar@codesourcery.com>
5074 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5076 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5078 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5080 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5082 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5085 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5086 '-Wno-error=array-bounds'.
5087 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5088 * libgomp.h [__AMDGCN__]: Likewise.
5090 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5093 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5094 * libgomp.h [__AMDGCN__]: Likewise.
5096 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5097 Florian Weimer <fweimer@redhat.com>
5099 * config/linux/sem.h: Don't include limits.h.
5100 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5101 * config/linux/affinity.c: Include limits.h.
5103 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5106 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5108 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5111 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5112 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5113 avoid disabling other offload targets.
5114 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5115 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5116 * testsuite/libgomp.c/target-44.c: Likewise.
5118 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5120 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5121 target has shared memory and disable some scalar pointer/allocatable
5122 checks if not as firstprivate does not work.
5124 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5127 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5128 Add "target offload_device_nonshared_as" condition for enabling test.
5130 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5132 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5133 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5134 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5135 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5137 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5139 PR middle-end/101167
5140 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5142 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5144 * hashtab.h (htab_clear): New function with initialization code
5145 factored out from...
5146 (htab_create): ...here, adjust to use htab_clear function.
5147 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5148 special refcount values, add comments.
5149 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5150 (REFCOUNT_LINK): Likewise.
5151 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5153 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5155 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5156 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5157 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5158 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5159 (struct splay_tree_key_s): Add structelem_refcount and
5160 structelem_refcount_ptr fields into a union with dynamic_refcount.
5162 (gomp_map_vars): Delete declaration.
5163 (gomp_map_vars_async): Likewise.
5164 (gomp_unmap_vars): Likewise.
5165 (gomp_unmap_vars_async): Likewise.
5166 (goacc_map_vars): New declaration.
5167 (goacc_unmap_vars): Likewise.
5168 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5169 (goacc_enter_datum): Likewise.
5170 (goacc_enter_data_internal): Likewise.
5171 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5172 and goacc_unmap_vars.
5173 (GOACC_data_start): Adjust to use goacc_map_vars.
5174 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5175 * target.c (hash_entry_type): New typedef.
5176 (htab_alloc): New function hook for hashtab.h.
5177 (htab_free): Likewise.
5178 (htab_hash): Likewise.
5179 (htab_eq): Likewise.
5180 (hashtab.h): Add file include.
5181 (gomp_increment_refcount): New function.
5182 (gomp_decrement_refcount): Likewise.
5183 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5184 gomp_increment_refcount.
5185 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5186 to gomp_map_vars_existing.
5187 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5188 variable to guard OpenMP specific paths, adjust calls to
5189 gomp_map_vars_existing, add structure element sibling splay_tree_key
5190 sequence creation code, adjust Fortran map case to avoid increment
5192 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5193 local refcount_set if caller passed in NULL, adjust call to
5194 gomp_map_vars_internal.
5195 (gomp_map_vars_async): Adjust and rename into...
5196 (goacc_map_vars): ...this new function, adjust call to
5197 gomp_map_vars_internal.
5198 (gomp_remove_splay_tree_key): New function with code factored out from
5199 gomp_remove_var_internal.
5200 (gomp_remove_var_internal): Add code to handle removing multiple
5201 splay_tree_key sequence for structure elements, adjust code to use
5202 gomp_remove_splay_tree_key for splay-tree key removal.
5203 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5204 gomp_decrement_refcount.
5205 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5206 local refcount_set if caller passed in NULL, adjust call to
5207 gomp_unmap_vars_internal.
5208 (gomp_unmap_vars_async): Adjust and rename into...
5209 (goacc_unmap_vars): ...this new function, adjust call to
5210 gomp_unmap_vars_internal.
5211 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5213 (GOMP_target_ext): Likewise.
5214 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5215 (GOMP_target_data): Likewise.
5216 (GOMP_target_data_ext): Likewise.
5217 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5218 (gomp_exit_data): Add refcount_set parameter, adjust to use
5219 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5221 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5222 gomp_map_vars and gomp_exit_data.
5223 (gomp_target_task_fn): Likewise.
5224 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5225 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5226 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5227 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5228 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5229 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5231 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5234 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5236 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5237 Thomas Schwinge <thomas@codesourcery.com>
5239 * libgomp.map (GOACC_2.0.2): New symbol version.
5240 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5241 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5243 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5244 Andrew Stubbs <ams@codesourcery.com>
5246 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5248 (GOACC_enter_exit_data): ... here.
5249 (GOACC_declare): Use it.
5251 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5253 * oacc-parallel.c (GOACC_declare): Move...
5254 * oacc-mem.c: ... here.
5255 * libgomp_g.h: Adjust.
5257 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5258 Thomas Schwinge <thomas@codesourcery.com>
5260 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5263 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5265 PR tree-optimization/100981
5266 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5267 dsdotr and dsdoti to 0.
5269 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5271 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5272 if atomic compare-and-swap is supported on 'int'.
5274 2021-06-09 Richard Biener <rguenther@suse.de>
5276 PR tree-optimization/100981
5277 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5279 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5281 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5283 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5285 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5288 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5290 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5291 '-DACC_MEM_SHARED=0'.
5292 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5305 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5307 'acc_device_radeon' testing.
5308 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5309 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5310 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5312 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5315 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5316 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5317 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5318 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5319 for non-'openacc_nvidia_accel_selected'.
5320 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5321 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5322 all implement this checking".
5323 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5324 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5325 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5326 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5327 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5329 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5331 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5332 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5334 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5336 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5337 for 'acc_device_radeon'.
5339 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5341 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5342 for non-'acc_device_nvidia'.
5344 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5346 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5347 'acc_device_radeon' testing.
5348 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5349 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5350 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5352 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5354 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5355 require 'openacc_nvidia_accel_selected'. Fix up for
5356 'ACC_DEVICE_TYPE_radeon'.
5358 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5360 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5361 'openacc_nvidia_accel_selected'.
5362 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5364 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5366 * testsuite/lib/libgomp.exp
5367 (check_effective_target_openacc_radeon_accel_selected):
5370 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5372 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5375 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5377 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5378 <acc_device_nvidia>: Update comment.
5380 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5382 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5384 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5386 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5387 check_effective_target_openacc_cublas,
5388 check_effective_target_openacc_cudart): New.
5389 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5390 target openacc_cublas.
5391 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5392 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5393 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5394 target openacc_cuda.
5395 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5397 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5404 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5412 targets openacc_cublas and openacc_cudart.
5413 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5414 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5415 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5417 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5418 Require effective target openacc_cudart.
5419 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5420 for effective target openacc_cuda and add && defined USE_CUDA_H to
5421 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5424 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5427 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5428 GOMP_target_end_data, GOMP_target_update_ext,
5429 GOMP_target_enter_exit_data): New dummy entrypoints.
5430 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5431 GOMP_target_end_data, GOMP_target_update_ext,
5432 GOMP_target_enter_exit_data): Likewise.
5433 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5434 OMPFROM, OMPTO): Define.
5435 (main): Remove #pragma omp target teams around all the tests.
5436 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5437 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5439 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5442 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5444 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5447 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5448 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5449 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5451 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5454 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5455 uninteresting/varying diagnostics.
5457 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5460 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5461 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5463 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5466 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5468 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5469 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5472 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5474 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5476 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5478 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5480 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5482 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5484 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5486 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5488 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5490 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5492 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5494 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5496 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5498 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5500 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5502 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5504 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5506 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5508 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5510 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5512 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5513 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5514 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5515 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5516 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5517 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5518 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5519 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5520 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5521 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5522 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5523 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5524 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5525 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5526 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5528 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5530 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5532 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5534 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5535 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5537 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5538 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5539 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5540 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5541 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5542 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5543 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5545 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5547 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5549 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5551 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5553 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5555 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5557 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5559 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5561 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5563 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5565 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5567 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5569 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5570 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5571 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5573 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5575 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5576 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5577 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5579 2021-05-21 Julian Brown <julian@codesourcery.com>
5580 Chung-Lin Tang <cltang@codesourcery.com>
5581 Thomas Schwinge <thomas@codesourcery.com>
5584 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5586 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5588 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5591 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5593 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5594 for nvptx offloading.
5596 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5598 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5600 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5603 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5605 2021-05-19 Julian Brown <julian@codesourcery.com>
5607 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5609 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5611 * testsuite/lib/libgomp.exp
5612 (check_effective_target_offload_target_nvptx): Don't shadow global
5613 'offload_targets' variable.
5615 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5617 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5618 '-latomic' to nvptx offloading compilation.
5619 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5621 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5623 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5624 offloading compilation.
5626 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5628 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5629 if new tasks generated.
5630 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5632 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5634 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5636 2021-05-13 Martin Liska <mliska@suse.cz>
5639 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5640 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5641 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5642 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5644 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5646 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5647 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5649 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5651 PR middle-end/100471
5652 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5653 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5655 * testsuite/libgomp.c/task-reduction-4.c: New test.
5657 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5658 Tom de Vries <tdevries@suse.de>
5660 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5661 complex/floating-point || + && reduction with 'omp target'.
5662 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5664 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5666 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5667 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5668 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5669 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5671 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5674 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5675 declaration to scope of non-'depend'-guarded assignment to avoid races.
5677 2021-05-03 Tom de Vries <tdevries@suse.de>
5680 * testsuite/libgomp.c/target-44.c: New test.
5682 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5684 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5686 2021-04-29 Tom de Vries <tdevries@suse.de>
5688 * testsuite/libgomp.c/pr81778.c: New test.
5690 2021-04-29 Tom de Vries <tdevries@suse.de>
5693 * testsuite/libgomp.c/target-43.c: New file.
5695 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5696 Tobias Burnus <tobias@codesourcery.com>
5698 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5699 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5700 can't be dlopened, silently assume it has no devices.
5701 * Makefile.in: Regenerate.
5702 * config.h.in: Regenerate.
5703 * configure: Regenerate.
5705 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5707 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5708 Use [Ww]arning in dg-bogus as FE diagnostic and default
5709 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5710 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5711 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5712 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5714 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5716 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5717 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5718 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5719 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5720 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5722 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5723 Nathan Sidwell <nathan@codesourcery.com>
5724 Tom de Vries <vries@codesourcery.com>
5725 Julian Brown <julian@codesourcery.com>
5726 Kwok Cheung Yeung <kcy@codesourcery.com>
5728 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5729 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5730 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5731 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5732 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5733 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5734 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5736 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5737 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5738 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5739 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5741 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5742 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5744 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5745 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5746 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5747 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5748 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5749 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5751 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5752 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5753 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5754 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5755 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5756 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5757 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5758 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5759 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5760 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5761 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5763 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5765 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5767 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5768 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5770 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5771 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5772 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5773 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5774 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5775 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5776 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5778 2021-04-22 Richard Biener <rguenther@suse.de>
5780 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5783 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5785 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5786 omp_depend_kind instead of defining it as 16.
5788 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5790 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5791 New, based on check_effective_target_offload_target_nvptx.
5792 (check_effective_target_offload_target_nvptx): Call it.
5793 (check_effective_target_offload_target_amdgcn): New.
5794 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5795 Require target offload_target_nvptx || offload_target_amdgcn.
5796 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5797 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5798 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5800 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5802 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5804 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5806 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5807 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5808 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5810 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5812 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5814 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5817 * testsuite/lib/libgomp.exp
5818 (check_effective_target_offload_device_nvptx): New.
5819 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5820 resolved, make sure that we exit quickly, with error status,
5822 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5823 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5825 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5828 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5829 cp = omp_alloc with cp, p arguments instead of cq, q and call
5830 c_f_pointer after last cq = omp_alloc with cq, q.
5832 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5835 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5836 for loop with GT/GE condition.
5837 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5839 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5844 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5846 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5849 * team.c (gomp_thread_start): Call pthread_setspecific for
5850 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5851 has been initialized to avoid false positive warning.
5853 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5856 * testsuite/lib/on_device_arch.c: Move to ...
5857 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5858 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5859 #include on_device_arch.h.
5860 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5861 on_device_arch.h instead of using dg-additional-source.
5862 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5863 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5864 on_device_arch.c without relative paths.
5866 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5868 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5869 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5870 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5871 * config.h.in: Regenerate.
5872 * configure: Likewise.
5874 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5877 * testsuite/lib/on_device_arch.c: New file.
5878 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5879 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5880 skip for nvptx offloading, with error status.
5881 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5883 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5885 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5886 OpenACC 'serial' construct diagnostic for nvptx offloading.
5888 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5891 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5893 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5896 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5898 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5900 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5901 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5902 checking of -m32 or -mx32 options on the command line.
5903 * config.h.in: Regenerated.
5904 * configure: Regenerated.
5906 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5908 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5909 support from the target.
5911 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5912 Jakub Jelinek <jakub@redhat.com>
5915 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5916 (struct gomp_task): Replace detach and completion_sem fields with
5917 union containing completion_sem and detach_team. Add deferred_p
5919 (struct gomp_team): Remove task_detach_queue.
5920 * task.c: Include assert.h.
5921 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5922 Rearrange initialization order of fields.
5923 (task_fulfilled_p): Delete.
5924 (GOMP_task): Use address of task as the event handle. Remove
5925 initialization of detach field. Initialize deferred_p field.
5926 Use automatic local for completion_sem. Initialize detach_team field
5928 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5929 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5930 decrement task_running_count. Move finish_cancelled block out of
5931 else branch. Relocate call to gomp_team_barrier_done.
5932 (GOMP_taskwait): Handle tasks with completion events that have not
5934 (GOMP_taskgroup_end): Likewise.
5935 (omp_fulfill_event): Use address of task as event handle. Post to
5936 completion_sem for undeferred tasks. Clear detach_team if task
5937 has not finished. For finished tasks, handle post-execution tasks,
5938 call gomp_team_barrier_wake if necessary, and free task.
5939 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5940 (free_team): Remove free of task_detach_queue.
5941 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5942 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5943 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5944 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5945 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5946 Change data-sharing of detach events on enclosing parallel to private.
5947 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5949 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5950 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5951 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5952 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5953 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5954 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5955 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5956 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5957 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5958 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5959 Change data-sharing of detach events on enclosing parallel to private.
5960 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5962 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5963 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5964 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5965 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5966 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5968 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5971 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5973 2021-02-17 Julian Brown <julian@codesourcery.com>
5975 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5978 2021-02-17 Julian Brown <julian@codesourcery.com>
5980 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5981 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5983 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5985 * config/linux/x86/futex.h (__futex_wait):
5986 Revert output type back to long.
5987 (__futex_wake): Ditto.
5988 (futex_wait): Update for revert.
5989 (futex_wake): Ditto.
5991 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5993 * config/linux/x86/futex.h (__futex_wait): New static inline
5994 wrapper function. Correct output type to int and
5995 timeout type to void *.
5996 (__futex_wake): New static inline wrapper function.
5997 Correct output type to int.
5998 (futex_wait): Use __futex_wait.
5999 (futex_wake): Use __futex_wake.
6001 2021-02-10 Julian Brown <julian@codesourcery.com>
6004 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6007 2021-02-04 Julian Brown <julian@codesourcery.com>
6009 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6011 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6013 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6014 EF_AMDGPU_MACH_AMDGCN_GFX908.
6015 (gcn_gfx908_s): New constant string.
6016 (isa_hsa_name): Add gfx908.
6017 (isa_code): Add gfx908.
6019 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6021 * libgomp.texi (omp_fulfill_event): New entry.
6023 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6025 * task.c (GOMP_task): Rename priority argument to priority_arg,
6026 add priority automatic variable and modify that variable. Instead of
6027 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6028 check flags for that bit.
6030 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6033 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6035 2021-01-18 Andreas Schwab <schwab@suse.de>
6037 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6039 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6041 * config/rtems/sem.h (gomp_sem_getcount): New function.
6043 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6045 * config/linux/sem.h (gomp_sem_getcount): New function.
6046 * config/posix/sem.h (gomp_sem_getcount): New function.
6047 * config/posix/sem.c (gomp_sem_getcount): New function.
6048 * config/accel/sem.h (gomp_sem_getcount): New function.
6049 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6050 (omp_fulfill_event): Likewise.
6052 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6054 * fortran.c (omp_fulfill_event_): New.
6055 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6056 (struct gomp_team): Add task_detach_queue and task_detach_count
6058 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6059 * libgomp_g.h (GOMP_task): Add extra argument.
6060 * omp.h.in (enum omp_event_handle_t): New.
6061 (omp_fulfill_event): New.
6062 * omp_lib.f90.in (omp_event_handle_kind): New.
6063 (omp_fulfill_event): New.
6064 * omp_lib.h.in (omp_event_handle_kind): New.
6065 (omp_fulfill_event): Declare.
6066 * priority_queue.c (priority_tree_find): New.
6067 (priority_list_find): New.
6068 (priority_queue_find): New.
6069 * priority_queue.h (priority_queue_predicate): New.
6070 (priority_queue_find): New.
6071 * task.c (gomp_init_task): Initialize detach field.
6072 (task_fulfilled_p): New.
6073 (GOMP_task): Add detach argument. Ignore detach argument if
6074 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6075 field. Copy address of completion_sem into detach argument and
6076 into the start of the data record. Wait for detach event if task
6078 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6079 Remove completed tasks and requeue dependent tasks.
6080 (omp_fulfill_event): New.
6081 * team.c (gomp_new_team): Initialize task_detach_queue and
6082 task_detach_count fields.
6083 (free_team): Free task_detach_queue field.
6084 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6085 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6086 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6087 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6088 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6089 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6090 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6091 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6092 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6093 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6094 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6095 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6097 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6100 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6101 be added through preprocessor check on
6102 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6104 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6107 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6109 * configure: Regenerate.
6110 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6113 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6115 * configure: Re-generate.
6117 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6119 * configure: Re-generate.
6121 2021-01-05 Julian Brown <julian@codesourcery.com>
6123 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6124 (struct ptx_device): Add omp_stacks struct.
6125 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6126 (nvptx_close_device): Free cached stacks block and mutex.
6127 (nvptx_stacks_free): New function.
6128 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6129 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6130 (nvptx_stacks_alloc): Rename to...
6131 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6132 size or smaller is required.
6133 (nvptx_stacks_free): Remove.
6134 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6135 during kernel execution.
6137 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6139 * libgomp.texi: Bump @copying's copyright year.
6141 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6143 * libgomp.texi (Top): Avoid bad "up" link.
6145 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6147 * testsuite/libgomp.c/task-6.c: New test.
6149 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6151 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6152 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6154 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6156 * testsuite/libgomp.fortran/scan-1.f90: New test.
6158 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6161 * configure: Regenerate.
6163 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6165 * configure: Regenerate.
6167 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6169 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6170 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6172 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6174 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6177 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6179 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6180 (reserved): Delete unused define.
6182 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6184 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6185 Tcl 8.5-specific behavior.
6186 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6188 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6190 * env.c (gomp_global_icv): Remove nest_var field. Add
6191 max_active_levels_var field.
6192 (gomp_max_active_levels_var): Remove.
6193 (parse_boolean): Return true on success.
6194 (handle_omp_display_env): Express OMP_NESTED in terms of
6195 max_active_levels_var. Change format specifier for
6196 max_active_levels_var.
6197 (initialize_env): Set max_active_levels_var from
6198 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6200 * icv.c (omp_set_nested): Express in terms of
6201 max_active_levels_var.
6202 (omp_get_nested): Likewise.
6203 (omp_set_max_active_levels): Use max_active_levels_var field instead
6204 of gomp_max_active_levels_var.
6205 (omp_get_max_active_levels): Likewise.
6206 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6207 max_active_levels_var field.
6208 (gomp_supported_active_levels): Set to UCHAR_MAX.
6209 (gomp_max_active_levels_var): Delete.
6210 * libgomp.texi (omp_get_nested): Update documentation.
6211 (omp_set_nested): Likewise.
6212 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6213 (OMP_NESTED): Likewise.
6214 (OMP_NUM_THREADS): Likewise.
6215 (OMP_PROC_BIND): Likewise.
6216 * parallel.c (gomp_resolve_num_threads): Replace reference
6217 to nest_var with max_active_levels_var. Use max_active_levels_var
6218 field instead of gomp_max_active_levels_var.
6220 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6222 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6223 nvptx_usleep; use also for device={arch(gcn)}.
6225 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6227 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6228 (foo): Add tests for non-VLA private and firstprivate clauses on
6230 (bar): Likewise. Remove taking of address from private/firstprivate
6232 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6233 (foo): Add p, q, px and s arguments. Add tests for array reductions
6234 and for non-VLA private and firstprivate clauses on omp task.
6236 (main): Adjust foo caller. Don't call bar.
6238 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6239 Thomas Schwinge <thomas@codesourcery.com>
6241 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6243 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6245 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6247 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6248 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6250 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6251 Thomas Schwinge <thomas@codesourcery.com>
6254 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6256 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6258 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6259 for array reductions.
6260 (main): Adjust foo callers.
6262 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6264 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6265 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6266 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6267 * allocator.c (omp_aligned_alloc): New for now static function,
6268 add alignment argument and handle it.
6269 (omp_alloc): Reimplement using omp_aligned_alloc.
6270 (GOMP_alloc, GOMP_free): New functions.
6271 (omp_free): Add ialias.
6272 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6273 * testsuite/libgomp.c++/allocate-1.C: New test.
6275 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6278 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6280 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6282 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6284 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6285 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6286 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6287 (goacc_enter_data_internal): Likewise.
6288 * target.c (gomp_map_vars_internal):
6289 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6290 of gomp_attach_pointer for OpenMP cases.
6291 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6292 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6293 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6295 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6296 Kwok Cheung Yeung <kcy@codesourcery.com>
6298 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6299 * Makefile.in: Regenerate.
6300 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6301 pragmas to ignore -Wdeprecated-declarations warnings.
6303 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6304 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6305 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6306 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6308 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6310 * testsuite/libgomp.c/affinity-1.c: Likewise.
6311 * testsuite/libgomp.c/affinity-2.c: Likewise.
6312 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6313 * testsuite/libgomp.c/lib-1.c: Likewise.
6314 * testsuite/libgomp.c/nested-1.c: Likewise.
6315 * testsuite/libgomp.c/nested-2.c: Likewise.
6316 * testsuite/libgomp.c/nested-3.c: Likewise.
6317 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6318 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6319 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6320 * testsuite/libgomp.c/pr35549.c: Likewise.
6321 * testsuite/libgomp.c/pr42942.c: Likewise.
6322 * testsuite/libgomp.c/pr61200.c: Likewise.
6323 * testsuite/libgomp.c/sort-1.c: Likewise.
6324 * testsuite/libgomp.c/target-5.c: Likewise.
6325 * testsuite/libgomp.c/target-6.c: Likewise.
6326 * testsuite/libgomp.c/teams-1.c: Likewise.
6327 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6328 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6329 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6330 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6331 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6332 * testsuite/libgomp.fortran/lib2.f: Likewise.
6333 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6334 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6336 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6339 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6340 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6341 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6343 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6347 * testsuite/lib/libgomp.exp (libgomp_init): Set
6348 'gcc_warning_prefix', 'gcc_error_prefix'.
6350 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6352 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6353 even in field_tgt_clear initializer.
6355 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6357 * testsuite/libgomp.c/target-42.c: New test.
6359 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6360 Tom de Vries <tdevries@suse.de>
6363 * testsuite/libgomp.c/usleep.h: New file.
6364 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6365 (main): Use tgt_usleep instead of usleep.
6366 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6367 (main): Use tgt_usleep instead of usleep.
6369 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6372 * testsuite/libgomp.c/declare-variant-1.c: New test.
6374 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6376 * testsuite/libgomp.c/target-41.c: New test.
6378 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6380 * icv.c (omp_get_initial_device): Remove including corresponding
6382 * icv-device.c (omp_get_initial_device): New function. Return
6383 gomp_get_num_devices (). Add ialias.
6384 * target.c (resolve_device): Don't fail with
6385 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6386 gomp_get_num_devices ().
6387 (omp_target_alloc, omp_target_free, omp_target_is_present,
6388 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6389 omp_target_disassociate_ptr, omp_pause_resource): Use
6390 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6391 first use in the functions, in uses dominated by the
6392 gomp_get_num_devices call use num_devices_openmp instead.
6393 * libgomp.texi (omp_get_initial_device): Document.
6394 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6396 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6397 * testsuite/libgomp.c/target-40.c: New test.
6399 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6401 * env.c (parse_target_offload): Change new_offload var type to int,
6402 preinitialize to -1, remove found var and test new_offload != -1
6405 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6407 * target.c (gomp_target_init): Inside of the function, use automatic
6408 variables corresponding to num_devices, num_devices_openmp and devices
6409 global variables and update the globals only at the end of the
6412 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6414 * env.c (gomp_target_offload_var): New.
6415 (parse_target_offload): New.
6416 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6417 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6418 * libgomp.h (gomp_target_offload_t): New.
6419 (gomp_target_offload_var): New.
6420 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6421 * target.c (resolve_device): Generate error if device not found and
6422 offloading is mandatory.
6423 (gomp_target_fallback): Generate error if offloading is mandatory.
6424 (GOMP_target): Add argument in call to gomp_target_fallback.
6425 (GOMP_target_ext): Likewise.
6426 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6427 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6428 (GOMP_target_data_ext): Likewise.
6429 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6430 (gomp_target_init): Return early if offloading is disabled.
6432 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6434 * libgomp.texi (omp_get_max_active_levels): Modify description.
6435 (omp_get_supported_active_levels): Make descriptions consistent.
6437 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6439 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6441 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6443 * env.c (gomp_max_active_levels_var): Initialize to
6444 gomp_supported_active_levels.
6445 (initialize_env): Limit gomp_max_active_levels_var to be at most
6446 equal to gomp_supported_active_levels.
6447 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6448 (omp_get_supported_active_levels_): New.
6449 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6450 to at most equal to gomp_supported_active_levels.
6451 (omp_get_supported_active_levels): New.
6452 * libgomp.h (gomp_supported_active_levels): New.
6453 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6454 omp_get_supported_active_levels_.
6455 * libgomp.texi (omp_get_supported_active_levels): New.
6456 (omp_set_max_active_levels): Update. Add reference to
6457 omp_get_supported_active_levels.
6458 * omp.h.in (omp_get_supported_active_levels): New.
6459 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6460 * omp_lib.h.in (omp_get_supported_active_levels): New.
6461 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6462 against omp_get_supported_active_levels.
6463 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6465 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6467 * config/t-aix: Delete and recreate libgomp before creating
6470 2020-10-08 Tom de Vries <tdevries@suse.de>
6473 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6476 2020-10-06 Tom de Vries <tdevries@suse.de>
6478 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6480 2020-10-06 Tom de Vries <tdevries@suse.de>
6483 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6485 2020-10-05 Tom de Vries <tdevries@suse.de>
6488 * testsuite/libgomp.fortran/pr95654.f90: New test.
6490 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6492 * Makefile.in: Regenerate with automake 1.15.1.
6493 * aclocal.m4: Likewise.
6494 * configure: Likewise.
6495 * testsuite/Makefile.in: Likewise.
6497 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6499 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6502 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6504 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6506 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6508 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6509 total number of threads is one.
6510 (gomp_team_barrier_wake): Likewise.
6511 (gomp_team_barrier_wait_end): Likewise.
6512 (gomp_team_barrier_wait_cancel_end): Likewise.
6513 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6514 (gomp_team_barrier_wake): Likewise.
6515 (gomp_team_barrier_wait_end): Likewise.
6516 (gomp_team_barrier_wait_cancel_end): Likewise.
6517 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6519 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6522 * testsuite/libgomp.c++/pr96390.C: New test.
6523 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6525 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6527 * config/t-aix: Use $(AR) without -X32_64.
6529 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6531 * testsuite/libgomp.c/loop-25.c: New test.
6533 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6536 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6538 2020-09-22 Tom de Vries <tdevries@suse.de>
6540 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6543 2020-09-16 Nathan Sidwell <nathan@acm.org>
6545 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6547 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6550 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6552 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6555 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6556 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6557 (gomp_map_vars_existing): Update call to it.
6558 (gomp_map_fields_existing): Likewise
6559 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6560 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6562 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6564 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6565 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6567 2020-09-14 Tom de Vries <tdevries@suse.de>
6569 * config/nvptx/atomic.c: New file. Add
6570 __sync_val_compare_and_swap_16.
6571 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6572 target offload_target_nvptx.
6574 2020-09-08 Julian Brown <julian@codesourcery.com>
6576 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6577 iteration-ordering assumptions.
6579 2020-09-08 Julian Brown <julian@codesourcery.com>
6581 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6582 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6584 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6586 * plugin/plugin-nvptx.c (nvptx_free):
6587 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6588 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6591 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6593 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6595 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6597 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6599 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6601 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6602 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6603 * testsuite/libgomp.c/loop-24.c: New test.
6605 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6606 Tobias Burnus <tobias@codesourcery.com>
6609 * testsuite/libgomp.fortran/pr93553.f90: New test.
6611 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6613 * testsuite/libgomp.c/loop-22.c: New test.
6614 * testsuite/libgomp.c/loop-23.c: New test.
6616 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6619 * testsuite/libgomp.c/teams-3.c: New test.
6620 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6622 (N(test)): Use it before all N(f*) calls.
6623 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6624 (main): Don't call all test_* functions from within
6625 #pragma omp teams reduction(|:err), call them directly.
6627 2020-08-04 Tom de Vries <tdevries@suse.de>
6630 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6631 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6633 2020-08-03 Julian Brown <julian@codesourcery.com>
6634 Thomas Schwinge <thomas@codesourcery.com>
6636 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6637 shared-memory devices. Extend with further checking.
6639 2020-08-03 Martin Jambor <mjambor@suse.cz>
6641 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6642 * aclocal.m4: Regenerated.
6643 * Makefile.in: Regenerated.
6644 * config.h.in: Regenerated.
6645 * configure: Regenerated.
6646 * plugin/configfrag.ac: Likewise.
6647 * plugin/hsa_ext_finalize.h: Removed.
6648 * plugin/plugin-hsa.c: Likewise.
6649 * testsuite/Makefile.in: Regenerated.
6650 * testsuite/lib/libgomp.exp
6651 (offload_target_to_openacc_device_type): Remove hsa case.
6652 (check_effective_target_hsa_offloading_selected_nocache): Removed
6653 (check_effective_target_hsa_offloading_selected): Likewise.
6654 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6655 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6656 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6657 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6658 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6659 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6660 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6661 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6662 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6663 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6664 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6665 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6666 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6667 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6668 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6669 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6670 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6671 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6672 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6673 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6674 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6675 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6676 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6677 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6678 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6680 2020-07-27 Julian Brown <julian@codesourcery.com>
6681 Thomas Schwinge <thomas@codesourcery.com>
6683 * libgomp.h (struct target_var_desc): Rename do_detach field to
6685 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6686 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6687 (goacc_enter_data_internal): Don't affect reference counts
6688 for attach mappings.
6689 (goacc_exit_data_internal): Don't affect reference counts for detach
6691 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6693 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6694 mark attach mappings.
6695 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6696 reference count for attach mappings.
6697 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6698 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6699 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6700 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6702 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6703 gracefully in no-finalize mode.
6704 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6706 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6708 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6710 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6711 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6713 2020-07-23 Julian Brown <julian@codesourcery.com>
6714 Thomas Schwinge <thomas@codesourcery.com>
6716 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6717 finalization for detach operation.
6718 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6721 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6723 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6724 * libgomp_f.h.in (omp_check_defines): Check whether
6725 sizeof of determined Fortran kind and C typedef match.
6726 * omp_lib.f90.in: Add omp_depened_kind.
6727 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6728 * configure: Regenerate.
6729 * Makefile.in: Regenerate.
6730 * testsuite/Makefile.in: Regenerate.
6732 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6734 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6735 gcc/testsuite/c-c++-common/gomp/.
6736 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6737 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6738 from gcc/testsuite/gfortran.dg/gomp/.
6739 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6741 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6743 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6744 * omp_lib.h.in: Likewise.
6746 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6749 * testsuite/libgomp.c/pr95620.c: New test.
6751 2020-07-16 Julian Brown <julian@codesourcery.com>
6752 Thomas Schwinge <thomas@codesourcery.com>
6754 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6755 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6757 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6759 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6760 avoid conversion on 32bit systems from 32bit to 64bit due
6761 to -fdefault-integer-8.
6763 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6765 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6766 variables; add character(kind=4) tests; update TODO comment.
6768 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6770 * allocator.c: Add ialias for omp_init_allocator and
6771 omp_destroy_allocator.
6772 * configure.ac: Set INTPTR_T_KIND.
6773 * configure: Regenerate.
6774 * Makefile.in: Regenerate.
6775 * testsuite/Makefile.in: Regenerate.
6776 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6777 omp_set_default_allocator_, omp_get_default_allocator_): New
6778 functions and ialias_redirect.
6779 * icv.c: Add ialias for omp_set_default_allocator and
6780 omp_get_default_allocator.
6781 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6782 omp_destroy_allocator_, omp_set_default_allocator_ and
6783 omp_get_default_allocator_.
6784 * omp_lib.f90.in: Add allocator traits parameters, declare
6785 allocator routines and add related kind parameters.
6786 * omp_lib.h.in: Likewise.
6787 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6788 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6789 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6790 * testsuite/libgomp.fortran/alloc-3.F: New test.
6791 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6792 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6794 2020-07-14 Tom de Vries <tom@codesourcery.com>
6795 Cesar Philippidis <cesar@codesourcery.com>
6796 Thomas Schwinge <thomas@codesourcery.com>
6797 Kwok Cheung Yeung <kcy@codesourcery.com>
6799 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6801 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6802 acc_init_state to initializing at the start, and to initialized at the
6804 (self_initializing_p): New function.
6805 (acc_get_device_type): Return acc_device_none if called by thread that
6806 is currently executing acc_init_1.
6807 * libgomp.texi (acc_get_device_type): Update documentation.
6808 (Implementation Status and Implementation-Defined Behavior): Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6811 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6813 * config/t-aix: Set BITS from compiler cpp macro.
6815 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6817 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6819 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6822 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6824 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6826 * testsuite/libgomp.c/loop-21.c: New test.
6828 2020-07-13 Julian Brown <julian@codesourcery.com>
6829 Thomas Schwinge <thomas@codesourcery.com>
6831 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6833 2020-07-10 Julian Brown <julian@codesourcery.com>
6834 Thomas Schwinge <thomas@codesourcery.com>
6836 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6838 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6839 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6841 (acc_unmap_data): Update comment.
6842 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6843 dynamic_refcount semantics.
6844 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6845 Adjust for dynamic_refcount semantics.
6846 (goacc_enter_data_internal): Implement "present" case of dynamic
6847 memory-map handling here. Update "non-present" case for
6848 dynamic_refcount semantics.
6849 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6850 * target.c (gomp_map_vars_internal): Remove
6851 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6853 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6854 (gomp_load_image_to_device): Substitute dynamic_refcount for
6856 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6857 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6858 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6859 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6860 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6862 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6864 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6866 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6867 Remove stale comment.
6868 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6869 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6870 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6871 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6872 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6873 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6875 2020-07-10 Julian Brown <julian@codesourcery.com>
6876 Thomas Schwinge <thomas@codesourcery.com>
6878 * oacc-mem.c (goacc_map_var_existing): New function.
6879 (goacc_enter_datum): Use above function.
6880 (goacc_exit_datum_1): New function.
6881 (goacc_exit_datum): Use above function.
6883 2020-07-09 Julian Brown <julian@codesourcery.com>
6884 Thomas Schwinge <thomas@codesourcery.com>
6887 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6888 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6890 2020-07-09 Julian Brown <julian@codesourcery.com>
6892 * oacc-mem.c (find_group_last): Group data-movement clauses
6893 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6894 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6896 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6898 * testsuite/libgomp.c/loop-19.c: New test.
6899 * testsuite/libgomp.c/loop-20.c: New test.
6901 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6903 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6904 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6905 it. Remove __omp_alloctrait_value_max__.
6906 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6907 omp_atk_alignment and omp_atk_pool_size.
6909 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6911 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6912 behavior for 'GOMP_MAP_FORCE_FROM'.
6913 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6915 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6917 * oacc-mem.c (goacc_exit_data_internal): Remove
6918 'GOMP_MAP_ALWAYS_FROM' handling.
6920 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6922 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6923 'scan-assembler' with 'scan-offload-rtl'.
6924 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6925 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6926 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6927 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6929 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6931 * target.c (gomp_map_vars_existing): Assert 'kind !=
6933 (gomp_map_vars_internal): Clean up.
6935 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6937 * testsuite/libgomp.c/loop-17.c: New test.
6938 * testsuite/libgomp.c/loop-18.c: New test.
6940 2020-06-26 Marek Polacek <polacek@redhat.com>
6942 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6944 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6946 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6947 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6949 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6951 * Makefile.am: Use -include.
6952 * Makefile.in: Regenerate.
6954 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6956 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6957 * Makefile.in: Regenerate
6958 * configure.ac (tmake_file): Substitute.
6959 * configure: Regenerate.
6960 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6961 * config/t-aix: New file.
6963 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6966 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6969 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6971 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6972 variant for HSA_RUNTIME_LIB name.
6973 (find_executable_symbol_1): Delete.
6974 (find_executable_symbol): Delete.
6975 (init_kernel_properties): Add ".kd" suffix to symbol names.
6976 (find_load_offset): Delete.
6977 (create_and_finalize_hsa_program): Remove relocation handling.
6979 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6981 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6983 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6987 * testsuite/libgomp.fortran/target-var.f90: New test.
6989 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6990 Julian Brown <julian@codesourcery.com>
6992 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6995 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6996 Julian Brown <julian@codesourcery.com>
6998 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7001 2020-06-05 Julian Brown <julian@codesourcery.com>
7003 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7004 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7006 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7008 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7009 Evaluate 'copyfrom' individually for each entry.
7010 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7012 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7014 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7015 Evaluate 'finalize' individually for each entry.
7016 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7017 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7020 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7022 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7024 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7026 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7027 Julian Brown <julian@codesourcery.com>
7029 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7031 (acc_unmap_data, goacc_exit_data_internal): Restore
7032 'is_tgt_unmapped' checking.
7033 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7035 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7036 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7037 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7038 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7039 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7040 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7042 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7043 Julian Brown <julian@codesourcery.com>
7045 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7047 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7050 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7052 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7055 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7058 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7059 Julian Brown <julian@codesourcery.com>
7061 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7063 (acc_map_data): Clean up accordingly.
7065 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7067 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7068 of over-eager 'finalize' clause.
7069 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7071 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7072 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7073 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7074 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7075 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7076 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7077 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7078 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7080 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7082 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7084 2020-06-04 Julian Brown <julian@codesourcery.com>
7086 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7088 (goacc_detach_internal): Likewise.
7090 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7092 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7094 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7095 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7096 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7097 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7098 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7100 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7102 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7105 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7107 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7109 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7111 * allocator.c (omp_alloc): For size == 0, return NULL early.
7113 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7116 * configure: Regenerated.
7118 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7121 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7123 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7125 * omp.h.in (omp_uintptr_t): New typedef.
7126 (__GOMP_UINTPTR_T_ENUM): Define.
7127 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7128 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7129 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7130 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7131 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7132 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7133 (gomp_def_allocator): Declare.
7134 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7135 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7136 omp_alloc and omp_free.
7137 * team.c (gomp_team_start): Copy over ts.def_allocator.
7138 * env.c (gomp_def_allocator): New variable.
7139 (parse_wait_policy): Adjust function comment.
7140 (parse_allocator): New function.
7141 (handle_omp_display_env): Print OMP_ALLOCATOR.
7142 (initialize_env): Call parse_allocator.
7143 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7144 * allocator.c: New file.
7145 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7147 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7148 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7149 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7150 * Makefile.in: Regenerated.
7152 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7155 * configure: Regenerated.
7157 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7160 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7162 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7164 * configure: Regenerated.
7166 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7168 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7170 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7173 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7174 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7175 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7176 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7177 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7178 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7179 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7181 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7183 * testsuite/libgomp.c/target-39.c: New test.
7185 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7187 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7188 * openacc.f90 (acc_device_current): Likewise.
7189 * openacc.h (acc_device_current): Likewise.
7190 * openacc_lib.h (acc_device_current): Likewise.
7193 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7194 'dg-allow-blank-lines-in-output'.
7196 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7197 * testsuite/lib/libgomp.exp
7198 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7199 'radeon'. Adjust all users.
7200 (check_effective_target_openacc_amdgcn_accel_present): Rename
7202 (check_effective_target_openacc_radeon_accel_present): ... this.
7204 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7205 (check_effective_target_openacc_radeon_accel_selected): ... this.
7208 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7211 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7215 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7217 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7218 hsa_agent_iterate_regions.
7220 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7223 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7226 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7229 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7232 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7235 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7237 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7240 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7242 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7244 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7246 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7248 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7250 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7252 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7254 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7256 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7258 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7260 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7262 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7264 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7266 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7268 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7270 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7272 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7274 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7276 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7278 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7280 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7282 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7284 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7286 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7288 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7290 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7292 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7294 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7296 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7298 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7300 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7302 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7305 2020-04-10 Julian Brown <julian@codesourcery.com>
7306 Thomas Schwinge <thomas@codesourcery.com>
7309 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7311 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7313 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7315 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7317 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7319 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7321 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7323 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7325 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7327 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7329 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7331 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7333 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7335 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7337 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7339 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7342 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7344 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7347 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7350 * libgomp.oacc-c++/declare-pr94120.C: New.
7352 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7354 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7356 * configure: Regenerate.
7357 * testsuite/libgomp-site-extra.exp.in: New file.
7358 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7360 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7362 * testsuite/Makefile.in: Regenerate.
7364 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7366 PR tree-optimization/89713
7368 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7370 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7372 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7374 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7375 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7377 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7380 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7382 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7385 * target.c (gomp_load_image_to_device): Fix link
7388 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7391 * testsuite/libgomp.c++/pr93931.C: New test.
7393 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7395 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7396 dg-allow-blank-lines-in-output.
7398 2020-03-18 Julian Brown <julian@codesourcery.com>
7399 Tobias Burnus <tobias@codesourcery.com>
7401 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7402 it work concurrently.
7404 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7406 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7407 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7408 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7410 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7413 * testsuite/libgomp.c/pr93566.c: New test.
7415 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7417 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7418 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7419 integer(acc_device_property) for the type of the return value of
7422 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7424 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7425 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7426 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7427 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7428 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7429 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7430 corrections; add note about the previous interface and named constant.
7431 (OpenACC library and environment variables): Fix two typos.
7432 * openacc.f90: Use for all procedures the argument names from the spec
7433 as for …_h they are user visible.
7434 (openacc_kinds): Rename acc_device_property to
7435 acc_device_property_kinds and change value to int32 ; and update users.
7436 Re-add acc_device_property for for backward compatibility.
7437 (acc_get_property_string_h): Clean up as acc_device_property_kind
7439 (acc_get_property_h): Likewise and return c_size_t instead of
7440 acc_device_property.
7441 (openacc): Also export acc_device_property_kinds.
7442 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7443 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7444 handling; check against /= 0 instead of == 1 to match C.
7445 * openacc_lib.h: Use for all procedures the argument names from the spec
7446 as for …_h they are user visible. Place !GCC$ into the first column to
7447 be active also for fixed-form souce form.
7448 (acc_device_current, acc_device_property_kind, acc_device_property,
7449 acc_property_memory, acc_property_free_memory, acc_property_name,
7450 acc_property_vendor, acc_property_driver): New named constants.
7451 (acc_get_property, acc_get_property_string): New generic interface.
7453 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7456 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7457 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7459 (gomp_target_task_fn): Assert "devicep->async_run_func".
7460 (clear_unsupported_flags): New function to remove unsupported flags
7461 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7462 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7463 * testsuite/libgomp.c/target-33.c:
7464 Remove xfail for offload_target_nvptx.
7465 * testsuite/libgomp.c/target-34.c: Likewise.
7467 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7469 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7470 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7471 * testsuite/libgomp.c/target-34.c: Likewise.
7472 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7473 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7475 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7477 * testsuite/libgomp.c/target-38.c: New test.
7479 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7482 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7484 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7486 * testsuite/lib/libgomp.exp
7487 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7488 and not as 'source' argument to libgomp_target_compile.
7490 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7492 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7493 (gcn_gfx801_s): Remove.
7494 (isa_hsa_name): Remove gfx801.
7495 (isa_gcc_name): Remove gfx801/carizzo.
7496 (isa_code): Remove gfx801.
7498 2020-02-03 Julian Brown <julian@codesourcery.com>
7499 Tobias Burnus <tobias@codesourcery.com>
7501 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7502 and *_finalize variants; document acc_attach and acc_detach; update
7503 references from OpenACC 2.0 to 2.6.
7504 * openacc.f90 (openacc_version): Update to 201711.
7505 * openacc_lib.h (openacc_version): Update to 201711.
7506 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7507 openacc_version to 201711.
7508 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7510 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7512 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7513 and vgpr_count fields.
7514 (struct kernel_info): Add a field for a hsa_kernel_description.
7515 (run_kernel): Reduce the number of threads/workers if the requested
7516 number would require too many VGPRs.
7517 (init_basic_kernel_info): Initialize description field with
7518 the hsa_kernel_description entry for the kernel.
7520 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7523 * plugin/configfrag.ac (enable_offload_targets): Skip
7524 HSA and GCN plugin besides -m32 also for -mx32.
7525 * configure: Regenerate.
7527 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7529 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7531 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7533 * plugin-gcn.c (struct agent_info): Add fields "name" and
7535 (GOMP_OFFLOAD_init_device): ... and init from here.
7536 (struct hsa_context_info): Add field "driver_version_s" ...
7537 (init_hsa_contest): ... and init from here.
7538 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7540 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7541 Enable test execution for amdgcn and host offloading targets.
7542 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7543 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7544 (expect_device_properties): Split function into ...
7545 (expect_device_string_properties): ... this new function ...
7546 (expect_device_memory): ... and this new function.
7547 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7550 2020-01-28 Julian Brown <julian@codesourcery.com>
7552 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7553 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7554 component/non-component variable refs in a single directive.
7555 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7557 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7559 * configure.ac: Handle `--with-toolexeclibdir='.
7560 * Makefile.in: Regenerate.
7561 * aclocal.m4: Regenerate.
7562 * configure: Regenerate.
7563 * testsuite/Makefile.in: Regenerate.
7565 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7567 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7568 (expect_device_properties): Remove "expected_free_mem" argument,
7569 change "expected_total_mem" argument type to size_t;
7570 change types of acc_get_property results to size_t,
7571 adapt format strings.
7572 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7573 Use %zu instead of %zd to print size_t values.
7574 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7576 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7577 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7579 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7581 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7583 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7586 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7588 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7589 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7590 Adjust test dimensions for amdgcn.
7591 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7592 gang/worker/vector expectations dynamically.
7593 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7595 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7597 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7598 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7599 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7600 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7603 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7604 (acc_gang): Recognise acc_device_radeon.
7605 (acc_worker): Likewise.
7606 (acc_vector): Likewise.
7607 (main): Set expectations for amdgcn.
7608 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7609 (main): Adjust gang/worker/vector expectations dynamically.
7610 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7611 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7612 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7613 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7616 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7618 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7620 (openacc): Likewise.
7621 * openacc.f90 (openacc_kinds): Likewise.
7622 (openacc): Likewise.
7623 * openacc.h (acc_device_t): Likewise.
7624 * openacc_lib.h: Likewise.
7625 * testsuite/lib/libgomp.exp
7626 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7627 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7628 (cb_compute_construct_end): Likewise.
7629 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7630 (cb_enqueue_launch_start): Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7632 (cb_enter_data_end): Likewise.
7633 (cb_exit_data_start): Likewise.
7634 (cb_exit_data_end): Likewise.
7635 (cb_compute_construct_end): Likewise.
7636 (cb_enqueue_launch_start): Likewise.
7637 (cb_enqueue_launch_end): Likewise.
7638 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7641 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7643 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7644 to use this instead of 'enum gomp_device_property'.
7645 (GOMP_OFFLOAD_get_property): Rename to...
7646 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7647 * libgomp.h (struct gomp_device_descr): Move
7648 'GOMP_OFFLOAD_openacc_get_property'...
7649 (struct acc_dispatch_t): ... here. Adjust all users.
7650 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7652 * target.c (gomp_map_vars_internal)
7653 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7656 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7659 * libgomp.h (gomp_print_string): Change return type from void to int.
7660 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7661 not all characters have been written.
7663 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7665 * libgomp.texi: Fix typos, use https.
7667 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7669 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7670 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7671 dummy arguments; those are/shall be regarded as absent arguments.
7672 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7673 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7675 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7677 Update copyright years.
7679 * libgomp.texi: Bump @copying's copyright year.
7681 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7684 * oacc-init.c (goacc_runtime_deinitialize): New function.
7686 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7689 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7690 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7692 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7693 Frederik Harwath <frederik@codesourcery.com>
7694 Thomas Schwinge <tschwinge@codesourcery.com>
7696 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7697 * libgomp-plugin.h (gomp_device_property_value): New union.
7698 (gomp_device_property_value): New prototype.
7699 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7701 (acc_device_property_t): New enum.
7702 (acc_get_property, acc_get_property_string): New prototypes.
7703 * oacc-init.c (acc_get_device_type): Also assert that result
7704 is not `acc_device_current'.
7705 (get_property_any, acc_get_property, acc_get_property_string):
7707 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7708 `acc_property_memory', `acc_property_free_memory',
7709 `acc_property_name', `acc_property_vendor' and
7710 `acc_property_driver' constants. Add `acc_device_property' data
7712 (openacc_internal): Add `acc_get_property' and
7713 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7714 `acc_get_property_string_h', `acc_get_property_l' and
7715 `acc_get_property_string_l'.
7716 * oacc-host.c (host_get_property): New function.
7717 (host_dispatch): Wire it.
7718 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7719 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7720 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7721 * libgomp.texi (OpenACC Runtime Library Routines): Add
7723 (acc_get_property): New node.
7724 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7726 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7727 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7728 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7730 (GOMP_OFFLOAD_get_property): New function.
7731 (struct ptx_device): Add new field "name".
7732 (cuda_driver_version_s): Add new static variable ...
7733 (nvptx_init): ... and init from here.
7735 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7736 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7737 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7738 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7739 with test helper functions.
7741 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7743 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7745 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7748 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7750 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7753 2019-12-19 Julian Brown <julian@codesourcery.com>
7755 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7756 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7757 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7759 2019-12-19 Julian Brown <julian@codesourcery.com>
7760 Cesar Philippidis <cesar@codesourcery.com>
7762 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7763 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7764 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7765 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7766 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7767 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7768 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7769 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7770 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7771 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7772 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7773 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7774 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7776 2019-12-19 Julian Brown <julian@codesourcery.com>
7778 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7779 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7780 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7781 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7782 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7783 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7784 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7785 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7786 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7787 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7788 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7789 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7791 2019-12-19 Julian Brown <julian@codesourcery.com>
7793 * libgomp.h (struct target_var_desc): Add do_detach flag.
7794 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7795 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7796 struct components. Tidy up and add some new checks.
7797 (goacc_enter_data_internal): Update call to find_group_last.
7798 (goacc_exit_data_internal): Support detach operations and
7800 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7801 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7802 attach/detach in enter/exit data detection code.
7803 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7805 (gomp_map_vars_internal): Support attach.
7806 (gomp_unmap_vars_internal): Support detach.
7808 2019-12-19 Julian Brown <julian@codesourcery.com>
7809 Thomas Schwinge <thomas@codesourcery.com>
7811 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7812 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7813 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7814 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7815 acc_detach_finalize_async.
7816 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7817 acc_detach, acc_detach_async, acc_detach_finalize,
7818 acc_detach_finalize_async): New functions.
7819 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7820 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7822 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7823 (gomp_remove_var_internal): Free attachment counts if present.
7824 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7825 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7827 2019-12-19 Julian Brown <julian@codesourcery.com>
7828 Cesar Philippidis <cesar@codesourcery.com>
7830 * libgomp.h (gomp_map_val): Add prototype.
7831 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7832 open-coding device-address calculation.
7833 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7836 2019-12-19 Julian Brown <julian@codesourcery.com>
7838 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7839 field for virtual_refcount.
7840 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7841 (gomp_free_memmap): Remove prototype.
7842 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7843 instead of calling gomp_free_memmap.
7844 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7846 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7847 to_free field to NULL then calling gomp_unmap_vars. Handle
7848 REFCOUNT_INFINITY on target blocks.
7849 (goacc_enter_data): Rename to...
7850 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7851 handling for mapping groups. Use virtual_refcount instead of
7852 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7853 map_map_vars_async call. Re-do lookup for target pointer return value.
7854 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7855 renamed goacc_enter_datum function.
7856 (goacc_exit_data): Rename to...
7857 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7858 (acc_delete, acc_delete_async, acc_delete_finalize,
7859 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7860 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7861 goacc_exit_datum function.
7862 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7863 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7865 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7866 goacc_exit_data_internal helper functions.
7867 * target.c (gomp_map_vars_internal): Handle
7868 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7870 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7871 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7872 virtual_refcount field instead of dynamic_refcount.
7873 (gomp_free_memmap): Remove function.
7874 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7875 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7876 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7878 2019-12-19 Julian Brown <julian@codesourcery.com>
7879 Thomas Schwinge <thomas@codesourcery.com>
7881 * libgomp.h (struct splay_tree_aux): New.
7882 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7883 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7885 (gomp_remove_var_internal): Free aux block if present.
7886 (gomp_load_image_to_device): Zero-initialise aux field instead of
7888 (omp_target_associate_pointer): Zero-initialise aux field.
7890 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7893 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7895 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7898 2019-12-19 Julian Brown <julian@codesourcery.com>
7899 Maciej W. Rozycki <macro@codesourcery.com>
7900 Tobias Burnus <tobias@codesourcery.com>
7901 Thomas Schwinge <thomas@codesourcery.com>
7903 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7904 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7905 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7906 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7907 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7908 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7909 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7910 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7911 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7913 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7915 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7917 (goacc_insert_pointer): ... from here, "present" case.
7918 (goacc_insert_pointer): Inline function into...
7919 (GOACC_enter_exit_data): ... here, and simplify.
7921 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7923 (goacc_insert_pointer): ... from here, "not present" case.
7925 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7928 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7929 'goacc_enter_data', 'goacc_exit_data'.
7931 * oacc-mem.c (delete_copyout): Refactor into...
7932 (goacc_exit_data): ... this. Adjust all users.
7934 * oacc-mem.c (present_create_copy): Refactor into...
7935 (goacc_enter_data): ... this. Adjust all users.
7937 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7940 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7941 like 'GOMP_MAP_FROM'.
7946 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7948 (GOACC_enter_exit_data): Simplify accordingly.
7949 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7951 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7952 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7954 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7956 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7957 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7959 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7961 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7963 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7964 'finalize' handling.
7967 * oacc-mem.c (acc_map_data, present_create_copy)
7968 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7969 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7970 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7971 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7972 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7973 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7978 * target.c (gomp_unmap_tgt): Make it 'static'.
7979 * libgomp.h (gomp_unmap_tgt): Remove.
7981 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7984 * testsuite/libgomp.c/pr86416-1.c: New.
7985 * testsuite/libgomp.c/pr86416-2.c: New.
7987 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7989 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7990 all symbols as public except for the 'use …, only' imported symbol,
7992 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7993 all symbols from module openacc_kinds as PUBLIC
7994 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7996 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7998 2019-12-13 Julian Brown <julian@codesourcery.com>
8002 * libgomp.h (gomp_remove_var_async): Add prototype.
8003 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8005 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8006 whether target_mem_desc was unmapped.
8007 (gomp_unref_tgt_void): New.
8008 (gomp_remove_var): Reimplement in terms of...
8009 (gomp_remove_var_internal): ...this new helper function.
8010 (gomp_remove_var_async): New, implemented using above helper function.
8011 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8014 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8016 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8017 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8018 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8020 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8022 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8023 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8025 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8027 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8028 as public except for the 'use …, only' imported symbol, which is
8030 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8031 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8032 attributes for acc_copyout_finalize and acc_delete_finalize.
8034 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8037 * testsuite/libgomp.fortran/atomic1.f90: New test.
8039 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8042 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8043 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8045 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8046 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8047 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8048 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8049 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8051 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8052 * oacc-mem.c: ... here.
8053 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8054 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8055 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8057 * libgomp_g.h: Update.
8059 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8060 * oacc-async.c: ... here.
8061 * oacc-int.h (goacc_wait): Declare.
8062 * libgomp_g.h: Update
8065 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8067 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8069 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8071 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8073 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8075 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8078 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8079 Julian Brown <julian@codesourcery.com>
8081 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8082 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8084 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8086 * omp_lib.h.in: Fix spelling of function declaration
8087 omp_get_cancell(l)ation.
8088 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8090 * env.c: Fix comment typos.
8091 * oacc-host.c: Likewise.
8092 * ordered.c: Likewise.
8095 * config/gcn/task.c: Likewise.
8096 * config/gcn/team.c: Likewise.
8097 * config/nvptx/task.c: Likewise.
8098 * config/nvptx/team.c: Likewise.
8099 * plugin/plugin-gcn.c: Likewise.
8100 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8101 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8102 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8104 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8106 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8107 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8108 unnecessary 'dg-additional-options "-w"'.
8110 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8111 Julian Brown <julian@codesourcery.com>
8116 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8117 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8119 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8121 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8123 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8125 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8128 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8129 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8131 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8133 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8135 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8137 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8139 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8141 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8142 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8144 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8145 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8146 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8147 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8148 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8149 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8150 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8153 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8154 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8155 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8157 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8159 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8161 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8162 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8165 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8167 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8169 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8171 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8173 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8174 ... with their content moved into, and extended in this new file.
8175 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8177 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8179 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8181 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8184 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8187 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8189 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8191 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8193 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8195 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8197 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8198 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8199 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8200 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8202 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8203 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8205 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8207 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8209 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8210 Kwok Cheung Yeung <kcy@codesourcery.com>
8212 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8213 if input it a NULL pointer.
8214 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8215 diagnostic of NULL pointer.
8216 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8217 * testsuite/libgomp.fortran/optional-map.f90: New.
8218 * testsuite/libgomp.fortran/use_device_addr-1.f90
8219 (test_dummy_opt_callee_1_absent): New.
8220 (test_dummy_opt_call_1): Call it.
8221 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8222 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8223 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8224 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8225 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8226 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8227 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8228 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8229 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8230 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8231 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8232 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8233 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8234 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8235 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8236 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8238 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8240 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8241 expect dg-output of 'Error termination.' for GCN.
8242 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8243 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8245 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8248 * testsuite/libgomp.fortran/teams1.f90: New test.
8249 * testsuite/libgomp.fortran/teams2.f90: New test.
8251 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8253 * oacc-init.c (acc_known_device_type): Add function.
8254 (unknown_device_type_error): Add function.
8255 (name_of_acc_device_t): Change to call unknown_device_type_error
8257 (resolve_device): Use acc_known_device_type.
8258 (acc_init): Fail if acc_device_t argument is not valid.
8259 (acc_shutdown): Likewise.
8260 (acc_get_num_devices): Likewise.
8261 (acc_set_device_type): Likewise.
8262 (acc_get_device_num): Likewise.
8263 (acc_set_device_num): Likewise.
8264 (acc_on_device): Add comment that argument validity is not checked.
8266 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8268 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8270 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8271 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8272 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8273 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8274 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8276 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8279 * configure.tgt: Avoid IE tls on *-*-musl*.
8281 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8283 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8284 adding a common-block test case.
8286 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8289 * testsuite/libgomp.c++/udr-20.C: New test.
8290 * testsuite/libgomp.c++/udr-21.C: New test.
8292 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8294 * testsuite/lib/libgomp.exp
8295 (check_effective_target_offload_target_nvptx): New proc.
8296 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8298 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8299 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8300 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8302 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8304 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8305 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8306 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8307 * testsuite/libgomp.c/private-1.c: Likewise.
8308 * testsuite/libgomp.c/task-1.c: Likewise.
8309 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8311 2019-11-20 Julian Brown <julian@codesourcery.com>
8313 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8315 (queue_push_launch): Lock aq->mutex before calling
8316 wait_for_queue_nonfull.
8317 (queue_push_callback): Likewise.
8318 (queue_push_asyncwait): Likewise.
8319 (queue_push_placeholder): Likewise.
8321 2019-11-20 Julian Brown <julian@codesourcery.com>
8323 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8324 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8325 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8328 2019-11-20 Julian Brown <julian@codesourcery.com>
8332 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8333 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8334 in non-present/create case.
8335 (delete_copyout): Change error condition to fail only on copies outside
8336 of mapped block. Adjust error message accordingly.
8337 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8338 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8339 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8341 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8342 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8343 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8345 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8347 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8348 libatomic in build-tree testing.
8350 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8352 * testsuite/Makefile.in: Regenerate.
8354 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8356 * testsuite/libgomp.c/target-print-1.c: New file.
8357 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8358 * testsuite/libgomp.oacc-c/print-1.c: New file.
8359 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8361 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8362 Kwok Cheung Yeung <kcy@codesourcery.com>
8363 Julian Brown <julian@codesourcery.com>
8364 Tom de Vries <tom@codesourcery.com>
8366 * plugin/Makefrag.am: Add amdgcn plugin support.
8367 * plugin/configfrag.ac: Likewise.
8368 * plugin/plugin-gcn.c: New file.
8369 * configure: Regenerate.
8370 * Makefile.in: Regenerate.
8371 * testsuite/Makefile.in: Regenerate.
8373 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8375 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8376 and use team_malloc variants.
8377 (gomp_gcn_exit_kernel): Use team_free.
8378 * libgomp.h (TEAM_ARENA_SIZE): Define.
8379 (TEAM_ARENA_START): Define.
8380 (TEAM_ARENA_FREE): Define.
8381 (TEAM_ARENA_END): Define.
8382 (team_malloc): New function.
8383 (team_malloc_cleared): New function.
8384 (team_free): New function.
8385 * team.c (gomp_new_team): Initialize and use team_malloc.
8386 (free_team): Use team_free.
8387 (gomp_free_thread): Use team_free.
8388 (gomp_pause_host): Use team_free.
8389 * work.c (gomp_init_work_share): Use team_malloc.
8390 (gomp_fini_work_share): Use team_free.
8392 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8393 Kwok Cheung Yeung <kcy@codesourcery.com>
8394 Julian Brown <julian@codesourcery.com>
8395 Tom de Vries <tom@codesourcery.com>
8397 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8398 * Makefile.in: Regenerate.
8399 * config.h.in (PLUGIN_GCN): Add new undef.
8400 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8401 * config/gcn/affinity-fmt.c: New file.
8402 * config/gcn/bar.c: New file.
8403 * config/gcn/bar.h: New file.
8404 * config/gcn/doacross.h: New file.
8405 * config/gcn/icv-device.c: New file.
8406 * config/gcn/oacc-target.c: New file.
8407 * config/gcn/simple-bar.h: New file.
8408 * config/gcn/target.c: New file.
8409 * config/gcn/task.c: New file.
8410 * config/gcn/team.c: New file.
8411 * config/gcn/time.c: New file.
8412 * configure.ac: Add amdgcn*-*-*.
8413 * configure: Regenerate.
8414 * configure.tgt: Add amdgcn*-*-*.
8415 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8416 * libgomp.h (gcn_thrs): Add amdgcn variant.
8417 (set_gcn_thrs): Likewise.
8418 (gomp_thread): Likewise.
8419 * oacc-int.h (goacc_thread): Likewise.
8420 * oacc-target.c: New file.
8421 * openacc.f90 (acc_device_gcn): New parameter.
8422 * openacc.h (acc_device_t): Add acc_device_gcn.
8423 * team.c (gomp_free_pool_helper): Add amdgcn support.
8425 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8426 Julian Brown <julian@codesourcery.com>
8428 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8430 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8432 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8433 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8436 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8438 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8439 * config/nvptx/libgomp-plugin.c: Move ...
8440 * config/accel/libgomp-plugin.c: ... to here.
8441 * config/nvptx/lock.c: Move ...
8442 * config/accel/lock.c: ... to here.
8443 * config/nvptx/mutex.c: Move ...
8444 * config/accel/mutex.c: ... to here.
8445 * config/nvptx/mutex.h: Move ...
8446 * config/accel/mutex.h: ... to here.
8447 * config/nvptx/oacc-async.c: Move ...
8448 * config/accel/oacc-async.c: ... to here.
8449 * config/nvptx/oacc-cuda.c: Move ...
8450 * config/accel/oacc-cuda.c: ... to here.
8451 * config/nvptx/oacc-host.c: Move ...
8452 * config/accel/oacc-host.c: ... to here.
8453 * config/nvptx/oacc-init.c: Move ...
8454 * config/accel/oacc-init.c: ... to here.
8455 * config/nvptx/oacc-mem.c: Move ...
8456 * config/accel/oacc-mem.c: ... to here.
8457 * config/nvptx/oacc-plugin.c: Move ...
8458 * config/accel/oacc-plugin.c: ... to here.
8459 * config/nvptx/omp-lock.h: Move ...
8460 * config/accel/omp-lock.h: ... to here.
8461 * config/nvptx/openacc.f90: Move ...
8462 * config/accel/openacc.f90: ... to here.
8463 * config/nvptx/pool.h: Move ...
8464 * config/accel/pool.h: ... to here.
8465 * config/nvptx/proc.c: Move ...
8466 * config/accel/proc.c: ... to here.
8467 * config/nvptx/ptrlock.c: Move ...
8468 * config/accel/ptrlock.c: ... to here.
8469 * config/nvptx/ptrlock.h: Move ...
8470 * config/accel/ptrlock.h: ... to here.
8471 * config/nvptx/sem.c: Move ...
8472 * config/accel/sem.c: ... to here.
8473 * config/nvptx/sem.h: Move ...
8474 * config/accel/sem.h: ... to here.
8475 * config/nvptx/thread-stacksize.h: Move ...
8476 * config/accel/thread-stacksize.h: ... to here.
8478 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8479 Tobias Burnus <tobias@codesourcery.com>
8480 Frederik Harwath <frederik@codesourcery.com>
8481 Thomas Schwinge <thomas@codesourcery.com>
8484 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8485 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8486 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8488 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8489 Kwok Cheung Yeung <kcy@codesourcery.com>
8491 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8492 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8494 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8496 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8498 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8500 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8501 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8503 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8505 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8506 Add expected warnings about missing reduction clauses.
8507 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8509 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8511 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8514 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8516 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8517 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8518 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8519 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8520 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8521 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8523 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8526 * testsuite/libgomp.fortran/allocatable2.f90: Use
8527 unique numbers with 'stop'.
8528 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8529 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8530 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8531 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8532 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8534 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8536 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8537 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8538 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8539 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8540 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8541 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8543 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8545 * testsuite/libgomp.fortran/target9.f90: New.
8547 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8549 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8550 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8551 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8552 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8553 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8554 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8555 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8556 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8557 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8558 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8559 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8560 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8561 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8562 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8563 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8564 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8565 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8566 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8567 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8568 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8569 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8570 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8571 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8572 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8573 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8574 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8575 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8576 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8577 * testsuite/libgomp.fortran/character1.f90: Ditto.
8578 * testsuite/libgomp.fortran/character2.f90: Ditto.
8579 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8580 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8581 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8582 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8583 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8584 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8585 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8586 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8587 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8588 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8589 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8590 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8591 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8592 * testsuite/libgomp.fortran/do1.f90: Ditto.
8593 * testsuite/libgomp.fortran/do2.f90: Ditto.
8594 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8595 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8596 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8597 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8598 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8599 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8600 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8601 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8602 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8603 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8604 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8605 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8606 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8607 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8608 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8609 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8610 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8611 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8612 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8613 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8614 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8615 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8616 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8617 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8618 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8619 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8620 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8621 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8622 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8623 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8624 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8625 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8626 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8627 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8628 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8629 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8630 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8631 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8632 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8633 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8634 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8635 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8636 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8637 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8638 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8639 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8640 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8641 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8642 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8643 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8644 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8645 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8646 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8647 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8648 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8649 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8650 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8651 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8652 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8653 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8654 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8655 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8656 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8657 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8658 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8659 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8660 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8661 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8662 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8663 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8664 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8665 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8666 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8667 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8668 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8669 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8670 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8671 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8672 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8673 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8674 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8675 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8676 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8677 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8678 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8679 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8680 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8681 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8682 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8683 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8684 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8685 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8686 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8687 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8688 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8689 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8690 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8691 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8692 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8693 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8694 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8695 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8696 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8697 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8698 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8699 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8700 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8701 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8702 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8703 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8704 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8705 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8706 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8707 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8708 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8709 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8710 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8711 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8712 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8713 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8714 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8715 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8716 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8717 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8718 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8719 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8720 * testsuite/libgomp.fortran/stack.f90: Ditto.
8721 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8722 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8723 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8724 * testsuite/libgomp.fortran/target1.f90: Ditto.
8725 * testsuite/libgomp.fortran/target2.f90: Ditto.
8726 * testsuite/libgomp.fortran/target3.f90: Ditto.
8727 * testsuite/libgomp.fortran/target4.f90: Ditto.
8728 * testsuite/libgomp.fortran/target5.f90: Ditto.
8729 * testsuite/libgomp.fortran/target6.f90: Ditto.
8730 * testsuite/libgomp.fortran/target7.f90: Ditto.
8731 * testsuite/libgomp.fortran/target8.f90: Ditto.
8732 * testsuite/libgomp.fortran/task1.f90: Ditto.
8733 * testsuite/libgomp.fortran/task2.f90: Ditto.
8734 * testsuite/libgomp.fortran/task3.f90: Ditto.
8735 * testsuite/libgomp.fortran/task4.f90: Ditto.
8736 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8737 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8738 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8739 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8740 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8741 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8742 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8743 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8744 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8745 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8746 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8747 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8748 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8749 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8750 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8751 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8752 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8753 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8754 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8755 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8756 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8757 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8758 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8759 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8760 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8761 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8762 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8763 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8764 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8765 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8766 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8767 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8768 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8769 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8771 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8773 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8774 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8775 Ditto; add 'dg-do run' for torture testing.
8776 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8777 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8778 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8779 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8780 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8781 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8782 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8783 * testsuite/libgomp.fortran/task2.f90: Ditto.
8784 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8785 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8786 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8787 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8788 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8789 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8791 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8793 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8794 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8795 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8796 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8797 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8798 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8799 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8800 Use 'stop' not abort().
8801 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8802 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8803 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8804 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8805 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8806 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8807 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8808 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8809 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8810 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8811 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8812 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8813 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8814 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8815 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8816 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8817 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8819 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8821 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8823 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8825 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8827 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8829 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8831 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8833 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8835 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8837 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8839 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8841 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8843 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8845 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8846 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8847 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8848 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8849 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8850 Likewise and also add 'dg-do run'.
8851 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8854 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8855 Tobias Burnus <tobias@codesourcery.com>
8857 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8858 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8859 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8861 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8864 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8867 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8869 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8870 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8872 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8875 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8878 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8881 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8883 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8885 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8888 * target.c (gomp_map_vars_internal): Readd the previous
8889 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8890 though do that just in the !not_found_cnt case.
8892 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8894 * gfortran.dg/gomp/target-simd.f90: New.
8896 2019-10-02 Julian Brown <julian@codesourcery.com>
8897 Cesar Philippidis <cesar@codesourcery.com>
8899 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8900 * target.c (FIELD_TGT_EMPTY): Define.
8901 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8902 as switch instead of list of ifs.
8903 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8905 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8907 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8908 include. Replace alloca () with __builtin_alloca ().
8909 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8911 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8913 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8914 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8915 * oacc-parallel.c: Don't include "libgomp_g.h".
8916 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8917 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8918 * aclocal.m4: Regenerated.
8919 * config.h.in: Regenerated.
8920 * configure: Regenerated.
8921 * Makefile.in: Regenerated.
8923 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8925 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8927 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8929 * configure: Regenerate.
8931 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8933 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8934 string is initialized.
8936 2019-09-06 Florian Weimer <fweimer@redhat.com>
8938 * configure: Regenerate.
8940 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8943 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8944 scanning to conform to the GNU Coding Standards.
8945 * configure: Regenerate.
8947 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8950 * testsuite/libgomp.c/scan-21.c: New test.
8951 * testsuite/libgomp.c/scan-22.c: New test.
8953 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8956 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8958 * testsuite/libgomp.c/scan-12.c: Likewise.
8959 * testsuite/libgomp.c/scan-13.c: Likewise.
8960 * testsuite/libgomp.c/scan-14.c: Likewise.
8961 * testsuite/libgomp.c/scan-15.c: Likewise.
8962 * testsuite/libgomp.c/scan-16.c: Likewise.
8963 * testsuite/libgomp.c/scan-17.c: Likewise.
8964 * testsuite/libgomp.c/scan-18.c: Likewise.
8965 * testsuite/libgomp.c/scan-19.c: Likewise.
8966 * testsuite/libgomp.c/scan-20.c: Likewise.
8967 * testsuite/libgomp.c++/scan-9.C: Likewise.
8968 * testsuite/libgomp.c++/scan-10.C: Likewise.
8969 * testsuite/libgomp.c++/scan-11.C: Likewise.
8970 * testsuite/libgomp.c++/scan-12.C: Likewise.
8971 * testsuite/libgomp.c++/scan-14.C: Likewise.
8972 * testsuite/libgomp.c++/scan-15.C: Likewise.
8973 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8974 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8975 * testsuite/libgomp.c++/scan-16.C: Likewise.
8977 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8980 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8981 -std=legacy so invalid code in the test case is accepted.
8983 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8986 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8989 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8991 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8992 perform the lookup in the first loop only if !not_found_cnt, otherwise
8993 perform lookups for it in the second loop guarded with
8994 if (not_found_cnt || has_firstprivate).
8995 * testsuite/libgomp.c/target-37.c: New test.
8996 * testsuite/libgomp.c++/target-22.C: New test.
8998 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9000 * testsuite/libgomp.c/target-18.c (struct S): New type.
9001 (foo): Use use_device_addr clause instead of use_device_ptr clause
9002 where required by OpenMP 5.0, add further tests for both use_device_ptr
9003 and use_device_addr clauses.
9004 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9005 (foo): Use use_device_addr clause instead of use_device_ptr clause
9006 where required by OpenMP 5.0, add further tests for both use_device_ptr
9007 and use_device_addr clauses. Add t and u arguments.
9008 (main): Adjust caller.
9010 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9012 * testsuite/libgomp.c++/loop-13.C: New test.
9013 * testsuite/libgomp.c++/loop-14.C: New test.
9014 * testsuite/libgomp.c++/loop-15.C: New test.
9016 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9019 * testsuite/libgomp.c++/for-27.C: New test.
9021 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9023 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9024 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9026 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9028 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9030 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9032 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9033 * testsuite/libgomp.c++/scan-16.C: Likewise.
9035 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9037 * testsuite/libgomp.c/scan-19.c: New test.
9038 * testsuite/libgomp.c/scan-20.c: New test.
9040 * testsuite/libgomp.c/scan-11.c: New test.
9041 * testsuite/libgomp.c/scan-12.c: New test.
9042 * testsuite/libgomp.c/scan-13.c: New test.
9043 * testsuite/libgomp.c/scan-14.c: New test.
9044 * testsuite/libgomp.c/scan-15.c: New test.
9045 * testsuite/libgomp.c/scan-16.c: New test.
9046 * testsuite/libgomp.c/scan-17.c: New test.
9047 * testsuite/libgomp.c/scan-18.c: New test.
9048 * testsuite/libgomp.c++/scan-9.C: New test.
9049 * testsuite/libgomp.c++/scan-10.C: New test.
9050 * testsuite/libgomp.c++/scan-11.C: New test.
9051 * testsuite/libgomp.c++/scan-12.C: New test.
9052 * testsuite/libgomp.c++/scan-13.C: New test.
9053 * testsuite/libgomp.c++/scan-14.C: New test.
9054 * testsuite/libgomp.c++/scan-15.C: New test.
9055 * testsuite/libgomp.c++/scan-16.C: New test.
9057 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9059 * testsuite/libgomp.c/scan-9.c: New test.
9060 * testsuite/libgomp.c/scan-10.c: New test.
9062 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9064 * testsuite/libgomp.c++/scan-1.C: New test.
9065 * testsuite/libgomp.c++/scan-2.C: New test.
9066 * testsuite/libgomp.c++/scan-3.C: New test.
9067 * testsuite/libgomp.c++/scan-4.C: New test.
9068 * testsuite/libgomp.c++/scan-5.C: New test.
9069 * testsuite/libgomp.c++/scan-6.C: New test.
9070 * testsuite/libgomp.c++/scan-7.C: New test.
9071 * testsuite/libgomp.c++/scan-8.C: New test.
9072 * testsuite/libgomp.c/scan-1.c: New test.
9073 * testsuite/libgomp.c/scan-2.c: New test.
9074 * testsuite/libgomp.c/scan-3.c: New test.
9075 * testsuite/libgomp.c/scan-4.c: New test.
9076 * testsuite/libgomp.c/scan-5.c: New test.
9077 * testsuite/libgomp.c/scan-6.c: New test.
9078 * testsuite/libgomp.c/scan-7.c: New test.
9079 * testsuite/libgomp.c/scan-8.c: New test.
9081 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9083 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9084 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9087 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9090 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9092 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9095 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9098 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9100 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9101 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9102 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9103 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9106 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9109 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9111 2019-06-16 Tom de Vries <tdevries@suse.de>
9113 PR tree-optimization/89376
9114 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9116 2019-06-15 Tom de Vries <tdevries@suse.de>
9118 PR tree-optimization/89713
9119 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9120 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9122 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9125 * testsuite/libgomp.c/pr90779.c: New test.
9126 * testsuite/libgomp.fortran/pr90779.f90: New test.
9128 2019-06-15 Tom de Vries <tdevries@suse.de>
9130 PR tree-optimization/90009
9131 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9133 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9135 PR tree-optimization/89713
9136 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9138 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9141 * testsuite/libgomp.c/pr90811.c: New test.
9143 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9145 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9146 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9148 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9150 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9151 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9152 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9153 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9155 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9157 * configure.ac: Call AX_COUNT_CPUS.
9158 Substitute CPU_COUNT.
9159 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9161 * aclocal.m4: Regenerate.
9162 * configure: Regenerate.
9163 * Makefile.in, testsuite/Makefile.in: Regenerate.
9165 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9167 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9169 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9170 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9171 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9173 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9175 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9177 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9180 * work.c (gomp_init_work_share): Instead of aligning final ordered
9181 value to multiples of long long alignment, align to that the
9182 first part (ordered team ids) and if inline_ordered_team_ids
9183 is not on a long long alignment boundary within the structure,
9184 use __alignof__ (long long) - 1 pad size always.
9185 * loop.c (GOMP_loop_start): Fix *mem computation if
9186 inline_ordered_team_ids is not aligned on long long alignment boundary
9187 within the structure.
9188 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9189 * sections.c (GOMP_sections2_start): Likewise.
9191 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9193 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9194 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9197 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9198 HAVE_INTTYPES_H is defined.
9199 (print_uint64_t): New typedef.
9200 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9201 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9202 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9203 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9204 before casting to void *.
9205 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9206 * oacc-mem.c: Don't include config.h nor stdint.h.
9207 * target.c: Don't include config.h.
9208 * oacc-cuda.c: Likewise.
9209 * oacc-host.c: Don't include stdint.h.
9211 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9214 * alloc.c (_GNU_SOURCE): Define.
9216 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9218 * acc_prof.h: New file.
9219 * oacc-profiling.c: Likewise.
9220 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9221 Add these, respectively.
9222 * Makefile.in: Regenerate.
9223 * env.c (initialize_env): Call goacc_profiling_initialize.
9224 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9225 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9226 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9227 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9228 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9229 acc_prof_register, acc_prof_unregister, and acc_register_library.
9230 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9231 GOMP_PLUGIN_goacc_thread.
9232 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9233 prof_callbacks_enabled members.
9234 (goacc_prof_enabled, goacc_profiling_initialize)
9235 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9236 (goacc_profiling_dispatch): Declare.
9237 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9238 (GOACC_PROFILING_SETUP_P): Define.
9239 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9240 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9241 OpenACC Profiling Interface.
9242 * oacc-cuda.c (acc_get_current_cuda_device)
9243 (acc_get_current_cuda_context, acc_get_cuda_stream)
9244 (acc_set_cuda_stream): Likewise.
9245 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9246 (acc_init, acc_set_device_type, acc_get_device_type)
9247 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9248 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9249 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9250 (acc_unmap_data, present_create_copy, delete_copyout)
9251 (update_dev_host): Likewise.
9252 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9253 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9255 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9256 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9258 * libgomp.texi: Update.
9259 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9261 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9262 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9264 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9266 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9268 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9271 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9273 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9274 (struct goacc_asyncqueue_list): Likewise.
9275 (goacc_aq): Likewise.
9276 (goacc_aq_list): Likewise.
9277 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9278 (GOMP_OFFLOAD_openacc_async_test): Remove.
9279 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9280 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9281 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9282 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9283 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9284 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9285 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9286 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9287 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9288 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9289 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9290 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9291 (GOMP_OFFLOAD_openacc_async_test): Declare.
9292 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9293 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9294 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9295 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9296 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9298 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9299 (gomp_acc_insert_pointer): Adjust declaration.
9300 (gomp_copy_host2dev): New declaration.
9301 (gomp_copy_dev2host): Likewise.
9302 (gomp_map_vars_async): Likewise.
9303 (gomp_unmap_tgt): Likewise.
9304 (gomp_unmap_vars_async): Likewise.
9305 (gomp_fini_device): Likewise.
9307 * oacc-async.c (get_goacc_thread): New function.
9308 (get_goacc_thread_device): New function.
9309 (lookup_goacc_asyncqueue): New function.
9310 (get_goacc_asyncqueue): New function.
9311 (acc_async_test): Adjust code to use new async design.
9312 (acc_async_test_all): Likewise.
9313 (acc_wait): Likewise.
9314 (acc_wait_async): Likewise.
9315 (acc_wait_all): Likewise.
9316 (acc_wait_all_async): Likewise.
9317 (goacc_async_free): New function.
9318 (goacc_init_asyncqueues): Likewise.
9319 (goacc_fini_asyncqueues): Likewise.
9320 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9322 (acc_set_cuda_stream): Likewise.
9323 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9324 (host_openacc_register_async_cleanup): Remove.
9325 (host_openacc_async_exec): New function.
9326 (host_openacc_async_test): Adjust parameters.
9327 (host_openacc_async_test_all): Remove.
9328 (host_openacc_async_wait): Remove.
9329 (host_openacc_async_wait_async): Remove.
9330 (host_openacc_async_wait_all): Remove.
9331 (host_openacc_async_wait_all_async): Remove.
9332 (host_openacc_async_set_async): Remove.
9333 (host_openacc_async_synchronize): New function.
9334 (host_openacc_async_serialize): New function.
9335 (host_openacc_async_host2dev): New function.
9336 (host_openacc_async_dev2host): New function.
9337 (host_openacc_async_queue_callback): New function.
9338 (host_openacc_async_construct): New function.
9339 (host_openacc_async_destruct): New function.
9340 (struct gomp_device_descr host_dispatch): Remove initialization of old
9341 interface, add initialization of new async sub-struct.
9342 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9343 (goacc_attach_host_thread_to_device): Remove old async code usage.
9344 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9345 (goacc_fini_asyncqueues): Likewise.
9346 (goacc_async_copyout_unmap_vars): Likewise.
9347 (goacc_async_free): Likewise.
9348 (get_goacc_asyncqueue): Likewise.
9349 (lookup_goacc_asyncqueue): Likewise.
9350 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9352 (present_create_copy): Adjust code to use new async design.
9353 (delete_copyout): Likewise.
9354 (update_dev_host): Likewise.
9355 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9357 (gomp_acc_remove_pointer): Adjust code to use new async design.
9358 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9360 (GOACC_enter_exit_data): Likewise.
9361 (goacc_wait): Likewise.
9362 (GOACC_update): Likewise.
9363 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9364 when called, warn as obsolete in comment.
9365 * target.c (goacc_device_copy_async): New function.
9366 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9367 add goacc_device_copy_async case.
9368 (gomp_copy_dev2host): Likewise.
9369 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9370 (gomp_map_pointer): Likewise.
9371 (gomp_map_fields_existing): Likewise.
9372 (gomp_map_vars_internal): New always_inline function, renamed from
9374 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9375 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9376 passing goacc_asyncqueue argument.
9377 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9378 (gomp_unref_tgt): New function.
9379 (gomp_unmap_vars_internal): New always_inline function, renamed from
9381 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9382 (gomp_unmap_vars_async): Implement by calling
9383 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9384 (gomp_fini_device): New function.
9385 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9386 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9387 new async interface.
9388 (gomp_target_fini): Adjust code to call gomp_fini_device.
9390 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9391 (struct ptx_stream): Remove.
9392 (struct nvptx_thread): Remove current_stream field.
9393 (cuda_map_create): Remove.
9394 (cuda_map_destroy): Remove.
9399 (struct goacc_asyncqueue): Define.
9400 (struct nvptx_callback): Define.
9401 (struct ptx_free_block): Define.
9402 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9403 stream_lock, and next fields.
9404 (enum ptx_event_type): Remove.
9405 (struct ptx_event): Remove.
9406 (ptx_event_lock): Remove.
9407 (ptx_events): Remove.
9408 (init_streams_for_device): Remove.
9409 (fini_streams_for_device): Remove.
9410 (select_stream_for_async): Remove.
9411 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9412 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9414 (nvptx_open_device): Add free_blocks initialization, remove
9415 init_streams_for_device call.
9416 (nvptx_close_device): Remove fini_streams_for_device call, add
9417 free_blocks destruct code.
9419 (event_add): Remove.
9420 (nvptx_exec): Adjust parameters and code.
9421 (nvptx_free): Likewise.
9422 (nvptx_host2dev): Remove.
9423 (nvptx_dev2host): Remove.
9424 (nvptx_set_async): Remove.
9425 (nvptx_async_test): Remove.
9426 (nvptx_async_test_all): Remove.
9427 (nvptx_wait): Remove.
9428 (nvptx_wait_async): Remove.
9429 (nvptx_wait_all): Remove.
9430 (nvptx_wait_all_async): Remove.
9431 (nvptx_get_cuda_stream): Remove.
9432 (nvptx_set_cuda_stream): Remove.
9433 (GOMP_OFFLOAD_alloc): Adjust code.
9434 (GOMP_OFFLOAD_free): Likewise.
9435 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9436 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9437 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9438 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9439 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9440 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9441 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9442 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9443 (cuda_free_argmem): New function.
9444 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9445 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9446 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9447 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9448 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9449 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9450 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9451 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9452 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9453 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9454 (cuda_callback_wrapper): New function.
9455 (cuda_memcpy_sanity_check): New function.
9456 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9457 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9458 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9459 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9461 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9464 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9466 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9468 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9470 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9472 * team.c (gomp_team_start): Initialize pool->threads[0].
9474 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9476 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9477 "-foffload=$offload_target".
9478 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9479 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9480 * testsuite/lib/libgomp.exp
9481 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9482 as (conceptually) merged into
9483 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9486 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9487 * testsuite/libgomp-test-support.exp.in: Adjust.
9488 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9489 openacc_device_types_s.
9490 (offload_target_to_openacc_device_type): New proc.
9491 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9492 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9493 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9494 * Makefile.in: Regenerate.
9495 * configure: Likewise.
9496 * testsuite/Makefile.in: Likewise.
9498 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9499 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9500 instead of OFFLOAD_TARGETS.
9501 * target.c (gomp_target_init): Adjust.
9502 * testsuite/libgomp-test-support.exp.in: Likewise.
9503 * testsuite/lib/libgomp.exp: Likewise. Populate
9504 openacc_device_types_s instead of offload_targets_s_openacc.
9505 (check_effective_target_openacc_nvidia_accel_selected)
9506 (check_effective_target_openacc_host_selected): Adjust.
9507 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9508 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9509 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9510 * Makefile.in: Regenerate.
9511 * config.h.in: Likewise.
9512 * configure: Likewise.
9513 * testsuite/Makefile.in: Likewise.
9515 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9516 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9517 "offloading: supported, but hardware not accessible".
9518 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9519 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9521 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9524 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9526 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9527 and related adjustment.
9529 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9532 * testsuite/libgomp.c++/pr88988.C: New test.
9534 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9537 * testsuite/libgomp.c/pr89002.c: New test.
9539 2019-01-28 Richard Biener <rguenther@suse.de>
9542 PR tree-optimization/86865
9543 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9545 2019-01-24 Tom de Vries <tdevries@suse.de>
9547 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9548 once instantiated_devices drops to 0.
9550 2019-01-23 Tom de Vries <tdevries@suse.de>
9553 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9555 (nvptx_exec): Don't call map_push if mapnum == 0.
9556 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9558 2019-01-23 Tom de Vries <tdevries@suse.de>
9562 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9563 (map_fini): Remove "assert (!s->map->active)".
9564 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9566 2019-01-23 Tom de Vries <tdevries@suse.de>
9569 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9570 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9572 2019-01-15 Tom de Vries <tdevries@suse.de>
9575 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9578 2019-01-12 Tom de Vries <tdevries@suse.de>
9580 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9581 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9582 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9583 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9585 2019-01-12 Tom de Vries <tdevries@suse.de>
9587 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9589 2019-01-12 Tom de Vries <tdevries@suse.de>
9591 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9592 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9593 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9595 2019-01-12 Tom de Vries <tdevries@suse.de>
9598 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9599 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9601 2019-01-12 Tom de Vries <tdevries@suse.de>
9604 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9605 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9607 2019-01-12 Tom de Vries <tdevries@suse.de>
9609 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9610 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9611 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9613 2019-01-12 Tom de Vries <tdevries@suse.de>
9615 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9616 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9617 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9619 2019-01-12 Tom de Vries <tdevries@suse.de>
9621 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9622 resources diagnostic.
9624 2019-01-12 Tom de Vries <tdevries@suse.de>
9626 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9627 vector length to be 128.
9628 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9629 length 2097152 to be reduced to 1024 instead of 32.
9631 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9632 James Norris <jnorris@codesourcery.com>
9634 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9635 Library Routines", and "Environment Variables".
9637 2019-01-11 Tom de Vries <tdevries@suse.de>
9639 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9642 2019-01-11 Tom de Vries <tdevries@suse.de>
9644 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9646 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9647 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9648 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9649 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9651 2019-01-11 Tom de Vries <tdevries@suse.de>
9653 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9656 2019-01-10 Nathan Sidwell <nathan@acm.org>
9657 Julian Brown <julian@codesourcery.com>
9660 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9661 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9663 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9665 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9668 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9670 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9671 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9674 2019-01-09 Tom de Vries <tdevries@suse.de>
9677 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9678 #define instead of "const int".
9679 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9680 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9681 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9682 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9684 2019-01-09 Tom de Vries <tdevries@suse.de>
9686 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9689 2019-01-07 Tom de Vries <tdevries@suse.de>
9691 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9692 GOMP_OPENACC_DIM argument.
9694 2019-01-03 Tom de Vries <tdevries@suse.de>
9696 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9697 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9699 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9701 Update copyright years.
9703 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9705 * libgomp.texi: Bump @copying's copyright year.
9707 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9709 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9710 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9711 (GOACC_declare): Redefine the "device" argument to "flags".
9713 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9714 Cesar Philippidis <cesar@codesourcery.com>
9716 * target.c (struct gomp_coalesce_chunk): New structure.
9717 (struct gomp_coalesce_buf): Update the chunks member to use that
9718 type. Adjust all users.
9720 2018-12-19 Tom de Vries <tdevries@suse.de>
9722 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9723 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9724 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9726 2018-12-19 Tom de Vries <tdevries@suse.de>
9728 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9729 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9730 gcc/testsuite/gcc.dg/goacc.
9731 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9733 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9734 Chung-Lin Tang <cltang@codesourcery.com>
9736 * oacc-mem.c (acc_present_or_create): Remove definition and change
9737 to alias of acc_create.
9738 (acc_present_or_copyin): Remove definition and change to alias of
9740 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9741 of acc_present_or_create.
9742 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9743 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9744 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9745 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9746 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9747 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9748 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9749 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9750 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9751 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9752 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9753 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9754 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9755 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9756 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9757 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9759 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9762 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9763 "identical parameters".
9764 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9765 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9768 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9769 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9772 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9773 (nvptx_wait_async): Unseen async-argument is a no-op.
9774 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9775 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9776 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9777 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9778 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9779 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9780 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9781 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9782 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9784 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9785 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9787 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9789 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9790 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9791 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9793 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9796 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9797 (acc_set_cuda_stream): Clarify.
9798 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9800 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9802 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9803 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9804 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9805 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9807 2018-12-14 Tom de Vries <tdevries@suse.de>
9809 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9810 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9811 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9812 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9813 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9815 2018-12-13 Tom de Vries <tdevries@suse.de>
9817 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9818 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9819 * fortran.c (omp_display_affinity_): ... here.
9820 * libgomp.h (gomp_print_string): Declare.
9821 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9822 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9825 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9828 * testsuite/libgomp.c++/for-24.C (results): Include it in
9829 omp declare target region.
9830 (main): Use map (always, tofrom: results) instead of
9831 map (tofrom: results).
9833 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9836 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9837 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9839 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9841 2018-12-12 Andreas Schwab <schwab@suse.de>
9843 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9846 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9849 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9851 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9852 Jakub Jelinek <jakub@redhat.com>
9854 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9855 devicep->host2dev_func.
9857 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9860 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9861 tls_runtime effective target.
9862 (t): New threadprivate variable.
9863 (main): Set t in threads which execute iterations of the worksharing
9864 loop. Propagate that to the task after the loop and don't abort
9865 if the current taskgroup hasn't been cancelled.
9867 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9869 * testsuite/libgomp.c/task-reduction-3.c: New test.
9871 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9873 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9876 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9877 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9879 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9881 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9883 2018-10-19 Richard Biener <rguenther@suse.de>
9885 PR tree-optimization/88182
9886 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9888 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9890 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9891 (RUNTEST): Don't define.
9892 (RUNTESTDEFAULTFLAGS): Add.
9893 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9894 (distclean-am): Depend on distclean-DEJAGNU.
9895 (check-am): If -j% option is present in MFLAGS and if
9896 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9897 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9898 * testsuite/Makefile.in: Regenerated.
9900 2018-11-26 Richard Biener <rguenther@suse.de>
9902 PR tree-optimization/88182
9903 * testsuite/libgomp.c++/pr88182.C: New testcase.
9905 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9908 * config/mingw32/affinity-fmt.c: New file.
9910 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9912 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9913 (gomp_display_affinity): Use __builtin_choose_expr to handle
9914 properly handle argument having integral, or pointer or some other
9915 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9916 with uint64_t type instead of %llx and unsigned long long.
9918 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9919 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9921 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9923 * affinity.c: Include <string.h>, <stdio.h>.
9924 (gomp_display_affinity_place): Remove cpusetp.
9925 * teams.c: Include <limits.h>.
9927 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9929 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9930 in_reduction clause for s[0].
9932 * affinity.c (gomp_display_affinity_place): New function.
9933 * affinity-fmt.c: New file.
9934 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9935 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9936 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9937 Move these functions to ...
9938 * config/nvptx/teams.c: ... here. New file.
9939 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9941 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9943 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9944 and _aligned_malloc.
9945 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9946 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9947 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9948 gomp_affinity_format_len): New variables.
9949 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9950 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9951 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9952 modifiers. Display (non-default) chunk sizes. Print
9953 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9954 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9955 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9956 * fortran.c: Include stdio.h and string.h.
9957 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9958 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9959 (omp_set_affinity_format_, omp_get_affinity_format_,
9960 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9961 omp_pause_resource_all_): New functions.
9962 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9964 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9966 * teams.c: ... here. New file.
9967 * libgomp_g.h: Include gstdint.h.
9968 (GOMP_loop_nonmonotonic_runtime_start,
9969 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9970 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9971 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9972 GOMP_parallel_loop_nonmonotonic_runtime,
9973 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9974 GOMP_loop_ull_nonmonotonic_runtime_start,
9975 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9976 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9977 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9978 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9979 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9980 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9981 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9982 GOMP_teams_reg): Declare.
9983 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9984 gomp_aligned_alloc uses fallback implementation.
9985 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9986 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9987 (struct gomp_doacross_work_share): Add extra field.
9988 (struct gomp_work_share): Add task_reductions field.
9989 (struct gomp_taskgroup): Add workshare and reductions fields.
9990 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9991 (gomp_thread_handle): New typedef.
9992 (gomp_display_affinity_place, gomp_set_affinity_format,
9993 gomp_display_string, gomp_display_affinity,
9994 gomp_display_affinity_thread): Declare.
9995 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9996 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9997 gomp_workshare_task_reduction_register): Declare.
9998 (gomp_team_start): Add taskgroup argument.
9999 (gomp_pause_host): Declare.
10000 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10002 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10003 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10004 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10005 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10006 GOMP_loop_ull_doacross_start,
10007 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10008 GOMP_loop_maybe_nonmonotonic_runtime_next,
10009 GOMP_loop_maybe_nonmonotonic_runtime_start,
10010 GOMP_loop_nonmonotonic_runtime_next,
10011 GOMP_loop_nonmonotonic_runtime_start,
10012 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10013 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10014 GOMP_loop_ull_nonmonotonic_runtime_next,
10015 GOMP_loop_ull_nonmonotonic_runtime_start,
10016 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10017 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10018 GOMP_taskgroup_reduction_register,
10019 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10020 GOMP_teams_reg and GOMP_taskwait_depend.
10021 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10022 omp_{capture,display}_affinity{,_}, and
10023 omp_[gs]et_affinity_format{,_}.
10024 * loop.c: Include string.h.
10025 (GOMP_loop_runtime_next): Add ialias.
10026 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10027 (gomp_loop_static_start, gomp_loop_dynamic_start,
10028 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10029 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10030 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10031 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10032 or gomp_doacross_init callers.
10033 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10034 GOMP_loop_doacross_start): New functions.
10035 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10036 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10037 Mask off GFS_MONOTONIC bit.
10038 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10039 GOMP_loop_maybe_nonmonotonic_runtime_start,
10040 GOMP_loop_nonmonotonic_runtime_next,
10041 GOMP_loop_nonmonotonic_runtime_start,
10042 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10043 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10045 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10047 * loop_ull.c: Include string.h.
10048 (GOMP_loop_ull_runtime_next): Add ialias.
10049 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10050 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10051 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10052 gomp_loop_ull_ordered_dynamic_start,
10053 gomp_loop_ull_ordered_guided_start,
10054 gomp_loop_ull_doacross_static_start,
10055 gomp_loop_ull_doacross_dynamic_start,
10056 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10057 and gomp_doacross_ull_init callers.
10058 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10059 GOMP_loop_ull_doacross_start): New functions.
10060 (GOMP_loop_ull_runtime_start,
10061 GOMP_loop_ull_ordered_runtime_start,
10062 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10063 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10064 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10065 GOMP_loop_ull_nonmonotonic_runtime_next,
10066 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10067 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10068 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10069 (omp_pause_resource_t, omp_depend_t): New typedefs.
10070 (enum omp_lock_hint_t): Renamed to ...
10071 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10072 enumerators using numbers and omp_lock_hint_* as their aliases.
10073 (omp_lock_hint_t): New typedef. Rename to ...
10074 (omp_sync_hint_t): ... this.
10075 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10076 omp_sync_hint_t instead of omp_lock_hint_t.
10077 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10078 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10080 (omp_target_is_present, omp_target_disassociate_ptr):
10081 Change first argument from void * to const void *.
10082 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10083 from void * to const void *.
10084 (omp_target_associate_ptr): Change first and second arguments from
10085 void * to const void *.
10086 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10087 omp_pause_hard): New parameters.
10088 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10089 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10091 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10092 omp_pause_hard): New parameters.
10093 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10094 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10096 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10097 EXTRA argument. If not needed to prepare array, if extra is 0,
10098 clear ws->doacross, otherwise allocate just doacross structure and
10099 extra payload. If array is needed, allocate also extra payload.
10100 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10101 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10103 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10105 (GOMP_parallel): Likewise. Formatting fix.
10106 (GOMP_parallel_reductions): New function.
10107 (GOMP_cancellation_point): If taskgroup has workshare
10108 flag set, check cancelled of prev taskgroup if any.
10109 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10110 on prev taskgroup if any.
10111 * sections.c: Include string.h.
10112 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10113 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10114 (GOMP_sections2_start): New function.
10115 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10116 Pass NULL as taskgroup to gomp_team_start.
10117 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10118 gomp_work_share_start callers.
10119 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10120 If taskgroup has workshare flag set, check cancelled on prev
10121 taskgroup if any. Guard all cancellation tests with
10122 gomp_cancel_var test.
10123 (omp_target_is_present, omp_target_disassociate_ptr):
10124 Change ptr argument from void * to const void *.
10125 (omp_target_memcpy): Change src argument from void * to const void *.
10126 (omp_target_memcpy_rect): Likewise.
10127 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10128 instead of char * where needed.
10129 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10130 from void * to const void *.
10131 (omp_pause_resource, omp_pause_resource_all): New functions.
10132 * task.c (gomp_task_handle_depend): Handle new depend array format
10133 in addition to the old. Handle mutexinoutset kinds the same as
10134 inout for now, handle unspecified kinds.
10135 (gomp_create_target_task): If taskgroup has workshare flag set, check
10136 cancelled on prev taskgroup if any. Guard all cancellation tests with
10137 gomp_cancel_var test. Handle new depend array format count in
10138 addition to the old.
10139 (GOMP_task): Likewise. Adjust function comment.
10140 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10141 cancelled on prev taskgroup if any. Guard all cancellation tests with
10142 gomp_cancel_var test.
10143 (GOMP_taskwait_depend): New function.
10144 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10145 format in addition to the old. Handle mutexinoutset kinds the same as
10146 inout for now, handle unspecified kinds. Fix a function comment typo.
10147 (gomp_taskgroup_init): New function.
10148 (GOMP_taskgroup_start): Use it.
10149 (gomp_reduction_register, gomp_create_artificial_team,
10150 GOMP_taskgroup_reduction_register,
10151 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10152 gomp_parallel_reduction_register,
10153 gomp_workshare_task_reduction_register,
10154 gomp_workshare_taskgroup_start,
10155 GOMP_workshare_task_reduction_unregister): New functions.
10156 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10157 check cancelled on prev taskgroup if any. Guard all cancellation
10158 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10159 by calling GOMP_taskgroup_reduction_register.
10160 * team.c (gomp_thread_attr): Remove comment.
10161 (struct gomp_thread_start_data): Add handle field.
10162 (gomp_thread_start): Call pthread_detach.
10163 (gomp_new_team): Adjust gomp_init_work_share caller.
10164 (gomp_free_pool_helper): Call pthread_detach.
10165 (gomp_team_start): Add taskgroup argument, initialize implicit
10166 tasks' taskgroup field to that. Don't call
10167 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10168 (gomp_team_end): Determine nesting by thr->ts.level != 0
10169 rather than thr->ts.team != NULL.
10170 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10171 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10172 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10173 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10174 if more than 1 allocate also extra payload at the end of array. Never
10175 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10176 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10177 return true instead of ws.
10178 * Makefile.in: Regenerated.
10179 * configure: Regenerated.
10180 * config.h.in: Regenerated.
10181 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10183 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10184 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10185 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10186 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10187 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10188 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10189 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10190 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10191 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10192 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10193 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10194 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10195 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10196 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10197 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10198 define a different N(test), don't define N(f0) to N(f14), but instead
10199 define N(f20) to N(f34) using != comparisons.
10200 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10201 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10202 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10203 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10204 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10205 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10206 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10207 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10208 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10209 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10210 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10211 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10212 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10213 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10214 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10215 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10216 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10217 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10218 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10219 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10220 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10221 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10222 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10223 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10224 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10225 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10226 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10227 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10228 * testsuite/libgomp.c++/depend-1.C: New test.
10229 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10230 * testsuite/libgomp.c++/depobj-1.C: New test.
10231 * testsuite/libgomp.c++/for-16.C: New test.
10232 * testsuite/libgomp.c++/for-21.C: New test.
10233 * testsuite/libgomp.c++/for-22.C: New test.
10234 * testsuite/libgomp.c++/for-23.C: New test.
10235 * testsuite/libgomp.c++/for-24.C: New test.
10236 * testsuite/libgomp.c++/for-25.C: New test.
10237 * testsuite/libgomp.c++/for-26.C: New test.
10238 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10239 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10240 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10241 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10242 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10243 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10244 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10245 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10246 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10247 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10248 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10249 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10250 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10251 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10252 * testsuite/libgomp.c/task-reduction-1.c: New test.
10253 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10254 * testsuite/libgomp.c/task-reduction-2.c: New test.
10255 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10256 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10257 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10258 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10259 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10260 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10261 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10262 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10263 * testsuite/libgomp.c/teams-1.c: New test.
10264 * testsuite/libgomp.c/teams-2.c: New test.
10265 * testsuite/libgomp.c/thread-limit-4.c: New test.
10266 * testsuite/libgomp.c/thread-limit-5.c: New test.
10267 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10269 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10271 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10272 acc_memcpy_to/from_device functions, now with async parameter.
10273 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10274 (acc_memcpy_from_device): Likewise.
10275 (acc_memcpy_to_device_async): New API function.
10276 (acc_memcpy_from_device_async): Likewise.
10277 (present_create_copy): Add async parameter and async setting/unsetting.
10278 (acc_create): Adjust present_create_copy call.
10279 (acc_copyin): Likewise.
10280 (acc_present_or_create): Likewise.
10281 (acc_present_or_copyin): Likewise.
10282 (acc_create_async): New API function.
10283 (acc_copyin_async): New API function.
10284 (delete_copyout): Add async parameter and async setting/unsetting.
10285 (acc_delete): Adjust delete_copyout call.
10286 (acc_copyout): Likewise.
10287 (acc_delete_async): New API function.
10288 (acc_copyout_async): Likewise.
10289 (update_dev_host): Add async parameter and async setting/unsetting.
10290 (acc_update_device): Adjust update_dev_host call.
10291 (acc_update_self): Likewise.
10292 (acc_update_device_async): New API function.
10293 (acc_update_self_async): Likewise.
10294 * openacc.h (acc_copyin_async): Declare new API function.
10295 (acc_create_async): Likewise.
10296 (acc_copyout_async): Likewise.
10297 (acc_delete_async): Likewise.
10298 (acc_update_device_async): Likewise.
10299 (acc_update_self_async): Likewise.
10300 (acc_memcpy_to_device_async): Likewise.
10301 (acc_memcpy_from_device_async): Likewise.
10302 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10303 (acc_copyin_async_64_h): New subroutine.
10304 (acc_copyin_async_array_h): New subroutine.
10305 (acc_create_async_32_h): New subroutine.
10306 (acc_create_async_64_h): New subroutine.
10307 (acc_create_async_array_h): New subroutine.
10308 (acc_copyout_async_32_h): New subroutine.
10309 (acc_copyout_async_64_h): New subroutine.
10310 (acc_copyout_async_array_h): New subroutine.
10311 (acc_delete_async_32_h): New subroutine.
10312 (acc_delete_async_64_h): New subroutine.
10313 (acc_delete_async_array_h): New subroutine.
10314 (acc_update_device_async_32_h): New subroutine.
10315 (acc_update_device_async_64_h): New subroutine.
10316 (acc_update_device_async_array_h): New subroutine.
10317 (acc_update_self_async_32_h): New subroutine.
10318 (acc_update_self_async_64_h): New subroutine.
10319 (acc_update_self_async_array_h): New subroutine.
10320 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10321 (acc_copyin_async_64_h): New subroutine.
10322 (acc_copyin_async_array_h): New subroutine.
10323 (acc_create_async_32_h): New subroutine.
10324 (acc_create_async_64_h): New subroutine.
10325 (acc_create_async_array_h): New subroutine.
10326 (acc_copyout_async_32_h): New subroutine.
10327 (acc_copyout_async_64_h): New subroutine.
10328 (acc_copyout_async_array_h): New subroutine.
10329 (acc_delete_async_32_h): New subroutine.
10330 (acc_delete_async_64_h): New subroutine.
10331 (acc_delete_async_array_h): New subroutine.
10332 (acc_update_device_async_32_h): New subroutine.
10333 (acc_update_device_async_64_h): New subroutine.
10334 (acc_update_device_async_array_h): New subroutine.
10335 (acc_update_self_async_32_h): New subroutine.
10336 (acc_update_self_async_64_h): New subroutine.
10337 (acc_update_self_async_array_h): New subroutine.
10338 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10339 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10340 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10341 acc_memcpy_to_device_async*, acc_update_device_async*, and
10342 acc_update_self_async* entries.
10343 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10344 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10345 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10347 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10350 * Makefile.am: Include multilib.am
10351 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10352 (CLEANFILES): Remove libgomp.info.
10353 * configure.ac: Remove AC_PREREQ.
10354 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10355 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10358 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10359 Julian Brown <julian@codesourcery.com>
10361 * testsuite/libgomp.oacc-c++/this.C: New.
10363 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10365 * plugin/plugin-nvptx.c (struct cuda_map): New.
10366 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10367 h_tail with (cuda_map *) map.
10368 (cuda_map_create): New function.
10369 (cuda_map_destroy): New function.
10370 (map_init): Update to use a linked list of cuda_map objects.
10371 (map_fini): Likewise.
10372 (map_pop): Likewise.
10373 (map_push): Likewise. Return CUdeviceptr instead of void.
10374 (init_streams_for_device): Remove stales references to ptx_stream
10376 (select_stream_for_async): Likewise.
10377 (nvptx_exec): Update call to map_init.
10379 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10380 Julian Brown <julian@codesourcery.com>
10382 PR middle-end/86336
10383 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10385 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10386 Thomas Koenig <tkoenig@gcc.gnu.org>
10389 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10390 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10391 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10392 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10393 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10394 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10395 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10397 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10398 Tom de Vries <tdevries@suse.de>
10401 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10402 (cuOccupancyMaxPotentialBlockSize): Declare.
10403 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10404 CUDA_ONE_CALL_MAYBE_NULL.
10405 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10406 CUoccupancyB2DSize and declare
10407 cuOccupancyMaxPotentialBlockSize.
10408 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10409 default num_gangs and num_workers when the driver supports it.
10411 2018-08-08 Tom de Vries <tdevries@suse.de>
10413 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10414 CUDA_ONE_CALL_MAYBE_NULL.
10415 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10416 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10417 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10420 2018-08-08 Tom de Vries <tdevries@suse.de>
10422 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10423 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10426 2018-08-08 Tom de Vries <tdevries@suse.de>
10428 * plugin/plugin-nvptx.c
10429 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10430 (nvptx_open_device): Use
10431 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10433 2018-08-08 Tom de Vries <tdevries@suse.de>
10435 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10436 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10438 2018-08-07 Tom de Vries <tdevries@suse.de>
10440 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10441 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10442 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10443 corresponding call in CUDA_ONE_CALL. Add def/undef of
10444 CUDA_ONE_CALL_MAYBE_NULL.
10445 (CUDA_CALL_EXISTS): Define.
10447 2018-08-07 Tom de Vries <tdevries@suse.de>
10449 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10450 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10451 corresponding undefs right after.
10453 2018-08-04 Tom de Vries <tdevries@suse.de>
10455 * plugin/configfrag.ac: For --without-cuda-driver, set
10456 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10457 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10458 * configure: Regenerate.
10460 2018-08-02 Tom de Vries <tdevries@suse.de>
10463 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10464 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10465 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10467 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10468 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10469 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10471 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10472 Thomas Schwinge <thomas@codesourcery.com>
10474 * config/nvptx/oacc-parallel.c: Truncate.
10476 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10477 James Norris <jnorris@codesourcery.com>
10479 * plugin/plugin-nvptx.c (struct map): Removed.
10480 (map_init, map_pop): Remove use of struct map.
10481 (map_push): Likewise and change argument list.
10482 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10484 2018-08-01 Tom de Vries <tdevries@suse.de>
10486 * plugin/cuda-lib.def: New file. Factor out of ...
10487 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10488 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10491 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10493 Revert 'AsyncI/O patch committed'.
10494 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10495 Thomas Koenig <tkoenig@gcc.gnu.org>
10498 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10499 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10500 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10501 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10502 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10503 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10504 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10506 2018-07-30 Tom de Vries <tdevries@suse.de>
10508 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10509 (nvptx_exec): Ensure worker and vector default dims don't exceed
10510 targ_fn->max_threads_per_block.
10512 2018-07-30 Tom de Vries <tdevries@suse.de>
10514 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10515 (nvptx_open_device): Init default_dims for device.
10516 (nvptx_exec): Use default_dims from device.
10518 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10521 * testsuite/libgomp.c++/for-15.C (results): Include it in
10522 omp declare target region.
10523 (main): Use map (always, tofrom: results) instead of
10524 map (tofrom: results).
10526 PR middle-end/86660
10527 * testsuite/libgomp.c/pr86660.c: New test.
10529 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10530 Tom de Vries <tdevries@suse.de>
10532 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10533 sufficient resources to launch a kernel, and give a hint on how to fix
10536 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10537 Tom de Vries <tdevries@suse.de>
10539 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10540 max_threads_per_block and max_threads_per_multiprocessor fields.
10541 (nvptx_open_device): Initialize new fields.
10542 (nvptx_exec): Use num_sms, and new fields.
10544 2018-07-26 Tom de Vries <tdevries@suse.de>
10546 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10547 to correct locations. Remove xfail.
10549 2018-07-26 Tom de Vries <tdevries@suse.de>
10551 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10552 acc_wait. Move acc_async_test calls to correct locations. Remove
10555 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10556 Thomas Koenig <tkoenig@gcc.gnu.org>
10559 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10560 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10561 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10562 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10563 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10564 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10565 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10567 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10569 PR middle-end/86542
10570 * testsuite/libgomp.c++/pr86542.C: New test.
10572 PR middle-end/86539
10573 * testsuite/libgomp.c++/pr86539.C: New test.
10575 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10578 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10579 (results): Make sure the variable is not inside declare target region.
10580 (qux): Remove unused function.
10582 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10585 * testsuite/libgomp.c++/for-15.C: New test.
10587 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10590 * testsuite/libgomp.c++/pr86291.C: New test.
10592 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10594 * libgomp.texi (Top): Move www.openmp.org to https.
10595 (Enabling OpenMP): Ditto.
10596 (omp_get_active_level): Ditto.
10597 (omp_get_ancestor_thread_num): Ditto.
10598 (omp_get_cancellation): Ditto.
10599 (omp_get_default_device): Ditto.
10600 (omp_get_dynamic): Ditto.
10601 (omp_get_level): Ditto.
10602 (omp_get_max_active_levels): Ditto.
10603 (omp_get_max_task_priority): Ditto.
10604 (omp_get_max_threads): Ditto.
10605 (omp_get_nested): Ditto.
10606 (omp_get_num_devices): Ditto.
10607 (omp_get_num_procs): Ditto.
10608 (omp_get_num_teams): Ditto.
10609 (omp_get_num_threads): Ditto.
10610 (omp_get_proc_bind): Ditto.
10611 (omp_get_schedule): Ditto.
10612 (omp_get_team_num): Ditto.
10613 (omp_get_team_size): Ditto.
10614 (omp_get_thread_limit): Ditto.
10615 (omp_get_thread_num): Ditto.
10616 (omp_in_parallel): Ditto.
10617 (omp_in_final): Ditto.
10618 (omp_is_initial_device): Ditto.
10619 (omp_set_default_device): Ditto.
10620 (omp_set_dynamic): Ditto.
10621 (omp_set_max_active_levels): Ditto.
10622 (omp_set_nested): Ditto.
10623 (omp_set_num_threads): Ditto.
10624 (omp_set_schedule): Ditto.
10625 (omp_init_lock): Ditto.
10626 (omp_set_lock): Ditto.
10627 (omp_test_lock): Ditto.
10628 (omp_unset_lock): Ditto.
10629 (omp_destroy_lock): Ditto.
10630 (omp_init_nest_lock): Ditto.
10631 (omp_set_nest_lock): Ditto.
10632 (omp_test_nest_lock): Ditto.
10633 (omp_unset_nest_lock): Ditto.
10634 (omp_destroy_nest_lock): Ditto.
10635 (omp_get_wtick): Ditto.
10636 (omp_get_wtime): Ditto.
10637 (OMP_CANCELLATION): Ditto.
10638 (OMP_DISPLAY_ENV): Ditto.
10639 (OMP_DEFAULT_DEVICE): Ditto.
10640 (OMP_DYNAMIC): Ditto.
10641 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10642 (OMP_MAX_TASK_PRIORITY): Ditto.
10643 (OMP_NESTED): Ditto.
10644 (OMP_NUM_THREADS): Ditto.
10645 (OMP_PROC_BIND): Ditto.
10646 (OMP_PLACES): Ditto.
10647 (OMP_STACKSIZE): Ditto.
10648 (OMP_SCHEDULE): Ditto.
10649 (OMP_THREAD_LIMIT): Ditto.
10650 (OMP_WAIT_POLICY): Ditto.
10652 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10653 James Norris <jnorris@codesourcery.com>
10654 Julian Brown <julian@codesourcery.com>
10655 Thomas Schwinge <thomas@codesourcery.com>
10656 Tom de Vries <tom@codesourcery.com>
10658 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10659 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10660 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10661 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10662 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10663 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10664 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10665 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10666 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10667 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10669 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10671 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10673 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10675 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10677 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10679 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10681 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10683 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10685 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10687 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10689 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10691 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10693 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10695 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10697 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10699 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10701 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10719 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10721 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10722 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10723 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10724 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10725 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10726 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10727 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10728 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10729 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10731 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10733 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10734 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10735 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10737 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10738 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10739 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10741 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10743 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10745 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10747 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10749 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10751 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10753 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10755 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10757 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10759 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10761 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10763 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10765 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10767 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10769 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10770 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10771 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10772 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10773 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10774 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10775 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10777 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10778 Thomas Schwinge <thomas@codesourcery.com>
10779 Cesar Philippidis <cesar@codesourcery.com>
10781 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10782 (gomp_acc_remove_pointer): Update declaration.
10783 (gomp_acc_declare_allocate): Declare.
10784 (gomp_remove_var): Declare.
10785 * libgomp.map (OACC_2.5): Define.
10786 * oacc-mem.c (acc_map_data): Update refcount.
10787 (acc_unmap_data): Likewise.
10788 (present_create_copy): Likewise.
10789 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10790 (acc_copyin): Likewise.
10791 (FLAG_FINALIZE): Define.
10792 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10793 (acc_delete_finalize): New function.
10794 (acc_delete_finalize_async): New function.
10795 (acc_copyout_finalize): New function.
10796 (acc_copyout_finalize_async): New function.
10797 (gomp_acc_insert_pointer): Update refcounts.
10798 (gomp_acc_remove_pointer): Return if data is not present on the
10800 * oacc-parallel.c (find_pset): Rename to find_pointer.
10801 (find_pointer): Add support for GOMP_MAP_POINTER.
10802 (handle_ftn_pointers): New function.
10803 (GOACC_parallel_keyed): Update refcounts of variables.
10804 (GOACC_enter_exit_data): Add support for finalized data mappings.
10805 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10807 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10808 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10809 for GOMP_MAP_FORCE_FROM.
10810 * openacc.f90 (module openacc_internal): Add
10811 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10812 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10813 acc_copyout_finalize and acc_delete_finalize.
10814 (acc_copyout_finalize_32_h): New subroutine.
10815 (acc_copyout_finalize_64_h): New subroutine.
10816 (acc_copyout_finalize_array_h): New subroutine.
10817 (acc_delete_finalize_32_h): New subroutine.
10818 (acc_delete_finalize_64_h): New subroutine.
10819 (acc_delete_finalize_array_h): New subroutine.
10820 * openacc.h (acc_copyout_finalize): Declare.
10821 (acc_copyout_finalize_async): Declare.
10822 (acc_delete_finalize): Declare.
10823 (acc_delete_finalize_async): Declare.
10824 * openacc_lib.h (acc_copyout_finalize): New interface.
10825 (acc_delete_finalize): New interface.
10826 * target.c (gomp_map_vars): Update dynamic_refcount.
10827 (gomp_remove_var): New function.
10828 (gomp_unmap_vars): Use it.
10829 (gomp_unload_image_from_device): Likewise.
10830 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10831 case to utilize OpenACC 2.5 data clause semantics.
10832 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10833 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10834 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10835 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10836 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10837 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10838 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10839 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10840 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10841 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10842 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10843 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10844 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10845 utilize OpenACC 2.5 data clause semantics.
10846 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10847 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10848 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10849 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10850 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10851 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10852 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10853 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10854 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10856 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10860 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10861 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10862 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10863 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10864 * testsuite/libgomp.fortran/task2.f90: Ditto.
10865 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10866 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10867 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10868 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10869 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10870 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10871 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10872 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10873 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10875 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10878 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10880 2018-05-09 Tom de Vries <tom@codesourcery.com>
10883 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10884 to GOACC_enter_exit_data.
10886 2018-05-09 Tom de Vries <tom@codesourcery.com>
10889 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10890 (async_synchronous_p): New function.
10891 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10893 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10894 async_valid_stream_id_p.
10895 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10896 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10898 2018-05-07 Tom de Vries <tom@codesourcery.com>
10901 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10902 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10904 2018-05-03 Tom de Vries <tom@codesourcery.com>
10907 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10908 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10909 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10910 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10912 2018-05-02 Tom de Vries <tom@codesourcery.com>
10915 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10916 GOMP_OPENACC_DIM ...
10917 * env.c (parse_gomp_openacc_dim): ... here. New function.
10918 (initialize_env): Call parse_gomp_openacc_dim.
10919 (goacc_default_dims): Define.
10920 * libgomp.h (goacc_default_dims): Declare.
10921 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10922 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10923 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10924 GOMP_PLUGIN_acc_default_dim.
10925 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10926 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10928 2018-05-02 Tom de Vries <tom@codesourcery.com>
10931 * testsuite/libgomp.c++/udr-9.C: Update.
10932 * testsuite/libgomp.c++/atomic-16.C: Remove.
10933 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10934 * testsuite/libgomp.c++/loop-13.C: Remove.
10935 * testsuite/libgomp.c++/loop-14.C: Remove.
10936 * testsuite/libgomp.c++/loop-15.C: Remove.
10937 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10938 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10939 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10940 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10941 * testsuite/libgomp.c++/ordered-1.C: Remove.
10942 * testsuite/libgomp.c++/pr45784.C: Remove.
10943 * testsuite/libgomp.c++/pr64824.C: Remove.
10944 * testsuite/libgomp.c++/pr64868.C: Remove.
10945 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10946 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10947 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10948 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10949 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10950 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10951 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10952 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10953 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10954 * testsuite/libgomp.c++/pr69389.C: Remove.
10955 * testsuite/libgomp.c++/simd10.C: Remove.
10956 * testsuite/libgomp.c++/simd11.C: Remove.
10957 * testsuite/libgomp.c++/simd12.C: Remove.
10958 * testsuite/libgomp.c++/simd13.C: Remove.
10959 * testsuite/libgomp.c++/target-1.C: Remove.
10960 * testsuite/libgomp.c++/target-3.C: Remove.
10961 * testsuite/libgomp.c++/target-4.C: Remove.
10962 * testsuite/libgomp.c++/target-5.C: Remove.
10963 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10964 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10965 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10966 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10967 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10968 * testsuite/libgomp.c++/udr-9.C: Remove.
10969 * testsuite/libgomp.c++/for-10.C: Remove.
10970 * testsuite/libgomp.c++/for-11.C: Remove.
10971 * testsuite/libgomp.c++/for-12.C: Remove.
10972 * testsuite/libgomp.c++/for-13.C: Remove.
10973 * testsuite/libgomp.c++/for-14.C: Remove.
10974 * testsuite/libgomp.c++/for-9.C: Remove.
10975 * testsuite/libgomp.c/atomic-18.c: Move ...
10976 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10977 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10978 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10979 * testsuite/libgomp.c/loop-13.c: Move ...
10980 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10981 * testsuite/libgomp.c/loop-14.c: Move ...
10982 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10983 * testsuite/libgomp.c/loop-15.c: Remove.
10984 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10985 * testsuite/libgomp.c/monotonic-1.c: Move ...
10986 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10987 * testsuite/libgomp.c/monotonic-2.c: Move ...
10988 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10989 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10990 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10991 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10992 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10993 * testsuite/libgomp.c/ordered-4.c: Move ...
10994 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10995 * testsuite/libgomp.c/pr45784.c: Move ...
10996 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10997 * testsuite/libgomp.c/pr64824.c: Move ...
10998 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10999 * testsuite/libgomp.c/pr64868.c: Move ...
11000 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11001 * testsuite/libgomp.c/pr66199-1.c: Move ...
11002 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11003 * testsuite/libgomp.c/pr66199-2.c: Move ...
11004 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11005 * testsuite/libgomp.c/pr66199-3.c: Move ...
11006 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11007 * testsuite/libgomp.c/pr66199-4.c: Move ...
11008 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11009 * testsuite/libgomp.c/pr66199-5.c: Move ...
11010 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11011 * testsuite/libgomp.c/pr66199-6.c: Move ...
11012 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11013 * testsuite/libgomp.c/pr66199-7.c: Move ...
11014 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11015 * testsuite/libgomp.c/pr66199-8.c: Move ...
11016 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11017 * testsuite/libgomp.c/pr66199-9.c: Move ...
11018 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11019 * testsuite/libgomp.c/pr69389.c: Move ...
11020 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11021 * testsuite/libgomp.c/simd-14.c: Move ...
11022 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11023 * testsuite/libgomp.c/simd-15.c: Move ...
11024 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11025 * testsuite/libgomp.c/simd-16.c: Move ...
11026 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11027 * testsuite/libgomp.c/simd-17.c: Move ...
11028 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11029 * testsuite/libgomp.c/target-1.c: Move ...
11030 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11031 * testsuite/libgomp.c/target-10.c: Move ...
11032 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11033 * testsuite/libgomp.c/target-13.c: Move ...
11034 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11035 * testsuite/libgomp.c/target-2.c: Move ...
11036 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11037 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11038 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11039 * testsuite/libgomp.c/taskloop-1.c: Move ...
11040 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11041 * testsuite/libgomp.c/taskloop-2.c: Move ...
11042 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11043 * testsuite/libgomp.c/taskloop-3.c: Move ...
11044 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11045 * testsuite/libgomp.c/taskloop-4.c: Move ...
11046 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11047 * testsuite/libgomp.c/udr-1.c: Move ...
11048 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11049 * testsuite/libgomp.c/for-1.c: Move ...
11050 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11051 * testsuite/libgomp.c/for-1.h: Move ...
11052 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11053 * testsuite/libgomp.c/for-2.c: Move ...
11054 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11055 * testsuite/libgomp.c/for-2.h: Move ...
11056 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11057 * testsuite/libgomp.c/for-3.c: Move ...
11058 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11059 * testsuite/libgomp.c/for-4.c: Move ...
11060 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11061 * testsuite/libgomp.c/for-5.c: Move ...
11062 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11063 * testsuite/libgomp.c/for-6.c: Move ...
11064 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11066 2018-05-02 Tom de Vries <tom@codesourcery.com>
11069 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11070 __builtin_goacc_parlevel_{id,size}.
11071 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11072 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11073 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11074 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11075 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11076 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11077 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11078 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11079 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11080 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11081 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11082 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11083 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11084 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11085 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11086 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11087 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11088 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11089 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11090 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11091 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11092 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11093 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11095 2018-05-02 Tom de Vries <tom@codesourcery.com>
11098 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11100 2018-05-02 Tom de Vries <tom@codesourcery.com>
11103 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11105 2018-04-29 Julian Brown <julian@codesourcery.com>
11106 Tom de Vries <tom@codesourcery.com>
11109 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11110 arbitrary order for iterations of atomic subtract check.
11112 2018-04-28 Tom de Vries <tom@codesourcery.com>
11115 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11116 atomic capture results obtained in parallel loop to an array, instead of
11119 2018-04-26 Tom de Vries <tom@codesourcery.com>
11122 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11123 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11124 (process_GOMP_NVPTX_JIT): New function.
11125 (link_ptx): Use process_GOMP_NVPTX_JIT.
11127 2018-04-26 Richard Biener <rguenther@suse.de>
11128 Tom de Vries <tom@codesourcery.com>
11131 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11133 2018-04-26 Tom de Vries <tom@codesourcery.com>
11136 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11137 recursion depth from 25 to 23.
11138 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11140 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11142 * configure: Regenerated.
11144 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11145 Tom de Vries <tom@codesourcery.com>
11148 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11150 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11153 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11154 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11155 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11156 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11157 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11158 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11160 PR libfortran/85166
11161 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11163 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11165 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11167 * configure: Regenerated.
11169 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11172 * configure: Regenerate.
11174 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11175 Tom de Vries <tom@codesourcery.com>
11177 PR middle-end/84955
11178 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11179 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11181 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11185 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11186 test from gfortran.dg to here.
11188 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11190 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11191 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11193 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11195 PR middle-end/84955
11196 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11197 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11199 2018-04-05 Tom de Vries <tom@codesourcery.com>
11202 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11204 2018-03-26 Tom de Vries <tom@codesourcery.com>
11206 PR tree-optimization/85063
11207 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11208 * testsuite/libgomp.c/switch-conversion.c: New test.
11209 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11210 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11212 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11215 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11216 call abort by STOP n.
11217 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11218 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11219 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11220 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11221 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11222 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11223 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11224 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11225 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11226 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11227 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11228 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11229 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11230 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11231 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11232 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11233 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11234 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11235 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11236 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11237 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11238 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11239 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11240 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11241 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11242 * testsuite/libgomp.fortran/character1.f90: Likewise.
11243 * testsuite/libgomp.fortran/character2.f90: Likewise.
11244 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11245 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11246 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11247 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11248 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11249 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11250 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11251 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11252 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11253 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11254 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11255 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11256 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11257 * testsuite/libgomp.fortran/do1.f90: Likewise.
11258 * testsuite/libgomp.fortran/do2.f90: Likewise.
11259 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11260 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11261 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11262 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11263 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11264 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11265 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11266 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11267 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11268 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11269 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11270 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11271 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11272 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11273 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11274 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11275 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11276 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11277 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11278 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11279 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11280 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11281 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11282 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11283 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11284 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11285 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11286 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11287 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11288 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11289 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11290 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11291 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11292 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11293 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11294 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11295 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11296 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11297 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11298 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11299 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11300 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11301 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11302 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11303 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11304 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11305 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11306 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11307 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11308 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11309 * testsuite/libgomp.fortran/lib2.f: Likewise.
11310 * testsuite/libgomp.fortran/lib3.f: Likewise.
11311 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11312 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11313 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11314 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11315 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11316 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11317 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11318 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11319 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11320 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11321 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11322 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11323 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11324 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11325 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11326 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11327 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11328 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11329 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11330 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11331 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11332 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11333 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11334 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11335 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11336 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11337 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11338 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11339 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11340 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11341 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11342 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11343 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11344 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11345 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11346 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11347 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11348 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11349 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11350 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11351 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11352 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11353 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11354 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11355 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11356 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11357 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11358 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11359 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11360 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11361 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11362 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11363 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11364 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11365 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11366 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11367 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11368 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11369 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11370 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11371 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11372 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11373 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11374 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11375 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11376 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11377 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11378 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11379 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11380 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11381 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11382 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11383 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11384 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11385 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11386 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11387 * testsuite/libgomp.fortran/stack.f90: Likewise.
11388 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11389 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11390 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11391 * testsuite/libgomp.fortran/target1.f90: Likewise.
11392 * testsuite/libgomp.fortran/target2.f90: Likewise.
11393 * testsuite/libgomp.fortran/target3.f90: Likewise.
11394 * testsuite/libgomp.fortran/target4.f90: Likewise.
11395 * testsuite/libgomp.fortran/target5.f90: Likewise.
11396 * testsuite/libgomp.fortran/target6.f90: Likewise.
11397 * testsuite/libgomp.fortran/target7.f90: Likewise.
11398 * testsuite/libgomp.fortran/target8.f90: Likewise.
11399 * testsuite/libgomp.fortran/task1.f90: Likewise.
11400 * testsuite/libgomp.fortran/task2.f90: Likewise.
11401 * testsuite/libgomp.fortran/task3.f90: Likewise.
11402 * testsuite/libgomp.fortran/task4.f90: Likewise.
11403 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11404 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11405 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11406 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11407 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11408 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11409 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11410 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11411 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11412 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11413 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11414 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11415 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11416 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11417 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11418 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11419 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11420 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11421 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11422 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11423 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11424 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11425 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11426 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11427 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11428 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11429 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11430 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11431 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11432 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11433 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11434 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11435 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11436 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11437 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11438 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11439 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11440 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11441 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11442 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11443 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11444 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11445 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11446 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11447 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11448 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11449 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11450 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11451 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11452 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11453 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11454 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11455 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11456 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11457 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11458 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11459 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11460 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11461 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11462 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11463 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11464 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11465 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11466 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11467 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11468 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11469 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11470 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11471 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11472 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11473 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11474 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11475 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11476 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11477 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11478 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11479 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11480 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11481 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11482 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11483 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11484 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11485 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11486 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11487 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11488 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11489 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11490 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11491 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11492 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11493 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11494 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11495 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11496 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11497 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11498 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11499 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11500 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11501 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11502 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11503 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11504 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11505 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11506 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11507 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11508 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11509 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11510 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11511 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11512 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11513 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11514 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11515 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11516 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11517 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11518 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11519 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11520 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11521 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11522 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11523 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11524 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11525 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11526 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11527 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11528 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11530 2018-03-20 Richard Biener <rguenther@suse.de>
11532 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11533 parallelizable loop.
11535 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11538 * configure: Regenerate.
11540 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11543 * libgomp.fortran/pr84418-1.f90: New test.
11544 * libgomp.fortran/pr84418-2.f90: New test.
11546 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11549 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11550 -std=f2003 -fall-intrinsics into dg-additional-options.
11552 2018-02-08 Martin Jambor <mjambor@suse.cz>
11554 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11557 2018-02-08 Martin Jambor <mjambor@suse.cz>
11559 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11561 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11563 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11564 [__cplusplus]: Declare extern "C".
11566 2018-02-07 Tom de Vries <tom@codesourcery.com>
11569 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11571 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11572 Jakub Jelinek <jakub@redhat.com>
11575 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11576 instead of omp_lock_t.
11578 2018-01-25 Tom de Vries <tom@codesourcery.com>
11581 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11583 2018-01-24 Tom de Vries <tom@codesourcery.com>
11586 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11588 2018-01-24 Tom de Vries <tom@codesourcery.com>
11591 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11593 2018-01-19 Tom de Vries <tom@codesourcery.com>
11594 Cesar Philippidis <cesar@codesourcery.com>
11597 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11598 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11600 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11602 Update copyright years.
11604 * libgomp.texi: Bump @copying's copyright year.
11606 2017-12-30 Tom de Vries <tom@codesourcery.com>
11609 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11610 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11612 2017-12-27 Tom de Vries <tom@codesourcery.com>
11615 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11616 (test_nonstatic): Fix return type to workaround PR83046.
11618 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11621 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11622 j suffix instead of i.
11623 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11626 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11628 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11629 call to acc_wait (1).
11631 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11634 * testsuite/libgomp.fortran/pr81304.f90: New test.
11636 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11639 * libgomp.fortran/pr81841.f90: New test.
11641 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11644 * target.c (gomp_target_init): Compute lengths just once and
11645 use them in both malloc size and subsequent copying.
11647 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11649 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11650 * acinclude.m4: Add cet.m4.
11651 * configure: Regenerate.
11652 * Makefile.in: Likewise.
11653 * testsuite/Makefile.in: Likewise.
11655 2017-11-15 Tom de Vries <tom@codesourcery.com>
11657 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11658 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11659 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11660 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11661 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11662 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11664 2017-11-14 Tom de Vries <tom@codesourcery.com>
11666 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11667 non-nvidia devices.
11669 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11672 * testsuite/libgomp.c++/pr82835.C: New test.
11674 2017-11-06 Martin Liska <mliska@suse.cz>
11676 * testsuite/libgomp.c++/loop-2.C: Return a value
11677 for functions with non-void return type, or change type to void,
11678 or add -Wno-return-type for test.
11679 * testsuite/libgomp.c++/loop-4.C: Likewise.
11680 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11681 * testsuite/libgomp.c++/shared-1.C: Likewise.
11682 * testsuite/libgomp.c++/single-1.C: Likewise.
11683 * testsuite/libgomp.c++/single-2.C: Likewise.
11685 2017-10-31 Tom de Vries <tom@codesourcery.com>
11687 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11688 "do {} while (false)".
11689 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11690 after HSA_DEBUG call.
11692 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11694 * target.c (struct gomp_coalesce_buf): New type.
11695 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11696 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11697 (gomp_copy_host2dev): Add CBUF argument, if copying into
11698 the cached ranges, memcpy into buffer instead of copying
11700 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11701 Add CBUF argument, pass it through to other calls.
11702 (gomp_map_vars): Aggregate copies from host to device if small enough
11703 and with small enough gaps in between into memcpy into a buffer and
11704 fewer host to device copies from the buffer.
11705 (gomp_update): Adjust gomp_copy_host2dev caller.
11707 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11709 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11711 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11712 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11713 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11714 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11716 2017-10-16 Tom de Vries <tom@codesourcery.com>
11718 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11719 openacc_nvidia_accel_selected.
11720 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11721 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11722 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11723 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11724 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11725 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11726 openacc_nvidia_accel_selected. Skip for shared memory device.
11727 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11728 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11730 2017-10-09 Martin Jambor <mjambor@suse.cz>
11733 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11735 2017-10-07 Tom de Vries <tom@codesourcery.com>
11737 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11738 Remove acc_device_nvidia references.
11739 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11742 2017-10-05 Tom de Vries <tom@codesourcery.com>
11744 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11745 vector_length(32) clause from acc parallel directive.
11746 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11748 2017-10-04 Tom de Vries <tom@codesourcery.com>
11750 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11751 (main): Reduce sum of arr elements. Assert that hres is exactly
11752 representable in 32-bit floating point.
11753 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11754 (main): Reduce sum of arr elements. Assert that hres and hmres are
11755 exactly representable in 32-bit floating point.
11756 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11758 2017-09-28 Tom de Vries <tom@codesourcery.com>
11760 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11762 * testsuite/libgomp.c++/pr69393.C: Same.
11763 * testsuite/libgomp.c++/taskloop-1.C: Same.
11764 * testsuite/libgomp.c++/taskloop-3.C: Same.
11765 * testsuite/libgomp.c++/taskloop-4.C: Same.
11766 * testsuite/libgomp.c/for-4.c: Same.
11767 * testsuite/libgomp.c/pr66199-3.c: Same.
11768 * testsuite/libgomp.c/pr66199-4.c: Same.
11769 * testsuite/libgomp.c/pr66199-6.c: Same.
11770 * testsuite/libgomp.c/taskloop-1.c: Same.
11771 * testsuite/libgomp.c/taskloop-3.c: Same.
11772 * testsuite/libgomp.c/taskloop-4.c: Same.
11773 * testsuite/libgomp.fortran/aligned1.f03: Same.
11774 * testsuite/libgomp.fortran/condinc1.f: Same.
11775 * testsuite/libgomp.fortran/condinc3.f90: Same.
11776 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11777 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11778 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11779 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11780 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11781 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11782 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11783 * testsuite/libgomp.fortran/recursion1.f90: Same.
11784 * testsuite/libgomp.fortran/target2.f90: Same.
11785 * testsuite/libgomp.fortran/target5.f90: Same.
11786 * testsuite/libgomp.fortran/task3.f90: Same.
11788 2017-09-28 Tom de Vries <tom@codesourcery.com>
11790 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11791 vector_length(32) clause from acc parallel directive.
11792 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11794 2017-09-27 Tom de Vries <tom@codesourcery.com>
11796 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11797 Remove acc_device_nvidia references.
11799 2017-09-16 Tom de Vries <tom@codesourcery.com>
11802 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11804 2017-09-14 Tom de Vries <tom@codesourcery.com>
11806 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11807 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11808 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11809 * testsuite/libgomp.c/c.exp: Include test-cases from
11810 libgomp.c-c++-common.
11811 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11814 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11817 * testsuite/libgomp.c++/pr81314.C: New test.
11819 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11821 * libgomp.texi (Top): www.openacc.org now uses https.
11822 (Enabling OpenACC): Ditto.
11823 (acc_get_num_devices): Ditto.
11824 (acc_set_device_type): Ditto.
11825 (acc_get_device_type): Ditto.
11826 (acc_set_device_num): Ditto.
11827 (acc_get_device_num): Ditto.
11828 (acc_async_test): Ditto.
11829 (acc_async_test_all): Ditto.
11831 (acc_wait_all): Ditto.
11832 (acc_wait_all_async): Ditto.
11833 (acc_wait_async): Ditto.
11835 (acc_shutdown): Ditto.
11836 (acc_on_device): Ditto.
11837 (acc_malloc): Ditto.
11839 (acc_copyin): Ditto.
11840 (acc_present_or_copyin): Ditto.
11841 (acc_create): Ditto.
11842 (acc_present_or_create): Ditto.
11843 (acc_copyout): Ditto.
11844 (acc_delete): Ditto.
11845 (acc_update_device): Ditto.
11846 (acc_update_self): Ditto.
11847 (acc_map_data): Ditto.
11848 (acc_unmap_data): Ditto.
11849 (acc_deviceptr): Ditto.
11850 (acc_hostptr): Ditto.
11851 (acc_is_present): Ditto.
11852 (acc_memcpy_to_device): Ditto.
11853 (acc_memcpy_from_device): Ditto.
11854 (acc_get_current_cuda_device): Ditto.
11855 (acc_get_current_cuda_context): Ditto.
11856 (acc_get_cuda_stream): Ditto.
11857 (acc_set_cuda_stream): Ditto.
11858 (ACC_DEVICE_TYPE): Ditto.
11859 (ACC_DEVICE_NUM): Ditto.
11860 (OpenACC Library Interoperability): Ditto.
11862 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11865 * testsuite/libgomp.c/pr81687-1.c: New test.
11866 * testsuite/libgomp.c/pr81687-2.c: New test.
11868 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11871 * testsuite/libgomp.c/pr69389.c: New test.
11872 * testsuite/libgomp.c++/pr69389.C: New test.
11874 2017-08-07 Tom de Vries <tom@codesourcery.com>
11876 PR middle-end/78266
11877 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11878 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11880 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11883 * testsuite/libgomp.c/pr45784.c: New test.
11884 * testsuite/libgomp.c++/pr45784.C: New test.
11886 2017-07-19 Tom de Vries <tom@codesourcery.com>
11888 * testsuite/libgomp.oacc-c/vec.c: New test.
11890 2017-07-03 Tom de Vries <tom@codesourcery.com>
11892 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11894 2017-06-27 Tom de Vries <tom@codesourcery.com>
11896 * plugin/plugin-nvptx.c (notify_var): New function.
11897 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11899 2017-06-27 Tom de Vries <tom@codesourcery.com>
11901 * env.c (parse_unsigned_long_1): Factor out of ...
11902 (parse_unsigned_long): ... here.
11903 (parse_int_1): Factor out of ...
11904 (parse_int): ... here.
11905 (parse_int_secure): New function.
11906 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11907 * secure_getenv.h: Factor out of ...
11908 * plugin/plugin-hsa.c: ... here.
11909 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11911 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11914 * testsuite/libgomp.c++/pr81130.C: New test.
11916 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11918 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11920 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11921 dg-xfail-run-if default args.
11923 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11925 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11926 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11928 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11931 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11932 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11933 sibling lists, depending on level just pick up what CPUs to put
11934 together into a place vs. whether add multiple ordered places.
11936 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11938 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11939 * libgomp.map (OACC_2.0.1): Add these.
11940 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11941 for "acc_wait", and "acc_wait_all", respectively.
11942 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11943 for "acc_wait", and "acc_wait_all", respectively.
11944 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11945 * libgomp.texi (acc_wait, acc_wait_all): Update.
11946 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11947 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11948 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11950 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11951 acc_present_or_copyin and acc_present_or_create procedures,
11953 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11954 generally different variants of OpenACC Runtime Library functions.
11955 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11957 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11958 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11960 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11961 of preprocessor definitions.
11962 * libgomp.h (strong_alias): Guard by "#ifdef
11963 HAVE_ATTRIBUTE_ALIAS".
11964 * oacc-mem.c: Provide "acc_pcreate" as alias for
11965 "acc_present_or_create", and "acc_pcopyin" as alias for
11966 "acc_present_or_copyin".
11967 * libgomp.map: New version "OACC_2.0.1".
11968 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11969 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11970 its content into...
11971 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11974 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11975 when disabling nvptx offloading.
11977 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11979 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11980 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11981 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11983 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11984 * testsuite/lib/libgomp.exp
11985 (check_effective_target_openacc_nvidia_accel_configured): New
11987 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11988 (check_effective_target_c++): New procs.
11989 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11990 (check_effective_target_c++): Likewise.
11992 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11994 PR middle-end/80809
11995 * testsuite/libgomp.c/pr80809-2.c: New test.
11996 * testsuite/libgomp.c/pr80809-3.c: New test.
11998 PR middle-end/80809
11999 * testsuite/libgomp.c/pr80809-1.c: New test.
12001 PR middle-end/80853
12002 * testsuite/libgomp.c/pr80853.c: New test.
12004 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12006 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12007 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12008 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12009 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12010 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12012 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12013 Debug output for failure.
12015 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12017 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12019 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12022 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12023 bootstrap compare failures.
12025 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12027 * testsuite/libgomp.c/target-36.c: New testcase.
12029 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12031 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12034 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12037 * testsuite/libgomp.c/pr80394.c: New test.
12039 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12042 * config/posix/thread-stacksize.h: New file.
12043 * config/darwin/thread-stacksize.h: New file.
12044 * config/nvptx/thread-stacksize.h: New file.
12045 * env.c: Include thread-stacksize.h.
12046 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12047 instead of 0. Call pthread_attr_setstacksize even if
12048 GOMP_DEFAULT_STACKSIZE is non-zero.
12050 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12052 * env.c (initialize_env): Initialize stacksize to 0.
12054 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12057 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12059 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12062 * testsuite/libgomp.c/pr79940.c: New test.
12064 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12066 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12068 Add __float128 options.
12070 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12072 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12073 hppa*-*-* dg-skip-if directive.
12075 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12077 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12078 dg-skip-if directive into a comment.
12080 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12081 Chung-Lin Tang <cltang@codesourcery.com>
12083 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12084 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12085 add additional case.
12086 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12087 "openacc_nvidia_accel_selected".
12088 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12089 Add num_workers(8) clause.
12091 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12093 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12095 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12096 include complex.h on hppa*-*-hpux*.
12097 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12099 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12101 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12103 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12104 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12105 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12106 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12107 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12108 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12109 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12110 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12111 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12112 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12114 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12116 * libgomp-plugin.h: #include <stdbool.h>.
12117 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12118 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12119 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12120 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12121 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12122 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12123 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12124 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12125 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12126 (GOMP_OFFLOAD_openacc_async_test)
12127 (GOMP_OFFLOAD_openacc_async_test_all)
12128 (GOMP_OFFLOAD_openacc_async_wait)
12129 (GOMP_OFFLOAD_openacc_async_wait_async)
12130 (GOMP_OFFLOAD_openacc_async_wait_all)
12131 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12132 (GOMP_OFFLOAD_openacc_async_set_async)
12133 (GOMP_OFFLOAD_openacc_create_thread_data)
12134 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12135 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12136 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12137 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12138 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12139 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12141 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12142 (GOMP_OFFLOAD_unload_image): Fix argument types.
12144 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12146 * testsuite/lib/libgomp.exp
12147 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12148 check_compile invocation. Fix up removal of executable. Drop
12149 bogus "2>&1" argument.
12151 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12154 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12155 Martin Jambor <mjambor@suse.cz>
12157 * plugin/hsa.h: Moved to top level include.
12158 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12160 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12163 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12164 of cat to get version from BASE-VER file.
12165 * testsuite/Makefile.in: Regenerated.
12167 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12169 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12172 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12174 * plugin/hsa.h: Add GCC runtime library exception.
12175 * plugin/hsa_ext_finalize.h: Likewise.
12177 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12178 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12179 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12180 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12181 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12182 library to link ptx plugin against.
12183 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12184 (CUDA_CALLS): Define.
12185 (cuda_lib, cuda_lib_inited): New variables.
12186 (init_cuda_lib): New function.
12187 (CUDA_CALL_PREFIX): Define.
12188 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12189 (CUDA_CALL): Use FN instead of (FN).
12190 (CUDA_CALL_NOCHECK): Define.
12191 (cuda_error, fini_streams_for_device, select_stream_for_async,
12192 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12193 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12194 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12195 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12197 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12199 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12200 Use CUDA_CALL_NOCHECK.
12201 * plugin/cuda/cuda.h: New file.
12202 * config.h.in: Regenerated.
12203 * configure: Regenerated.
12206 * configure.ac: Add GCC_BASE_VER.
12207 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12208 get version from BASE-VER file.
12209 * testsuite/Makefile.in: Regenerated.
12210 * configure: Regenerated.
12211 * Makefile.in: Regenerated.
12213 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12216 * Makefile.am: Make fincludedir multilib-aware.
12217 * Makefile.in: Regenerate.
12219 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12221 Update copyright years.
12223 * libgomp.texi: Bump @copying's copyright year.
12225 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12227 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12228 pthread_spinlock_t instead of gomp_mutex_t lock.
12229 (gomp_get_thread_pool): Likewise.
12230 (gomp_release_thread_pool): Likewise.
12231 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12234 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12236 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12237 thread pool in case nthreads == 1.
12239 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12241 * config/nvptx/env.c: Delete.
12242 * icv.c: Move definitions of ICV variables back ...
12243 * env.c: ...here. Do not compile environment-related functionality if
12244 LIBGOMP_OFFLOADED_ONLY is set.
12246 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12248 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12249 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12250 * configure: Regenerate.
12251 * config.h.in: Likewise.
12253 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12255 * Makefile.in: Regenerate with automake-1.11.6.
12256 * aclocal.m4: Likewise.
12257 * configure: Likewise.
12258 * testsuite/Makefile.in: Likewise.
12260 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12262 * config/nvptx/critical.c: Delete to use generic implementation.
12264 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12266 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12267 ../../affinity.c as fallback.
12268 * config/nvptx/affinity.c: Delete to use fallback implementation.
12270 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12271 Jakub Jelinek <jakub@redhat.com>
12272 Dmitry Melnik <dm@ispras.ru>
12274 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12275 * Makefile.in. Regenerate.
12276 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12277 (LIBGOMP_USE_PTHREADS): ...here; new define.
12278 * configure: Regenerate.
12279 * config.h.in: Likewise.
12280 * config/posix/affinity.c: Move to...
12281 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12282 interface by LIBGOMP_USE_PTHREADS.
12283 * critical.c: Split out GOMP_atomic_{start,end} into...
12284 * atomic.c: ...here (new file).
12285 * env.c: Split out ICV definitions into...
12286 * icv.c: ...here (new file) and...
12287 * icv-device.c: ...here. New file.
12288 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12289 (gomp_destroy_lock_30): Ditto.
12290 (gomp_set_lock_30): Ditto.
12291 (gomp_unset_lock_30): Ditto.
12292 (gomp_test_lock_30): Ditto.
12293 (gomp_init_nest_lock_30): Ditto.
12294 (gomp_destroy_nest_lock_30): Ditto.
12295 (gomp_set_nest_lock_30): Ditto.
12296 (gomp_unset_nest_lock_30): Ditto.
12297 (gomp_test_nest_lock_30): Ditto.
12299 * config/nvptx/lock.c: New.
12300 * config/nvptx/bar.c: New.
12301 * config/nvptx/bar.h: New.
12302 * config/nvptx/doacross.h: New.
12303 * config/nvptx/error.c: New.
12304 * config/nvptx/icv-device.c: New.
12305 * config/nvptx/mutex.h: New.
12306 * config/nvptx/pool.h: New.
12307 * config/nvptx/proc.c: New.
12308 * config/nvptx/ptrlock.h: New.
12309 * config/nvptx/sem.h: New.
12310 * config/nvptx/simple-bar.h: New.
12311 * config/nvptx/target.c: New.
12312 * config/nvptx/task.c: New.
12313 * config/nvptx/team.c: New.
12314 * config/nvptx/time.c: New.
12315 * config/posix/simple-bar.h: New.
12316 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12317 (gomp_num_teams_var): Declare.
12318 (struct gomp_thread_pool): Change threads_dock member to
12319 gomp_simple_barrier_t.
12320 [__nvptx__] (gomp_thread): New implementation.
12321 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12322 (gomp_thread_destructor): Ditto.
12323 (gomp_init_thread_affinity): Ditto.
12324 * team.c: Guard uses of Pthreads-specific interfaces by
12325 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12326 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12327 * config/nvptx/alloc.c: Delete.
12328 * config/nvptx/barrier.c: Ditto.
12329 * config/nvptx/fortran.c: Ditto.
12330 * config/nvptx/iter.c: Ditto.
12331 * config/nvptx/iter_ull.c: Ditto.
12332 * config/nvptx/loop.c: Ditto.
12333 * config/nvptx/loop_ull.c: Ditto.
12334 * config/nvptx/ordered.c: Ditto.
12335 * config/nvptx/parallel.c: Ditto.
12336 * config/nvptx/priority_queue.c: Ditto.
12337 * config/nvptx/sections.c: Ditto.
12338 * config/nvptx/single.c: Ditto.
12339 * config/nvptx/splay-tree.c: Ditto.
12340 * config/nvptx/work.c: Ditto.
12341 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12342 -foffload=-lgfortran in addition to -lgfortran.
12343 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12344 * plugin/plugin-nvptx.c: Include <limits.h>.
12345 (struct targ_fn_descriptor): Add new fields.
12346 (struct ptx_device): Ditto. Set them...
12347 (nvptx_open_device): ...here.
12348 (nvptx_adjust_launch_bounds): New.
12349 (nvptx_host2dev): Allow NULL 'nvthd'.
12350 (nvptx_dev2host): Ditto.
12351 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12352 (link_ptx): Adjust log sizes.
12353 (nvptx_host2dev): Allow NULL 'nvthd'.
12354 (nvptx_dev2host): Ditto.
12355 (nvptx_set_clocktick): New. Use it...
12356 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12358 (GOMP_OFFLOAD_dev2dev): New.
12359 (nvptx_adjust_launch_bounds): New.
12360 (nvptx_stacks_size): New.
12361 (nvptx_stacks_alloc): New.
12362 (nvptx_stacks_free): New.
12363 (GOMP_OFFLOAD_run): New.
12364 (GOMP_OFFLOAD_async_run): New (stub).
12366 2016-11-23 Martin Jambor <mjambor@suse.cz>
12368 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12369 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12370 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12372 2016-11-23 Martin Liska <mliska@suse.cz>
12373 Martin Jambor <mjambor@suse.cz>
12375 * plugin/hsa.h: New file.
12376 * plugin/hsa_ext_finalize.h: New file.
12377 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12378 header file unistd.h, and functions secure_getenv, __secure_getenv,
12379 getuid, geteuid, getgid and getegid.
12380 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12382 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12383 Handle various cases of secure_getenv presence, add an implementation
12384 when we can test effective UID and GID.
12385 (struct hsa_runtime_fn_info): New structure.
12386 (hsa_runtime_fn_info hsa_fns): New variable.
12387 (hsa_runtime_lib): Likewise.
12388 (support_cpu_devices): Likewise.
12389 (init_enviroment_variables): Load newly introduced ENV
12391 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12392 (hsa_fatal): Likewise.
12393 (DLSYM_FN): New macro.
12394 (init_hsa_runtime_functions): New function.
12395 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12396 structure. Depending on environment, also allow CPU devices.
12397 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12398 (get_kernarg_memory_region): Likewise.
12399 (GOMP_OFFLOAD_init_device): Likewise.
12400 (destroy_hsa_program): Likewise.
12401 (init_basic_kernel_info): New function.
12402 (GOMP_OFFLOAD_load_image): Use it.
12403 (create_and_finalize_hsa_program): Call hsa run-time functions via
12405 (create_single_kernel_dispatch): Likewise.
12406 (release_kernel_dispatch): Likewise.
12407 (init_single_kernel): Likewise.
12408 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12409 (get_group_size): New function.
12410 (run_kernel): Likewise.
12411 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12412 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12414 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12415 * testsuite/libgomp-test-support.exp.in: Likewise.
12416 * Makefile.in: Regenerated.
12417 * aclocal.m4: Likewise.
12418 * config.h.in: Likewise.
12419 * configure: Likewise.
12420 * testsuite/Makefile.in: Likewise.
12422 2016-11-15 Martin Jambor <mjambor@suse.cz>
12423 Alexander Monakov <amonakov@ispras.ru>
12425 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12426 mapping clauses to target constructs.
12427 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12429 2016-11-15 Matthias Klose <doko@ubuntu.com>
12431 * configure: Regenerate.
12433 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12435 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12436 * omp_lib.h.in (openmp_version): Likewise.
12437 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12439 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12441 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12442 (fib_wrapper): Add map(from: x) clause.
12443 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12444 (e_53_2): Likewise.
12445 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12446 (accum): Add map(tmp) clause.
12447 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12448 (accum): Add map(tofrom: tmp) clause.
12449 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12450 (gramSchmidt): Likewise.
12451 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12452 map(tofrom: sum) clause.
12453 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12454 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12455 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12456 only allowed on the loop iterator.
12457 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12458 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12459 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12460 * testsuite/libgomp.fortran/doacross1.f90: New test.
12461 * testsuite/libgomp.fortran/doacross3.f90: New test.
12462 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12463 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12464 * testsuite/libgomp.fortran/doacross2.f90: New test.
12465 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12466 #pragma omp atomic read.
12467 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12468 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12470 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12471 Nathan Sidwell <nathan@acm.org>
12473 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12474 to determine default geometry.
12475 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12478 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12480 * hashtab.h: Use standard GPLv3 with runtime exception
12483 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12485 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12486 size when allocating new thread.
12488 2016-09-14 Marek Polacek <polacek@redhat.com>
12490 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12492 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12495 * testsuite/libgomp.fortran/pr71014.f90: New test.
12497 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12499 PR middle-end/70895
12500 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12501 firstprivate clauses.
12502 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12504 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12505 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12506 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12507 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12508 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12509 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12510 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12511 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12512 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12513 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12514 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12515 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12517 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12520 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12522 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12525 * testsuite/libgomp.c++/pr58706.C: New test.
12527 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12529 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12530 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12531 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12533 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12534 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12536 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12538 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12539 test, and don't hardcode -O0.
12541 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12543 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12545 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12547 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12550 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12552 PR middle-end/71734
12553 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12554 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12556 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12559 * testsuite/libgomp.fortran/associate3.f90: New test.
12561 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12563 * testsuite/libgomp.c++/target-21.C: New test.
12565 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12567 * testsuite/libgomp.c++/target-20.C: New test.
12569 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12570 Cesar Philippidis <cesar@codesourcery.com>
12572 PR middle-end/71373
12573 * libgomp.oacc-c/nested-function-1.c: New file.
12574 * libgomp.oacc-c/nested-function-2.c: Likewise.
12575 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12576 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12577 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12579 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12582 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12583 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12584 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12586 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12588 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12589 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12591 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12594 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12596 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12598 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12599 instead of invalid schedule(static, 0).
12600 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12602 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12604 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12605 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12606 parameter, use to set async stream around call to gomp_unmap_vars,
12607 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12608 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12609 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12610 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12611 (event_add): Add int parameter, initialize 'val' field when
12612 adding new ptx_event struct.
12613 (nvptx_evec): Adjust event_add() call arguments.
12614 (nvptx_host2dev): Likewise.
12615 (nvptx_dev2host): Likewise.
12616 (nvptx_wait_async): Likewise.
12617 (nvptx_wait_all_async): Likewise.
12618 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12619 pass to event_add() call.
12620 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12622 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12623 call openacc.register_async_cleanup_func() hook.
12624 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12625 * target.c (gomp_copy_from_async): Delete function.
12626 (gomp_map_vars): Remove async_refcount.
12627 (gomp_unmap_vars): Likewise.
12628 (gomp_load_image_to_device): Likewise.
12629 (omp_target_associate_ptr): Likewise.
12630 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12631 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12632 (gomp_copy_from_async): Remove.
12634 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12636 * target.c (gomp_device_copy): New function.
12637 (gomp_copy_host2dev): Likewise.
12638 (gomp_copy_dev2host): Likewise.
12639 (gomp_free_device_memory): Likewise.
12640 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12641 (gomp_map_pointer): Likewise.
12642 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12643 NULL value from alloc_func plugin hook.
12644 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12645 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12646 (gomp_unmap_vars): Likewise.
12647 (gomp_update): Adjust to call gomp_copy_dev2host and
12648 gomp_copy_host2dev functions.
12649 (gomp_unload_image_from_device): Handle false value from
12650 unload_image_func plugin hook.
12651 (gomp_init_device): Handle false value from init_device_func
12653 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12654 (omp_target_free): Adjust to call gomp_free_device_memory.
12655 (omp_target_memcpy): Handle return values from host2dev_func,
12656 dev2host_func, and dev2dev_func plugin hooks.
12657 (omp_target_memcpy_rect_worker): Likewise.
12658 (gomp_target_fini): Handle false value from fini_device_func
12660 * libgomp.h (struct gomp_device_descr): Adjust return type of
12661 init_device_func, fini_device_func, unload_image_func, free_func,
12662 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12663 * oacc-init.c (acc_shutdown_1): Handle false value from
12664 fini_device_func plugin hook.
12665 * oacc-host.c (host_init_device): Change return type to bool.
12666 (host_fini_device): Likewise.
12667 (host_unload_image): Likewise.
12668 (host_free): Likewise.
12669 (host_dev2host): Likewise.
12670 (host_host2dev): Likewise.
12671 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12672 (acc_memcpy_to_device): Likewise.
12673 (acc_memcpy_from_device): Likewise.
12674 (delete_copyout): Add libfnname parameter, handle free_func
12675 hook fatal error case.
12676 (acc_delete): Adjust delete_copyout call.
12677 (acc_copyout): Likewise.
12678 (update_dev_host): Move gomp_mutex_unlock to after
12679 host2dev/dev2host hook calls.
12681 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12682 to 'hsa_error_msg', for clarity.
12683 (hsa_fatal): Likewise.
12684 (hsa_error): New function.
12685 (init_hsa_context): Change return type to bool, adjust to return
12687 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12689 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12690 return false on error.
12691 (get_agent_info): Adjust to return NULL on error.
12692 (destroy_hsa_program): Change return type to bool, adjust to
12693 return false on error.
12694 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12695 (destroy_module): Change return type to bool, adjust to
12696 return false on error.
12697 (GOMP_OFFLOAD_unload_image): Likewise.
12698 (GOMP_OFFLOAD_fini_device): Likewise.
12699 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12700 (GOMP_OFFLOAD_free): Change to return false when called.
12701 (GOMP_OFFLOAD_dev2host): Likewise.
12702 (GOMP_OFFLOAD_host2dev): Likewise.
12703 (GOMP_OFFLOAD_dev2dev): Likewise.
12705 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12706 (CUDA_CALL): Likewise.
12707 (CUDA_CALL_ASSERT): Likewise.
12708 (map_init): Change return type to bool, use CUDA_CALL* macros.
12709 (map_fini): Likewise.
12710 (init_streams_for_device): Change return type to bool, adjust
12712 (fini_streams_for_device): Change return type to bool, adjust
12714 (select_stream_for_async): Release stream_lock before calls to
12715 GOMP_PLUGIN_fatal, adjust call to map_init.
12716 (nvptx_init): Use CUDA_CALL* macros.
12717 (nvptx_attach_host_thread_to_device): Change return type to bool,
12718 use CUDA_CALL* macros.
12719 (nvptx_open_device): Use CUDA_CALL* macros.
12720 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12722 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12723 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12724 (nvptx_exec): Use CUDA_CALL* macros.
12725 (nvptx_alloc): Use CUDA_CALL* macros.
12726 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12727 (nvptx_host2dev): Likewise.
12728 (nvptx_dev2host): Likewise.
12729 (nvptx_wait): Use CUDA_CALL* macros.
12730 (nvptx_wait_async): Likewise.
12731 (nvptx_wait_all): Likewise.
12732 (nvptx_wait_all_async): Likewise.
12733 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12734 use CUDA_CALL* macros, adjust call to map_fini.
12735 (GOMP_OFFLOAD_init_device): Change return type to bool,
12736 adjust code accordingly.
12737 (GOMP_OFFLOAD_fini_device): Likewise.
12738 (GOMP_OFFLOAD_load_image): Adjust calls to
12739 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12740 use CUDA_CALL* macros.
12741 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12743 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12744 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12745 handle error return.
12746 (GOMP_OFFLOAD_dev2host): Likewise.
12747 (GOMP_OFFLOAD_host2dev): Likewise.
12748 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12749 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12751 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12753 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12754 (acc_free): Likewise.
12755 (acc_memcpy_to_device): Likewise.
12756 (acc_memcpy_from_device): Likewise.
12757 (acc_deviceptr): Likewise.
12758 (acc_hostptr): Likewise.
12759 (acc_is_present): Likewise.
12760 (acc_map_data): Likewise.
12761 (acc_unmap_data): Likewise.
12762 (present_create_copy): Likewise.
12763 (delete_copyout): Likewise.
12764 (update_dev_host): Likewise.
12765 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12766 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12767 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12768 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12769 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12770 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12771 it only runs on nvptx targets.
12772 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12773 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12774 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12775 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12776 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12777 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12778 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12779 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12780 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12781 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12782 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12784 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12785 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12786 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12787 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12788 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12789 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12790 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12791 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12792 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12793 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12794 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12796 2016-05-23 Martin Jambor <mjambor@suse.cz>
12798 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12800 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12802 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12803 to gomp_init_targets_once.
12804 (acc_set_device_type): Remove !cached_base_dev condition on call to
12805 gomp_init_targets_once, move call to before acc_device_lock acquire,
12807 (acc_get_device_num): Remove !cached_base_dev condition on call to
12808 gomp_init_targets_once.
12809 (acc_set_device_num): Likewise.
12811 2016-05-16 Martin Jambor <mjambor@suse.cz>
12813 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12815 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12817 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12818 expected partitioning.
12820 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12822 PR middle-end/70626
12823 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12824 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12825 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12827 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12829 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12832 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12834 PR middle-end/70680
12835 * testsuite/libgomp.c/pr70680-1.c: New test.
12836 * testsuite/libgomp.c/pr70680-2.c: New test.
12838 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12840 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12841 pass parameter variables to subroutines.
12843 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12845 PR middle-end/70643
12846 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12848 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12851 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12852 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12854 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12856 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12857 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12858 GOACC_declare prototype.
12860 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12861 Merge this file, and...
12862 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12863 ... this file, and...
12864 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12865 ... this file, and...
12866 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12867 ... this file, and...
12868 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12869 ... this file, and...
12870 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12871 ... this file, and...
12872 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12873 ... this file, and...
12874 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12875 ... this file, and...
12876 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12877 ... this file, and...
12878 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12879 ... this file, and...
12880 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12881 ... this file, and...
12882 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12883 ... this file, and...
12884 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12885 ... this file into...
12886 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12889 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12890 Make failure observable.
12892 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12894 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12896 * target.c (gomp_target_fallback_firstprivate,
12897 gomp_target_unshare_firstprivate): Removed.
12898 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12899 before waiting for dependencies.
12900 (gomp_target_task_fn): Don't copy firstprivate vars here.
12901 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12902 firstprivate_copies here.
12903 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12904 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12905 explicit/implicit firstprivate.
12907 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12911 PR tree-optimization/70373
12912 PR middle-end/70533
12913 PR middle-end/70534
12914 PR middle-end/70535
12915 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12917 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12919 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12921 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12923 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12925 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12927 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12929 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12931 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12933 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12934 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12935 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12936 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12938 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12940 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12942 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12944 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12946 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12947 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12949 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12950 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12951 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12953 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12958 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12959 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12960 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12961 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12962 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12963 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12964 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12965 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12966 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12967 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12969 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12970 James Norris <jnorris@codesourcery.com>
12971 Nathan Sidwell <nathan@codesourcery.com>
12972 Julian Brown <julian@codesourcery.com>
12973 Cesar Philippidis <cesar@codesourcery.com>
12974 Chung-Lin Tang <cltang@codesourcery.com>
12975 Tom de Vries <tom@codesourcery.com>
12977 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12978 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12979 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12980 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12981 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12982 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12983 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12984 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12985 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12987 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12989 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12991 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12992 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12993 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12994 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12996 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12998 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12999 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13000 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13001 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13002 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13003 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13004 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13005 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13006 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13007 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13009 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13010 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13011 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13013 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13015 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13017 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13019 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13021 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13022 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13023 ... this new file. Update.
13024 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13025 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13026 ... this new file. Update.
13027 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13028 file. Incorporate...
13029 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13031 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13033 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13035 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13037 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13039 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13040 set-torture-options.
13042 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13044 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13046 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13047 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13048 -fno-builtin-acc_on_device instead of -O0.
13049 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13051 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13052 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13054 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13055 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13056 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13057 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13058 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13059 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13060 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13061 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13062 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13063 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13064 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13065 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13066 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13067 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13068 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13069 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13070 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13071 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13073 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13075 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13078 2016-03-24 Martin Liska <mliska@suse.cz>
13080 * plugin/plugin-hsa.c (packet_store_release): New function
13081 that is taken from the HSA runtime manual.
13082 (GOMP_OFFLOAD_run): Use the function.
13084 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13087 * testsuite/libgomp.c++/pr70376.C: New test.
13089 2016-03-23 Tom de Vries <tom@codesourcery.com>
13091 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13092 initialization of lresult and lvresult.
13093 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13095 2016-03-23 James Norris <jnorris@codesourcery.com>
13096 Daichi Fukuoka <dc-fukuoka@sgi.com>
13099 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13100 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13101 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13102 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13104 2016-03-23 Martin Liska <mliska@suse.cz>
13107 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13108 argument just in case a dispatched kernel uses that argument.
13110 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13112 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13113 -ftree-parallelize-loops/-fopenacc changes.
13114 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13116 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13118 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13120 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13122 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13123 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13125 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13127 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13128 always_ld_library_path the path to libgcc_s.
13130 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13133 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13135 2016-03-09 Tom de Vries <tom@codesourcery.com>
13137 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13138 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13139 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13141 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13142 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13143 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13144 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13146 2016-03-07 Martin Jambor <mjambor@suse.cz>
13148 * testsuite/lib/libgomp.exp
13149 (check_effective_target_hsa_offloading_selected_nocache): New.
13150 (check_effective_target_hsa_offloading_selected): Likewise.
13151 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13152 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13153 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13154 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13155 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13156 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13157 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13158 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13159 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13160 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13161 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13162 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13163 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13164 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13165 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13166 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13167 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13169 2016-03-07 Martin Jambor <mjambor@suse.cz>
13171 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13172 non-shared memory accelerators.
13173 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13174 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13175 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13176 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13177 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13178 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13179 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13180 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13181 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13183 2016-03-07 Martin Jambor <mjambor@suse.cz>
13185 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13188 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13191 * testsuite/libgomp.c++/pr69555-1.C: New test.
13192 * testsuite/libgomp.c++/pr69555-2.C: New test.
13194 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13195 Martin Jambor <mjambor@suse.cz>
13197 * testsuite/lib/libgomp.exp
13198 (check_effective_target_offload_device_shared_as): New proc.
13199 * testsuite/libgomp.c++/declare_target-1.C: New test.
13201 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13204 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13206 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13208 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13209 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13211 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13212 -ftree-parallelize-loops/-fopenacc changes.
13213 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13214 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13216 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13218 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13220 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13222 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13224 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13226 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13228 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13229 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13231 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13232 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13234 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13235 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13238 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13240 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13242 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13245 * testsuite/libgomp.c/pr69805.c: New test.
13247 2016-02-16 Tom de Vries <tom@codesourcery.com>
13250 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13252 2016-02-09 Tom de Vries <tom@codesourcery.com>
13254 PR tree-optimization/69599
13255 * testsuite/libgomp.c/omp-nested-3.c: New test.
13256 * testsuite/libgomp.c/pr46032-2.c: New test.
13257 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13258 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13260 2016-02-09 Tom de Vries <tom@codesourcery.com>
13263 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13265 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13267 * testsuite/libgomp.c/target-31.c: Fix testcase.
13269 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13271 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13273 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13274 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13275 reduction and map clauses.
13276 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13278 2016-02-02 James Norris <jnorris@codesourcery.com>
13280 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13282 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13284 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13285 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13287 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13290 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13292 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13293 (hsa_kmt_lib): Set variables.
13294 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13295 always_ld_library_path.
13296 * Makefile.in: Regenerate.
13297 * configure: Likewise.
13298 * testsuite/Makefile.in: Likewise.
13300 * plugin/configfrag.ac (offload_additional_options)
13301 (offload_additional_lib_paths): Don't amend for hsa offloading.
13302 * configure: Regenerate.
13304 * plugin/configfrag.ac: Don't configure for offloading target if
13305 we don't build the corresponding plugin.
13306 * configure: Regenerate.
13308 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13310 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13311 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13313 2016-01-26 Tom de Vries <tom@codesourcery.com>
13315 PR tree-optimization/69110
13316 * testsuite/libgomp.c/pr69110.c: New test.
13318 2016-01-25 Richard Biener <rguenther@suse.de>
13321 * testsuite/libgomp.c++/pr69393.C: New testcase.
13323 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13325 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13326 function wasn't mapped to the device with non-shared memory.
13328 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13330 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13332 2016-01-19 Martin Jambor <mjambor@suse.cz>
13333 Martin Liska <mliska@suse.cz>
13335 * plugin/Makefrag.am: Add HSA plugin requirements.
13336 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13337 (HSA_RUNTIME_LIB): Likewise.
13338 (HSA_RUNTIME_CPPFLAGS): Likewise.
13339 (HSA_RUNTIME_INCLUDE): New substitution.
13340 (HSA_RUNTIME_LIB): Likewise.
13341 (HSA_RUNTIME_LDFLAGS): Likewise.
13342 (hsa-runtime): New configure option.
13343 (hsa-runtime-include): Likewise.
13344 (hsa-runtime-lib): Likewise.
13345 (PLUGIN_HSA): New substitution variable.
13346 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13348 (PLUGIN_HSA_CPPFLAGS): Likewise.
13349 (PLUGIN_HSA_LDFLAGS): Likewise.
13350 (PLUGIN_HSA_LIBS): Likewise.
13351 Check that we have access to HSA run-time.
13352 * libgomp-plugin.h (offload_target_type): New element
13353 OFFLOAD_TARGET_TYPE_HSA.
13354 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13356 (bool gomp_create_target_task): Updated.
13357 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13358 new field can_run_func.
13359 * libgomp_g.h (GOMP_target_ext): Update prototype.
13360 * oacc-host.c (host_run): Added a new parameter args.
13361 * target.c (calculate_firstprivate_requirements): New function.
13362 (copy_firstprivate_data): Likewise.
13363 (gomp_target_fallback_firstprivate): Use them.
13364 (gomp_target_unshare_firstprivate): New function.
13365 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13367 (GOMP_target): Do host fallback for all shared memory devices. Do not
13368 pass any args to plugins.
13369 (GOMP_target_ext): Introduce device-specific argument parameter args.
13370 Allow host fallback if device shares memory. Do not remap data if
13371 device has shared memory.
13372 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13373 like host fallback for mappings.
13374 (GOMP_target_data): Treat shared memory devices like host fallback.
13375 (GOMP_target_data_ext): Likewise.
13376 (GOMP_target_update): Likewise.
13377 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13378 gomp_create_target_task.
13379 (GOMP_target_enter_exit_data): Likewise.
13380 (omp_target_alloc): Treat shared memory devices like host fallback.
13381 (omp_target_free): Likewise.
13382 (omp_target_is_present): Likewise.
13383 (omp_target_memcpy): Likewise.
13384 (omp_target_memcpy_rect): Likewise.
13385 (omp_target_associate_ptr): Likewise.
13386 (gomp_load_plugin_for_device): Also load can_run.
13387 * task.c (GOMP_PLUGIN_target_task_completion): Free
13388 firstprivate_copies.
13389 (gomp_create_target_task): Accept new argument args and store it to
13391 * plugin/plugin-hsa.c: New file.
13393 2016-01-18 Tom de Vries <tom@codesourcery.com>
13395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13396 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13398 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13399 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13400 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13401 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13402 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13403 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13404 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13405 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13407 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13409 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13410 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13412 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13413 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13414 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13415 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13416 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13418 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13420 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13422 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13424 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13426 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13428 2016-01-12 James Norris <jnorris@codesourcery.com>
13430 * libgomp.texi: Updates for OpenACC.
13432 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13434 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13436 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13439 * testsuite/libgomp.fortran/pr66680.f90: New test.
13441 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13443 PR middle-end/68960
13444 * testsuite/libgomp.c/pr68960.c: New test.
13446 2016-01-06 Nathan Sidwell <nathan@acm.org>
13448 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13449 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13451 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13453 Update copyright years.
13455 * libgomp.texi: Bump @copying's copyright year.
13457 2015-12-31 Nathan Sidwell <nathan@acm.org>
13459 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13460 dg-additional-options syntax.
13461 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13462 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13463 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13464 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13465 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13466 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13467 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13468 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13469 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13470 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13471 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13472 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13473 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13474 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13475 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13476 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13477 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13478 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13480 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13482 * libgomp.h (REFCOUNT_LINK): Define.
13483 (struct splay_tree_key_s): Add link_key.
13484 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13485 Replace target address of the pointer with target address of newly
13486 mapped object in the splay tree. Set link pointer on target to the
13487 device address of the mapped object.
13488 (gomp_unmap_vars): Restore target address of the pointer in the splay
13489 tree for REFCOUNT_LINK objects after unmapping.
13490 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13491 declare target link" objects.
13492 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13493 "omp declare target link" objects, which were mapped for the image.
13494 (gomp_exit_data): Restore target address of the pointer in the splay
13495 tree for REFCOUNT_LINK objects after unmapping.
13496 * testsuite/libgomp.c/target-link-1.c: New file.
13498 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13500 * libgomp.h (gomp_device_state): New enum.
13501 (struct gomp_device_descr): Replace is_initialized with state.
13502 (gomp_fini_device): Remove declaration.
13503 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13504 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13505 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13506 (acc_set_device_type): Use state instead of is_initialized.
13507 (acc_set_device_num): Likewise.
13508 * target.c (resolve_device): Use state instead of is_initialized.
13509 Do not initialize finalized device.
13510 (gomp_map_vars): Do nothing if device is finalized.
13511 (gomp_unmap_vars): Likewise.
13512 (gomp_update): Likewise.
13513 (GOMP_offload_register_ver): Use state instead of is_initialized.
13514 (GOMP_offload_unregister_ver): Likewise.
13515 (gomp_init_device): Likewise.
13516 (gomp_unload_device): Likewise.
13517 (gomp_fini_device): Remove.
13518 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13519 (GOMP_target): Go to host fallback if device is finalized.
13520 (GOMP_target_ext): Likewise.
13521 (gomp_exit_data): Do nothing if device is finalized.
13522 (gomp_target_task_fn): Go to host fallback if device is finalized.
13523 (gomp_target_fini): New static function.
13524 (gomp_target_init): Use state instead of is_initialized.
13525 Call gomp_target_fini at exit.
13527 2015-12-09 Tom de Vries <tom@codesourcery.com>
13529 PR tree-optimization/68716
13530 * testsuite/libgomp.c/omp-nested-2.c: New test.
13532 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13534 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13535 target openacc_nvidia_accel_selected.
13536 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13537 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13538 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13539 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13541 2015-12-01 Julian Brown <julian@codesourcery.com>
13542 James Norris <James_Norris@mentor.com>
13544 * oacc-parallel.c (GOACC_host_data): New function.
13545 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13546 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13547 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13548 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13549 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13550 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13551 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13553 2015-11-30 James Norris <jnorris@codesourcery.com>
13554 Cesar Philippidis <cesar@codesourcery.com>
13557 * libgomp.oacc-fortran/routine-5.f90: New test.
13558 * libgomp.oacc-fortran/routine-7.f90: New test.
13559 * libgomp.oacc-fortran/routine-9.f90: New test.
13561 2015-11-30 Tom de Vries <tom@codesourcery.com>
13563 PR tree-optimization/46032
13564 * testsuite/libgomp.c/pr46032.c: New test.
13566 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13569 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13570 (gomp_create_target_task): Call it before freeing
13571 GOMP_TARGET_TASK_DATA tasks.
13574 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13575 in between case label and OpenMP standalone directives.
13576 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13578 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13580 * configure: Regenerate.
13582 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13584 * testsuite/libgomp.c/target-35.c: New test.
13586 2015-11-22 James Norris <jnorris@codesourcery.com>
13587 Cesar Philippidis <cesar@codesourcery.com>
13589 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13590 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13591 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13592 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13593 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13595 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13597 PR middle-end/68221
13598 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13599 * testsuite/libgomp.c/reduction-12.c: Likewise.
13600 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13601 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13603 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13605 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13606 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13607 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13608 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13609 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13611 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13612 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13614 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13616 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13617 worker & gang cases.
13618 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13620 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13622 * config/nvptx/priority_queue.c: New file.
13624 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13626 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13629 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13630 Aldy Hernandez <aldyh@redhat.com>
13631 Ilya Verbin <ilya.verbin@intel.com>
13633 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13634 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13635 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13636 iterators or IV by chunk size.
13637 * parallel.c (gomp_resolve_num_threads): Don't assume that
13638 if thr->ts.team is non-NULL, then pool must be non-NULL.
13639 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13640 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13641 GOMP_PLUGIN_target_task_completion.
13642 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13643 * Makefile.in: Regenerate.
13644 * libgomp.h: Shuffle prototypes and forward definitions around so
13645 priority queues can be defined.
13646 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13647 (enum gomp_target_task_state): New enum.
13648 (struct gomp_target_task): Add state, tgt, task and team fields.
13649 (gomp_create_target_task): Change return type to bool, add
13651 (gomp_target_task_fn): Change return type to bool.
13652 (struct gomp_device_descr): Add async_run_func.
13653 (struct gomp_task): Remove children, next_child, prev_child,
13654 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13656 (struct gomp_taskgroup): Remove children.
13657 Add taskgroup_queue.
13658 (struct gomp_team): Change task_queue type to a priority queue.
13659 (splay_compare): Define inline.
13660 (priority_queue_offset): New.
13661 (priority_node_to_task): New.
13662 (task_to_priority_node): New.
13663 * oacc-mem.c: Do not include splay-tree.h.
13664 * priority_queue.c: New file.
13665 * priority_queue.h: New file.
13666 * splay-tree.c: Do not include splay-tree.h.
13667 (splay_tree_foreach_internal): New.
13668 (splay_tree_foreach): New.
13669 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13670 (splay_tree_callback): Define typedef.
13671 * target.c (splay_compare): Move to libgomp.h.
13672 (GOMP_target): Don't adjust *thr in any way around running offloaded
13674 (GOMP_target_ext): Likewise. Handle target nowait.
13675 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13676 return value from gomp_create_target_task, if false, fallthrough
13677 as if no dependencies exist.
13678 (gomp_target_task_fn): Change return type to bool, return true
13679 if the task should have another part scheduled later. Handle
13681 (gomp_load_plugin_for_device): Initialize async_run.
13682 * task.c (gomp_init_task): Initialize children_queue.
13683 (gomp_clear_parent_in_list): New.
13684 (gomp_clear_parent_in_tree): New.
13685 (gomp_clear_parent): Handle priorities.
13686 (GOMP_task): Likewise.
13687 (priority_queue_move_task_first,
13688 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13690 (gomp_create_target_task): Use priority queues. Change return type
13691 to bool, add state argument, return false if for async
13692 {{enter,exit} data,update} constructs no dependencies need to be
13693 waited for, handle target nowait. Set task->fn to NULL instead of
13694 gomp_target_task_fn.
13695 (verify_children_queue): Remove.
13696 (priority_list_upgrade_task): New.
13697 (priority_queue_upgrade_task): New.
13698 (verify_task_queue): Remove.
13699 (priority_list_downgrade_task): New.
13700 (priority_queue_downgrade_task): New.
13701 (gomp_task_run_pre): Use priority queues.
13702 Abstract code out to priority_queue_downgrade_task.
13703 (gomp_task_run_post_handle_dependers): Use priority queues.
13704 (gomp_task_run_post_remove_parent): Likewise.
13705 (gomp_task_run_post_remove_taskgroup): Likewise.
13706 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13708 (GOMP_taskwait): Likewise.
13709 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13710 priority-queue_upgrade_task.
13711 (GOMP_taskgroup_start): Use priority queues.
13712 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13713 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13715 * taskloop.c (GOMP_taskloop): Handle priorities.
13716 * team.c (gomp_new_team): Call priority_queue_init.
13717 (free_team): Call priority_queue_free.
13718 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13719 team created for target nowait in implicit parallel region.
13720 (gomp_team_start): For nested check, test thr->ts.level instead of
13721 thr->ts.team != NULL.
13722 * testsuite/libgomp.c/doacross-3.c: New test.
13723 * testsuite/libgomp.c/ordered-5.c: New test.
13724 * testsuite/libgomp.c/priority.c: New test.
13725 * testsuite/libgomp.c/target-31.c: New test.
13726 * testsuite/libgomp.c/target-32.c: New test.
13727 * testsuite/libgomp.c/target-33.c: New test.
13728 * testsuite/libgomp.c/target-34.c: New test.
13730 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13732 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13734 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13735 loop is sequential.
13737 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13739 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13740 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13742 2015-11-12 James Norris <jnorris@codesourcery.com>
13743 Joseph Myers <joseph@codesourcery.com>
13745 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13746 * oacc-parallel.c (GOACC_declare): New function.
13747 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13748 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13749 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13750 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13751 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13753 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13755 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13757 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13759 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13760 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13762 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13764 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13765 inadvertent commit.
13767 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13769 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13770 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13771 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13772 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13773 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13775 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13777 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13778 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13780 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13781 Ilya Verbin <ilya.verbin@intel.com>
13783 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13784 GOMP_loop_nonmonotonic_dynamic_start,
13785 GOMP_loop_nonmonotonic_guided_next,
13786 GOMP_loop_nonmonotonic_guided_start,
13787 GOMP_loop_ull_nonmonotonic_dynamic_next,
13788 GOMP_loop_ull_nonmonotonic_dynamic_start,
13789 GOMP_loop_ull_nonmonotonic_guided_next,
13790 GOMP_loop_ull_nonmonotonic_guided_start,
13791 GOMP_parallel_loop_nonmonotonic_dynamic,
13792 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13793 (GOMP_target_41): Renamed to ...
13794 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13796 (GOMP_target_data_41): Renamed to ...
13797 (GOMP_target_data_ext): ... this.
13798 (GOMP_target_update_41): Renamed to ...
13799 (GOMP_target_update_ext): ... this.
13800 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13801 GOMP_target_data_ext and GOMP_target_update_ext instead of
13802 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13803 Export GOMP_loop_nonmonotonic_dynamic_next,
13804 GOMP_loop_nonmonotonic_dynamic_start,
13805 GOMP_loop_nonmonotonic_guided_next,
13806 GOMP_loop_nonmonotonic_guided_start,
13807 GOMP_loop_ull_nonmonotonic_dynamic_next,
13808 GOMP_loop_ull_nonmonotonic_dynamic_start,
13809 GOMP_loop_ull_nonmonotonic_guided_next,
13810 GOMP_loop_ull_nonmonotonic_guided_start,
13811 GOMP_parallel_loop_nonmonotonic_dynamic and
13812 GOMP_parallel_loop_nonmonotonic_guided.
13813 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13814 GOMP_parallel_loop_nonmonotonic_guided,
13815 GOMP_loop_nonmonotonic_dynamic_start,
13816 GOMP_loop_nonmonotonic_guided_start,
13817 GOMP_loop_nonmonotonic_dynamic_next,
13818 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13819 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13820 GOMP_loop_ull_nonmonotonic_guided_start,
13821 GOMP_loop_ull_nonmonotonic_dynamic_next,
13822 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13823 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13825 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13826 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13827 Use gomp_map_val function.
13828 (gomp_target_fallback_firstprivate): New static function.
13829 (GOMP_target_41): Renamed to ...
13830 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13831 arguments. Move firstprivate fallback handling into a new
13833 (GOMP_target_data_41): Renamed to ...
13834 (GOMP_target_data_ext): ... this.
13835 (GOMP_target_update_41): Renamed to ...
13836 (GOMP_target_update_ext): ... this.
13837 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13838 gomp_map_0len_lookup instead of gomp_map_lookup.
13839 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13841 * testsuite/libgomp.c/target-28.c: Likewise.
13842 * testsuite/libgomp.c/monotonic-1.c: New test.
13843 * testsuite/libgomp.c/monotonic-2.c: New test.
13844 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13845 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13846 * testsuite/libgomp.c/pr66199-5.c: New test.
13847 * testsuite/libgomp.c/pr66199-6.c: New test.
13848 * testsuite/libgomp.c/pr66199-7.c: New test.
13849 * testsuite/libgomp.c/pr66199-8.c: New test.
13850 * testsuite/libgomp.c/pr66199-9.c: New test.
13851 * testsuite/libgomp.c/reduction-11.c: New test.
13852 * testsuite/libgomp.c/reduction-12.c: New test.
13853 * testsuite/libgomp.c/reduction-13.c: New test.
13854 * testsuite/libgomp.c/reduction-14.c: New test.
13855 * testsuite/libgomp.c/reduction-15.c: New test.
13856 * testsuite/libgomp.c/target-12.c (main): Adjust for
13857 omp_target_is_present change for one-past-last element.
13858 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13859 the same var is both mapped and privatized.
13860 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13861 handling of zero-length array sections.
13862 * testsuite/libgomp.c/target-28.c: New test.
13863 * testsuite/libgomp.c/target-29.c: New test.
13864 * testsuite/libgomp.c/target-30.c: New test.
13865 * testsuite/libgomp.c/target-teams-1.c: New test.
13866 * testsuite/libgomp.c++/member-6.C: New test.
13867 * testsuite/libgomp.c++/member-7.C: New test.
13868 * testsuite/libgomp.c++/monotonic-1.C: New test.
13869 * testsuite/libgomp.c++/monotonic-2.C: New test.
13870 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13871 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13872 * testsuite/libgomp.c++/pr66199-3.C: New test.
13873 * testsuite/libgomp.c++/pr66199-4.C: New test.
13874 * testsuite/libgomp.c++/pr66199-5.C: New test.
13875 * testsuite/libgomp.c++/pr66199-6.C: New test.
13876 * testsuite/libgomp.c++/pr66199-7.C: New test.
13877 * testsuite/libgomp.c++/pr66199-8.C: New test.
13878 * testsuite/libgomp.c++/pr66199-9.C: New test.
13879 * testsuite/libgomp.c++/reduction-11.C: New test.
13880 * testsuite/libgomp.c++/reduction-12.C: New test.
13881 * testsuite/libgomp.c++/target-13.C: New test.
13882 * testsuite/libgomp.c++/target-14.C: New test.
13883 * testsuite/libgomp.c++/target-15.C: New test.
13884 * testsuite/libgomp.c++/target-16.C: New test.
13885 * testsuite/libgomp.c++/target-17.C: New test.
13886 * testsuite/libgomp.c++/target-18.C: New test.
13887 * testsuite/libgomp.c++/target-19.C: New test.
13889 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13891 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13892 and reduction copy.
13893 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13894 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13895 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13896 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13897 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13898 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13899 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13900 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13901 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13902 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13903 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13904 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13905 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13906 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13908 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13910 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13911 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13912 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13913 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13914 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13915 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13916 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13917 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13919 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13921 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13922 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13923 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13924 * oacc-host.c (host_openacc_exec): Likewise.
13925 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13927 2015-11-03 Julian Brown <julian@codesourcery.com>
13928 Thomas Schwinge <thomas@codesourcery.com>
13930 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13931 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13932 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13934 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13935 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13937 2015-11-03 James Norris <jnorris@codesourcery.com>
13939 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13941 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13943 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13944 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13945 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13946 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13947 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13949 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13951 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13953 (enum acc_async_t): Reformat.
13954 (acc_on_device): Declare compatible with builtin and provide C++
13956 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13958 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13959 Cesar Philippidis <cesar@codesourcery.com>
13961 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13962 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13963 ... this. Add a description of the test at the top of the file.
13964 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13965 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13966 ... this. Add a description of the test at the top of the file.
13968 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13970 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13971 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13972 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13973 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13974 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13975 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13977 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13979 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13982 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13985 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13987 2015-10-27 James Norris <jnorris@codesourcery.com>
13989 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13990 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13992 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13994 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13995 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13997 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13998 acc_device_nvidia usage.
13999 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14000 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14001 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14003 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14004 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14007 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14011 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14012 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14014 2015-10-23 Tom de Vries <tom@codesourcery.com>
14017 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14019 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14021 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14023 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14025 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14026 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14028 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14029 to 0 when mapnum is 0.
14031 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14033 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14034 Cast to int from int32_t.
14036 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14037 Aldy Hernandez <aldyh@redhat.com>
14038 Ilya Verbin <ilya.verbin@intel.com>
14040 * config/linux/affinity.c (omp_get_place_num_procs,
14041 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14042 * config/linux/doacross.h: New file.
14043 * config/posix/affinity.c (omp_get_place_num_procs,
14044 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14045 * config/posix/doacross.h: New file.
14046 * env.c: Include gomp-constants.h.
14047 (struct gomp_task_icv): Rename run_sched_modifier to
14048 run_sched_chunk_size.
14049 (gomp_max_task_priority_var): New variable.
14050 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14051 (handle_omp_display_env): Change _OPENMP value from 201307 to
14052 201511. Print OMP_MAX_TASK_PRIORITY.
14053 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14054 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14055 chunk_size and run_sched_modifier to run_sched_chunk_size.
14056 (omp_get_max_task_priority, omp_get_initial_device,
14057 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14058 omp_get_partition_place_nums): New functions.
14059 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14060 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14062 (omp_get_num_places_, omp_get_place_num_procs_,
14063 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14064 omp_get_place_proc_ids_8_, omp_get_place_num_,
14065 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14066 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14067 omp_get_max_task_priority_): New functions.
14068 * libgomp_g.h (GOMP_loop_doacross_static_start,
14069 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14070 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14071 GOMP_loop_ull_doacross_dynamic_start,
14072 GOMP_loop_ull_doacross_guided_start,
14073 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14074 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14075 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14076 GOMP_target_data_41, GOMP_target_update_41,
14077 GOMP_target_enter_exit_data): New prototypes.
14078 (GOMP_task): Add prototype argument.
14079 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14080 (struct gomp_doacross_work_share): New type.
14081 (struct gomp_work_share): Add doacross field.
14082 (struct gomp_task_icv): Rename run_sched_modifier to
14083 run_sched_chunk_size.
14084 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14085 GOMP_TASK_UNDEFERRED. Add comments.
14086 (struct gomp_task_depend_entry): Add comments.
14087 (struct gomp_task): Likewise.
14088 (struct gomp_taskgroup): Likewise.
14089 (struct gomp_target_task): New type.
14090 (struct gomp_team): Add comment.
14091 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14092 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14093 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14094 (struct target_var_desc): New type.
14095 (struct target_mem_desc): Adjust comment. Use struct
14096 target_var_desc instead of splay_tree_key for list.
14097 (REFCOUNT_INFINITY): Define.
14098 (struct splay_tree_key_s): Remove copy_from field.
14099 (struct gomp_device_descr): Add dev2dev_func field.
14100 (enum gomp_map_vars_kind): New enum.
14101 (gomp_map_vars): Add one argument.
14102 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14103 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14104 omp_get_place_num_procs, omp_get_place_num_procs_,
14105 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14106 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14107 omp_get_place_num_, omp_get_partition_num_places,
14108 omp_get_partition_num_places_, omp_get_partition_place_nums,
14109 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14110 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14111 omp_target_free, omp_target_is_present, omp_target_memcpy,
14112 omp_target_memcpy_rect, omp_target_associate_ptr and
14113 omp_target_disassociate_ptr.
14114 (GOMP_4.0.2): Renamed to ...
14115 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14116 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14117 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14118 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14119 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14120 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14121 GOMP_loop_ull_doacross_guided_start,
14122 GOMP_loop_ull_doacross_runtime_start,
14123 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14124 GOMP_doacross_ull_wait.
14125 * libgomp.texi: Document omp_get_max_task_priority.
14126 Rename modifier argument to chunk_size for omp_set_schedule and
14127 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14128 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14129 to run_sched_chunk_size renaming.
14130 (GOMP_loop_ordered_runtime_start): Likewise.
14131 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14132 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14133 GOMP_parallel_loop_runtime_start): New functions.
14134 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14135 to run_sched_chunk_size renaming.
14136 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14137 GOMP_loop_doacross_guided_start): New functions or aliases.
14138 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14139 run_sched_modifier to run_sched_chunk_size renaming.
14140 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14141 (gomp_loop_ull_doacross_static_start,
14142 gomp_loop_ull_doacross_dynamic_start,
14143 gomp_loop_ull_doacross_guided_start,
14144 GOMP_loop_ull_doacross_runtime_start): New functions.
14145 (GOMP_loop_ull_doacross_static_start,
14146 GOMP_loop_ull_doacross_dynamic_start,
14147 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14148 * oacc-mem.c (acc_map_data, present_create_copy,
14149 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14151 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14152 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14153 instead of false to gomp_map_vars.
14154 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14155 * omp.h.in (omp_lock_hint_t): New type.
14156 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14157 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14158 omp_get_place_num, omp_get_partition_num_places,
14159 omp_get_partition_place_nums, omp_get_initial_device,
14160 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14161 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14162 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14164 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14165 (omp_lock_hint_none, omp_lock_hint_uncontended,
14166 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14167 omp_lock_hint_speculative): New parameters.
14168 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14169 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14170 omp_get_place_num, omp_get_partition_num_places,
14171 omp_get_partition_place_nums, omp_get_initial_device,
14172 omp_get_max_task_priority): New interfaces.
14173 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14175 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14176 (omp_lock_hint_none, omp_lock_hint_uncontended,
14177 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14178 omp_lock_hint_speculative): New parameters.
14179 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14180 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14181 omp_get_place_num, omp_get_partition_num_places,
14182 omp_get_partition_place_nums, omp_get_initial_device,
14183 omp_get_max_task_priority): New functions and subroutines.
14184 * ordered.c: Include stdarg.h and string.h.
14185 (MAX_COLLAPSED_BITS): Define.
14186 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14187 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14188 GOMP_doacross_ull_wait): New functions.
14189 * target.c: Include errno.h.
14190 (resolve_device): If device is not initialized, call
14191 gomp_init_device on it.
14192 (gomp_map_lookup): New function.
14193 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14194 Don't bump refcount if REFCOUNT_INFINITY. Handle
14195 GOMP_MAP_ALWAYS_TO_P.
14196 (get_kind): Rename is_openacc argument to short_mapkind.
14197 (gomp_map_pointer): Use gomp_map_lookup.
14198 (gomp_map_fields_existing): New function.
14199 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14200 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14201 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14202 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14203 Adjust for tgt->list changed type and copy_from living in there.
14204 (gomp_copy_from_async): Adjust for tgt->list changed type and
14205 copy_from living in there.
14206 (gomp_unmap_vars): Likewise.
14207 (gomp_update): Likewise. Rename is_openacc argument to
14208 short_mapkind. Don't fail if object is not mapped.
14209 (gomp_load_image_to_device): Initialize refcount to
14211 (gomp_target_fallback): New function.
14212 (gomp_get_target_fn_addr): Likewise.
14213 (GOMP_target): Adjust gomp_map_vars caller, use
14214 gomp_get_target_fn_addr and gomp_target_fallback.
14215 (GOMP_target_41): New function.
14216 (gomp_target_data_fallback): New function.
14217 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14218 (GOMP_target_data_41): New function.
14219 (GOMP_target_update): Adjust gomp_update caller.
14220 (GOMP_target_update_41): New function.
14221 (gomp_exit_data, GOMP_target_enter_exit_data,
14222 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14223 omp_target_is_present, omp_target_memcpy,
14224 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14225 omp_target_associate_ptr, omp_target_disassociate_ptr,
14226 gomp_load_plugin_for_device): New functions.
14227 * task.c: Include gomp-constants.h. Include taskloop.c
14228 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14229 (gomp_task_handle_depend): New function.
14230 (GOMP_task): Use it. Add priority argument. Use
14231 gomp-constant.h constants instead of hardcoded numbers.
14232 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14233 (gomp_create_target_task): New function.
14234 (verify_children_queue, verify_taskgroup_queue,
14235 verify_task_queue): New functions.
14236 (gomp_task_run_pre): Call verify_*_queue functions.
14237 If an upcoming tied task is about to leave the sibling or
14238 taskgroup queues in an invalid state, adjust appropriately.
14239 Remove taskgroup argument. Add comments.
14240 (gomp_task_run_post_handle_dependers): Add comments.
14241 (gomp_task_run_post_remove_parent): Likewise.
14242 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14243 (GOMP_taskwait): Likewise. Add comments.
14244 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14245 problem such that the first non parent_depends_on task does not
14246 end up at the end of the children queue.
14247 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14248 GOMP_TASK_UNDEFERRED.
14249 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14250 * taskloop.c: New file.
14251 * testsuite/lib/libgomp.exp
14252 (check_effective_target_offload_device_nonshared_as): New proc.
14253 * testsuite/libgomp.c/affinity-2.c: New test.
14254 * testsuite/libgomp.c/doacross-1.c: New test.
14255 * testsuite/libgomp.c/doacross-2.c: New test.
14256 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14257 Add map clause to target.
14258 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14259 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14260 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14261 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14262 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14264 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14265 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14266 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14267 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14268 not defined. Use those where needed.
14269 * testsuite/libgomp.c/for-4.c: New test.
14270 * testsuite/libgomp.c/for-5.c: New test.
14271 * testsuite/libgomp.c/for-6.c: New test.
14272 * testsuite/libgomp.c/linear-1.c: New test.
14273 * testsuite/libgomp.c/ordered-4.c: New test.
14274 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14275 only allowed on the loop iterator.
14276 * testsuite/libgomp.c/pr66199-3.c: New test.
14277 * testsuite/libgomp.c/pr66199-4.c: New test.
14278 * testsuite/libgomp.c/reduction-7.c: New test.
14279 * testsuite/libgomp.c/reduction-8.c: New test.
14280 * testsuite/libgomp.c/reduction-9.c: New test.
14281 * testsuite/libgomp.c/reduction-10.c: New test.
14282 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14284 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14285 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14286 * testsuite/libgomp.c/target-11.c: New test.
14287 * testsuite/libgomp.c/target-12.c: New test.
14288 * testsuite/libgomp.c/target-13.c: New test.
14289 * testsuite/libgomp.c/target-14.c: New test.
14290 * testsuite/libgomp.c/target-15.c: New test.
14291 * testsuite/libgomp.c/target-16.c: New test.
14292 * testsuite/libgomp.c/target-17.c: New test.
14293 * testsuite/libgomp.c/target-18.c: New test.
14294 * testsuite/libgomp.c/target-19.c: New test.
14295 * testsuite/libgomp.c/target-20.c: New test.
14296 * testsuite/libgomp.c/target-21.c: New test.
14297 * testsuite/libgomp.c/target-22.c: New test.
14298 * testsuite/libgomp.c/target-23.c: New test.
14299 * testsuite/libgomp.c/target-24.c: New test.
14300 * testsuite/libgomp.c/target-25.c: New test.
14301 * testsuite/libgomp.c/target-26.c: New test.
14302 * testsuite/libgomp.c/target-27.c: New test.
14303 * testsuite/libgomp.c/taskloop-1.c: New test.
14304 * testsuite/libgomp.c/taskloop-2.c: New test.
14305 * testsuite/libgomp.c/taskloop-3.c: New test.
14306 * testsuite/libgomp.c/taskloop-4.c: New test.
14307 * testsuite/libgomp.c++/ctor-13.C: New test.
14308 * testsuite/libgomp.c++/doacross-1.C: New test.
14309 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14310 Replace offload_device with offload_device_nonshared_as.
14311 * testsuite/libgomp.c++/for-12.C: New test.
14312 * testsuite/libgomp.c++/for-13.C: New test.
14313 * testsuite/libgomp.c++/for-14.C: New test.
14314 * testsuite/libgomp.c++/linear-1.C: New test.
14315 * testsuite/libgomp.c++/member-1.C: New test.
14316 * testsuite/libgomp.c++/member-2.C: New test.
14317 * testsuite/libgomp.c++/member-3.C: New test.
14318 * testsuite/libgomp.c++/member-4.C: New test.
14319 * testsuite/libgomp.c++/member-5.C: New test.
14320 * testsuite/libgomp.c++/ordered-1.C: New test.
14321 * testsuite/libgomp.c++/reduction-5.C: New test.
14322 * testsuite/libgomp.c++/reduction-6.C: New test.
14323 * testsuite/libgomp.c++/reduction-7.C: New test.
14324 * testsuite/libgomp.c++/reduction-8.C: New test.
14325 * testsuite/libgomp.c++/reduction-9.C: New test.
14326 * testsuite/libgomp.c++/reduction-10.C: New test.
14327 * testsuite/libgomp.c++/reference-1.C: New test.
14328 * testsuite/libgomp.c++/simd14.C: New test.
14329 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14330 * testsuite/libgomp.c++/target-5.C: New test.
14331 * testsuite/libgomp.c++/target-6.C: New test.
14332 * testsuite/libgomp.c++/target-7.C: New test.
14333 * testsuite/libgomp.c++/target-8.C: New test.
14334 * testsuite/libgomp.c++/target-9.C: New test.
14335 * testsuite/libgomp.c++/target-10.C: New test.
14336 * testsuite/libgomp.c++/target-11.C: New test.
14337 * testsuite/libgomp.c++/target-12.C: New test.
14338 * testsuite/libgomp.c++/taskloop-1.C: New test.
14339 * testsuite/libgomp.c++/taskloop-2.C: New test.
14340 * testsuite/libgomp.c++/taskloop-3.C: New test.
14341 * testsuite/libgomp.c++/taskloop-4.C: New test.
14342 * testsuite/libgomp.c++/taskloop-5.C: New test.
14343 * testsuite/libgomp.c++/taskloop-6.C: New test.
14344 * testsuite/libgomp.c++/taskloop-7.C: New test.
14345 * testsuite/libgomp.c++/taskloop-8.C: New test.
14346 * testsuite/libgomp.c++/taskloop-9.C: New test.
14347 * testsuite/libgomp.fortran/affinity1.f90: New test.
14348 * testsuite/libgomp.fortran/affinity2.f90: New test.
14350 2015-10-13 Tom de Vries <tom@codesourcery.com>
14352 PR tree-optimization/67476
14353 * testsuite/libgomp.c/autopar-3.c: New test.
14354 * testsuite/libgomp.c/autopar-4.c: New test.
14355 * testsuite/libgomp.c/autopar-5.c: New test.
14356 * testsuite/libgomp.c/autopar-6.c: New test.
14357 * testsuite/libgomp.c/autopar-7.c: New test.
14358 * testsuite/libgomp.c/autopar-8.c: New test.
14360 2015-10-12 James Norris <jnorris@codesourcery.com>
14362 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14365 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14367 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14368 using load_gcc_lib.
14370 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14372 * oacc-ptx.h: Remove file, moving its content into...
14373 * config/nvptx/fortran.c: ... here...
14374 * config/nvptx/oacc-init.c: ..., here...
14375 * config/nvptx/oacc-parallel.c: ..., and here.
14376 * config/nvptx/openacc.f90: New file.
14377 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14378 (link_ptx): Don't link in predefined bits of PTX code.
14380 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14381 Bernd Schmidt <bernds@codesourcery.com>
14383 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14384 (struct targ_ptx_obj): New.
14385 (nvptx_tdata): Move earlier, change data format.
14386 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14388 (GOMP_OFFLOAD_load_image): Adjust.
14390 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14392 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14393 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14394 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14395 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14396 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14397 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14398 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14399 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14400 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14401 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14402 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14403 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14404 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14405 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14406 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14407 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14408 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14409 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14410 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14411 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14412 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14413 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14414 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14415 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14416 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14417 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14418 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14419 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14420 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14421 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14422 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14423 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14424 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14425 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14426 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14427 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14428 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14429 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14430 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14431 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14432 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14433 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14434 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14435 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14436 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14437 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14438 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14439 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14440 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14441 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14442 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14443 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14444 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14445 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14446 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14447 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14448 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14449 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14450 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14451 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14452 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14453 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14454 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14456 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14458 * oacc-init.c (acc_on_device): Force optimization level.
14460 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14462 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14463 (cuda_errlist): Delete.
14464 (cuda_error): Reimplement.
14466 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14468 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14470 * libgomp.map (GOACC_parallel_keyed): New.
14471 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14473 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14474 and take keyed varargs list. Adjust call to exec_func.
14475 (GOACC_parallel): Force host fallback.
14476 * libgomp_g.h (GOACC_parallel): Remove.
14477 (GOACC_parallel_keyed): Declare.
14478 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14479 (struct targ_gn_descriptor): Replace name field with launch field.
14480 (nvptx_exec): Lose separate geometry args, take array. Process
14481 dynamic dimensions and adjust.
14482 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14483 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14485 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14487 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14490 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14493 * oacc-int.h (goacc_host_init): Add declaration.
14494 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14495 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14497 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14498 Sebastian Pop <s.pop@samsung.com>
14500 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14502 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14503 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14504 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14505 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14506 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14508 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14510 * configure.tgt: Add missing ;; in between nvptx and rtems
14513 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14515 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14516 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14517 (gomp_thread_pool_reservoir): Add priority member.
14518 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14520 (parse_thread_pools): Likewise.
14521 * team.c (gomp_team_start): Call configuration provided
14522 gomp_adjust_thread_attr(). Destroy thread attributes if
14524 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14526 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14528 * config/posix/pool.h: New.
14529 * config/rtems/pool.h: Likewise.
14530 * config/rtems/proc.c: Likewise.
14531 * libgomp.h (gomp_thread_destructor): Declare.
14532 * team.c: Include configuration provided "pool.h".
14533 (gomp_get_thread_pool): Define in configuration.
14534 (gomp_team_end): Call configuration defined
14535 gomp_release_thread_pool().
14537 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14539 * config/rtems/bar.c: New.
14540 * config/rtems/bar.h: Likewise.
14541 * config/rtems/mutex.c: Likewise.
14542 * config/rtems/mutex.h: Likewise.
14543 * config/rtems/sem.c: Likewise.
14544 * config/rtems/sem.h: Likewise.
14545 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14546 <sys/lock.h> header file.
14547 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14548 supported by Newlib.
14549 * configure: Regenerate.
14551 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14553 * team.c (gomp_new_thread_pool): Delete and move content to ...
14554 (gomp_get_thread_pool): ... new function. Allocate and
14555 initialize thread pool on demand.
14556 (get_last_team): Use gomp_get_thread_pool().
14557 (gomp_team_start): Delete thread pool initialization.
14559 2015-09-03 Tom de Vries <tom@codesourcery.com>
14561 PR tree-optimization/65637
14562 * testsuite/libgomp.c/autopar-2.c: New test.
14564 2015-08-29 Tom de Vries <tom@codesourcery.com>
14566 PR tree-optimization/46193
14567 * testsuite/libgomp.c/pr46193.c: New test.
14569 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14572 * libgomp.map: Add 4.0.2 version.
14573 * target.c (offload_image_descr): Add version field.
14574 (gomp_load_image_to_device): Add version argument. Adjust plugin
14575 call. Improve load mismatch diagnostic.
14576 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14578 (GOMP_offload_regster): Make stub function, move bulk to ...
14579 (GOMP_offload_register_ver): ... here. Process version argument.
14580 (GOMP_offload_unregister): Make stub function, move bulk to ...
14581 (GOMP_offload_unregister_ver): ... here. Process version argument.
14582 (gomp_init_device): Process version field.
14583 (gomp_unload_device): Process version field.
14584 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14585 macros. Check plugin version.
14586 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14587 loader and unloader types.
14588 * oacc-host.c: Include gomp-constants.h.
14589 (host_version): New.
14590 (host_load_image, host_unload_image): Adjust.
14591 (host_dispatch): Add host_version.
14592 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14593 (GOMP_OFFLOAD_version): New.
14594 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14595 (GOMP_OFFLOAD_unload_image): Likewise.
14596 * plugin/plugin-host.c: Include gomp-constants.h.
14597 (GOMP_OFFLOAD_version): New.
14598 (GOMP_OFFLOAD_load_image): Add version arg.
14599 (GOMP_OFFLOAD_unload_image): Likewise.
14601 2015-08-24 Tom de Vries <tom@codesourcery.com>
14603 PR tree-optimization/65468
14604 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14606 2015-08-24 Tom de Vries <tom@codesourcery.com>
14608 PR tree-optimization/65468
14609 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14611 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14615 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14616 (gomp_iter_guided_next): Idem.
14617 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14618 (gomp_iter_ull_guided_next): Idem.
14619 * config/linux/wait.h (do_spin): Idem.
14621 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14623 * libgomp-plugin.h (enum offload_target_type): Remove
14624 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14625 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14626 * openacc.h (enum acc_device_t): Likewise.
14627 * openacc_lib.h: Likewise.
14628 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14629 (acc_on_device): Just use __builtin_acc_on_device.
14630 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14631 of acc_on_device builtin.
14632 * plugin/plugin-host.h: Remove file.
14633 * plugin/plugin-host.c: Likewise, but salvage some content into...
14634 * oacc-host.c: ... this file.
14635 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14636 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14637 * Makefile.in: Regenerate.
14638 * configure: Likewise.
14639 * testsuite/lib/libgomp.exp
14640 (check_effective_target_openacc_host_nonshm_selected): Remove.
14641 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14642 ACC_DEVICE_TYPE=host_nonshm.
14643 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14644 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14645 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14646 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14647 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14648 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14650 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14651 Jakub Jelinek <jakub@redhat.com>
14653 * config/nvptx/affinity.c: New file.
14654 * config/nvptx/alloc.c: Likewise.
14655 * config/nvptx/bar.c: Likewise.
14656 * config/nvptx/barrier.c: Likewise.
14657 * config/nvptx/critical.c: Likewise.
14658 * config/nvptx/env.c: Likewise.
14659 * config/nvptx/error.c: Likewise.
14660 * config/nvptx/fortran.c: Likewise.
14661 * config/nvptx/iter.c: Likewise.
14662 * config/nvptx/iter_ull.c: Likewise.
14663 * config/nvptx/libgomp-plugin.c: Likewise.
14664 * config/nvptx/lock.c: Likewise.
14665 * config/nvptx/loop.c: Likewise.
14666 * config/nvptx/loop_ull.c: Likewise.
14667 * config/nvptx/mutex.c: Likewise.
14668 * config/nvptx/oacc-async.c: Likewise.
14669 * config/nvptx/oacc-cuda.c: Likewise.
14670 * config/nvptx/oacc-host.c: Likewise.
14671 * config/nvptx/oacc-init.c: Likewise.
14672 * config/nvptx/oacc-mem.c: Likewise.
14673 * config/nvptx/oacc-parallel.c: Likewise.
14674 * config/nvptx/oacc-plugin.c: Likewise.
14675 * config/nvptx/omp-lock.h: Likewise.
14676 * config/nvptx/ordered.c: Likewise.
14677 * config/nvptx/parallel.c: Likewise.
14678 * config/nvptx/proc.c: Likewise.
14679 * config/nvptx/ptrlock.c: Likewise.
14680 * config/nvptx/sections.c: Likewise.
14681 * config/nvptx/sem.c: Likewise.
14682 * config/nvptx/single.c: Likewise.
14683 * config/nvptx/splay-tree.c: Likewise.
14684 * config/nvptx/target.c: Likewise.
14685 * config/nvptx/task.c: Likewise.
14686 * config/nvptx/team.c: Likewise.
14687 * config/nvptx/time.c: Likewise.
14688 * config/nvptx/work.c: Likewise.
14689 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14690 * configure: Regenerate.
14691 * configure.tgt (config_path): Set to "nvptx" for target
14694 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14696 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14698 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14700 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14701 (cuda_errlist): Constify.
14702 (errmsg): Move into ...
14703 (cuda_error): ... here. Make smaller.
14704 (_XSTR, _STR): Delete.
14705 (cuda_synames): Delete.
14706 (verify_device_library): Delete.
14707 (nvptx_init): Don't call it.
14709 2015-07-28 Tom de Vries <tom@codesourcery.com>
14711 * testsuite/libgomp.c/uns-outer-4.c: New test.
14713 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14715 * testsuite/libgomp.c/pr66714.c: New test.
14717 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14720 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14721 (fib_ref): New function.
14722 (fib): Correct corner cases in the recursion.
14723 (main): Replace the non-simd loop with fib_ref call.
14724 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14726 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14727 for the last array element value. Replace the non-simd loop with
14728 fib_ref call. Remove redundant b_ref array. Remove the comparison
14729 of the last array element with according Fibonacci sequence element.
14730 (fib): Correct corner cases in the recursion.
14732 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14734 * target.c (gomp_offload_image_to_device): Rename to ...
14735 (gomp_load_image_to_device): ... here.
14736 (GOMP_offload_register): Adjust call.
14737 (gomp_init_device): Likewise.
14738 (gomp_unload_image_from_device): New. Broken out of ...
14739 (GOMP_offload_unregister): ... here. Call it.
14740 (gomp_unload_device): New.
14741 * libgomp.h (gomp_unload_device): Declare.
14742 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14745 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14747 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14749 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14751 (goacc_waits): Move !num_waits handling to ...
14752 (GOACC_wait): ... here, the only caller that might have zero waits.
14754 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14755 (struct ptx_image_data): Move earlier, add fns field.
14756 (struct ptx_device): Add images and image_lock fields.
14757 (ptx_images, ptx_image_lock): Delete.
14758 (nvptx_open_device): Initialize images and image_lock fields.
14759 (nvptx_close_device): Destroy image_lock.
14760 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14761 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14764 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14766 * target.c (GOMP_offload_register): Use int for device type arg.
14767 (GOMP_offload_unregister): Likewise.
14769 * target.c (struct_offload_image_descr): Constify host_table.
14770 (gomp_offload_image_to_device): Likewise.
14771 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14773 * libgomp.h (gomp_device_descr): Constify target data arguments.
14774 * target.c (struct offload_image_descr): Constify target_data.
14775 (gomp_offload_image_to_device): Likewise.
14776 (GOMP_offload_register): Likewise.
14777 (GOMP_offload_unregister): Likewise.
14778 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14779 GOMP_OFFLOAD_unload_image): Constify target data.
14780 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14781 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14783 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14785 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14786 Workaround driver library const error.
14787 (struct nvptx_tdata, nvptx_tdata_t): New.
14788 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14791 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14793 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14794 of EPS parameter from integer to real.
14795 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14796 type of EPS parameter from integer to real.
14798 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14800 * team.c (get_last_team): New.
14801 (gomp_new_team): Recycle last non-nested team if possible.
14802 (gomp_team_end): Move team work share list free lock destruction
14804 (free_team): ... here.
14806 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14808 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14809 and ref from int to double. Replaced their comparison with
14810 an inequality of their difference and EPS.
14811 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14812 comparison of pri and a reference number with an inequality of their
14813 difference and EPS.
14814 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14815 the comparison of sum and sum_ref with an inequality of their
14816 difference and EPS.
14817 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14818 the comparison of pri and a reference number with an inequality of
14819 their difference and EPS.
14821 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14823 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14824 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14825 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14826 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14827 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14828 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14829 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14830 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14831 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14832 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14833 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14834 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14835 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14837 (vec_mult): Likewise. Add #pragma omp taskwait.
14838 (main): Adjust caller.
14839 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14840 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14841 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14842 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14843 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14844 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14845 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14846 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14847 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14848 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14849 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14850 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14851 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14852 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14853 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14854 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14855 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14856 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14857 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14858 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14859 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14860 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14861 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14862 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14863 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14864 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14865 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14866 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14867 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14868 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14869 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14870 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14871 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14872 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14873 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14874 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14875 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14876 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14877 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14878 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14879 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14880 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14881 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14882 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14883 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14884 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14885 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14886 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14887 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14888 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14889 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14890 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14891 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14892 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14893 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14894 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14895 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14896 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14897 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14898 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14899 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14900 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14901 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14902 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14903 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14904 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14905 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14906 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14907 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14908 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14909 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14910 (vec_mult): Add !$omp taskwait.
14911 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14912 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14913 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14914 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14915 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14916 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14917 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14918 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14919 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14920 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14921 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14922 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14923 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14924 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14925 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14926 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14927 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14928 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14929 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14930 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14931 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14932 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14933 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14934 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14935 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14936 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14937 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14938 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14939 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14940 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14941 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14942 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14943 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14944 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14945 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14946 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14947 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14948 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14949 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14950 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14951 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14952 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14953 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14954 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14955 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14956 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14957 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14958 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14959 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14960 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14961 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14962 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14963 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14964 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14965 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14966 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14967 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14968 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14969 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14970 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14971 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14972 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14973 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14974 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14975 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14976 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14977 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14979 2015-07-10 Tom de Vries <tom@codesourcery.com>
14981 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14982 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14984 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14987 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14988 in a 64-bit configuration.
14989 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14990 offloading testing if no such device is available.
14991 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14992 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14994 2015-07-08 Tom de Vries <tom@codesourcery.com>
14996 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14998 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15000 2015-07-07 Tom de Vries <tom@codesourcery.com>
15002 PR tree-optimization/66642
15003 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15004 iteration count case.
15005 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15006 function, factor out of ...
15007 (main): ... here. Test low iteration count case.
15009 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15011 * libgomp.h (gomp_thread_pool): Comment last_team field.
15013 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15015 * testsuite/libgomp.c++/pr66702-1.C: Require
15016 vect_simd_clones effective target.
15017 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15019 2015-06-30 Tom de Vries <tom@codesourcery.com>
15021 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15022 already set. Use DEFAULT_CFLAGS in dg-runtest.
15023 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15026 2015-06-30 Tom de Vries <tom@codesourcery.com>
15028 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15029 already set. Use DEFAULT_CFLAGS in dg-runtest.
15030 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15031 * testsuite/libgomp.c++/pr64824.C: Same.
15032 * testsuite/libgomp.c++/pr64868.C: Same.
15033 * testsuite/libgomp.c++/pr66199-1.C: Same.
15034 * testsuite/libgomp.c++/pr66199-2.C: Same.
15035 * testsuite/libgomp.c++/target-2.C: Same.
15036 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15037 -std=<standard> option.
15038 * testsuite/libgomp.c++/udr-11.C: Same.
15039 * testsuite/libgomp.c++/udr-12.C: Same.
15040 * testsuite/libgomp.c++/udr-13.C: Same.
15041 * testsuite/libgomp.c++/udr-14.C: Same.
15042 * testsuite/libgomp.c++/udr-15.C: Same.
15043 * testsuite/libgomp.c++/udr-16.C: Same.
15044 * testsuite/libgomp.c++/udr-17.C: Same.
15045 * testsuite/libgomp.c++/udr-18.C: Same.
15046 * testsuite/libgomp.c++/udr-19.C: Same.
15047 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15048 * testsuite/libgomp.c++/simd-1.C: Same.
15049 * testsuite/libgomp.c++/simd-2.C: Same.
15050 * testsuite/libgomp.c++/simd-3.C: Same.
15051 * testsuite/libgomp.c++/simd-4.C: Same.
15052 * testsuite/libgomp.c++/simd-5.C: Same.
15053 * testsuite/libgomp.c++/simd-6.C: Same.
15054 * testsuite/libgomp.c++/simd-7.C: Same.
15055 * testsuite/libgomp.c++/simd-8.C: Same.
15056 * testsuite/libgomp.c++/simd-9.C: Same.
15057 * testsuite/libgomp.c++/simd10.C: Same.
15058 * testsuite/libgomp.c++/simd11.C: Same.
15059 * testsuite/libgomp.c++/simd12.C: Same.
15060 * testsuite/libgomp.c++/simd13.C: Same.
15062 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15064 PR middle-end/66702
15065 * testsuite/libgomp.c++/pr66702-1.C: New test.
15066 * testsuite/libgomp.c++/pr66702-2.C: New test.
15068 2015-06-30 Tom de Vries <tom@codesourcery.com>
15070 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15071 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15072 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15073 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15075 2015-06-30 Tom de Vries <tom@codesourcery.com>
15077 PR tree-optimization/66652
15078 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15079 using restrict pointers.
15080 (main): Add arguments to calls to f.
15081 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15083 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15085 * configure.ac: Fix check for header <sys/sysctl.h>.
15086 * configure: Regenerate.
15087 * config.h.in: Likewise.
15089 2015-06-23 Tom de Vries <tom@codesourcery.com>
15091 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15093 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15095 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15097 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15101 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15102 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15104 2015-06-15 Tom de Vries <tom@codesourcery.com>
15106 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15107 dg-additional-options for any remaining options.
15108 * testsuite/libgomp.c/atomic-2.c: Same.
15109 * testsuite/libgomp.c/atomic-4.c: Same.
15110 * testsuite/libgomp.c/atomic-5.c: Same.
15111 * testsuite/libgomp.c/atomic-6.c: Same.
15112 * testsuite/libgomp.c/autopar-1.c: Same.
15113 * testsuite/libgomp.c/copyin-1.c: Same.
15114 * testsuite/libgomp.c/copyin-2.c: Same.
15115 * testsuite/libgomp.c/copyin-3.c: Same.
15116 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15117 * testsuite/libgomp.c/nestedfn-5.c: Same.
15118 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15119 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15120 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15121 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15122 * testsuite/libgomp.c/pr32362-1.c: Same.
15123 * testsuite/libgomp.c/pr32362-2.c: Same.
15124 * testsuite/libgomp.c/pr32362-3.c: Same.
15125 * testsuite/libgomp.c/pr39591-1.c: Same.
15126 * testsuite/libgomp.c/pr39591-2.c: Same.
15127 * testsuite/libgomp.c/pr39591-3.c: Same.
15128 * testsuite/libgomp.c/pr58392.c: Same.
15129 * testsuite/libgomp.c/pr58756.c: Same.
15130 * testsuite/libgomp.c/simd-1.c: Same.
15131 * testsuite/libgomp.c/simd-10.c: Same.
15132 * testsuite/libgomp.c/simd-11.c: Same.
15133 * testsuite/libgomp.c/simd-12.c: Same.
15134 * testsuite/libgomp.c/simd-13.c: Same.
15135 * testsuite/libgomp.c/simd-14.c: Same.
15136 * testsuite/libgomp.c/simd-15.c: Same.
15137 * testsuite/libgomp.c/simd-2.c: Same.
15138 * testsuite/libgomp.c/simd-3.c: Same.
15139 * testsuite/libgomp.c/simd-4.c: Same.
15140 * testsuite/libgomp.c/simd-5.c: Same.
15141 * testsuite/libgomp.c/simd-6.c: Same.
15142 * testsuite/libgomp.c/simd-7.c: Same.
15143 * testsuite/libgomp.c/simd-8.c: Same.
15144 * testsuite/libgomp.c/simd-9.c: Same.
15146 2015-06-15 Tom de Vries <tom@codesourcery.com>
15148 * testsuite/libgomp.c/pr35625.c: Fix typo.
15150 2015-06-15 Tom de Vries <tom@codesourcery.com>
15152 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15154 * testsuite/libgomp.c/atomic-3.c: Same.
15155 * testsuite/libgomp.c/debug-1.c: Same.
15156 * testsuite/libgomp.c/nqueens-1.c: Same.
15157 * testsuite/libgomp.c/pr26171.c: Same.
15158 * testsuite/libgomp.c/pr48591.c: Same.
15159 * testsuite/libgomp.c/pr64824.c: Same.
15160 * testsuite/libgomp.c/pr64868.c: Same.
15161 * testsuite/libgomp.c/pr66133.c: Same.
15162 * testsuite/libgomp.c/pr66199-1.c: Same.
15163 * testsuite/libgomp.c/pr66199-2.c: Same.
15164 * testsuite/libgomp.c/target-8.c: Same.
15166 2015-06-15 Tom de Vries <tom@codesourcery.com>
15168 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15170 * testsuite/libgomp.c/for-1.c: Same.
15171 * testsuite/libgomp.c/for-2.c: Same.
15172 * testsuite/libgomp.c/for-3.c: Same.
15173 * testsuite/libgomp.c/pr35625.c: Same.
15174 * testsuite/libgomp.c/pr39154.c: Same.
15175 * testsuite/libgomp.c/simd-16.c: Same.
15176 * testsuite/libgomp.c/simd-17.c: Same.
15178 2015-06-13 Tom de Vries <tom@codesourcery.com>
15180 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15182 2015-06-13 Tom de Vries <tom@codesourcery.com>
15184 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15185 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15186 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15188 (main): Use N instead of hardcoded constants.
15190 2015-06-05 Tom de Vries <tom@codesourcery.com>
15192 merge from gomp4 branch:
15193 2015-05-28 Tom de Vries <tom@codesourcery.com>
15195 PR tree-optimization/65443
15196 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15197 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15198 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15200 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15202 * testsuite/libgomp.graphite/bounds.c: Adjust for
15203 cleanup-tree-dump removal.
15204 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15205 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15206 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15207 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15208 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15209 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15210 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15211 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15212 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15213 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15215 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15217 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15218 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15219 (futex_wake) [!__x86_64__]: Ditto.
15221 2015-05-28 Julian Brown <julian@codesourcery.com>
15223 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15224 function comment. Only call gomp_fatal if new argument is true.
15225 (acc_dev_num_out_of_range): New function.
15226 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15227 acc_dev_num_out_of_range as appropriate.
15228 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15229 (acc_get_device_num, acc_set_device_num): Update calls to
15231 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15234 2015-05-28 Julian Brown <julian@codesourcery.com>
15237 * oacc-init.c (plugin/plugin-host.h): Include.
15238 (acc_on_device): Check whether we're in an offloaded region for
15240 plugin. Don't use __builtin_acc_on_device.
15241 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15242 nonshm_exec flag in thread-local data.
15243 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15244 data for host_nonshm plugin.
15245 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15246 for host_nonshm plugin.
15247 * plugin/plugin-host.h: New.
15249 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15251 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15253 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15255 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15257 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15258 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15261 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15263 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15265 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15267 * target.c (gomp_map_pointer): New function abstracting out
15268 GOMP_MAP_POINTER handling.
15269 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15270 gomp_map_pointer().
15272 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15274 PR middle-end/66199
15275 * testsuite/libgomp.c/pr66199-1.c: New test.
15276 * testsuite/libgomp.c/pr66199-2.c: New test.
15277 * testsuite/libgomp.c++/pr66199-1.C: New test.
15278 * testsuite/libgomp.c++/pr66199-2.C: New test.
15279 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15280 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15282 2015-05-19 Julian Brown <julian@codesourcery.com>
15284 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15287 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15289 PR middle-end/66133
15290 * testsuite/libgomp.c/pr66133.c: New test.
15292 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15294 * Makefile.in: Regenerated with automake-1.11.6.
15295 * aclocal.m4: Likewise.
15296 * config.h.in: Likewise.
15297 * configure: Likewise.
15298 * testsuite/Makefile.in: Likewise.
15300 2015-05-08 Jason Merrill <jason@redhat.com>
15302 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15305 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15307 2015-05-06 Julian Brown <julian@codesourcery.com>
15309 * oacc-init.c (acc_device_lock): Add explanatory comment.
15310 (resolve_device): Add comment about locking requirement.
15311 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15312 gomp_init_device and gomp_fini_device calls.
15313 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15314 (acc_get_device_num, acc_set_device_num): Add locking around
15315 resolve_device and gomp_init_device calls.
15317 2015-05-06 Julian Brown <julian@codesourcery.com>
15319 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15320 goacc_thread_lock on error paths.
15321 * oacc-mem.c (lookup_host): Remove locking from function. Note
15322 locking requirement for caller in function comment.
15323 (lookup_dev): Likewise.
15324 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15325 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15326 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15329 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15333 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15334 don't expect "0x" prefix for "%p" format specifier, don't expect
15335 "(nil)" for NULL pointer.
15336 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15337 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15338 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15339 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15340 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15341 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15342 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15343 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15344 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15345 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15346 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15347 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15348 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15349 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15350 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15351 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15352 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15353 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15354 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15355 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15356 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15357 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15358 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15359 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15360 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15361 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15362 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15363 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15364 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15365 accurately specify what we're looking for.
15366 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15367 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15368 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15369 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15370 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15372 2015-04-30 James Norris <jnorris@codesourcery.com>
15375 * testsuite/lib/libgomp.exp
15376 (check_effective_target_openacc_host_selected)
15377 (check_effective_target_openacc_host_nonshm_selected): New
15379 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15381 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15382 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15383 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15384 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15385 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15386 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15387 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15388 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15389 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15390 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15391 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15392 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15393 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15394 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15395 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15396 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15397 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15398 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15399 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15400 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15401 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15402 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15403 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15404 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15405 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15406 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15407 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15408 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15409 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15410 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15411 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15412 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15413 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15414 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15415 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15416 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15417 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15418 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15419 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15420 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15421 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15422 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15423 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15425 2015-04-08 Julian Brown <julian@codesourcery.com>
15427 * libgomp.h (target_mem_desc: Remove mem_map field.
15428 (acc_dispatch_t): Remove open_device_func, close_device_func,
15429 get_device_num_func, set_device_num_func, target_data members.
15430 Change create_thread_data_func argument to device number instead of
15432 * oacc-async.c (assert.h): Include.
15433 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15434 (acc_wait_all, acc_wait_all_async): Use current host thread's
15435 active device, not base_dev.
15436 * oacc-cuda.c (acc_get_current_cuda_device)
15437 (acc_get_current_cuda_context, acc_get_cuda_stream)
15438 (acc_set_cuda_stream): Likewise.
15439 * oacc-host.c (host_dispatch): Don't set open_device_func,
15440 close_device_func, get_device_num_func or set_device_num_func.
15441 * oacc-init.c (base_dev, init_key): Remove.
15442 (cached_base_dev): New.
15443 (name_of_acc_device_t): New.
15444 (acc_init_1): Initialise default-numbered device, not zeroth.
15445 (acc_shutdown_1): Close all devices of a given type.
15446 (goacc_destroy_thread): Don't use base_dev.
15447 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15448 (goacc_attach_host_thread_to_device): New.
15449 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15450 (acc_get_num_devices): Don't use base_dev.
15451 (acc_set_device_type): Reimplement.
15452 (acc_get_device_type): Don't use base_dev.
15453 (acc_get_device_num): Tweak logic.
15454 (acc_set_device_num): Likewise.
15455 (acc_on_device): Use acc_get_device_type.
15456 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15457 (goacc_lazy_initialize): Reimplement with acc_init and
15458 goacc_attach_host_thread_to_device.
15459 * oacc-int.h (goacc_thread): Add base_dev field.
15460 (base_dev): Remove extern declaration.
15461 (goacc_attach_host_thread_to_device): Add prototype.
15462 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15464 (acc_free): Likewise.
15465 (acc_memcpy_to_device): Likewise.
15466 (acc_memcpy_from_device): Likewise.
15467 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15468 goacc_lazy_initialize (throughout).
15469 (GOACC_parallel): Use tgt_offset to locate target functions.
15470 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15471 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15472 (gomp_load_plugin_for_device): Remove open_device, close_device,
15473 get_device_num, set_device_num openacc hook initialisation. Don't set
15474 openacc.target_data.
15475 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15476 (GOMP_OFFLOAD_openacc_close_device)
15477 (GOMP_OFFLOAD_openacc_get_device_num)
15478 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15479 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15481 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15482 (instantiated_devices, ptx_dev_lock): New.
15483 (struct ptx_image_data): New.
15484 (ptx_devices, ptx_images, ptx_image_lock): New.
15485 (fini_streams_for_device): Reorder cuStreamDestroy call.
15486 (nvptx_get_num_devices): Remove forward declaration.
15487 (nvptx_init): Change return type to bool.
15488 (nvptx_fini): Remove.
15489 (nvptx_attach_host_thread_to_device): New.
15490 (nvptx_open_device): Return struct ptx_device* instead of void*.
15491 (nvptx_close_device): Change argument type to struct ptx_device*,
15492 return type to void.
15493 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15494 (kernel_target_data, kernel_host_table): Remove static globals.
15495 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15496 (GOMP_OFFLOAD_init_device): Reimplement.
15497 (GOMP_OFFLOAD_fini_device): Likewise.
15498 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15499 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15500 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15501 (GOMP_OFFLOAD_openacc_open_device)
15502 (GOMP_OFFLOAD_openacc_close_device)
15503 (GOMP_OFFLOAD_openacc_set_device_num)
15504 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15505 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15509 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15511 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15513 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15514 * libgomp.h (struct gomp_memory_mapping): Remove.
15515 (struct target_mem_desc): Change type of mem_map from
15516 gomp_memory_mapping * to splay_tree_s *.
15517 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15518 Add load_image_func, unload_image_func.
15519 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15520 Remove offload_regions_registered.
15521 (gomp_init_tables): Remove.
15522 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15524 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15525 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15526 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15527 offload_regions_registered.
15528 Initialize load_image_func, unload_image_func, mem_map.root.
15529 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15530 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15531 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15532 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15533 gomp_memory_mapping *. Use dev's lock and splay_tree.
15534 (lookup_dev): Use dev's lock.
15535 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15536 (acc_is_present): Likewise.
15537 (acc_map_data): Likewise.
15538 (acc_unmap_data): Likewise. Use dev's lock.
15539 (present_create_copy): Likewise.
15540 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15541 (update_dev_host): Likewise.
15542 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15543 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15544 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15545 (GOMP_OFFLOAD_get_table): Remove
15546 (GOMP_OFFLOAD_load_image): New function.
15547 (GOMP_OFFLOAD_unload_image): New function.
15548 * target.c (register_lock): New mutex for offload image registration.
15549 (num_devices): Do not guard with PLUGIN_SUPPORT.
15550 (gomp_realloc_unlock): New static function.
15551 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15553 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15554 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15555 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15557 (gomp_unmap_vars): Likewise.
15558 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15559 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15560 (gomp_offload_image_to_device): New static function.
15561 (GOMP_offload_register): Add mutex lock.
15562 Call gomp_offload_image_to_device for all initialized devices.
15563 Replace gomp_realloc with gomp_realloc_unlock.
15564 (GOMP_offload_unregister): New function.
15565 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15566 get_table_func from the plugin with calls to init_device_func and
15567 gomp_offload_image_to_device.
15568 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15570 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15571 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15572 (GOMP_target_data): Do not call gomp_init_tables.
15573 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15574 (gomp_load_plugin_for_device): Replace register_image and get_table
15575 with load_image and unload_image in DLSYM ().
15576 (gomp_register_images_for_device): Remove function.
15577 (gomp_target_init): Do not initialize current_device.mem_map.*,
15578 current_device.offload_regions_registered.
15579 Remove call to gomp_register_images_for_device.
15580 Do not free offload_images and num_offload_images.
15582 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15585 * testsuite/libgomp.fortran/pr65597.f90: New test.
15587 2015-03-27 Tom de Vries <tom@codesourcery.com>
15590 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15591 (init, check): New function.
15592 (foo): Change return type to void.
15593 (main): Call init and check.
15595 2015-03-27 Tom de Vries <tom@codesourcery.com>
15598 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15599 (foo): Use M for non-inner loops to scale down test-case.
15601 2015-03-25 Kai Tietz <ktietz@redhat.com>
15604 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15605 (GOACC_data_start): Likewise.
15606 * target.c (gomp_map_vars): Likewise.
15608 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15610 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15613 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15615 * testsuite/libgomp.c/target-10.c: New test.
15616 * testsuite/libgomp.c++/target-4.C: New test.
15618 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15620 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15621 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15623 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15625 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15626 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15627 (pthread.h): Check for this header file.
15628 * configure: Regenerate.
15630 2015-02-25 Tom de Vries <tom@codesourcery.com>
15632 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15633 (check_reduction_op, check_reduction_macro, max, min):
15635 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15637 (main): Use new functions.
15639 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15641 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15642 char * for variables holding dlerror return values.
15643 (DLSYM_OPT): Ditto.
15645 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15647 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15649 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15650 Cesar Philippidis <cesar@codesourcery.com>
15652 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15653 GOACC_ctaid, and GOACC_nctaid routines.
15655 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15658 * testsuite/libgomp.c/atomic-18.c: New test.
15659 * testsuite/libgomp.c++/atomic-16.C: New test.
15661 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15665 * testsuite/libgomp.c/pr64824.c: New test.
15666 * testsuite/libgomp.c/pr64868.c: New test.
15667 * testsuite/libgomp.c++/pr64824.C: New test.
15668 * testsuite/libgomp.c++/pr64868.C: New test.
15670 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15673 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15674 Link with -lpthread.
15675 * config/aix/plugin-suffix.h: Delete.
15677 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15680 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15681 (*-*-darwin*): Use config_path "bsd darwin posix".
15682 (*-*-hpux*): Use config_path "hpux posix".
15683 * target.c: Add include of plugin-suffix.h and use
15684 SONAME_SUFFIX macro.
15685 * config/aix/plugin-suffix.h: New file.
15686 * config/darwin/plugin-suffix.h: New file.
15687 * config/hpux/plugin-suffix.h: New file.
15688 * config/posix/plugin-suffix.h: New file.
15690 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15692 PR middle-end/64734
15693 * libgomp.c/pr64734.c: New test.
15695 2015-01-23 Tom de Vries <tom@codesourcery.com>
15698 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15700 2015-01-23 Tom de Vries <tom@codesourcery.com>
15703 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15706 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15709 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15710 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15711 formal parameter. Update all users.
15712 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15713 Document unused formal parameter.
15715 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15717 * oacc-parallel.c: Don't include <alloca.h>.
15718 (GOACC_parallel): Use gomp_alloca instead of alloca.
15720 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15722 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15724 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15725 James Norris <jnorris@codesourcery.com>
15726 Tom de Vries <tom@codesourcery.com>
15727 Julian Brown <julian@codesourcery.com>
15728 Cesar Philippidis <cesar@codesourcery.com>
15729 Nathan Sidwell <nathan@codesourcery.com>
15730 Tobias Burnus <burnus@net-b.de>
15732 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15733 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15734 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15735 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15736 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15737 Include $(top_srcdir)/plugin/Makefrag.am.
15738 (nodist_libsubinclude_HEADERS): Add openacc.h.
15739 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15740 openacc.f90, openacc.mod, openacc_kinds.mod.
15741 (omp_lib.mod): Generalize into...
15742 (%.mod): ... this new rule.
15743 (openacc_kinds.mod, openacc.mod): New rules.
15744 * plugin/configfrag.ac: New file.
15745 * configure.ac: Move plugin/offloading support into it. Include
15746 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15747 * plugin/Makefrag.am: New file.
15748 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15749 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15751 (libgomp-test-support.exp): New rule.
15752 (all-local): Depend on it.
15753 * Makefile.in: Regenerate.
15754 * testsuite/Makefile.in: Regenerate.
15755 * config.h.in: Likewise.
15756 * configure: Likewise.
15757 * configure.tgt: Harden shell syntax.
15758 * env.c: Include "oacc-int.h".
15759 (parse_acc_device_type): New function.
15760 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15762 (initialize_env): Initialize those. Call
15763 goacc_runtime_initialize.
15764 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15765 (gomp_fatal): Call gomp_vfatal.
15766 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15767 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15768 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15769 (splay_tree_node, splay_tree, splay_tree_key)
15770 (struct target_mem_desc, struct splay_tree_key_s)
15771 (struct gomp_memory_mapping, struct acc_dispatch_t)
15772 (struct gomp_device_descr, gomp_acc_insert_pointer)
15773 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15774 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15775 (gomp_free_memmap, gomp_fini_device): New declarations.
15776 (gomp_vdebug, gomp_debug): New macros.
15777 Include "splay-tree.h".
15778 * libgomp.map (OACC_2.0): New symbol version. Use for
15779 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15780 acc_set_device_type_h_, acc_get_device_type,
15781 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15782 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15783 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15784 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15785 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15786 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15787 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15788 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15789 acc_copyin_array_h_, acc_present_or_copyin,
15790 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15791 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15792 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15793 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15794 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15795 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15796 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15797 acc_update_device, acc_update_device_32_h_,
15798 acc_update_device_64_h_, acc_update_device_array_h_,
15799 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15800 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15801 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15802 acc_is_present_64_h_, acc_is_present_array_h_,
15803 acc_memcpy_to_device, acc_memcpy_from_device,
15804 acc_get_current_cuda_device, acc_get_current_cuda_context,
15805 acc_get_cuda_stream, acc_set_cuda_stream.
15806 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15807 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15808 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15809 GOACC_get_num_threads.
15810 (GOMP_PLUGIN_1.0): New symbol version. Use for
15811 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15812 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15813 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15814 GOMP_PLUGIN_acc_thread.
15815 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15816 environment variable.
15817 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15818 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15819 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15820 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15821 (splay_tree_remove): New declarations.
15822 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15823 (splay_tree_remove, splay_tree_lookup): Move into...
15824 * splay-tree.c: ... this new file.
15825 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15826 (splay_tree_node, splay_tree, splay_tree_key)
15827 (struct target_mem_desc, struct splay_tree_key_s)
15828 (struct gomp_device_descr): Don't declare.
15829 (num_devices_openmp): New variable.
15830 (gomp_get_num_devices ): Use it.
15831 (gomp_init_targets_once): New function.
15832 (gomp_get_num_devices ): Use it.
15833 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15834 (gomp_fini_device, gomp_register_image_for_device): New functions.
15835 (gomp_map_vars): Add devaddrs parameter.
15836 (gomp_update): Add mm parameter.
15837 (gomp_init_device): Move most of it into...
15838 (gomp_init_tables): ... this new function.
15839 (gomp_register_images_for_device): Remove function.
15840 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15841 Make them hidden instead of static.
15842 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15843 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15844 (GOMP_target_end_data, GOMP_target_update)
15845 (gomp_load_plugin_for_device, gomp_target_init): Update for
15847 * oacc-async.c: New file.
15848 * oacc-cuda.c: Likewise.
15849 * oacc-host.c: Likewise.
15850 * oacc-init.c: Likewise.
15851 * oacc-int.h: Likewise.
15852 * oacc-mem.c: Likewise.
15853 * oacc-parallel.c: Likewise.
15854 * oacc-plugin.c: Likewise.
15855 * oacc-plugin.h: Likewise.
15856 * oacc-ptx.h: Likewise.
15857 * openacc.f90: Likewise.
15858 * openacc.h: Likewise.
15859 * openacc_lib.h: Likewise.
15860 * plugin/plugin-host.c: Likewise.
15861 * plugin/plugin-nvptx.c: Likewise.
15862 * libgomp-plugin.c: Likewise.
15863 * libgomp-plugin.h: Likewise.
15864 * libgomp_target.h: Remove file after merging content into the
15865 former file. Update all users.
15866 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15867 (offload_targets_s, offload_targets_s_openacc): New variables.
15868 (check_effective_target_openacc_nvidia_accel_present)
15869 (check_effective_target_openacc_nvidia_accel_selected): New
15871 (libgomp_init): Update for OpenACC changes.
15872 * testsuite/libgomp-test-support.exp.in: New file.
15873 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15874 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15875 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15876 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15877 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15878 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15879 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15880 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15881 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15882 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15883 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15884 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15885 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15886 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15887 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15888 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15889 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15890 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15891 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15892 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15893 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15894 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15895 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15896 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15897 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15898 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15899 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15900 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15901 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15902 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15903 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15904 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15905 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15906 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15907 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15908 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15909 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15910 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15911 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15912 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15913 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15914 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15915 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15916 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15917 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15918 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15919 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15920 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15921 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15922 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15923 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15924 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15925 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15926 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15927 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15928 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15929 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15930 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15931 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15932 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15933 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15934 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15935 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15936 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15937 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15938 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15939 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15940 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15941 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15942 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15943 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15944 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15945 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15946 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15947 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15948 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15949 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15950 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15951 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15952 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15953 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15954 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15955 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15956 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15957 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15958 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15959 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15960 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15961 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15962 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15963 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15964 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15965 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15966 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15967 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15968 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15969 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15970 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15971 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15972 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15973 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15974 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15975 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15976 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15977 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15978 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15979 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15980 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15981 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15982 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15983 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15984 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15985 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15986 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15987 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15988 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15989 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15990 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15991 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15992 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15993 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15994 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15995 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15996 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15997 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15998 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15999 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16000 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16001 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16002 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16003 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16004 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16005 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16006 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16007 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16008 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16009 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16010 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16011 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16012 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16014 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16015 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16016 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16017 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16018 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16019 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16020 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16021 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16022 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16023 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16024 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16025 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16026 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16027 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16028 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16029 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16030 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16031 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16032 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16033 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16034 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16035 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16036 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16037 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16038 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16039 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16040 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16041 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16042 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16043 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16044 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16045 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16046 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16047 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16048 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16049 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16050 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16051 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16052 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16053 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16054 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16055 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16056 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16057 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16058 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16059 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16060 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16061 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16062 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16063 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16064 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16065 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16066 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16067 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16068 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16069 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16070 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16071 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16072 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16073 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16075 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16076 Julian Brown <julian@codesourcery.com>
16077 David Malcolm <dmalcolm@redhat.com>
16079 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16080 to "GNU Offloading and Multi Processing Runtime Library". Change
16082 * configure: Regenerate.
16083 * libgomp.texi: Update.
16085 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16087 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16089 * configure: Regenerate.
16091 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16092 "intelmic" in $offload_targets.
16094 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16096 Update copyright years.
16098 * libgomp.texi: Bump @copying's copyright year.
16100 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16102 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16103 Move load of target-supports.exp earlier.
16105 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16107 * testsuite/libgomp.c/target-9.c: New test.
16109 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16111 * config.h.in: Regenerate.
16112 * configure: Regenerate.
16113 * configure.ac: Add GCC_CHECK_EMUTLS.
16114 * libgomp.h: Add check for USE_EMUTLS: this case
16115 is equal to HAVE_TLS.
16116 * team.c: Likewise.
16118 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16120 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16122 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16123 Ilya Verbin <ilya.verbin@intel.com>
16125 * testsuite/libgomp.c/target-critical-1.c: New test.
16127 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16129 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16130 to dg-options unless expensive testing is on.
16131 (TESTITERS): Define to N if not defined.
16132 (main): Use TESTITERS instead of N.
16133 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16134 dg-additional-options depending on whether expensive testing is on.
16135 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16136 Decrease N to 100000 and CHUNKSZ to 10000.
16138 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16141 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16142 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16144 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16146 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16148 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16151 * configure: Regenerated.
16153 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16155 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16156 vect_simd_clones effective target.
16157 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16159 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16161 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16162 of 32 as block_size.
16163 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16164 instead of 32 as block_size.
16166 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16167 Ilya Verbin <ilya.verbin@intel.com>
16169 * Makefile.in: Regenerate.
16170 * configure: Regenerate.
16171 * configure.ac: Set up offload_additional_options,
16172 offload_additional_lib_paths and offload_targets.
16173 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16174 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16175 * testsuite/Makefile.in: Regenerate.
16176 * testsuite/lib/libgomp.exp (libgomp_init): Append
16177 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16178 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16179 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16181 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16182 Ilya Verbin <ilya.verbin@intel.com>
16183 Kirill Yukhin <kirill.yukhin@intel.com>
16184 Ilya Tocar <ilya.tocar@intel.com>
16186 * testsuite/lib/libgomp.exp
16187 (check_effective_target_offload_device): New.
16188 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16189 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16190 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16191 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16192 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16193 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16194 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16195 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16196 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16197 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16198 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16199 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16200 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16201 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16202 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16203 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16204 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16205 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16206 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16207 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16208 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16209 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16210 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16211 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16212 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16213 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16214 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16215 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16216 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16217 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16218 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16219 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16220 * testsuite/libgomp.c/target-7.c: Fix test.
16221 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16222 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16223 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16224 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16225 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16226 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16227 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16228 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16229 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16230 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16231 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16232 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16233 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16234 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16235 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16236 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16237 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16238 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16239 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16240 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16241 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16242 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16243 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16244 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16245 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16246 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16247 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16248 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16249 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16250 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16251 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16253 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16254 Ilya Verbin <ilya.verbin@intel.com>
16255 Thomas Schwinge <thomas@codesourcery.com>
16256 Andrey Turetskiy <andrey.turetskiy@intel.com>
16258 * libgomp.map (GOMP_4.0.1): New symbol version.
16259 Add GOMP_offload_register.
16260 * libgomp_target.h: New file.
16261 * splay-tree.h: New file.
16262 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16263 (gomp_target_init): New forward declaration.
16264 (gomp_is_initialized): New static variable.
16265 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16266 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16268 (offload_images, num_offload_images, devices, num_devices): New static
16270 (splay_compare): New static function.
16271 (struct gomp_device_descr): New structure.
16272 (gomp_get_num_devices): Call gomp_target_init.
16273 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16274 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16275 (GOMP_offload_register): New function.
16276 (GOMP_target): Arrange for host callback to be performed in a separate
16277 initial thread and contention group, inheriting ICVs from
16278 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16279 Add device initialization and lookup for target function in splay tree.
16280 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16281 (GOMP_target_end_data): Call gomp_unmap_vars.
16282 (GOMP_target_update): Add device initialization and call gomp_update.
16283 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16284 (gomp_target_init): New static functions.
16286 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16287 Thomas Schwinge <thomas@codesourcery.com>
16288 Ilya Verbin <ilya.verbin@intel.com>
16289 Andrey Turetskiy <andrey.turetskiy@intel.com>
16291 * config.h.in: Regenerate.
16292 * configure: Regenerate.
16293 * configure.ac: Check for libdl, required for plugin support.
16294 (PLUGIN_SUPPORT): Define if plugins are supported.
16295 (enable_offload_targets): Support Intel MIC targets.
16296 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16298 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16301 * configure: Regenerate.
16303 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16305 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16307 2014-10-06 Marek Polacek <polacek@redhat.com>
16309 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16310 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16311 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16312 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16314 2014-10-06 Marek Polacek <polacek@redhat.com>
16316 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16317 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16318 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16319 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16320 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16321 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16322 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16323 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16324 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16325 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16326 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16327 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16328 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16329 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16330 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16331 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16332 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16333 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16336 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16339 * testsuite/libgomp.c/pr61200.c: New test.
16341 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16344 * testsuite/libgomp.c++/pr63248.C: New test.
16346 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16348 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16349 is not zero, but taskgroup->children is NULL and there are
16350 any task->children, schedule those instead of waiting.
16351 * testsuite/libgomp.c/depend-6.c: New test.
16352 * testsuite/libgomp.c/depend-7.c: New test.
16353 * testsuite/libgomp.c/depend-8.c: New test.
16354 * testsuite/libgomp.c/depend-9.c: New test.
16355 * testsuite/libgomp.c/depend-10.c: New test.
16357 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16359 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16360 (struct gomp_taskwait): New type.
16361 (struct gomp_task): Add taskwait and parent_depends_on, remove
16362 in_taskwait and taskwait_sem fields.
16363 (gomp_finish_task): Don't destroy taskwait_sem.
16364 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16365 taskwait and parent_depends_on.
16366 (GOMP_task): For if (0) tasks with depend clause that depend on
16367 earlier tasks don't defer them, instead call
16368 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16369 Initialize redundant_out field, for redundant out entries just
16370 move them at the end of linked list instead of removing them
16371 completely, and set redundant_out flag instead of redundant.
16372 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16374 (gomp_task_run_post_handle_dependers): If parent is in
16375 gomp_task_maybe_wait_for_dependencies and newly runnable task
16376 is not parent_depends_on, queue it in parent->children linked
16377 list after all runnable tasks with parent_depends_on set.
16378 Adjust for addition of taskwait indirection.
16379 (gomp_task_run_post_remove_parent): If parent is in
16380 gomp_task_maybe_wait_for_dependencies and task to be removed
16381 is parent_depends_on, decrement n_depend and if needed awake
16382 parent. Adjust for addition of taskwait indirection.
16383 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16384 (gomp_task_maybe_wait_for_dependencies): New function.
16385 * testsuite/libgomp.c/depend-5.c: New test.
16387 2014-07-13 Tobias Burnus <burnus@net-b.de>
16389 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16390 with TS 18508/Fortran 2015.
16392 2014-07-06 Marek Polacek <polacek@redhat.com>
16395 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16397 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16399 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16400 matches regex $lang_source_re, add $lang_include_flags to options.
16401 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16402 * testsuite/libgomp.c++/c++.exp: Likewise.
16403 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16404 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16406 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16408 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16410 * testsuite/libgomp.fortran/fortran.exp: Explain
16411 gfortran-dg-runtest usage.
16413 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16415 * testsuite/libgomp.fortran/simd5.f90: New test.
16416 * testsuite/libgomp.fortran/simd6.f90: New test.
16417 * testsuite/libgomp.fortran/simd7.f90: New test.
16419 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16421 * testsuite/libgomp.c/for-2.c: Define SC to static for
16422 #pragma omp for simd testing.
16423 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16424 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16426 * testsuite/libgomp.c/simd-14.c: New test.
16427 * testsuite/libgomp.c/simd-15.c: New test.
16428 * testsuite/libgomp.c/simd-16.c: New test.
16429 * testsuite/libgomp.c/simd-17.c: New test.
16430 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16431 #pragma omp for simd testing.
16432 * testsuite/libgomp.c++/simd10.C: New test.
16433 * testsuite/libgomp.c++/simd11.C: New test.
16434 * testsuite/libgomp.c++/simd12.C: New test.
16435 * testsuite/libgomp.c++/simd13.C: New test.
16437 * testsuite/libgomp.fortran/aligned1.f03: New test.
16438 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16439 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16440 tasks with !$omp parallel !$omp single.
16441 * testsuite/libgomp.fortran/target8.f90: New test.
16442 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16443 not to use trim in the combiner, instead call elemental function.
16444 (fn): New elemental function.
16445 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16447 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16449 * testsuite/libgomp.fortran/udr12.f90: New test.
16450 * testsuite/libgomp.fortran/udr13.f90: New test.
16451 * testsuite/libgomp.fortran/udr14.f90: New test.
16452 * testsuite/libgomp.fortran/udr15.f90: New test.
16454 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16456 * omp_lib.f90.in (openmp_version): Set to 201307.
16457 * omp_lib.h.in (openmp_version): Likewise.
16458 * testsuite/libgomp.c/target-8.c: New test.
16459 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16460 and inbranch clauses.
16461 * testsuite/libgomp.fortran/depend-3.f90: New test.
16462 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16464 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16465 * testsuite/libgomp.fortran/target1.f90: New test.
16466 * testsuite/libgomp.fortran/target2.f90: New test.
16467 * testsuite/libgomp.fortran/target3.f90: New test.
16468 * testsuite/libgomp.fortran/target4.f90: New test.
16469 * testsuite/libgomp.fortran/target5.f90: New test.
16470 * testsuite/libgomp.fortran/target6.f90: New test.
16471 * testsuite/libgomp.fortran/target7.f90: New test.
16473 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16476 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16477 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16478 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16479 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16480 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16481 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16482 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16483 * testsuite/libgomp.fortran/associate1.f90: New test.
16484 * testsuite/libgomp.fortran/associate2.f90: New test.
16485 * testsuite/libgomp.fortran/procptr1.f90: New test.
16487 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16489 * testsuite/libgomp.fortran/simd1.f90: New test.
16490 * testsuite/libgomp.fortran/udr1.f90: New test.
16491 * testsuite/libgomp.fortran/udr2.f90: New test.
16492 * testsuite/libgomp.fortran/udr3.f90: New test.
16493 * testsuite/libgomp.fortran/udr4.f90: New test.
16494 * testsuite/libgomp.fortran/udr5.f90: New test.
16495 * testsuite/libgomp.fortran/udr6.f90: New test.
16496 * testsuite/libgomp.fortran/udr7.f90: New test.
16497 * testsuite/libgomp.fortran/udr8.f90: New test.
16498 * testsuite/libgomp.fortran/udr9.f90: New test.
16499 * testsuite/libgomp.fortran/udr10.f90: New test.
16500 * testsuite/libgomp.fortran/udr11.f90: New test.
16502 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16504 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16505 vect_simd_clones effective target.
16506 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16508 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16510 PR middle-end/61252
16511 * testsuite/libgomp.c++/simd-9.C: New test.
16513 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16515 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16516 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16517 texts according to their @menu entry positions.
16519 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16521 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16522 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16523 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16524 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16525 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16526 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16527 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16528 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16529 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16530 * testsuite/libgomp.fortran/depend-1.f90: New test.
16531 * testsuite/libgomp.fortran/depend-2.f90: New test.
16532 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16533 * testsuite/libgomp.fortran/simd1.f90: New test.
16534 * testsuite/libgomp.fortran/simd2.f90: New test.
16535 * testsuite/libgomp.fortran/simd3.f90: New test.
16536 * testsuite/libgomp.fortran/simd4.f90: New test.
16537 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16539 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16541 * testsuite/libgomp.c/simd-10.c: New test.
16542 * testsuite/libgomp.c/simd-11.c: New test.
16543 * testsuite/libgomp.c/simd-12.c: New test.
16544 * testsuite/libgomp.c/simd-13.c: New test.
16546 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16548 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16549 atomic type clauses in any order and optional comma in between.
16550 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16551 * testsuite/libgomp.c/atomic-17.c: Likewise.
16553 * testsuite/libgomp.c/simd-7.c: New test.
16554 * testsuite/libgomp.c/simd-8.c: New test.
16555 * testsuite/libgomp.c/simd-9.c: New test.
16556 * testsuite/libgomp.c/loop-16.c: New test.
16558 2014-04-02 Richard Henderson <rth@redhat.com>
16560 * config/linux/futex.h (futex_wait): Get error value from errno.
16561 (futex_wake): Likewise.
16563 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16566 * testsuite/libgomp.c++/udr-11.C: New test.
16567 * testsuite/libgomp.c++/udr-12.C: New test.
16568 * testsuite/libgomp.c++/udr-13.C: New test.
16569 * testsuite/libgomp.c++/udr-14.C: New test.
16570 * testsuite/libgomp.c++/udr-15.C: New test.
16571 * testsuite/libgomp.c++/udr-16.C: New test.
16572 * testsuite/libgomp.c++/udr-17.C: New test.
16573 * testsuite/libgomp.c++/udr-18.C: New test.
16574 * testsuite/libgomp.c++/udr-19.C: New test.
16576 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16578 Update copyright years
16580 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16582 * hashtab.h: Use the standard form for the copyright notice.
16584 2014-01-02 Tobias Burnus <burnus@net-b.de>
16586 * libgomp.texi: Bump @copying's copyright year.
16588 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16590 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16591 alloca () with __builtin_alloca ().
16592 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16593 * testsuite/libgomp.c/lock-3.c: Likewise.
16594 * testsuite/libgomp.c/pr48591.c: Likewise.
16596 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16599 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16602 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16605 * testsuite/libgomp.c/pr58756.c: New test.
16607 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16610 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16613 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16615 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16617 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16618 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16619 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16620 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16623 * libgomp_g.h: Include <stddef.h> for size_t.
16625 * libgomp.spec.in: Update comment about libgomp's dependencies.
16626 * configure.ac: Likewise.
16627 * configure: Regenerate.
16629 2013-10-16 Tobias Burnus <burnus@net-b.de>
16631 * libgomp.texi: (Runtime Library Routines): Update references for
16632 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16633 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16634 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16635 (Environment Variables): Update references for OpenMP 4.0. Add
16636 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16637 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16640 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16642 * env.c (parse_bind_var): Initialize value to avoid
16643 (false positive) warning.
16645 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16648 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16650 (gomp_init_num_threads): Move i variable declaration into
16651 #ifdef CPU_ALLOC_SIZE block.
16652 * config/linux/affinity.c (gomp_affinity_init_level): Test
16653 gomp_places_list_len == 0 rather than gomp_places_list == 0
16654 when checking for topology reading error.
16655 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16656 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16657 gomp_places_list, only parse env var and always return false.
16658 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16659 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16660 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16661 and either of these variables were parsed correctly into a places
16664 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16665 Jakub Jelinek <jakub@redhat.com>
16667 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16668 of 5 loopfn matches.
16669 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16670 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16671 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16672 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16673 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16674 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16675 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16676 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16678 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16680 * Makefile.am (omp_lib.mod): Streamline rule.
16681 * Makefile.in: Regenerate.
16683 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16686 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16687 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16688 * testsuite/libgomp.fortran/lib2.f: Likewise.
16689 * testsuite/libgomp.fortran/lib3.f: Likewise.
16691 * configure.ac: Typo fix.
16692 * configure: Regenerate.
16694 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16695 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16697 * omp.h.in: Don't touch the user's namespace.
16699 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16700 Tobias Burnus <burnus@net-b.de>
16701 Richard Henderson <rth@redhat.com>
16703 * target.c: New file.
16704 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16705 * Makefile.in: Regenerated.
16706 * libgomp_g.h (GOMP_task): Add depend argument.
16707 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16708 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16709 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16710 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16711 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16712 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16713 GOMP_taskgroup_start, GOMP_taskgroup_end,
16714 GOMP_parallel_sections): New prototypes.
16715 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16716 (omp_is_initial_device_): New function.
16717 (ULP, STR1, STR2, ialias_redirect): Removed.
16718 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16719 omp_set_default_device_8_, omp_get_default_device_,
16720 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16722 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16723 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16724 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16726 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16727 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16728 omp_set_default_device, omp_set_default_device_,
16729 omp_set_default_device_8_, omp_get_default_device,
16730 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16731 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16732 omp_get_team_num_): Export @@OMP_4.0.
16733 * team.c (struct gomp_thread_start_data): Add place field.
16734 (gomp_thread_start): Clear thr->thread_pool and
16735 thr->task before returning. Use gomp_team_barrier_wait_final
16736 instead of gomp_team_barrier_wait. Initialize thr->place.
16737 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16738 team_cancelled and task_queued_count fields.
16739 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16740 before calling pthread_exit.
16741 (gomp_free_thread): No longer static. Use
16742 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16743 (gomp_team_start): Add flags argument. Set
16744 thr->thread_pool->threads_busy to nthreads immediately after creating
16745 new pool. Use gomp_managed_threads_lock instead of
16746 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16747 (gomp_team_end): Use gomp_managed_threads_lock instead of
16748 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16749 of gomp_team_barrier_wait. If team->team_cancelled, call
16750 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16751 rather than thr->ts.work_share.
16752 (initialize_team): Don't call gomp_sem_init here.
16753 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16755 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16756 * env.c (gomp_global_icv): Add default_device_var, target_data and
16757 bind_var initializers.
16758 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16759 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16760 gomp_places_list_len): New variables.
16761 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16762 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16764 (gomp_cancel_var): New global variable.
16765 (parse_int): New function.
16766 (handle_omp_display_env): New function.
16767 (initialize_env): Use it. Initialize default_device_var.
16768 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16769 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16770 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16771 been successfully parsed (and call gomp_init_affinity in that case).
16772 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16773 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16774 omp_get_team_num, omp_is_initial_device): New functions.
16775 * libgomp.h: Include stdlib.h.
16776 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16778 (struct target_mem_desc): Forward declare.
16779 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16780 and thread_limit_var fields.
16781 (gomp_get_num_devices): New prototype.
16782 (gomp_cancel_var): New extern decl.
16783 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16784 team_cancelled and task_queued_count fields. Add comments about
16785 task_{,queued_,running_}count.
16786 (gomp_cancel_kind): New enum.
16787 (gomp_work_share_end_cancel): New prototype.
16788 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16789 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16791 (struct gomp_taskgroup): New type.
16792 (struct gomp_task_depend_entry,
16793 struct gomp_dependers_vec): New types.
16794 (gomp_finish_task): Free depend_hash if non-NULL.
16795 (struct gomp_team_state): Add place_partition_off
16796 and place_partition_len fields.
16797 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16798 gomp_places_list_len): New extern decls.
16799 (struct gomp_thread): Add place field.
16800 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16801 (gomp_init_thread_affinity): Add place argument.
16802 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16803 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16804 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16805 gomp_affinity_init_level, gomp_affinity_print_place): New
16807 (gomp_team_start): Add flags argument.
16808 (gomp_thread_limit_var, gomp_remaining_threads_count,
16809 gomp_remaining_threads_lock): Remove.
16810 (gomp_managed_threads_lock): New variable.
16811 (struct gomp_thread_pool): Add threads_busy field.
16812 (gomp_free_thread): New prototype.
16813 * task.c: Include hashtab.h.
16814 (hash_entry_type): New typedef.
16815 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16816 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16817 copy_ctors_done and taskgroup fields.
16818 (GOMP_task): Add depend argument, handle depend clauses. If
16819 gomp_team_barrier_cancelled or if it's taskgroup has been
16820 cancelled, don't queue or start new tasks. Set copy_ctors_done
16821 field if needed. Initialize taskgroup field. If copy_ctors_done
16822 and already cancelled, don't discard the task. If taskgroup is
16823 non-NULL, enqueue the task into taskgroup queue. Increment
16824 num_children field in taskgroup. Increment task_queued_count.
16825 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16826 gomp_task_run_post_remove_taskgroup): New inline functions.
16827 (gomp_task_run_post_handle_depend_hash,
16828 gomp_task_run_post_handle_dependers,
16829 gomp_task_run_post_handle_depend): New functions.
16830 (GOMP_taskwait): Use them. If more than one new tasks
16831 have been queued, wake other threads if needed.
16832 (gomp_barrier_handle_tasks): Likewise. If
16833 gomp_team_barrier_cancelled, don't start any new tasks, just free
16835 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16837 (omp_proc_bind_kind, omp_proc_bind_false,
16838 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16839 omp_proc_bind_spread): New params.
16840 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16841 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16842 omp_get_team_num, omp_is_initial_device): New interfaces.
16843 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16844 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16845 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16846 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16847 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16848 useless use omp_lib_kinds.
16849 * omp.h.in (omp_proc_bind_t): New typedef.
16850 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16851 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16852 omp_get_team_num, omp_is_initial_device): New prototypes.
16853 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16854 through to gomp_team_start.
16855 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16856 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16857 Adjust gomp_parallel_loop_start callers.
16858 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16859 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16860 GOMP_loop_end_cancel): New functions.
16861 (GOMP_parallel_end): Add ialias_redirect.
16862 * hashtab.h: New file.
16863 * libgomp.texi (Environment Variables): Minor cleanup,
16864 update section refs to OpenMP 4.0rc2.
16865 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16866 environment variables.
16867 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16868 team->work_shares_to_free to thr->ts.work_share before calling
16870 (gomp_work_share_end_cancel): New function.
16871 * config/linux/proc.c: Include errno.h.
16872 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16873 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16874 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16875 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16876 gomp_cpuset_size is sizeof (cpu_set_t).
16877 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16878 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16879 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16880 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16881 contain any logical CPUs.
16882 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16883 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16884 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16885 pthread_getaffinity_np. Check gomp_places_list instead of
16886 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16887 * config/linux/bar.c (gomp_barrier_wait_end,
16888 gomp_barrier_wait_last): Use BAR_* defines.
16889 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16890 from state where needed. Set work_share_cancelled to 0 on last
16892 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16893 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16895 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16896 Add cpusetsize argument.
16897 (gomp_cpuset_size, gomp_cpusetp): Declare.
16898 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16899 (affinity_counter): Remove.
16900 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16901 if CPU_ALLOC_SIZE isn't defined.
16902 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16903 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16904 bind current thread to the first place.
16905 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16906 pthread_setaffinity_np to gomp_places_list[place].
16907 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16908 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16909 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16910 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16911 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16912 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16913 (gomp_barrier_t): Add awaited_final field.
16914 (gomp_barrier_init): Initialize awaited_final field.
16915 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16916 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16918 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16920 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16921 gomp_team_barrier_cancelled): New inline functions.
16922 (gomp_barrier_last_thread,
16923 gomp_team_barrier_set_task_pending,
16924 gomp_team_barrier_clear_task_pending,
16925 gomp_team_barrier_set_waiting_for_tasks,
16926 gomp_team_barrier_waiting_for_tasks,
16927 gomp_team_barrier_done): Use BAR_* defines.
16928 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16929 (gomp_barrier_wait_end): Use BAR_* defines.
16930 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16931 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16933 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16934 gomp_team_barrier_cancel): New functions.
16935 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16937 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16938 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16939 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16940 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16941 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16942 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16943 (gomp_barrier_t): Add cancellable field.
16944 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16945 gomp_team_barrier_cancel): New prototypes.
16946 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16947 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16948 gomp_team_barrier_cancelled): New inline functions.
16949 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16950 gomp_team_barrier_set_task_pending,
16951 gomp_team_barrier_clear_task_pending,
16952 gomp_team_barrier_set_waiting_for_tasks,
16953 gomp_team_barrier_waiting_for_tasks,
16954 gomp_team_barrier_done): Use BAR_* defines.
16955 * barrier.c (GOMP_barrier_cancel): New function.
16956 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16957 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16958 omp_proc_bind_spread): New params.
16959 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16960 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16961 omp_get_team_num, omp_is_initial_device): New externals.
16962 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16964 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16965 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16966 infinity. If not nested, just return minimum of max_num_threads
16967 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16968 to the returned value. Otherwise, don't update atomically
16969 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16970 (GOMP_parallel_end): Adjust for thread_limit now being in
16971 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16972 infinity. Adjust threads_busy in the pool rather than
16973 gomp_remaining_threads_count. Remember team->nthreads and call
16974 gomp_team_end before adjusting threads_busy, if not nested
16975 afterwards, just set it to 1 non-atomically. Add ialias.
16976 (GOMP_parallel_start): Adjust gomp_team_start caller.
16977 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16978 * testsuite/libgomp.c/affinity-1.c: New test.
16979 * testsuite/libgomp.c/atomic-15.c: New test.
16980 * testsuite/libgomp.c/atomic-16.c: New test.
16981 * testsuite/libgomp.c/atomic-17.c: New test.
16982 * testsuite/libgomp.c/cancel-for-1.c: New test.
16983 * testsuite/libgomp.c/cancel-for-2.c: New test.
16984 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16985 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16986 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16987 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16988 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16989 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16990 * testsuite/libgomp.c/depend-1.c: New test.
16991 * testsuite/libgomp.c/depend-2.c: New test.
16992 * testsuite/libgomp.c/depend-3.c: New test.
16993 * testsuite/libgomp.c/depend-4.c: New test.
16994 * testsuite/libgomp.c/for-1.c: New test.
16995 * testsuite/libgomp.c/for-1.h: New file.
16996 * testsuite/libgomp.c/for-2.c: New test.
16997 * testsuite/libgomp.c/for-2.h: New file.
16998 * testsuite/libgomp.c/for-3.c: New test.
16999 * testsuite/libgomp.c/pr58392.c: New test.
17000 * testsuite/libgomp.c/simd-1.c: New test.
17001 * testsuite/libgomp.c/simd-2.c: New test.
17002 * testsuite/libgomp.c/simd-3.c: New test.
17003 * testsuite/libgomp.c/simd-4.c: New test.
17004 * testsuite/libgomp.c/simd-5.c: New test.
17005 * testsuite/libgomp.c/simd-6.c: New test.
17006 * testsuite/libgomp.c/target-1.c: New test.
17007 * testsuite/libgomp.c/target-2.c: New test.
17008 * testsuite/libgomp.c/target-3.c: New test.
17009 * testsuite/libgomp.c/target-4.c: New test.
17010 * testsuite/libgomp.c/target-5.c: New test.
17011 * testsuite/libgomp.c/target-6.c: New test.
17012 * testsuite/libgomp.c/target-7.c: New test.
17013 * testsuite/libgomp.c/taskgroup-1.c: New test.
17014 * testsuite/libgomp.c/thread-limit-1.c: New test.
17015 * testsuite/libgomp.c/thread-limit-2.c: New test.
17016 * testsuite/libgomp.c/thread-limit-3.c: New test.
17017 * testsuite/libgomp.c/udr-1.c: New test.
17018 * testsuite/libgomp.c/udr-2.c: New test.
17019 * testsuite/libgomp.c/udr-3.c: New test.
17020 * testsuite/libgomp.c++/affinity-1.C: New test.
17021 * testsuite/libgomp.c++/atomic-10.C: New test.
17022 * testsuite/libgomp.c++/atomic-11.C: New test.
17023 * testsuite/libgomp.c++/atomic-12.C: New test.
17024 * testsuite/libgomp.c++/atomic-13.C: New test.
17025 * testsuite/libgomp.c++/atomic-14.C: New test.
17026 * testsuite/libgomp.c++/atomic-15.C: New test.
17027 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17028 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17029 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17030 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17031 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17032 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17033 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17034 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17035 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17036 * testsuite/libgomp.c++/cancel-test.h: New file.
17037 * testsuite/libgomp.c++/for-9.C: New test.
17038 * testsuite/libgomp.c++/for-10.C: New test.
17039 * testsuite/libgomp.c++/for-11.C: New test.
17040 * testsuite/libgomp.c++/simd-1.C: New test.
17041 * testsuite/libgomp.c++/simd-2.C: New test.
17042 * testsuite/libgomp.c++/simd-3.C: New test.
17043 * testsuite/libgomp.c++/simd-4.C: New test.
17044 * testsuite/libgomp.c++/simd-5.C: New test.
17045 * testsuite/libgomp.c++/simd-6.C: New test.
17046 * testsuite/libgomp.c++/simd-7.C: New test.
17047 * testsuite/libgomp.c++/simd-8.C: New test.
17048 * testsuite/libgomp.c++/target-1.C: New test.
17049 * testsuite/libgomp.c++/target-2.C: New test.
17050 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17051 * testsuite/libgomp.c++/target-3.C: New test.
17052 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17053 * testsuite/libgomp.c++/udr-1.C: New test.
17054 * testsuite/libgomp.c++/udr-2.C: New test.
17055 * testsuite/libgomp.c++/udr-3.C: New test.
17056 * testsuite/libgomp.c++/udr-4.C: New test.
17057 * testsuite/libgomp.c++/udr-5.C: New test.
17058 * testsuite/libgomp.c++/udr-6.C: New test.
17059 * testsuite/libgomp.c++/udr-7.C: New test.
17060 * testsuite/libgomp.c++/udr-8.C: New test.
17061 * testsuite/libgomp.c++/udr-9.C: New test.
17063 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17066 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17069 2013-09-20 Alan Modra <amodra@gmail.com>
17071 * configure: Regenerate.
17073 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17075 * testsuite/libgomp.c/sections-2.c: New test.
17077 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17079 * testsuite/libgomp.fortran/strassen.f90:
17080 Add dg-skip-if aarch64_tiny.
17082 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17083 Cesar Philippidis <cesar@codesourcery.com>
17085 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17086 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17087 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17088 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17089 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17090 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17091 Use dg-runtest rather than gfortran-dg-runtest.
17093 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17095 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17096 Linux-based x86 systems to cover all GNU systems.
17097 * testsuite/libgomp.c/lock-3.c: Likewise.
17098 * testsuite/libgomp.c/pr48591.c: Likewise.
17100 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17102 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17103 GNU/Hurd, as done for Linux-based systems.
17105 * config/posix/ptrlock.h: Fix comment.
17107 2013-05-27 Tobias Burnus <burnus@net-b.de>
17110 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17111 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17112 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17113 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17114 omp_destroy_nest_lock): Correct arguments to match the one in
17116 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17117 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17118 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17119 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17121 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17123 * testsuite/libgomp.c/loop-13.c: New test.
17124 * testsuite/libgomp.c/loop-14.c: New test.
17125 * testsuite/libgomp.c/loop-15.c: New test.
17126 * testsuite/libgomp.c++/loop-13.C: New test.
17127 * testsuite/libgomp.c++/loop-14.C: New test.
17128 * testsuite/libgomp.c++/loop-15.C: New test.
17130 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17132 PR middle-end/56217
17133 * testsuite/libgomp.c++/pr56217.C: New test.
17135 2013-02-01 Alan Modra <amodra@gmail.com>
17137 * task.c (GOMP_task, GOMP_taskwait): Comment.
17139 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17140 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17143 * config/linux/wait.h (do_spin): Use atomic load for addr.
17144 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17145 for intptr and ptrlock.
17146 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17149 2013-01-22 Alan Modra <amodra@gmail.com>
17153 * task.c (GOMP_task): Revert 2011-12-09 change.
17154 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17155 barrier to read task->children..
17156 (gomp_barrier_handle_tasks): ..and matching atomic store with
17157 release barrier here when setting parent->children to NULL.
17159 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17160 Tobias Burnus <burnus@net-b.de>
17163 * testsuite/libgomp.fortran/fortran.exp: Use
17164 -fintrinsic-modules-path= instead of
17165 -fintrinsic-modules-path.
17167 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17169 Update copyright years.
17171 2012-12-19 Tobias Burnus <burnus@net-b.de>
17173 * testsuite/libgomp.fortran/fortran.exp: Set
17174 -fintrinsic-modules-path.
17176 2012-12-19 Tobias Burnus <burnus@net-b.de>
17178 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17179 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17181 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17184 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17185 if pool had any threads_used.
17187 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17189 * testsuite/libgomp.c++/pr24455.C: Use
17190 -Wl,-undefined,dynamic_lookup on darwin.
17192 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17194 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17196 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17198 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17200 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17201 Jim MacArthur <jim.macarthur@arm.com>
17202 Marcus Shawcroft <marcus.shawcroft@arm.com>
17203 Nigel Stephens <nigel.stephens@arm.com>
17204 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17205 Richard Earnshaw <rearnsha@arm.com>
17206 Sofiane Naci <sofiane.naci@arm.com>
17207 Stephen Thomas <stephen.thomas@arm.com>
17208 Tejas Belagod <tejas.belagod@arm.com>
17209 Yufeng Zhang <yufeng.zhang@arm.com>
17211 * configure.tgt: Add AArch64.
17213 2012-10-04 Jason Merrill <jason@redhat.com>
17215 * testsuite/libgomp.c++/tls-init1.C: New.
17217 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17219 * configure: Regenerated.
17221 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17223 * config/linux/mips/futex.h (sys_futex0): Change to static
17224 function with noinline, nomips16 attributes under MIPS16. Adjust
17225 asm statement to place 'li v0,SYS_futex' immediately before
17228 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17230 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17231 conflict with index.html on case-insensitive file systems.
17233 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17235 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17236 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17238 2012-07-02 Richard Guenther <rguenther@suse.de>
17239 Michael Matz <matz@suse.de>
17240 Tobias Grosser <tobias@grosser.es>
17241 Sebastian Pop <sebpop@gmail.com>
17243 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17244 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17245 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17246 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17248 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17250 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17252 2012-06-22 Richard Guenther <rguenther@suse.de>
17254 Merge from graphite branch
17255 2012-01-13 Tobias Grosser <tobias@grosser.es>
17257 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17258 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17260 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17262 PR middle-end/53580
17263 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17264 use GOMP_barrier () call instead.
17265 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17266 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17267 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17268 call GOMP_barrier instead.
17269 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17271 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17274 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17275 argument to memset call.
17277 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17279 * configure: Regenerated.
17281 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17283 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17285 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17288 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17290 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17292 PR middle-end/52547
17293 * testsuite/libgomp.c/pr52547.c: New test.
17295 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17297 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17299 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17301 * configure.tgt (mips-sgi-irix6*): Remove.
17303 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17305 * configure.tgt (alpha*-dec-osf*): Remove.
17307 * config/osf/sem.h: Remove.
17308 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17310 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17312 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17314 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17317 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17318 Remove ENABLE_SYMVERS_SOL2.
17319 * configure: Regenerate.
17320 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17321 (PREPROCESS): New variable.
17322 (libgomp.ver): New target.
17323 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17324 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17325 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17327 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17328 * Makefile.in: Regenerate.
17330 2012-02-14 Walter Lee <walt@tilera.com>
17332 * configure.tgt: Handle tilegx and tilepro.
17333 * config/linux/tile/futex.h: New file.
17335 2012-02-08 Richard Guenther <rguenther@suse.de>
17337 PR tree-optimization/46886
17338 * testsuite/libgomp.c/pr46886.c: New testcase.
17340 2012-01-25 Matthias Klose <doko@ubuntu.com>
17342 * config/linux/arm: Remove empty directory.
17343 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17345 2011-12-09 Alan Modra <amodra@gmail.com>
17348 * task.c (GOMP_taskwait): Don't access task->children outside of
17349 task_lock mutex region.
17350 (GOMP_task): Likewise.
17352 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17355 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17357 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17358 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17359 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17360 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17361 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17363 2011-12-02 Alan Modra <amodra@gmail.com>
17365 * config/linux/affinity.c: Use atomic rather than sync builtin.
17366 * config/linux/lock.c: Likewise.
17367 * config/linux/ptrlock.h: Likewise.
17368 * config/linux/ptrlock.c: Likewise.
17369 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17370 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17371 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17372 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17373 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17374 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17375 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17376 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17377 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17378 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17380 2011-11-30 Alan Modra <amodra@gmail.com>
17383 * config/linux/bar.h: Use atomic rather than sync builtins.
17384 * config/linux/bar.c: Likewise. Add missing acquire
17385 synchronisation on generation field.
17386 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17389 2011-11-30 Alan Modra <amodra@gmail.com>
17391 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17392 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17393 * config/linux/mutex.h: Use atomic rather than sync builtins.
17394 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17395 * config/linux/omp-lock.h: Comment fix.
17396 * config/linux/arm/mutex.h: Delete.
17397 * config/linux/powerpc/mutex.h: Delete.
17398 * config/linux/ia64/mutex.h: Delete.
17399 * config/linux/mips/mutex.h: Delete.
17401 2011-11-30 Alan Modra <amodra@gmail.com>
17404 * config/linux/sem.h: Rewrite.
17405 * config/linux/sem.c: Rewrite.
17407 2011-11-28 Richard Henderson <rth@redhat.com>
17409 * libgomp.h (enum memmodel): New.
17411 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17413 * configure: Regenerate.
17415 2011-10-10 Matthias Klose <doko@ubuntu.com>
17417 * config/posix95: Remove empty directory.
17419 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17421 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17423 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17426 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17427 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17429 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17431 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17433 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17436 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17438 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17440 * config/linux/proc.h: New.
17441 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17442 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17443 (gomp_init_num_threads): Update call to cpuset_popcount.
17444 (get_num_procs): Ditto.
17445 * config/linux/affinity.c (gomp_init_affinity): Call
17446 gomp_cpuset_popcount.
17448 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17452 * omp.h.in (omp_in_final): New prototype.
17453 * omp_lib.f90.in (omp_in_final): New interface.
17454 (omp_integer_kind, omp_logical_kind): Remove
17455 and replace all its uses in the module with 4.
17456 (openmp_version): Change to 201107.
17457 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17458 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17459 kind for the parameters.
17460 (omp_in_final): New external.
17461 (openmp_version): Change to 201107.
17462 * task.c (omp_in_final): New function.
17463 (gomp_init_task): Initialize final_task.
17464 (GOMP_task): Remove unused attribute from flags. Handle final
17466 (GOMP_taskyield): New function.
17467 (omp_in_final): Return true if if (false) or final (true) task
17468 or descendant of final (true).
17469 * fortran.c (omp_in_final_): New function.
17470 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17471 (GOMP_3.0): Export GOMP_taskyield.
17472 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17474 (parse_unsigned_long_list): New function.
17475 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17476 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17477 even if parse_affinity returned false.
17478 * config/linux/affinity.c (gomp_init_affinity): Handle
17479 gomp_cpu_affinity_len == 0.
17480 * libgomp_g.h (GOMP_taskyield): New prototype.
17481 * libgomp.h (struct gomp_task): Add final_task field.
17482 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17483 * team.c (gomp_team_start): Override new task's nthreads_var icv
17484 if list form OMP_NUM_THREADS has been used and it has value for
17485 the new nesting level.
17487 * testsuite/libgomp.c/atomic-11.c: New test.
17488 * testsuite/libgomp.c/atomic-12.c: New test.
17489 * testsuite/libgomp.c/atomic-13.c: New test.
17490 * testsuite/libgomp.c/atomic-14.c: New test.
17491 * testsuite/libgomp.c/reduction-6.c: New test.
17492 * testsuite/libgomp.c/task-5.c: New test.
17493 * testsuite/libgomp.c++/atomic-2.C: New test.
17494 * testsuite/libgomp.c++/atomic-3.C: New test.
17495 * testsuite/libgomp.c++/atomic-4.C: New test.
17496 * testsuite/libgomp.c++/atomic-5.C: New test.
17497 * testsuite/libgomp.c++/atomic-6.C: New test.
17498 * testsuite/libgomp.c++/atomic-7.C: New test.
17499 * testsuite/libgomp.c++/atomic-8.C: New test.
17500 * testsuite/libgomp.c++/atomic-9.C: New test.
17501 * testsuite/libgomp.c++/task-8.C: New test.
17502 * testsuite/libgomp.c++/reduction-4.C: New test.
17503 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17504 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17505 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17506 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17507 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17508 * testsuite/libgomp.fortran/pointer1.f90: New test.
17509 * testsuite/libgomp.fortran/pointer2.f90: New test.
17510 * testsuite/libgomp.fortran/task4.f90: New test.
17512 2011-08-02 Tobias Burnus <burnus@net-b.de>
17514 * libgomp.texi: Update OpenMP spec references to 3.1.
17515 (omp_in_final,OMP_PROC_BIND): New sections.
17516 (OMP_NUM_THREADS): Document that the value can be now a list.
17517 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17519 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17521 * config/linux/x86/futex.h: Check __x86_64__ instead of
17524 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17526 PR middle-end/49897
17527 PR middle-end/49898
17528 * testsuite/libgomp.c/pr49897-1.c: New test.
17529 * testsuite/libgomp.c/pr49897-2.c: New test.
17530 * testsuite/libgomp.c/pr49898-1.c: New test.
17531 * testsuite/libgomp.c/pr49898-2.c: New test.
17533 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17535 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17536 for ia32 instead of ilp32.
17538 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17539 * testsuite/libgomp.c/atomic-6.c: Likewise.
17541 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17543 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17544 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17546 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17549 * config/osf/sem.h: New file.
17550 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17552 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17555 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17558 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17560 * config/linux/wait.h (do_spin): New inline, largely copied
17561 from do_wait, just don't do futex_wait here, instead return true if
17563 (do_wait): Implement using do_spin.
17564 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17566 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17567 __sync_bool_compare_and_swap, pass the oldval to
17568 gomp_mutex_lock_slow.
17569 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17570 If all mutex contenders are just spinning and not sleeping, don't
17571 change state to 2 unnecessarily. Optimize the loop when state has
17572 already become 2 to use just one atomic operation per loop instead
17574 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17576 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17577 __sync_bool_compare_and_swap, pass the oldval to
17578 gomp_mutex_lock_slow.
17580 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17583 * iter.c (gomp_iter_static_next): For chunk size 0
17584 only use n ceil/ nthreads size for the first
17585 n % nthreads threads in the team instead of
17586 all threads except for the last few ones which
17587 get less work or none at all.
17588 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17589 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17590 chunk argument, set run_sched_modifier to 0 for static
17591 resp. 1 for other kinds. If chunk argument is 0
17592 and not static, set value to 1.
17594 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17597 * testsuite/libgomp.c++/pr49043.C: New test.
17600 * testsuite/libgomp.c++/pr48869.C: New test.
17602 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17605 * fortran.c: Include limits.h.
17607 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17609 (omp_set_num_threads_8_, omp_set_schedule_8_,
17610 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17611 omp_get_team_size_8_): Use TO_INT macro.
17612 * testsuite/libgomp.fortran/pr48894.f90: New test.
17614 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17616 PR middle-end/48591
17617 * testsuite/libgomp.c/pr48591.c: New test.
17619 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17622 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17623 * configure: Regenerate.
17625 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17628 * testsuite/libgomp.fortran/task3.f90: New test.
17630 2011-02-24 Tobias Burnus <burnus@net-b.de>
17632 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17634 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17637 * libgomp.texi (omp_get_wtime): Don't say time in the past
17638 must be Unix Epoch.
17640 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17643 * testsuite/libgomp.fortran/fortran.exp: Check for both
17644 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17645 but $blddir != "", still append ${blddir}/${lang_library_path}
17646 to ld_library_path.
17648 2011-02-16 Tobias Burnus <burnus@net-b.de>
17651 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17652 of libquadmath.a before adding its libpath to ldflags.
17654 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17657 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17658 to FUTEX_WAIT futex syscall.
17659 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17661 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17663 * configure: Regenerate.
17665 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17668 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17670 2011-01-16 Gerald Pfeifer
17672 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17674 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17677 * libgomp.fortran/allocatable6.f90: New test.
17679 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17681 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17682 * configure: Regenerate.
17684 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17688 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17689 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17690 * aclocal.m4: Regenerate.
17691 * configure: Regenerate.
17692 * Makefile.in: Regenerate.
17693 * testsuite/Makefile.in: Regenerate.
17695 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17698 * libgomp.fortran/pr46753.f90: New test.
17701 * env.c (initialize_env): Default to spin count 300000
17702 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17706 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17707 at the end if sync builtins aren't supported.
17709 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17711 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17713 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17715 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17717 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17719 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17721 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17722 Tobias Burnus <burnus@net-b.de>
17726 * configure: Regenerate.
17728 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17730 * config/linux/futex.h: New.
17731 * config/linux/arm/mutex.h: New.
17732 * configure.tgt (arm*-*-linux*): Add config path.
17734 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17736 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17738 2010-09-23 Tobias Burnus <burnus@net-b.de>
17740 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17741 Change Fortran datatype to LOGICAL.
17742 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17743 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17745 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17747 * configure: Regenerate.
17749 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17751 * libgomp.texi: Add function keyword to a couple of Fortran
17752 interfaces, use integer instead of int for Fortran.
17754 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17756 * libgomp.texi: Fix spelling and pasto problems throughout.
17757 Adjust prototypes to match code.
17759 2010-07-24 Tobias Burnus <burnus@net-b.de>
17761 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17762 silence -fwhole-file warning.
17764 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17766 * configure.tgt (*-*-solaris2.[56]*): Removed.
17768 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17770 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17771 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17772 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17773 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17774 targetting solaris2*.
17775 * configure: Regenerate.
17776 * config.h.in: Regenerate.
17778 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17779 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17780 Add libgomp_version_dep.
17781 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17783 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17784 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17785 * Makefile.in: Regenerate.
17787 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17788 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17789 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17790 to common block, protected by
17791 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17793 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17795 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17797 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17800 * configure: Regenerate.
17802 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17805 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17806 * configure: Regenerate.
17807 * Makefile.in: Regenerate.
17808 * testsuite/Makefile.in: Regenerate.
17810 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17813 * testsuite/libgomp.c/pr43893.c: New test.
17814 * testsuite/libgomp.c++/pr43893.C: New test.
17816 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17818 PR middle-end/43570
17819 * testsuite/libgomp.fortran/vla8.f90: New test.
17821 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17824 * config/linux/affinity.c (gomp_init_affinity): Decrease
17825 gomp_available_cpus if affinity mask confines the process to fewer
17827 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17828 non-NULL, just return gomp_available_cpus.
17831 * sections.c (gomp_sections_init): Initialize ws->mode.
17833 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17835 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17836 not unused bar variable.
17837 * configure: Regenerate.
17839 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17841 * Makefile.in: Regenerate.
17842 * aclocal.m4: Regenerate.
17843 * testsuite/Makefile.in: Regenerate.
17845 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17848 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17849 (initialize_env): Adjust callers.
17850 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17851 when the argument is 0.
17853 * testsuite/libgomp.c/pr42942.c: New test.
17855 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17857 PR middle-end/42644
17858 PR middle-end/42130
17859 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17860 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17862 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17864 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17865 * testsuite/libgomp.c++/task-6.C: Likewise.
17867 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17869 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17871 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17873 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17874 * configure: Regenerate.
17876 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17879 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17881 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17883 * configure.ac: Test for executability of GFORTRAN.
17884 * configure: Regenerate.
17886 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17888 * configure: Regenerate.
17890 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17893 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17895 2010-01-03 Richard Guenther <rguenther@suse.de>
17897 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17899 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17901 * testsuite/libgomp.graphite/pr4118.c: New.
17903 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17905 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17906 for darwin, protect the test with require-effective-target tls_runtime.
17907 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17909 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17912 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17913 link spec %s substitutions for static libraries.
17915 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17918 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17920 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17922 * Makefile.in: Regenerate.
17923 * configure: Regenerate.
17924 * testsuite/Makefile.in: Regenerate.
17926 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17928 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17929 settings for LC_ALL and LANG.
17931 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17934 * testsuite/libgomp.fortran/pr42162.f90: New test.
17936 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17938 PR middle-end/42029
17939 * testsuite/libgomp.c/pr42029.c: New test.
17941 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17943 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17944 *s. Accept ld version without text in ()s.
17945 * configure: Regenerated.
17947 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17949 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17951 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17954 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17955 or a hyphen (happens with fortran language disabled).
17956 * configure: Regenerate.
17958 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17960 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17961 use sed script portable to Solaris /bin/sed for extracting ld
17963 * configure: Regenerate.
17965 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17967 * testsuite/libgomp.graphite/bounds.c: New test.
17969 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17971 * Makefile.am (libgomp_la_LINK): New.
17972 * Makefile.in: Regenerate.
17974 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17976 * configure.ac (AC_PREREQ): Bump to 2.64.
17978 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17980 * Makefile.am (install-html, install-pdf): Remove.
17981 * Makefile.in: Regenerate.
17983 * Makefile.in: Regenerate.
17984 * aclocal.m4: Regenerate.
17985 * config.h.in: Regenerate.
17986 * configure: Regenerate.
17987 * testsuite/Makefile.in: Regenerate.
17989 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17991 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17992 * Makefile.in: Regenerate.
17994 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17996 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17997 * Makefile.in: Regenerate.
17999 2009-08-19 Tobias Burnus <burnus@net-b.de>
18002 omp_lib.h.in: Fix -std=f95 errors.
18004 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18006 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18007 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18008 * testsuite/libgomp.graphite/graphite.exp: New.
18010 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18012 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18015 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18017 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18018 needed memory barrier semantics.
18019 * config/linux/mips/mutex.h: New file.
18021 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18023 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18025 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18027 * configure: Regenerate.
18029 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18034 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18035 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18036 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18038 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18040 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18041 options when choosing a multilib.
18043 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18045 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18046 ld_library_path. Use add_path. Add just find_libgcc_s to
18047 ld_library_path, not every libgcc multilib directory.
18048 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18049 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18050 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18052 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18054 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18056 * Makefile.am (LTLDFLAGS): Define.
18058 * Makefile.in: Regenerate.
18060 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18063 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18064 libgfortranbegin, check existence of libgfortran.a instead of
18065 libgfortranbegin.a.
18067 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18070 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18071 (gomp_free_pool_helper): Likewise.
18073 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18074 Jakub Jelinek <jakub@redhat.com>
18077 * testsuite/libgomp.fortran/workshare2.f90: New test.
18079 2009-04-09 Nick Clifton <nickc@redhat.com>
18081 * iter.c: Change copyright header to refer to version 3 of the
18082 GNU General Public License with version 3.1 of the GCC Runtime
18083 Library Exception and to point readers at the COPYING3 and
18084 COPYING3.RUNTIME files and the FSF's license web page.
18085 * alloc.c: Likewise.
18086 * barrier.c: Likewise.
18087 * config/bsd/proc.c: Likewise.
18088 * config/linux/affinity.c: Likewise.
18089 * config/linux/alpha/futex.h: Likewise.
18090 * config/linux/bar.c: Likewise.
18091 * config/linux/bar.h: Likewise.
18092 * config/linux/ia64/futex.h: Likewise.
18093 * config/linux/ia64/mutex.h: Likewise.
18094 * config/linux/lock.c: Likewise.
18095 * config/linux/mips/futex.h: Likewise.
18096 * config/linux/mutex.c: Likewise.
18097 * config/linux/mutex.h: Likewise.
18098 * config/linux/powerpc/futex.h: Likewise.
18099 * config/linux/proc.c: Likewise.
18100 * config/linux/ptrlock.c: Likewise.
18101 * config/linux/ptrlock.h: Likewise.
18102 * config/linux/s390/futex.h: Likewise.
18103 * config/linux/sem.c: Likewise.
18104 * config/linux/sem.h: Likewise.
18105 * config/linux/sparc/futex.h: Likewise.
18106 * config/linux/wait.h: Likewise.
18107 * config/linux/x86/futex.h: Likewise.
18108 * config/mingw32/proc.c: Likewise.
18109 * config/mingw32/time.c: Likewise.
18110 * config/posix/affinity.c: Likewise.
18111 * config/posix/bar.c: Likewise.
18112 * config/posix/bar.h: Likewise.
18113 * config/posix/lock.c: Likewise.
18114 * config/posix/mutex.h: Likewise.
18115 * config/posix/proc.c: Likewise.
18116 * config/posix/ptrlock.h: Likewise.
18117 * config/posix/sem.c: Likewise.
18118 * config/posix/sem.h: Likewise.
18119 * config/posix/time.c: Likewise.
18120 * config/posix95/lock.c: Likewise.
18121 * critical.c: Likewise.
18123 * error.c: Likewise.
18124 * fortran.c: Likewise.
18125 * iter_ull.c: Likewise.
18126 * libgomp.h: Likewise.
18127 * libgomp_f.h.in: Likewise.
18128 * libgomp_g.h: Likewise.
18129 * loop.c: Likewise.
18130 * loop_ull.c: Likewise.
18131 * omp.h.in: Likewise.
18132 * omp_lib.f90.in: Likewise.
18133 * omp_lib.h.in: Likewise.
18134 * ordered.c: Likewise.
18135 * parallel.c: Likewise.
18136 * sections.c: Likewise.
18137 * single.c: Likewise.
18138 * task.c: Likewise.
18139 * team.c: Likewise.
18140 * work.c: Likewise.
18142 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18144 * testsuite/config/default.exp: Change copyright header to refer to
18145 version 3 of the GNU General Public License and to point readers
18146 at the COPYING3 file and the FSF's license web page.
18148 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18150 PR middle-end/39573
18151 * libgomp.c++/pr39573.C: New test.
18153 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18156 * testsuite/libgomp.c/pr39591-1.c: New test.
18157 * testsuite/libgomp.c/pr39591-2.c: New test.
18158 * testsuite/libgomp.c/pr39591-3.c: New test.
18160 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18162 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18163 * testsuite/libgomp.c/atomic-6.c: Ditto.
18165 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18168 * testsuite/libgomp.c/loop-12.c: New test.
18169 * testsuite/libgomp.c/loop-11.c: New test.
18170 * testsuite/libgomp.c++/loop-11.C: New test.
18171 * testsuite/libgomp.c++/loop-12.C: New test.
18172 * testsuite/libgomp.c++/for-8.C: New test.
18174 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18176 * configure: Regenerate.
18178 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18180 PR middle-end/39154
18181 * testsuite/libgomp.c/pr39154.c: New test.
18183 2009-01-30 Ian Lance Taylor <iant@google.com>
18185 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18186 libgomp_ld_is_gold. Get gold version number.
18187 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18188 * configure: Rebuild.
18190 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18192 * testsuite/lib/libgomp.exp: Add -B option for targets that
18193 use libgfortran.a%s in their specs.
18195 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18198 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18199 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18200 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18201 * configure: Regenerated.
18202 * config.h.in: Likewise.
18204 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18207 * testsuite/libgomp.c/pr38650.c: New test.
18208 * testsuite/libgomp.c++/pr38650.C: New test.
18210 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18212 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18214 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18216 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18218 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18220 * configure: Regenerate.
18222 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18224 PR middle-end/36802
18225 * testsuite/libgomp.c/pr36802-1.c: New test.
18226 * testsuite/libgomp.c/pr36802-2.c: New test.
18227 * testsuite/libgomp.c/pr36802-3.c: New test.
18229 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18232 * config/linux/powerpc/mutex.h: New.
18234 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18237 * testsuite/libgomp.c++/for-7.C: New test.
18240 * testsuite/libgomp.c++/for-6.C: New test.
18242 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18245 * testsuite/lib/libgomp.exp: Include new timeout library files.
18246 (libgomp_target_compile): Set timeout value from new proc.
18248 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18251 * config/linux/ia64/mutex.h: New.
18253 2008-11-04 Tobias Burnus <burnus@net-b.de>
18256 * libgomp.texi (Runtime library routines, environment variables):
18257 Update for OpenMP version 3.0.
18259 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18260 Steve Ellcey <sje@cup.hp.com>
18262 * configure: Regenerate for new libtool.
18263 * Makefile.in: Ditto.
18264 * testsuite/Makefile.in: Ditto.
18266 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18267 Andreas Tobler <a.tobler@schweiz.org>
18269 * config/bsd/proc.c: New file.
18270 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18271 * configure.ac: Check for header <sys/sysctl.h>
18272 * configure: Regenerate.
18273 * config.h.in: Likewise.
18275 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18277 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18279 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18281 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18282 * Makefile.in: Regenerated.
18283 * testsuite/Makefile.in: Regenerated.
18285 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18287 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18288 depend on blddir if blddir exists.
18289 (libgomp_target_compile): Likewise.
18290 * testsuite/libgomp.c++/c++.exp: Likewise.
18291 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18293 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18295 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18296 Do not list GPL as Invariant Section.
18298 2008-07-28 Ilie Garbacea <ilie@mips.com>
18299 Chao-ying Fu <fu@mips.com>
18301 * configure.tgt: Enable futex for MIPS.
18302 * config/linux/mips/futex.h: New file.
18304 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18306 * team.c (gomp_team_end): Free team immediately if it has
18309 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18311 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18312 * testsuite/libgomp.fortran/fortran.exp: Same.
18313 * testsuite/libgomp.c/c.exp: Same.
18314 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18315 directory to library path first.
18317 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18319 * env.c (parse_stacksize): Add cast to avoid warning.
18320 (parse_spincount): Likewise.
18322 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18324 * testsuite/libgomp.c/loop-10.c: New test.
18325 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18326 * libgomp.c++/loop-6.C (main): Likewise.
18329 * testsuite/libgomp.c/debug-1.c: New test.
18331 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18333 * testsuite/libgomp.c/nqueens-1.c: New test.
18336 * testsuite/libgomp.c++/task-7.C: New function.
18338 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18340 * configure: Regenerate.
18342 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18344 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18345 mutex when HAVE_SYNC_BUILTINS isn't defined.
18347 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18349 * libgomp.texi (omp_test_lock): Fix typo.
18351 2008-06-12 Tobias Burnus <burnus@net-b.de>
18353 * omp_lib.f90.in: Add "implicit none".
18355 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18357 PR middle-end/36506
18358 * testsuite/libgomp.c/reduction-5.c: New test.
18360 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18362 * libgomp.h (struct gomp_task): Add in_tied_task field.
18363 * task.c (gomp_init_task): Initialize it.
18364 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18365 unconditionally. Don't call gomp_team_barrier_wake if
18366 current task is implicit or if(0) from implicit and number of
18367 running tasks is equal to nthreads - 1.
18370 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18371 omp_get_team_size_8): Fix pastos.
18374 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18375 * configure: Regenerated.
18376 * config.h.in: Regenerated.
18377 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18380 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18383 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18384 (GOMP_loop_ull_dynamic_start): Likewise.
18385 (GOMP_loop_ull_guided_start): Likewise.
18386 (GOMP_loop_ull_ordered_static_start): Likewise.
18387 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18388 (GOMP_loop_ull_ordered_guided_start): Likewise.
18390 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18391 Richard Henderson <rth@redhat.com>
18392 Ulrich Drepper <drepper@redhat.com>
18393 Jakob Blomer <jakob.blomer@ira.uka.de>
18395 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18396 Substitute also OMP_*LOCK_25*.
18397 * configure: Regenerated.
18398 * config.h.in: Regenerated.
18399 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18400 ptrlock.c and task.c.
18401 * Makefile.in: Regenerated.
18402 * testsuite/Makefile.in: Regenerated.
18403 * task.c: New file.
18404 * loop_ull.c: New file.
18405 * iter_ull.c: New file.
18406 * libgomp.h: Include ptrlock.h.
18407 (enum gomp_task_kind): New type.
18408 (struct gomp_team): Add task_lock, task_queue, task_count,
18409 task_running_count, single_count fields. Add
18410 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18411 Remove work_share_lock, generation_mask,
18412 oldest_live_gen, num_live_gen and init_work_shares fields, add
18413 work work_share_list_alloc, work_share_list_free and work_share_chunk
18414 fields. Change work_shares from pointer to pointers into an array.
18415 Change ordered_release field into gomp_sem_t ** from flexible array
18416 member. Add implicit_task and initial_work_shares fields.
18417 Move close to the end of the struct.
18418 (struct gomp_team_state): Add single_count, last_work_share,
18419 active_level and level fields, remove work_share_generation.
18420 (gomp_barrier_handle_tasks): New prototype.
18421 (gomp_finish_task): New inline function.
18422 (struct gomp_work_share): Move chunk_size, end, incr into
18423 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18424 next_ll fields. Reshuffle fields. Add next_alloc,
18425 next_ws, next_free and inline_ordered_team_ids fields, change
18426 ordered_team_ids into pointer from flexible array member.
18427 Add mode field. Put lock and next into a different cache line
18428 from most of the write-once fields.
18429 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18430 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18431 gomp_iter_ull_guided_next): New prototypes.
18432 (gomp_new_icv): New prototype.
18433 (struct gomp_thread): Add thread_pool and task fields.
18434 (struct gomp_thread_pool): New type.
18435 (gomp_new_team): New prototype.
18436 (gomp_team_start): Change type of last argument.
18437 (gomp_new_work_share): Removed.
18438 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18439 (gomp_work_share_init_done): New static inline.
18440 (gomp_throttled_spin_count_var, gomp_available_cpus,
18441 gomp_managed_threads): New extern decls.
18442 (gomp_init_task): New prototype.
18443 (gomp_spin_count_var): New extern var decl.
18444 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18445 or no alias support, or if not PIC.
18446 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18447 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18448 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18449 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18450 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18451 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18452 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18453 gomp_test_nest_lock_25): New prototypes.
18454 (omp_lock_symver, strong_alias): Define.
18455 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18457 (gomp_end_task): New.
18458 (struct gomp_task_icv, gomp_global_icv): New.
18459 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18460 (struct gomp_task): New.
18461 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18462 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18464 (gomp_schedule_type): Reorder enum to match
18466 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18468 (gomp_thread_start): Add gomp_team_barrier_wait call.
18469 For non-nested case remove clearing of docked thread thr fields.
18470 Use pool fields instead of global gomp_* variables. Use
18471 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18472 Create tasks for each member thread.
18473 (free_team): Only destroy team barrier, task_lock here and free it.
18474 (gomp_free_thread): Free last_team if non-NULL.
18475 (gomp_team_end): Call gomp_team_barrier_wait instead of
18476 gomp_barrier_wait. For nested case call one extra
18477 gomp_barrier_wait. Move here some destruction from free_team.
18478 Call free_team on pool->last_team if any, rather than freeing
18479 current team. Destroy work_share_list_free_lock ifndef
18480 HAVE_SYNC_BUILTINS.
18481 (gomp_new_icv): New function.
18482 (gomp_threads, gomp_threads_size, gomp_threads_used,
18483 gomp_threads_dock): Removed.
18484 (gomp_thread_destructor): New variable.
18485 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18487 (gomp_team_start): Create new pool if current thread doesn't have
18488 one. Use pool fields instead of global gomp_* variables.
18489 Initialize thread_pool field for new threads. Clear single_count.
18490 Change last argument from ws to team, don't create
18491 new team, set ts.work_share to &team->work_shares[0] and clear
18492 ts.last_work_share. Don't clear ts.work_share_generation.
18493 If number of threads changed, adjust atomically gomp_managed_threads.
18494 Use gomp_init_task instead of gomp_new_task,
18495 set thr->task to the corresponding implicit_task array entry.
18496 Create tasks for each member thread. Initialize ts.level.
18497 (initialize_team): Call pthread_key_create on
18498 gomp_thread_destructor.
18499 (team_destructor): New function.
18500 (new_team): Removed.
18501 (gomp_new_team): New function.
18502 (free_team): Free gomp_work_share blocks chained through next_alloc,
18503 instead of freeing work_shares and destroying work_share_lock.
18504 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18505 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18506 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18507 of gomp_barrier_wait.
18508 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18509 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18510 if gomp_work_share_start returned true. Don't unlock ws->lock.
18511 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18512 of gomp_barrier_wait.
18513 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18514 gomp_work_share_init_done if gomp_work_share_start returned true.
18515 Don't unlock ws->lock.
18516 * work.c: Include stddef.h.
18517 (free_work_share): Use work_share_list_free_lock instead
18518 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18519 Call gomp_fini_work_share and then either free ws if orphaned, or
18520 put it into work_share_list_free list of the current team.
18521 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18523 (gomp_work_share_start, gomp_work_share_end,
18524 gomp_work_share_end_nowait): Rewritten.
18525 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18526 (openmp_version): Set to 200805.
18527 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18528 omp_sched_guided, omp_sched_auto): New parameters.
18529 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18530 omp_set_max_active_levels, omp_get_max_active_levels,
18531 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18532 omp_get_active_level): New interfaces.
18533 * omp_lib.h.in (openmp_version): Set to 200805.
18534 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18535 omp_sched_guided, omp_sched_auto): New parameters.
18536 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18537 omp_set_max_active_levels, omp_get_max_active_levels,
18538 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18539 omp_get_active_level): New externals.
18540 * loop.c: Include limits.h.
18541 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18543 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18544 Likewise. Use gomp_icv.
18545 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18546 ts.static_trip here.
18547 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18548 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18549 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18550 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18551 don't unlock ws->lock, otherwise lock it.
18552 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18553 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18554 (gomp_parallel_loop_start): Call gomp_new_team instead of
18555 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18556 Adjust gomp_team_start caller. Pass 0 as second argument to
18557 gomp_resolve_num_threads.
18558 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18559 If adding ws->chunk_size nthreads + 1 times after end won't
18560 overflow, set ws->mode to 1.
18561 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18562 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18563 GOMP_loop_ull_ordered_static_start,
18564 GOMP_loop_ull_ordered_dynamic_start,
18565 GOMP_loop_ull_ordered_guided_start,
18566 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18567 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18568 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18569 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18570 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18572 * libgomp.map: Export lock routines also @@OMP_2.0.
18573 (GOMP_loop_ordered_dynamic_first,
18574 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18575 GOMP_loop_ordered_static_first): Remove.
18576 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18577 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18578 GOMP_loop_ull_ordered_dynamic_next,
18579 GOMP_loop_ull_ordered_dynamic_start,
18580 GOMP_loop_ull_ordered_guided_next,
18581 GOMP_loop_ull_ordered_guided_start,
18582 GOMP_loop_ull_ordered_runtime_next,
18583 GOMP_loop_ull_ordered_runtime_start,
18584 GOMP_loop_ull_ordered_static_next,
18585 GOMP_loop_ull_ordered_static_start,
18586 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18587 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18588 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18589 (omp_set_schedule, omp_get_schedule,
18590 omp_get_thread_limit, omp_set_max_active_levels,
18591 omp_get_max_active_levels, omp_get_level,
18592 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18593 omp_set_schedule_, omp_set_schedule_8_,
18594 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18595 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18596 omp_get_max_active_levels_, omp_get_level_,
18597 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18598 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18599 New exports @@OMP_3.0.
18600 * omp.h.in (omp_sched_t): New type.
18601 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18602 omp_set_max_active_levels, omp_get_max_active_levels,
18603 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18604 omp_get_active_level): New prototypes.
18605 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18606 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18607 gomp_thread_limit_var, gomp_remaining_threads_count,
18608 gomp_remaining_threads_lock): New variables.
18609 (parse_spincount): New function.
18610 (initialize_env): Call gomp_init_num_threads unconditionally.
18611 Initialize gomp_available_cpus. Call parse_spincount,
18612 initialize gomp_{,throttled_}spin_count_var
18613 depending on presence and value of OMP_WAIT_POLICY and
18614 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18615 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18616 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18617 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18618 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18619 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18620 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18621 (gomp_global_icv): New.
18622 (parse_schedule): Use it. Parse "auto".
18623 (omp_set_num_threads): Use gomp_icv.
18624 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18626 (omp_get_max_threads): Move from parallel.c.
18627 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18628 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18630 (parse_stacksize, parse_wait_policy): New functions.
18631 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18632 both wrappers for compatibility and new locks.
18633 (omp_set_schedule, omp_get_schedule,
18634 omp_get_thread_limit, omp_set_max_active_levels,
18635 omp_get_max_active_levels, omp_get_level,
18636 omp_get_ancestor_thread_num, omp_get_team_size,
18637 omp_get_active_level): New ialias_redirect.
18638 (omp_set_schedule_, omp_set_schedule_8_,
18639 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18640 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18641 omp_get_max_active_levels_, omp_get_level_,
18642 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18643 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18645 * parallel.c: Include limits.h.
18646 (gomp_resolve_num_threads): Add count argument. Rewritten.
18647 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18648 argument to gomp_team_start. Pass 0 as second argument to
18649 gomp_resolve_num_threads.
18650 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18651 if gomp_thread_limit_var != ULONG_MAX.
18652 (omp_in_parallel): Implement using ts.active_level.
18653 (omp_get_max_threads): Move to env.c.
18654 (omp_get_level, omp_get_ancestor_thread_num,
18655 omp_get_team_size, omp_get_active_level): New functions,
18657 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18658 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18659 gomp_iter_dynamic_next instead of the _locked variant and don't take
18660 lock around it, otherwise acquire it before calling
18661 gomp_iter_dynamic_next_locked.
18662 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18663 gomp_iter_dynamic_next instead of the _locked variant and don't take
18665 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18666 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18667 Adjust gomp_team_start caller. Pass count as second argument to
18668 gomp_resolve_num_threads, don't adjust num_threads after the call.
18670 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18671 ws->chunk_size by incr.
18672 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18674 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18676 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18677 (omp_check_defines): Check even the compat defines.
18678 * config/linux/ptrlock.c: New file.
18679 * config/linux/ptrlock.h: New file.
18680 * config/linux/wait.h: New file.
18681 * config/posix/ptrlock.c: New file.
18682 * config/posix/ptrlock.h: New file.
18683 * config/linux/bar.h (gomp_team_barrier_wait,
18684 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18685 (gomp_team_barrier_set_task_pending,
18686 gomp_team_barrier_clear_task_pending,
18687 gomp_team_barrier_set_waiting_for_tasks,
18688 gomp_team_barrier_waiting_for_tasks,
18689 gomp_team_barrier_done): New inlines.
18690 (gomp_barrier_t): Rewritten.
18691 (gomp_barrier_state_t): New typedef.
18692 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18693 gomp_barrier_wait_start): Rewritten.
18694 (gomp_barrier_wait_end): Change second argument to
18695 gomp_barrier_state_t.
18696 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18698 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18700 (gomp_barrier_wait_end): Rewritten.
18701 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18702 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18703 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18704 (gomp_barrier_state_t): New typedef.
18705 (gomp_team_barrier_wait,
18706 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18707 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18708 into the return value. Return gomp_barrier_state_t.
18709 (gomp_team_barrier_set_task_pending,
18710 gomp_team_barrier_clear_task_pending,
18711 gomp_team_barrier_set_waiting_for_tasks,
18712 gomp_team_barrier_waiting_for_tasks,
18713 gomp_team_barrier_done): New inlines.
18714 (gomp_barrier_wait_end): Change second argument to
18715 gomp_barrier_state_t.
18716 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18718 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18719 (gomp_barrier_wait_end): Change second argument to
18720 gomp_barrier_state_t.
18721 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18722 gomp_team_barrier_wake): New functions.
18723 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18725 (gomp_futex_wake, gomp_futex_wait): New variables.
18726 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18727 * config/linux/lock.c: Rewrite to make locks task owned,
18728 for backwards compatibility provide the old entrypoints
18729 if symbol versioning. Include wait.h instead of libgomp.h and
18731 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18732 * config/posix95/lock.c: Rewrite to make locks task owned,
18733 for backwards compatibility provide the old entrypoints
18734 if symbol versioning.
18735 * config/posix/lock.c: Rewrite to make locks task owned,
18736 for backwards compatibility provide the old entrypoints
18737 if symbol versioning.
18738 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18739 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18740 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18741 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18742 (sys_futex0): Return error code.
18743 (futex_wake, futex_wait): If ENOSYS was returned, clear
18744 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18745 (cpu_relax, atomic_write_barrier): New static inlines.
18746 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18747 (futex_wake, futex_wait): If ENOSYS was returned, clear
18748 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18749 (cpu_relax, atomic_write_barrier): New static inlines.
18750 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18751 (sys_futex0): Return error code.
18752 (futex_wake, futex_wait): If ENOSYS was returned, clear
18753 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18754 (cpu_relax, atomic_write_barrier): New static inlines.
18755 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18756 (sys_futex0): Return error code.
18757 (futex_wake, futex_wait): If ENOSYS was returned, clear
18758 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18759 (cpu_relax, atomic_write_barrier): New static inlines.
18760 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18761 (sys_futex0): Return error code.
18762 (futex_wake, futex_wait): If ENOSYS was returned, clear
18763 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18764 (cpu_relax, atomic_write_barrier): New static inlines.
18765 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18766 (sys_futex0): Return error code.
18767 (futex_wake, futex_wait): If ENOSYS was returned, clear
18768 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18769 (cpu_relax, atomic_write_barrier): New static inlines.
18770 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18772 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18773 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18774 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18776 (omp_nest_lock_t): Change owner into void *, add lock field.
18777 * config/posix95/omp-lock.h: Include semaphore.h.
18778 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18779 (omp_lock_t): Use sem_t instead of mutex if semaphores
18781 (omp_nest_lock_t): Likewise. Change owner to void *.
18782 * config/posix/omp-lock.h: Include semaphore.h.
18783 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18784 (omp_lock_t): Use sem_t instead of mutex if semaphores
18786 (omp_nest_lock_t): Likewise. Add owner field.
18788 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18790 * testsuite/libgomp.c/collapse-1.c: New test.
18791 * testsuite/libgomp.c/collapse-2.c: New test.
18792 * testsuite/libgomp.c/collapse-3.c: New test.
18793 * testsuite/libgomp.c/icv-1.c: New test.
18794 * testsuite/libgomp.c/icv-2.c: New test.
18795 * testsuite/libgomp.c/lib-2.c: New test.
18796 * testsuite/libgomp.c/lock-1.c: New test.
18797 * testsuite/libgomp.c/lock-2.c: New test.
18798 * testsuite/libgomp.c/lock-3.c: New test.
18799 * testsuite/libgomp.c/loop-4.c: New test.
18800 * testsuite/libgomp.c/loop-5.c: New test.
18801 * testsuite/libgomp.c/loop-6.c: New test.
18802 * testsuite/libgomp.c/loop-7.c: New test.
18803 * testsuite/libgomp.c/loop-8.c: New test.
18804 * testsuite/libgomp.c/loop-9.c: New test.
18805 * testsuite/libgomp.c/nested-3.c: New test.
18806 * testsuite/libgomp.c/nestedfn-6.c: New test.
18807 * testsuite/libgomp.c/sort-1.c: New test.
18808 * testsuite/libgomp.c/task-1.c: New test.
18809 * testsuite/libgomp.c/task-2.c: New test.
18810 * testsuite/libgomp.c/task-3.c: New test.
18811 * testsuite/libgomp.c/task-4.c: New test.
18812 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18813 to C++ testsuite default compiler options.
18814 * testsuite/libgomp.c++/collapse-1.C: New test.
18815 * testsuite/libgomp.c++/collapse-2.C: New test.
18816 * testsuite/libgomp.c++/ctor-10.C: New test.
18817 * testsuite/libgomp.c++/for-1.C: New test.
18818 * testsuite/libgomp.c++/for-2.C: New test.
18819 * testsuite/libgomp.c++/for-3.C: New test.
18820 * testsuite/libgomp.c++/for-4.C: New test.
18821 * testsuite/libgomp.c++/for-5.C: New test.
18822 * testsuite/libgomp.c++/loop-8.C: New test.
18823 * testsuite/libgomp.c++/loop-9.C: New test.
18824 * testsuite/libgomp.c++/loop-10.C: New test.
18825 * testsuite/libgomp.c++/task-1.C: New test.
18826 * testsuite/libgomp.c++/task-2.C: New test.
18827 * testsuite/libgomp.c++/task-3.C: New test.
18828 * testsuite/libgomp.c++/task-4.C: New test.
18829 * testsuite/libgomp.c++/task-5.C: New test.
18830 * testsuite/libgomp.c++/task-6.C: New test.
18831 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18832 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18833 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18834 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18835 * testsuite/libgomp.fortran/collapse1.f90: New test.
18836 * testsuite/libgomp.fortran/collapse2.f90: New test.
18837 * testsuite/libgomp.fortran/collapse3.f90: New test.
18838 * testsuite/libgomp.fortran/collapse4.f90: New test.
18839 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18840 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18841 * testsuite/libgomp.fortran/lib4.f90: New test.
18842 * testsuite/libgomp.fortran/lock-1.f90: New test.
18843 * testsuite/libgomp.fortran/lock-2.f90: New test.
18844 * testsuite/libgomp.fortran/nested1.f90: New test.
18845 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18846 * testsuite/libgomp.fortran/strassen.f90: New test.
18847 * testsuite/libgomp.fortran/tabs1.f90: New test.
18848 * testsuite/libgomp.fortran/tabs2.f: New test.
18849 * testsuite/libgomp.fortran/task1.f90: New test.
18850 * testsuite/libgomp.fortran/task2.f90: New test.
18851 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18852 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18853 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18854 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18855 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18857 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18860 * testsuite/libgomp.c++/ctor-11.C: New test.
18861 * testsuite/libgomp.c++/ctor-12.C: New test.
18863 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18865 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18867 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18869 PR middle-end/36106
18870 * testsuite/libgomp.c/atomic-5.c: New test.
18871 * testsuite/libgomp.c/atomic-6.c: New test.
18872 * testsuite/libgomp.c/autopar-1.c: New test.
18874 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18876 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18877 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18878 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18879 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18880 * configure: Regenerate.
18881 * Makefile.in, testsuite/Makefile.in: Likewise.
18883 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18886 * aclocal.m4: Regenerate.
18887 * configure: Regenerate.
18889 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18891 PR middle-end/35611
18892 * testsuite/libgomp.c/atomic-4.c: New test.
18895 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18896 (gomp_iter_guided_next): Likewise.
18897 * testsuite/libgomp.c/pr35625.c: New test.
18899 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18901 * aclocal.m4: Regenerate.
18902 * configure: Likewise.
18903 * Makefile.in: Likewise.
18904 * testsuite/Makefile.in: Likewise.
18906 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18908 PR middle-end/35185
18909 * testsuite/libgomp.c++/pr35185.C: New test.
18911 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18913 PR middle-end/35549
18914 * testsuite/libgomp.c/pr35549.c: New test.
18916 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18918 * testsuite/libgomp.c/atomic-3.c: New test.
18920 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18923 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18924 .F08 file suffixes.
18926 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18929 * configure.ac: Add ACX_HEADER_STRING.
18930 * env.c: Include strings.h.
18931 * aclocal.m4: Regenerate.
18932 * config.h.in: Regenerate.
18933 * configure: Regenerate.
18934 * Makefile.in: Regenerate.
18935 * testsuite/Makefile.in: Regenerate.
18937 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18939 PR middle-end/35196
18940 * testsuite/libgomp.c/pr35196.c: New test.
18942 PR middle-end/35130
18943 * testsuite/libgomp.fortran/pr35130.f90: New test.
18944 * testsuite/libgomp.c/pr35130.c: New test.
18946 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18948 PR middle-end/33880
18949 * testsuite/libgomp.c/pr33880.c: New test.
18950 * testsuite/libgomp.fortran/pr33880.f90: New test.
18952 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18954 * configure: Regenerate.
18956 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18958 * configure.ac: Move futex checking into ../config/futex.m4.
18959 * configure: Rebuilt.
18960 * aclocal.m4: Rebuilt.
18961 * Makefile.in: Rebuilt.
18963 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18964 2007-10-15 ../config/tls.m4 change.
18966 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18969 * testsuite/libgomp.c/pr34513.c: New test.
18970 * testsuite/libgomp.c++/pr34513.C: New test.
18972 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18975 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18977 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18979 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18981 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18983 * testsuite/libgomp.c/private-1.c: New test.
18985 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18986 Paolo Bonzini <bonzini@gnu.org>
18988 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18989 instead of 'VPATH ='.
18990 * Makefile.in: Regenerate.
18992 2007-11-23 Matthias Klose <doko@ubuntu.com>
18994 * configure.ac: Adjust makeinfo version check.
18995 * configure: Regenerate.
18997 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19000 * testsuite/libgomp.fortran/pr34020.f90: New test.
19002 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19005 * testsuite/libgomp.c++/atomic-1.C: New test.
19007 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19010 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19011 Make x and y integers rather than (implicit) reals. Add private (j)
19012 clause to the last omp parallel.
19014 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19016 * configure: Regenerate following changes to ../config/tls.m4.
19018 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19020 * testsuite/libgomp.fortran/stack.f90: New test.
19022 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19024 * config/mingw32/proc.c: New file.
19026 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19028 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19029 (main): Use __get_cpuid to get i386 target fetaures.
19030 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19031 (main): Use __get_cpuid to get x86_64 target fetaures.
19033 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19036 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19037 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19039 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19042 * testsuite/libgomp.fortran/pr32550.f90: New test.
19043 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19045 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19047 * aclocal.m4: Regenerated.
19049 2007-07-05 Tobias Burnus <burnus@net-b.de>
19052 * testsuite/libgomp.fortran/pr32359.f90: New.
19054 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19057 * sections.c (GOMP_parallel_sections_start): Only decrease
19058 number of threads to COUNT if dyn_var is true.
19059 * testsuite/libgomp.c/pr32468.c: New test.
19061 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19064 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19066 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19068 PR middle-end/32362
19069 * testsuite/libgomp.c/pr32362-1.c: New test.
19070 * testsuite/libgomp.c/pr32362-2.c: New test.
19071 * testsuite/libgomp.c/pr32362-3.c: New test.
19073 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19075 * team.c (gomp_team_start): Fix setting up thread_attr
19078 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19080 * configure: Regenerate.
19082 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19084 * Makefile.in: Regenerate.
19085 * configure: Regenerate.
19086 * aclocal.m4: Regenerate.
19087 * testsuite/Makefile.in: Regenerate.
19089 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19091 * config/linux/proc.c: New file.
19094 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19096 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19098 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19100 2007-04-16 Matthias Klose <doko@debian.org>
19102 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19103 flags if not building with -m64.
19104 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19105 flag for i?86-*-* targets, if current target matches -m64.
19107 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19109 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19110 * Makefile.in: Regenerate.
19112 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19115 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19117 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19119 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19121 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19123 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19124 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19125 (parse_affinity): New function.
19126 (initialize_env): Call it and gomp_init_affinity.
19127 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19128 create new pthread_attr_t and call gomp_init_thread_affinity
19129 on it for each thread before passing the attribute to pthread_create.
19130 * config/linux/affinity.c: New file.
19131 * config/posix/affinity.c: New file.
19132 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19133 * configure: Rebuilt.
19134 * config.h.in: Rebuilt.
19135 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19136 * Makefile.in: Rebuilt.
19138 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19140 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19142 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19143 and use it if found.
19145 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19147 * testsuite/config/default.exp: New file.
19148 * testsuite/lib/libgomp.exp: New file.
19149 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19150 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19151 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19152 (libgomp_load): Remove.
19153 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19154 always_ld_library_path, not ld_library_path. Set additional_flags
19155 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19156 (target_compile): Do not call libgomp_init. Append lang_library_path
19157 and lang_link_flags to options.
19158 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19159 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19161 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19162 always_ld_library_path. Set LD_LIBRARY_PATH here.
19163 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19164 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19165 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19167 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19168 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19169 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19170 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19171 * testsuite/libgomp.c/atomic-10.c: Ditto.
19173 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19175 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19176 dg-final cleanup-modules line.
19177 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19178 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19179 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19180 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19181 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19182 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19183 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19185 2007-03-18 Andreas Schwab <schwab@suse.de>
19187 * acinclude.m4: Adjust regular expression for ld version
19189 * configure: Regenerate.
19191 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19193 * Makefile.am: Add install-pdf target as copied from
19194 automake v1.10 rules.
19195 * Makefile.in: Regenerate
19197 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19200 * configure: Regenerate.
19203 * testsuite/libgomp.c++/pr30703.C: New test.
19205 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19208 2006-07-05 Eric Christopher <echristo@apple.com>
19209 * configure.ac: Depend addition of -pthread on host OS.
19210 * configure: Regenerate.
19212 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19214 * libgomp.texi: Fix spacing after abbreviations.
19216 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19219 * configure.ac: Add check for makeinfo
19220 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19221 if an appropriate version of makeinfo is found.
19222 * aclocal.m4: Regenerated.
19223 * configure: Regenerated.
19224 * Makefile.in: Regenerated.
19225 * testsuite/Makefile.in: Regenerated.
19227 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19230 * libgomp.texi: More about implementation-dependent settings.
19232 2007-01-26 Tobias Burnus <burnus@net-b.de>
19234 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19236 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19238 PR middle-end/30494
19239 * testsuite/libgomp.c/pr30494.c: New test.
19241 2007-01-15 Tom Tromey <tromey@redhat.com>
19243 * configure: Rebuilt.
19244 * configure.ac: Fixed comment.
19246 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19248 * libgomp.texi: Document implementation specific default values of
19249 environment variables.
19251 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19254 * libgomp.texi: New file.
19255 * configure.ac: Add --enable-generated-files-in-srcdir option.
19256 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19258 * Makefile.in: Regenerated.
19259 * config.h.in: Regenerated.
19260 * testsuite/Makefile.in: Regenerated.
19263 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19266 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19268 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19270 * configure: Regenerate.
19272 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19275 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19276 start if there shouldn't be any loop iterations.
19277 (gomp_loop_ordered_static_start): Remove start == end test.
19278 * testsuite/libgomp.c/pr29947-1.c: New test.
19279 * testsuite/libgomp.c/pr29947-2.c: New test.
19281 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19283 * configure.tgt: Force initial-exec TLS model on Linux only.
19285 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19287 * configure: Regenerated.
19289 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19291 * env.c (parse_schedule): Reject out of range values.
19292 (parse_unsigned_long): Reject out of range, negative or zero values.
19294 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19297 * testsuite/libgomp.fortran/pr29629.f90: New test.
19299 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19302 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19303 * config/posix95: New directory.
19304 * config/posix95/omp-lock.h: New file.
19305 * config/posix95/lock.c: Likewise.
19307 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19309 * aclocal.m4: Regenerate.
19310 * configure: Regenerate.
19312 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19314 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19317 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19319 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19321 * configure: Regenerate.
19322 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19324 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19326 PR middle-end/25261
19327 PR middle-end/28790
19328 * testsuite/libgomp.c/nestedfn-4.c: New test.
19329 * testsuite/libgomp.c/nestedfn-5.c: New test.
19330 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19333 * testsuite/libgomp.fortran/condinc1.f: New test.
19334 * testsuite/libgomp.fortran/condinc2.f: New test.
19335 * testsuite/libgomp.fortran/condinc3.f90: New test.
19336 * testsuite/libgomp.fortran/condinc4.f90: New test.
19337 * testsuite/libgomp.fortran/condinc1.inc: New file.
19339 2006-09-18 Tom Tromey <tromey@redhat.com>
19341 * configure: Rebuilt.
19343 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19346 PR preprocessor/14634
19347 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19349 * configure: Regenerate.
19351 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19353 * testsuite/libgomp.fortran/reduction3.f90: Change
19354 -2147483648 to -huge(i)-1 to avoid overflow.
19355 * testsuite/libgomp.fortran/reduction4.f90: Change
19356 Z'ffffffff' to not(0) to avoid overflow.
19358 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19361 * Makefile.am (libsubincludedir): New.
19362 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19363 * Makefile.in: Regenerate.
19365 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19368 * env.c: Include ctype.h.
19369 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19370 leading and/or trailing whitespace and compare strings case
19373 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19376 * testsuite/libgomp.fortran/pr28390.f: New test.
19378 2006-07-05 Eric Christopher <echristo@apple.com>
19380 * configure.ac: Depend addition of -pthread on host OS.
19381 * configure: Regenerate.
19383 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19385 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19386 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19389 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19393 * configure.ac: If neither --enable-linux-futex nor
19394 --disable-linux-futex is passed, determine the default by checking
19395 for compiling and/or running against NPTL. With --enable-linux-futex,
19396 check if SYS_gettid and SYS_futex are defined.
19397 * configure: Rebuilt.
19399 2006-06-14 Richard Henderson <rth@redhat.com>
19402 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19403 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19405 2006-06-09 Richard Henderson <rth@redhat.com>
19407 * env.c (gomp_nthreads_var): Change to unsigned long.
19408 (gomp_run_sched_chunk): Likewise.
19409 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19410 (initialize_env): Initialize gomp_thread_attr.
19411 * libgomp.h (gomp_nthreads_var): Update decl.
19412 (gomp_run_sched_chunk): Likewise.
19413 (gomp_thread_attr): Declare.
19414 * team.c (gomp_thread_attr): Export.
19415 (initialize_team): Don't initialize it.
19417 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19420 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19421 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19423 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19425 * config/mingw32/time.c: New file.
19426 * configure.tgt: Use it.
19428 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19430 * Makefile.am: Add install-html target. Add install-html to .PHONY
19431 * Makefile.in: Regenerate.
19433 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19436 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19437 * testsuite/libgomp.c/critical-1.c: Likewise.
19438 * testsuite/libgomp.c/loop-1.c: Likewise.
19439 * testsuite/libgomp.c/loop-2.c: Likewise.
19440 * testsuite/libgomp.c/single-1.c: Likewise.
19441 * testsuite/libgomp.c/ordered-1.c: Likewise.
19442 * testsuite/libgomp.c/ordered-2.c: Likewise.
19444 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19446 PR middle-end/27416
19447 * libgomp.fortran/pr27416-1.f90: New test.
19449 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19452 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19453 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19455 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19458 * testsuite/libgomp.c/pr26943-1.c: New test.
19459 * testsuite/libgomp.c/pr26943-2.c: New test.
19460 * testsuite/libgomp.c/pr26943-3.c: New test.
19461 * testsuite/libgomp.c/pr26943-4.c: New test.
19462 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19463 * testsuite/libgomp.c++/pr26943.C: New test.
19465 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19467 PR middle-end/27337
19468 * testsuite/libgomp.c++/pr27337.C: New test.
19470 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19473 * testsuite/libgomp.c/pr26171.c: New test.
19475 2006-04-25 Richard Henderson <rth@redhat.com>
19478 * configure.ac: Use GCC_CHECK_TLS.
19479 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19480 * Makefile.in, aclocal.m4, configure: Regenerate.
19482 2006-04-10 Matthias Klose <doko@debian.org>
19484 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19485 directory names containing underscores.
19487 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19490 * testsuite/libgomp.c++/pr26691.C: New test.
19492 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19494 * testsuite/libgomp.fortran/retval2.f90: New test.
19496 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19498 * testsuite/libgomp.c++: New directory.
19500 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19502 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19503 * config/posix/sem.c: Implement the above.
19505 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19507 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19508 define HAVE_BROKEN_POSIX_SEMAPHORES.
19509 * configure: Rebuilt.
19510 * config.h.in: Rebuilt.
19512 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19515 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19516 for the other pthread check.
19517 * configure: Regenerate.
19518 * config.h.in: Regenerate.
19520 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19524 * Makefile.am (fincludedir): New variable.
19525 (nodist_include_HEADERS): Remove Fortran files.
19526 (nodist_finclude_HEADERS): New variable.
19527 * Makefile.in: Regenerated.
19529 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19531 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19532 Remove tests for returning assumed character length arrays.
19534 2006-02-12 Roger Sayle <roger@eyesopen.com>
19535 John David Anglin <dave@hiauly1.hia.nrc.ca>
19538 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19540 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19542 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19544 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19546 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19547 part of LD_LIBRARY_PATH manually.
19549 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19552 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19555 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19558 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19559 * configure.ac (PERL): Don't set.
19560 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19561 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19562 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19563 * omp.h.in: Wrap the new configure substitutions with @ characters.
19564 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19565 * aclocal.m4, configure, Makefile.in: Regenerate.
19566 * mkomp_h.pl: Delete.
19568 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19571 * configure.ac: Use GCC_HEADER_STDINT.
19572 * libgomp.h: Include gstdint.h.
19573 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19574 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19576 2006-01-24 Richard Henderson <rth@redhat.com>
19579 * configure.ac: Add AM_MAINTAINER_MODE.
19580 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19582 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19584 * Makefile.in: Regenerate.
19585 * testsuite/Makefile.in: Regenerate.
19586 * aclocal.m4: Regenerate.
19588 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19590 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19592 * configure.ac: Add check for loadavg.h.
19593 (link_gomp): Adjust comment.
19594 * configure: Regenerate.
19595 * config.h.in: Regenerate.
19597 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19600 * configure.ac: Remove check for alloca.h.
19601 * configure: Regenerate.
19602 * config.h.in: Regenerate.
19603 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19604 * team.c: Remove use of alloca.h.
19605 Call gomp_alloca instead of alloca.
19607 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19610 * team.c: Add include of alloca.h.
19611 * configure.ac: Add check for alloca.h.
19612 * configure: Regenerate.
19613 * config.h.in: Regenerate.
19615 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19618 * testsuite/libgomp.fortran/pr25219.f90: New test.
19620 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19622 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19623 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19624 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19625 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19626 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19627 testsuite/libgomp.fortran/threadprivate1.f90,
19628 testsuite/libgomp.fortran/threadprivate2.f90,
19629 testsuite/libgomp.fortran/threadprivate3.f90,
19630 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19631 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19632 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19633 effective-target to TLS runtime.
19635 * testsuite/libgomp.fortran/pr25162.f: Require
19636 effective-target TLS runtime.
19638 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19640 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19641 * testsuite/libgomp.c/nestedfn-3.c: New test.
19643 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19646 * testsuite/libgomp.fortran/pr25162.f: New test.
19648 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19650 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19651 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19653 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19655 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19656 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19657 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19658 single.c, team.c, work.c, config/linux/alpha/futex.h,
19659 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19660 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19661 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19662 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19663 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19664 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19665 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19668 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19670 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19671 to nodist_noinst_HEADERS.
19672 * Makefile.in: Rebuilt.
19674 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19675 add integer count field.
19676 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19677 omp_nest_lock_t type change.
19678 (omp_init_nest_lock): Likewise. Initialize count to 0.
19679 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19681 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19683 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19684 Increment count if successful and return the new nesting level.
19685 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19686 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19687 * testsuite/libgomp.c/lib-1.c: New test.
19688 * testsuite/libgomp.fortran/lib1.f90: New test.
19689 * testsuite/libgomp.fortran/lib2.f: New test.
19690 * testsuite/libgomp.fortran/lib3.f: New test.
19692 2005-11-17 Richard Henderson <rth@redhat.com>
19695 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19696 * configure.ac (link_gomp): New. Substitute it.
19697 (AC_CONFIG_FILES): Add libgomp.spec.
19698 * libgomp.spec.in: New file.
19699 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19700 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19702 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19704 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19705 reduction(-:var) behaving the same as reduction(+:var).
19706 * testsuite/libgomp.c/reduction-4.c: New test.
19708 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19710 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19711 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19712 testsuite/libgomp.c/copyin-3.c,
19713 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19714 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19715 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19716 testsuite/libgomp.c++/pr24455.C,
19717 testsuite/libgomp.fortran/threadprivate1.f90,
19718 testsuite/libgomp.fortran/threadprivate2.f90,
19719 testsuite/libgomp.fortran/threadprivate3.f90,
19720 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19721 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19722 testsuite/libgomp.fortran/omp_parse3.f90: Require
19723 effective-target TLS.
19725 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19729 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19732 * team.c (initialize_team): Pass NULL rather than free as
19733 pthread_key_create destructor. Initialize thread specific data
19734 pointer in initial thread to a static local variable rather than
19737 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19739 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19740 its location to ld_library_path.
19742 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19744 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19746 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19748 * testsuite/libgomp.c: Rename from libgomp.dg.
19750 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19752 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19753 threadprivate variable 'i'.
19755 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19757 * config/linux/s390/futex.h: New file.
19758 * configure.tgt: Use it.
19760 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19761 before the parallel.
19763 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19766 * testsuite/libgomp.c++/master-1.C: New test.
19768 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19770 * testsuite/libgomp.dg/copyin-3.c: New test.
19772 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19774 * testsuite/libgomp.fortran/retval1.f90: New test.
19775 * testsuite/libgomp.fortran/vla7.f90: New test.
19777 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19779 * testsuite/libgomp.fortran/vla2.f90: New test.
19780 * testsuite/libgomp.fortran/vla3.f90: New test.
19781 * testsuite/libgomp.fortran/vla4.f90: New test.
19782 * testsuite/libgomp.fortran/vla5.f90: New test.
19783 * testsuite/libgomp.fortran/vla6.f90: New test.
19785 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19787 * config/linux/sparc/futex.h: New file.
19788 * configure.tgt: Use it.
19789 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19791 * critical.c: Include stdlib.h.
19792 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19793 ignoring return value.
19794 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19795 LIBGOMP_CHECK_SYNC_BUILTINS check.
19796 * configure: Rebuilt.
19798 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19800 * testsuite/libgomp.fortran/vla1.f90: New test.
19802 2005-10-31 Richard Henderson <rth@redhat.com>
19804 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19805 setting 's' in different threads.
19807 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19809 * libgomp.h (attribute_hidden, ialias): Define.
19810 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19811 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19812 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19813 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19814 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19815 omp_test_lock, omp_test_nest_lock): Likewise.
19816 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19817 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19818 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19819 omp_test_lock, omp_test_nest_lock): Likewise.
19820 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19821 omp_get_dynamic, omp_get_nested): Likewise.
19822 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19823 omp_get_thread_num, omp_in_parallel): Likewise.
19824 * fortran.c (ialias_redirect): Define.
19825 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19826 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19827 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19828 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19829 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19830 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19831 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19832 omp_get_wtime): Add ialias_redirect.
19834 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19836 * fortran.c: Include stdlib.h.
19838 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19840 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19841 * Makefile.in: Regenerated.
19843 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19845 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19846 * libgomp_f.h.in (omp_check_defines): New function.
19847 * env.c: Include libgomp_f.h.
19848 (initialize_env): Call omp_check_defines.
19850 * testsuite/libgomp.dg/copyin-2.c: New test.
19851 * testsuite/libgomp.c++/copyin-2.C: New test.
19852 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19854 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19855 * testsuite/libgomp.fortran/sharing2.f90: New test.
19857 * testsuite/libgomp.dg/copyin-1.c: New test.
19858 * testsuite/libgomp.c++/copyin-1.C: New test.
19860 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19862 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19864 * testsuite/libgomp.fortran/workshare1.f90: New test.
19866 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19868 * libgomp.fortran/sharing1.f90: New test.
19870 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19873 * testsuite/libgomp.c++/loop-7.C: New test.
19875 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19877 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19878 * testsuite/libgomp.fortran/reduction6.f90: New test.
19879 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19881 2005-10-23 Richard Henderson <rth@redhat.com>
19883 * testsuite/libgomp.c++/ctor-1.C: New.
19884 * testsuite/libgomp.c++/ctor-2.C: New.
19885 * testsuite/libgomp.c++/ctor-3.C: New.
19886 * testsuite/libgomp.c++/ctor-4.C: New.
19887 * testsuite/libgomp.c++/ctor-5.C: New.
19888 * testsuite/libgomp.c++/ctor-6.C: New.
19889 * testsuite/libgomp.c++/ctor-7.C: New.
19890 * testsuite/libgomp.c++/ctor-8.C: New.
19891 * testsuite/libgomp.c++/ctor-9.C: New.
19893 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19896 * testsuite/libgomp.c++/pr24455-1.C: New test.
19897 * testsuite/libgomp.c++/pr24455.C: New test.
19898 * testsuite/libgomp.dg/pr24455-1.c: New test.
19899 * testsuite/libgomp.dg/pr24455.c: New test.
19901 2005-10-20 Richard Henderson <rth@redhat.com>
19903 * testsuite/libgomp.c++/loop-6.C: New.
19904 * testsuite/libgomp.dg/loop-3.c: New.
19906 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19908 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19909 explicitly private.
19910 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19913 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19915 * testsuite/libgomp.fortran/jacobi.f: New test.
19917 2005-10-19 Richard Henderson <rth@redhat.com>
19919 * configure.tgt (i?86-linux): Default to with_arch instead of
19920 CFLAGS. Add -mtune to match target_cpu.
19921 (x86_64-linux): Tune to i686.
19923 * fortran.c (omp_test_nest_lock_): Fix typo.
19925 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19927 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19928 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19929 * testsuite/libgomp.dg/ordered-3.c: New test.
19931 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19932 Remove volatile keyword.
19934 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19935 in COMMON block to avoid warnings on 64-bit targets.
19937 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19939 * testsuite/libgomp.dg/shared-3.c: New test.
19941 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19943 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19944 * testsuite/libgomp.fortran/reduction5.f90: New test.
19946 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19948 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19950 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19951 flush loop now that __sync_synchronize has proper memory barrier.
19952 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19953 Add -ffixed-form to dg-options.
19955 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19957 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19958 from subdirectories.
19959 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19960 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19961 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19962 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19963 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19964 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19965 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19966 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19967 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19968 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19969 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19970 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19971 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19972 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19973 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19974 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19975 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19976 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19977 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19978 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19979 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19980 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19981 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19982 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19983 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19985 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19987 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19988 lang_library_path exists. Use find instead of glob to gather tests.
19989 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19991 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19993 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19994 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19995 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19996 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19997 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19998 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19999 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20000 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20001 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20002 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20003 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20004 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20005 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20007 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20009 * testsuite/libgomp.dg/vla-1.c: New test.
20011 * testsuite/libgomp.fortran/reference2.f90: New test.
20013 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20014 declaration of omp_get_thread_num.
20015 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20018 * testsuite/libgomp.fortran/reduction1.f90: New test.
20019 * testsuite/libgomp.fortran/reduction2.f90: New test.
20020 * testsuite/libgomp.fortran/reduction3.f90: New test.
20021 * testsuite/libgomp.fortran/reduction4.f90: New test.
20023 2005-10-13 Richard Henderson <rth@redhat.com>
20025 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20026 * Makefile.in: Regenerate.
20027 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20028 * libgomp.h: Include bar.h.
20029 (struct gomp_barrier): Remove.
20030 (struct gomp_team): Add barrier. Replace master_barrier with
20031 master_release. Replace threads with ordered_release.
20032 (struct gomp_thread): Replace barrier with release.
20033 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20034 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20035 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20036 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20037 (GOMP_single_copy_end): Likewise.
20038 * team.c (gomp_threads_dock): New.
20039 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20040 (gomp_thread_start): Use gomp_barrier_wait.
20041 (new_team, free_team): Update for gomp_team changes.
20042 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20043 (gomp_team_end): Use gomp_barrier_wait.
20044 (initialize_team): Update for gomp_thread changes.
20045 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20046 (gomp_work_share_end_nowait): Use atomic ops when available.
20047 * config/linux/bar.c, config/linux/bar.h: New files.
20048 * config/posix/bar.c, config/posix/bar.h: New files.
20050 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20052 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20053 * testsuite/libgomp.dg/single-2.c: New test.
20055 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20056 lang_link_flags): Unset, so that they aren't inherited from previously
20059 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20061 2005-10-12 Richard Henderson <rth@redhat.com>
20063 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20064 (libgomp_init): Use lang_test_file, lang_library_path, and
20065 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20067 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20068 (lang_test_file, lang_link_flags): New.
20069 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20071 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20072 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20073 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20074 testsuite/libgomp.c++/parallel-1.C,
20075 testsuite/libgomp.c++/reduction-1.C,
20076 testsuite/libgomp.c++/reduction-2.C,
20077 testsuite/libgomp.c++/reduction-3.C,
20078 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20079 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20080 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20081 New files, largely cribbed from the C testsuite.
20083 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20085 * testsuite/libgomp.fortran/character1.f90: New test.
20086 * testsuite/libgomp.fortran/character2.f90: New test.
20088 * testsuite/libgomp.dg/nested-1.c: New test.
20089 * testsuite/libgomp.dg/nested-2.c: New test.
20090 * testsuite/libgomp.fortran/do1.f90: New test.
20091 * testsuite/libgomp.fortran/do2.f90: New test.
20093 * testsuite/libgomp.fortran/reference1.f90: New test.
20095 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20097 * testsuite/libgomp.dg/reduction-1.c: New test.
20098 * testsuite/libgomp.dg/reduction-2.c: New test.
20099 * testsuite/libgomp.dg/reduction-3.c: New test.
20101 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20103 * testsuite/libgomp.dg/atomic-1.c: New test.
20104 * testsuite/libgomp.dg/atomic-2.c: New test.
20106 2005-10-09 Richard Henderson <rth@redhat.com>
20108 * critical.c (atomic_lock): New.
20109 (initialize_critical): Initialize it.
20110 (GOMP_atomic_start, GOMP_atomic_end): New.
20111 * libgomp.map: Export them.
20112 * libgomp_g.h: Declare them.
20114 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20116 2005-10-02 Richard Henderson <rth@redhat.com>
20118 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20119 to XCFLAGS instead of CFLAGS.
20121 2005-09-30 Richard Henderson <rth@redhat.com>
20123 * configure.ac: Determine whether -pthread or -lpthread is needed.
20124 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20125 * Makefile.in, configure: Rebuild.
20127 2005-09-28 Richard Henderson <rth@redhat.com>
20129 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20130 * testsuite/libgomp.dg/omp-single-3.c: New test.
20132 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20134 * testsuite/libgomp.dg/omp-single-2.c: New test.
20135 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20137 2005-09-27 Richard Henderson <rth@redhat.com>
20139 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20140 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20142 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20144 * testsuite/libgomp.dg/omp-loop03.c: New test.
20146 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20148 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20150 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20152 * testsuite/libgomp.dg/omp-single-1.c: New test.
20153 * testsuite/libgomp.dg/shared-1.c: Return 0.
20154 Add prototype for abort.
20155 * testsuite/libgomp.dg/shared-2.c: Likewise.
20157 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20159 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20162 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20164 * testsuite/libgomp.dg/shared-1.c: New test.
20165 * testsuite/libgomp.dg/shared-2.c: New test.
20167 2005-09-24 Richard Henderson <rth@redhat.com>
20169 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20171 2005-09-24 Richard Henderson <rth@redhat.com>
20173 * iter.c (gomp_iter_static_next): Round up when computing number
20174 of iterations. Don't bother distributing a remainder equally.
20176 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20177 Don't call srand. Zero b before testing.
20180 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20182 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20183 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20185 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20187 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20188 without !$omp end do, followed immediately by subroutine end.
20190 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20192 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20194 2005-09-22 Richard Henderson <rth@redhat.com>
20196 * critical.c (GOMP_critical_name_start): Change argument to void**.
20197 Reuse the pointer space if the mutex fits.
20198 (GOMP_critical_name_end): Likewise.
20199 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20200 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20201 (GOMP_critical_name_end): Likewise.
20202 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20203 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20205 2005-09-20 Richard Henderson <rth@redhat.com>
20207 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20208 (create_lock_lock): New.
20209 (initialize_critical): Initialize it.
20210 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20211 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20213 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20215 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20217 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20219 * testsuite/libgomp.dg/omp-loop01.c: New test.
20220 * testsuite/libgomp.dg/omp-loop02.c: New test.
20222 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20224 * configure.ac (AC_PROG_FC): Add.
20225 (USE_FORTRAN): New automake conditional.
20226 * configure: Rebuilt.
20227 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20228 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20229 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20230 Add rules to build them.
20231 * Makefile.in: Rebuilt.
20232 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20233 OMP_NEST_LOCK_KIND.
20234 * libgomp.map: Add Fortran wrappers.
20235 * libgomp_f.h.in: New file.
20236 * omp_lib.h.in: New file.
20237 * omp_lib.f90.in: New file.
20238 * fortran.c: New file.
20239 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20240 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20241 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20242 libgfortran has been built.
20243 * testsuite/libgomp.fortran/fortran.exp: New file.
20244 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20245 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20246 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20247 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20248 * testsuite/libgomp.fortran/omp_hello.f: New test.
20249 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20250 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20251 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20252 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20253 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20254 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20255 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20256 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20258 2005-08-30 Richard Henderson <rth@redhat.com>
20260 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20261 function for when aliases are not usable.
20262 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20263 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20264 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20265 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20266 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20267 GOMP_loop_ordered_guided_next): Likewise.
20268 * ordered.c (GOMP_ordered_start): Likewise.
20270 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20272 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20273 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20274 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20275 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20276 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20277 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20278 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20279 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20280 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20282 2005-07-07 Eric Christopher <echristo@redhat.com>
20283 Diego Novillo <dnovillo@redhat.com>
20285 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20286 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20288 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20289 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20290 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20291 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20292 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20293 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20294 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20296 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20298 * TOPLEVEL.patch: Remove.
20300 2005-05-16 Richard Henderson <rth@redhat.com>
20302 * configure.ac: Test for clock_gettime.
20303 * config.h.in, configure: Rebuild.
20304 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20305 (omp_get_wtime): Use clock_gettime if available.
20306 (omp_get_wtick): Use clock_getres if available.
20308 2005-05-11 Richard Henderson <rth@redhat.com>
20310 * config/linux/ia64/futex.h: New file.
20311 * configure.tgt: Use it.
20313 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20315 2005-05-07 Richard Henderson <rth@redhat.com>
20317 * config/linux/powerpc/futex.h: New file.
20318 * configure.tgt: Use it.
20320 * config/linux/i486/futex.h: Merge ...
20321 * config/linux/x86_64/futex.h: ... into ...
20322 * config/linux/x86/futex.h: ... here.
20323 * configure.tgt: Update to match.
20325 2005-05-06 Richard Henderson <rth@redhat.com>
20327 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20328 * config/linux/i486/futex.h: Likewise.
20329 * config/linux/x86_64/futex.h: Likewise.
20331 * config/linux/lock.c: New file.
20332 * config/linux/omp-lock.h: New file.
20334 * critical.c, env.h: Don't include omp.h
20335 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20336 * config/posix/time.c: Likewise.
20337 * config/posix/omp-lock.h: New file.
20338 * libgomp.h: Include omp-lock.h and omp.h.
20339 * Makefile.am (nodist_include_HEADERS): New.
20341 * configure.ac (PERL): New.
20342 * mkomp_h.pl: New file.
20343 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20345 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20347 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20348 build directory. Re-add -march=i486 hack.
20350 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20351 (libgomp_link_flags): Remove.
20352 (libgomp_initialized): Remove.
20353 (libgomp_init): Don't protect from reinitialization. Copy code
20354 from libstdc++ for getting the multilib set correctly.
20356 2005-05-05 Richard Henderson <rth@redhat.com>
20358 * config/linux/alpha/futex.h: New file.
20359 * configure.tgt (alpha*-*-linux*): Use it.
20361 * config/posix/mutex.c: New file.
20362 * config/posix/sem.c: Use libgomp.h.
20364 * configure.tgt (x86_64-linux): Also test CC for -m32.
20365 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20367 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20370 * Makefile.am (SUBDIRS): New.
20371 (libgomp_la_LDFLAGS): Add -lpthread.
20372 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20373 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20375 * libgomp_g.h: New file.
20376 * libgomp.h: Split out all public declarations to libgomp_g.h.
20377 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20378 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20379 * config/linux/sem.h: Likewise.
20380 * config/posix/sem.h: Likewise.
20382 * Makefile.am (AM_LDFLAGS): New.
20383 (libgomp_version_script): Split out from ...
20384 (libgomp_la_LDFLAGS): ... here.
20385 (libgomp_version_info): New.
20386 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20387 (LIBGOMP_ENABLE): New.
20388 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20389 (LIBGOMP_ENABLE_SYMVERS): New.
20390 * configure.ac (AC_INIT): Version 1.0.
20391 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20392 (enable-linux-futex): Likewise. Rename from enable-futex.
20393 (libtool_VERSION): New.
20394 (LIBGOMP_ENABLE_SYMVERS): Use it.
20395 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20396 * Makefile.in, aclocal.m4, configure: Rebuild.
20398 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20399 (gomp_mutex_unlock_slow): Fix typo.
20400 * config/linux/sem.c: Similarly.
20401 (gomp_sem_post_slow): Fix typo.
20402 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20403 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20404 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20406 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20407 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20408 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20409 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20410 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20411 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20412 LDFLAGS. Pull enable_futex check to top-level.
20413 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20414 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20416 First attempt at real configury.
20417 * Makefile, config.h: Remove file.
20418 * Makefile.am, Makefile.in: New file.
20419 * acinclude.m4 aclocal.m4: New file.
20420 * configure.ac, configure.tgt, configure: New file.
20422 * config/posix/lock.c: Rename from sys-lock.c.
20423 * config/posix/mutex.h: Rename from sys-mutex.h.
20424 * config/posix/sem.c: Rename from sys-sem.c.
20425 * config/posix/sem.h: Rename from sys-sem.h.
20426 * config/posix/proc.c: Rename from sys-proc.c.
20427 * config/posix/time.c: Rename from sys-proc.c.
20429 * config/linux/mutex.c: New file.
20430 * config/linux/mutex.h: New file.
20431 * config/linux/sem.c: New file.
20432 * config/linux/sem.h: New file.
20433 * config/linux/i486/futex.h: New file.
20434 * config/linux/x86_64/futex.h: New file.
20436 2005-05-04 Richard Henderson <rth@redhat.com>
20438 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20439 * libgomp.h: Declare them.
20440 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20441 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20443 2005-05-04 Richard Henderson <rth@redhat.com>
20445 * libgomp-1 code drop
20447 2005-05-04 Richard Henderson <rth@redhat.com>
20449 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20450 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20451 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20452 (gomp_iter_static_next): Update.
20453 (gomp_ordered_static_next): Update.
20454 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20455 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20456 totally empty range.
20457 (gomp_loop_ordered_static_next): Refine test for calling
20458 gomp_ordered_static_next.
20459 * testsuite/ordered-1.c: Add case for more threads than iterations.
20461 * iter.c (gomp_iter_runtime_next_locked): Remove.
20462 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20463 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20464 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20465 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20466 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20467 gomp_loop_ordered_guided_next): Downcase name, make static, add
20468 an external alias with the old name.
20469 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20470 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20471 switch and call one of the above static functions.
20472 * libgomp.h: Update.
20474 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20475 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20476 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20477 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20478 GOMP_loop_ordered_guided_start): Update to match.
20479 * sections.c (GOMP_sections_start): Likewise.
20480 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20482 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20483 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20484 Use bounds check instead of modulus.
20485 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20486 (gomp_ordered_last): Don't sync with ordered_owner here.
20487 (gomp_ordered_next): Likewise.
20488 (gomp_ordered_static_loop_next): Likewise.
20489 * loop.c, libgomp.h: Update to match.
20491 * libgomp.h (GOMP_barrier): Declare.
20493 * testsuite/barrier-1.c: New file.
20494 * testsuite/critical-1.c: New file.
20495 * testsuite/ordered-2.c: New file.
20496 * testsuite/ordered-1.c: New file.
20497 * testsuite/sections-1.c: New file.
20498 * testsuite/single-1.c: New file.
20499 * testsuite/Makefile (TESTS): Add them.
20501 2005-05-04 Richard Henderson <rth@redhat.com>
20503 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20504 * loop.c (GOMP_loop_static_start): If not the startup thread,
20505 acquire the mutex to wait for initialization complete.
20506 (GOMP_loop_ordered_static_start): Likewise.
20507 (GOMP_loop_ordered_runtime_start): Likewise.
20508 (GOMP_loop_ordered_static_first): Remove.
20509 (GOMP_loop_ordered_dynamic_first): Remove.
20510 (GOMP_loop_ordered_guided_first): Remove.
20511 (GOMP_loop_ordered_runtime_first): Remove.
20512 * ordered.c (gomp_ordered_loop_first): Post to own release when
20513 we're the first thread.
20514 (gomp_ordered_loop_last): Wait on release if not owner.
20515 (gomp_ordered_loop_next): Likewise.
20516 (gomp_ordered_static_loop_init): New.
20517 (gomp_ordered_static_loop_next): Use ordered_owner.
20518 (GOMP_ordered_start): Likewise.
20519 * work.c (gomp_new_work_share): Initialize ordered_owner.
20521 2005-05-03 Richard Henderson <rth@redhat.com>
20523 * Makefile (OPT): New.
20526 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20527 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20528 * libgomp.h, libgomp.map, NOTES: Update to match.
20530 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20531 Add initialized and thr members.
20532 (gomp_thread_start): Pause when initially spawned to wait for
20533 the whole team to be created.
20534 (gomp_team_start): Release team members at the end.
20536 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20537 (f_foo_1): Use GOMP_loop_end.
20538 (f_foo_2): Use GOMP_loop_end_nowait.
20540 * testsuite/loop-2.c: New file.
20541 * testsuite/Makefile (TESTS): Add it.
20543 2005-05-03 Richard Henderson <rth@redhat.com>
20545 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20546 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20547 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20548 initial work_share.
20550 * testsuite/Makefile: New file.
20551 * testsuite/loop-1.c: New file.
20553 2005-05-03 Richard Henderson <rth@redhat.com>
20555 Initial implementation and checkin.
20557 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20559 Copying and distribution of this file, with or without modification,
20560 are permitted in any medium without royalty provided the copyright
20561 notice and this notice are preserved.