1 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
3 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
4 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
5 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
6 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
7 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
8 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
9 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
10 * testsuite/libgomp.c/declare-variant-4.c: New.
12 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
14 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
16 * testsuite/libgomp.c/declare-variant-3.c: New.
17 * testsuite/libgomp.c/declare-variant-3.h: Extend.
19 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
21 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
22 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
23 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
24 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
25 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
26 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
27 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
28 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
29 'scan-offload-tree-dump' to
30 'only_for_offload_target amdgcn-amdhsa'.
31 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
32 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
33 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
34 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
35 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
37 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
39 * testsuite/libgomp.c/declare-variant-3-sm30.c:
40 'dg-additional-options -foffload=nvptx-none'.
41 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
42 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
43 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
44 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
45 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
47 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
49 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
50 'scan-offload-ipa-dump's to
51 'only_for_offload_target amdgcn-amdhsa'.
52 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
53 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
55 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
57 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
60 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
62 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
63 (f75, f80, f): Add '__attribute__ ((noipa))'.
64 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
65 (gfx908, gfx90a, f): Likewise.
67 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
68 Andrew Jenner <andrew@codesourcery.com>
70 * plugin/plugin-gcn.c (max_isa_vgprs): New.
71 (run_kernel): CDNA2 devices have more VGPRs.
73 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
75 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
76 renamed section from TR11.
78 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
80 * config/linux/target-indirect.c: Move to...
81 * target-indirect.c: ...here.
83 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
85 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
86 * Makefile.in: Regenerate.
87 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
88 (GOMP_OFFLOAD_load_image): Add extra argument.
89 * libgomp.h (struct indirect_splay_tree_key_s): New.
90 (indirect_splay_tree_node, indirect_splay_tree,
91 indirect_splay_tree_key): New.
92 (indirect_splay_compare): New.
93 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
94 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
95 calls in target region and on indirect clause.
96 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
97 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
98 * oacc-host.c (host_load_image): Add extra argument.
99 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
100 enough, read host indirect functions table and pass to
102 * config/accel/target-indirect.c: New.
103 * config/linux/target-indirect.c: New.
104 * config/gcn/team.c (build_indirect_map): Add prototype.
105 (gomp_gcn_enter_kernel): Initialize support for indirect
106 function calls on GCN target.
107 * config/nvptx/team.c (build_indirect_map): Add prototype.
108 (gomp_nvptx_main): Initialize support for indirect function
109 calls on NVPTX target.
110 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
111 indirect functions count.
112 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
113 is high enough, build address translation table and copy it to target
115 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
117 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
118 is high enough, Build address translation table and copy it to target
120 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
121 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
122 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
124 2023-11-05 Jakub Jelinek <jakub@redhat.com>
126 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
129 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
131 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
132 'acc_map_data' variant.
134 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
136 * oacc-parallel.c (GOACC_data_start): Handle
137 'GOACC_FLAG_LOCAL_DEVICE'.
138 (GOACC_parallel_keyed): Simplify accordingly.
139 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
141 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
143 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
144 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
145 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
146 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
147 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
149 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
151 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
152 GOACC_FLAG_LOCAL_DEVICE case.
153 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
155 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
157 * Makefile.am: Handle Darwin rpaths.
158 * Makefile.in: Regenerate.
159 * configure: Regenerate.
160 * configure.ac: Handle Darwin rpaths
162 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
164 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
165 (isa_hsa_name): Recognise gfx1030.
166 (isa_code): Likewise.
167 * team.c (defined): Remove s_endpgm.
169 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
171 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
174 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
176 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
177 improve wording especially for Fortran; mention -fopenmp-simd.
178 (Enabling OpenACC): Minor cleanup; remove conditional compilation
181 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
183 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
184 Actually document what the function does.
185 (GCC_ACC_NOTIFY): Remove unused env var.
187 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
189 * libgomp.texi: Replace most future tense by present tense.
191 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
193 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
194 dg-additional-options "-fdump-tree-gimple"; fix scan.
196 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
198 * libgomp.texi: Fix some typos.
199 (Memory Management Routines): Document remaining 5.x routines.
200 (Memory allocation): Make clear when the section applies.
202 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
204 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
205 supports the allocate directive for stack variables.
206 * testsuite/libgomp.fortran/allocate-5.f90: New test.
207 * testsuite/libgomp.fortran/allocate-6.f90: New test.
208 * testsuite/libgomp.fortran/allocate-7.f90: New test.
209 * testsuite/libgomp.fortran/allocate-8.f90: New test.
211 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
213 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
215 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
216 clarify MANDATORY behavior.
218 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
220 * env.c (initialize_env): Use do_adjust_default_spincount.
221 * config/linux/x86/spincount.h: New file.
223 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
225 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
227 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
229 * libgomp.texi (Device Memory Routines): New.
231 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
233 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
234 and that other target archs have no 'arch'/'isa' traits implemented.
236 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
238 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
239 implemented for C only.
240 * testsuite/libgomp.c/allocate-4.c: New test.
241 * testsuite/libgomp.c/allocate-5.c: New test.
242 * testsuite/libgomp.c/allocate-6.c: New test.
244 2023-09-20 Jakub Jelinek <jakub@redhat.com>
247 * libgomp.texi: Mark decl attribute was added to the C++ attribute
248 syntax as implemented.
250 2023-09-19 Jakub Jelinek <jakub@redhat.com>
253 * env.c (initialize_env): Don't dereference environ if it is NULL.
256 2023-09-18 Richard Biener <rguenther@suse.de>
258 PR tree-optimization/111294
259 * team.c (gomp_team_start): Assert alloca size to avoid false
260 positive alloc-size diagnostic.
262 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
263 Chung-Lin Tang <cltang@codesourcery.com>
267 * configure.ac: Revert earlier changes, instead
268 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
269 * Makefile.in: Regenerate.
270 * configure: Likewise.
271 * testsuite/Makefile.in: Likewise.
272 * testsuite/lib/libgomp.exp (libgomp_init): Remove
273 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
274 If '--with-build-sysroot=[...]' was specified, use it for
276 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
277 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
278 (SYSROOT_CFLAGS_FOR_TARGET): Set.
279 * testsuite/libgomp.c++/c++.exp (lang_source_re)
280 (lang_include_flags): Set for build-tree testing.
281 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
282 (lang_include_flags): Likewise.
284 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
286 * libgomp.texi (Memory Management Routines): New; add documentation for
287 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
288 omp_get_default_allocator.
289 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
291 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
293 * target.c (gomp_unload_device): Remove tailing whitespace.
295 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
296 Thomas Schwinge <thomas@codesourcery.com>
298 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
300 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
302 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
304 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
306 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
307 * testsuite/libgomp.fortran/imperfect1.f90: New.
308 * testsuite/libgomp.fortran/imperfect2.f90: New.
309 * testsuite/libgomp.fortran/imperfect3.f90: New.
310 * testsuite/libgomp.fortran/imperfect4.f90: New.
311 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
312 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
313 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
314 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
316 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
318 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
319 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
320 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
321 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
322 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
323 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
324 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
325 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
326 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
327 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
329 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
331 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
332 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
333 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
334 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
335 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
336 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
337 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
338 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
339 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
340 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
341 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
342 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
343 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
345 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
347 * testsuite/lib/libgomp.exp: Add effective target.
348 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
351 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
353 * libgomp.texi (OpenMP 5.2 status): Add depobj with
354 destroy-var argument as 'N'. Mark defaultmap with
355 'all' category as 'Y'.
357 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
360 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
362 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
365 * allocator.c (gomp_init_libnuma): Call numa_available; if
366 not available or not returning 0, disable libnuma usage.
368 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
370 * configure: Regenerate.
372 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
374 * configure: Regenerate.
376 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
378 * configure: Regenerate.
380 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
382 * configure: Regenerate.
384 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
386 * configure: Regenerate.
388 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
390 * configure: Regenerate.
392 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
394 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
395 GOMP_OFFLOAD_CAP_SHARED_MEM.
396 (omp_target_memcpy_rect_copy): Likewise for lock condition.
397 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
399 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
400 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
401 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
403 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
405 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
406 GOMP_OFFLOAD_memcpy3d): New prototypes.
407 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
409 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
410 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
411 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
412 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
413 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
414 GOMP_OFFLOAD_memcpy3d): New.
415 * target.c (omp_target_memcpy_rect_worker):
416 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
417 Permit all device-to-device copyies; invoke new plugins for
418 2D and 3D copying when available.
419 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
420 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
421 * testsuite/libgomp.fortran/target-12.f90: Likewise.
422 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
424 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
426 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
427 (Tasking Routines): Document omp_in_explicit_task.
428 (Implementation-defined ICV Initialization): Use @ref not @code.
430 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
432 * libgomp.texi (OpenMP Runtime Library Routines):
433 Split long list by adding sections and moving routines there.
434 (OMP_ALLOCATORS): Fix typo.
436 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
439 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
440 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
442 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
443 test file; tests are in non-rectangular-loop-1.f90.
444 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
445 testcase to use a non-constant step to retain the 'sorry' test.
446 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
448 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
449 Chung-Lin Tang <cltang@codesourcery.com>
451 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
452 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
454 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
456 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
457 the traits. Add crossref to 'Memory allocation'.
458 (Memory allocation): Refer to OMP_ALLOCATOR for the available
459 traits and allocators/mem spaces; document the default value
460 for the pool_size trait.
462 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
464 * allocator.c (omp_init_allocator): Check whether symbol from
465 dlopened libnuma is available before using libnuma for
468 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
470 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
471 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
472 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
474 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
476 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
477 'Memory allocation' section which contains the full status.
478 (TR11): Remove differently worded duplicated entry.
480 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
482 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
483 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
484 add GOMP_MEMKIND_LIBNUMA.
485 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
486 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
487 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
488 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
490 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
491 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
492 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
493 updated for libnuma usage.
494 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
495 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
497 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
499 * allocator.c (omp_init_allocator): Use malloc for
500 omp_high_bw_mem_space when the memkind lib is unavailable
501 instead of returning omp_null_allocator.
502 * libgomp.texi (OpenMP 5.0): Fix typo.
503 (Memory allocation with libmemkind): Document implementation
506 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
508 * libgomp.texi: Use @var for ICV vars.
509 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
510 document which ICV is set and which scope the ICV has; extend/cleanup
512 (Implementation-defined ICV Initialization): New.
513 (nvptx): Document the implementation-defined used per-warp stack size.
515 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
517 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
520 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
522 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
523 as expected dg-output.
525 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
528 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
529 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
530 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
531 * testsuite/libgomp.c/target-19.c: Update expected value.
532 * testsuite/libgomp.c++/target-18.C: Likewise.
533 * testsuite/libgomp.c++/target-19.C: Likewise.
534 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
535 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
536 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
538 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
540 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
541 gomp_init_targets_once was called before using default-device-var.
542 * testsuite/libgomp.c/target-55.c: New test.
543 * testsuite/libgomp.c/target-55a.c: New test.
545 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
547 * env.c (gomp_def_allocator_envvar): New var.
548 (parse_allocator): Handle OpenMP 5.1 syntax.
550 (omp_display_env): Output gomp_def_allocator_envvar
551 for an allocator with traits.
552 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
553 OMP_DISPLAY_AFFINITY): New.
554 * testsuite/libgomp.c/allocator-1.c: New test.
555 * testsuite/libgomp.c/allocator-2.c: New test.
556 * testsuite/libgomp.c/allocator-3.c: New test.
557 * testsuite/libgomp.c/allocator-4.c: New test.
558 * testsuite/libgomp.c/allocator-5.c: New test.
559 * testsuite/libgomp.c/allocator-6.c: New test.
561 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
563 * target.c (resolve_device): Align a
564 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
565 * testsuite/libgomp.c/target-51.c: Adjust.
567 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
569 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
571 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
573 * testsuite/libgomp.c/simd-math-1.c: Remove
574 '-foffload-options=-lm'.
575 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
577 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
580 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
582 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
583 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
586 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
588 * testsuite/libgomp.c/target-51.c: Fix typo.
590 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
592 * env.c (gomp_default_icv_values): Init default_device_var to
593 an nonconforming value - INT_MIN.
594 (initialize_env): After env-var parsing, set default_device_var to
595 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
596 (omp_display_env): If default_device_var is INT_MIN, call
597 gomp_init_targets_once.
598 * icv-device.c (omp_get_default_device): Likewise.
599 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
600 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
601 * target.c (resolve_device): Improve error message device-num < 0
602 with 'mandatory' and no no-host devices available.
603 (gomp_target_init): Set default-device-var if INT_MIN.
604 * testsuite/libgomp.c/target-48.c: New test.
605 * testsuite/libgomp.c/target-49.c: New test.
606 * testsuite/libgomp.c/target-50.c: New test.
607 * testsuite/libgomp.c/target-50a.c: New test.
608 * testsuite/libgomp.c/target-51.c: New test.
609 * testsuite/libgomp.c/target-52.c: New test.
610 * testsuite/libgomp.c/target-53.c: New test.
611 * testsuite/libgomp.c/target-54.c: New test.
613 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
616 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
617 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
619 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
621 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
622 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
623 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
625 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
626 changed error message.
627 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
628 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
629 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
630 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
631 extend testcase to check that data is copied when needed.
632 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
633 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
635 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
636 Tobias Burnus <tobias@codesourcery.com>
638 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
639 also for non-offload_device targets; check that it runs
640 successfully for those and for all until a checkpoint for all
641 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
642 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
643 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
644 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
645 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
646 add missing vars to map clause.
648 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
650 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
651 unified_address requirement as supported.
652 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
653 'unified_address' from the not-supported requirements.
655 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
656 Tobias Burnus <tobias@codesourcery.com>
658 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
659 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
660 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
662 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
663 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
664 Emit runtime error if memory region not present.
665 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
666 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
667 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
668 * testsuite/libgomp.fortran/target-present-1.f90: New test.
669 * testsuite/libgomp.fortran/target-present-2.f90: New test.
670 * testsuite/libgomp.fortran/target-present-3.f90: New test.
672 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
675 * testsuite/lib/libgomp.exp: 'flock' through stdout.
676 * testsuite/flock: New.
677 * configure.ac (FLOCK): Point to that if no 'flock' available, but
679 * configure: Regenerate.
681 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
683 * configure.ac (PERL): Remove.
684 * configure: Regenerate.
685 * Makefile.in: Likewise.
686 * testsuite/Makefile.in: Likewise.
688 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
690 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
692 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
694 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
696 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
699 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
700 * config/nvptx/target.c (GOMP_teams4): Likewise.
701 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
702 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
703 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
704 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
706 2023-05-19 Jakub Jelinek <jakub@redhat.com>
709 * configure.ac (link_gomp): Include also $DL_LIBS.
710 * configure: Regenerated.
712 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
714 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
716 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
717 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
718 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
719 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
721 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
724 * configure.ac: Look for 'flock'.
725 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
726 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
727 * testsuite/lib/libgomp.exp: ... but here, instead.
728 (libgomp_load): Override for parallel testing.
729 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
730 * configure: Regenerate.
731 * Makefile.in: Regenerate.
732 * testsuite/Makefile.in: Regenerate.
734 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
735 Thomas Schwinge <thomas@codesourcery.com>
738 * testsuite/Makefile.am (PWD_COMMAND): New variable.
739 (%/site.exp): New target.
740 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
741 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
742 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
744 (check_DEJAGNU_libgomp_targets): New variables.
745 ($(check_DEJAGNU_libgomp_targets)): New target.
746 ($(check_DEJAGNU_libgomp_targets)): New dependency.
747 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
748 * testsuite/Makefile.in: Regenerate.
749 * testsuite/lib/libgomp.exp: For parallel testing,
750 'load_file ../libgomp-test-support.exp'.
752 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
755 * configure.ac: 'AC_SUBST(CXX)'.
756 * configure: Regenerate.
757 * Makefile.in: Likewise.
758 * testsuite/Makefile.in: Likewise.
759 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
760 (GFORTRAN_UNDER_TEST): Set.
761 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
762 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
763 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
764 * testsuite/libgomp.fortran/fortran.exp: Use
765 'GFORTRAN_UNDER_TEST'.
766 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
768 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
771 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
773 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
774 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
775 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
776 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
778 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
779 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
780 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
783 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
786 * testsuite/libgomp.c++/target-map-class-1.C: New test.
787 * testsuite/libgomp.c++/target-map-class-2.C: New test.
789 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
791 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
792 'lang_library_path' into a list of 'lang_library_paths'.
793 * testsuite/libgomp.c++/c++.exp: Adjust.
794 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
795 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
797 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
799 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
801 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
802 at 'lang_test_file_found'.
803 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
804 'return' early if not able to test. Simplify 'ld_library_path' setup.
805 * testsuite/libgomp.fortran/fortran.exp: Likewise.
806 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
807 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
809 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
811 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
813 * testsuite/libgomp.fortran/fortran.exp: Likewise.
814 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
815 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
817 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
819 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
820 * testsuite/libgomp.c/c.exp: Likewise.
821 * testsuite/libgomp.fortran/fortran.exp: Likewise.
822 * testsuite/libgomp.graphite/graphite.exp: Likewise.
823 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
824 * testsuite/libgomp.oacc-c/c.exp: Likewise.
825 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
827 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
829 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
830 * testsuite/libgomp.fortran/fortran.exp: Likewise.
831 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
832 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
833 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
835 * testsuite/libgomp.oacc-c/c.exp: Likewise.
836 * testsuite/libgomp.graphite/graphite.exp: Likewise.
837 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
838 'lang_test_file_found' instead of 'lang_test_file'.
840 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
842 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
844 * testsuite/libgomp.c++/c++.exp: Likewise.
845 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
847 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
849 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
850 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
852 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
854 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
855 of 'libstdcxx_includes'.
856 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
858 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
860 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
861 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
862 * libgomp.h (gomp_target_rev): Adjust.
863 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
864 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
865 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
866 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
867 (rev_off_host_to_dev_cpy): Remove.
868 (GOMP_OFFLOAD_run): Adjust.
870 2023-05-04 Julian Brown <julian@codesourcery.com>
873 * testsuite/libgomp.fortran/pr109622.f90: Move test...
874 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
875 vector length warning.
876 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
877 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
878 missing copyin/copyout variable. Ignore vector length warnings.
879 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
880 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
881 vector length warnings.
882 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
884 2023-04-28 Julian Brown <julian@codesourcery.com>
887 * testsuite/libgomp.fortran/pr109622.f90: New test.
888 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
889 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
891 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
893 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
894 * testsuite/libgomp.c/scan-23.c: New test.
895 * testsuite/libgomp.fortran/scan-2.f90: New test.
897 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
899 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
900 weak_undefined options.
902 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
904 * libgomp.texi (Offload-Target Specifics): Grammar fix.
906 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
909 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
912 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
915 * target.c (gomp_map_vars_internal): Allow for
916 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
917 * oacc-parallel.c (GOACC_parallel_keyed): Pass
918 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
919 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
920 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
922 (gomp_offload_free): Remove.
923 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
924 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
925 (cuda_free_argmem): Remove.
926 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
929 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
931 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
932 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
935 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
937 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
938 'GOMP_MAP_IF_PRESENT'.
939 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
940 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
941 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
942 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
943 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
945 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
947 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
949 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
952 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
954 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
955 another aspect of OpenACC 'async' semantics.
957 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
959 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
961 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
962 Verify 'acc_ev_alloc', 'acc_ev_free'.
964 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
967 * env.c (wait_policy): Initialize to -1.
968 (initialize_icvs): Initialize icvs->wait_policy to -1.
969 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
971 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
973 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
975 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
976 Paul-Antoine Arras <pa@codesourcery.com>
978 * testsuite/libgomp.c/simd-math-1.c: New testcase.
980 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
983 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
984 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
986 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
988 * testsuite/libgomp.fortran/alloc-10.f90: Use
989 '-Wno-complain-wrong-lang'.
990 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
991 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
992 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
993 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
994 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
995 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
996 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
997 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
998 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
999 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1001 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1003 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1004 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1005 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1006 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1009 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1011 * libgomp.texi: Fix typos - theads -> threads.
1013 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1015 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1016 comment typo and improve its wording.
1018 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1020 * target.c (gomp_target_rev): Dereference ptr
1021 to get device address.
1022 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1023 for unallocated allocatable.
1025 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1027 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1029 (GOMP_target_enter_exit_data): If the next map item is
1030 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1031 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1033 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1036 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1037 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1038 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1039 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1040 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1041 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1043 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1045 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1046 offloading compilation.
1048 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1050 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1051 freeing not allocated memory.
1052 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1054 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1056 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1058 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1059 reverse-offload requirement.
1061 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1063 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1064 (DEFAULT_TEAM_ARENA_SIZE): New define.
1065 (struct heap): Move to this file.
1066 (struct kernargs_abi): Likewise.
1067 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1069 * libgomp.h: Include libgomp-gcn.h.
1070 (TEAM_ARENA_SIZE): Remove.
1071 (team_malloc): Update the error message.
1072 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1073 struct kernargs_abi.
1074 (struct agent_info): Rename team arenas to ephemeral memories.
1075 (struct team_arena_list): Rename ....
1076 (struct ephemeral_memories_list): to this.
1077 (struct heap): Delete.
1078 (team_arena_size): New variable.
1079 (stack_size): New variable.
1080 (print_kernel_dispatch): Update debug messages.
1081 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1082 Read GCN_STACK_SIZE.
1083 (get_team_arena): Rename ...
1084 (configure_ephemeral_memories): ... to this, and set up stacks.
1085 (release_team_arena): Rename ...
1086 (release_ephemeral_memories): ... to this.
1087 (destroy_team_arenas): Rename ...
1088 (destroy_ephemeral_memories): ... to this.
1089 (create_kernel_dispatch): Add num_threads parameter.
1090 Adjust for kernargs_abi refactor and ephemeral memories.
1091 (release_kernel_dispatch): Adjust for ephemeral memories.
1092 (run_kernel): Pass thread-count to create_kernel_dispatch.
1093 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1094 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1096 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1098 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1100 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1102 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1103 usage, remove unused -fdump-tree-original.
1104 * testsuite/libgomp.fortran/allocate-4.f90: New.
1106 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1108 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1109 (GCN): Add item about 'omp requires'.
1110 (nvptx): Likewise; add item about reverse offload.
1112 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1115 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1117 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1119 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1120 loop nest back to 'P' as Fortran support is incomplete.
1122 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1124 PR middle-end/108459
1125 * testsuite/libgomp.c/pr108459.c: New test.
1127 2023-01-17 Martin Liska <mliska@suse.cz>
1129 * Makefile.in: Regenerate.
1130 * configure: Regenerate.
1132 2023-01-07 LIU Hao <lh_mouse@126.com>
1134 PR middle-end/108300
1135 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1138 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1141 * testsuite/libgomp.c++/pr108286.C: New test.
1143 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1145 * libgomp.texi: Bump @copying's copyright year.
1147 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1150 * config/nvptx/bar.c (generation_to_barrier): Remove.
1151 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1152 (GOMP_WAIT_H): Remove.
1153 (#include "../linux/bar.c"): Remove.
1154 (gomp_barrier_wait_end): New function.
1155 (gomp_barrier_wait): Likewise.
1156 (gomp_barrier_wait_last): Likewise.
1157 (gomp_team_barrier_wait_end): Likewise.
1158 (gomp_team_barrier_wait): Likewise.
1159 (gomp_team_barrier_wait_final): Likewise.
1160 (gomp_team_barrier_wait_cancel_end): Likewise.
1161 (gomp_team_barrier_wait_cancel): Likewise.
1162 (gomp_team_barrier_cancel): Likewise.
1163 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1164 (gomp_barrier_init): Remove init of waiters, lock fields.
1165 (gomp_team_barrier_wake): Remove prototype, add new static inline
1168 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1171 * testsuite/libgomp.c++/pr108180.C: New test.
1173 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1175 PR libfortran/108056
1176 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1177 accidentally added file.
1179 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1181 PR libfortran/108056
1182 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1184 2022-12-14 Julian Brown <julian@codesourcery.com>
1186 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1189 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1191 * libgomp.h (struct target_mem_desc): Predeclare; move
1192 below after 'reverse_splay_tree_node' and add rev_array
1194 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1195 (reverse_splay_tree_node, reverse_splay_tree,
1196 reverse_splay_tree_key): New typedef.
1197 (struct gomp_device_descr): Add mem_map_rev member.
1198 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1199 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1200 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1201 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1202 splay_tree_callback but returning int not void.
1203 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1204 taking splay_tree_callback_stop as argument.
1205 * splay-tree.c (splay_tree_foreach_internal_lazy,
1206 splay_tree_foreach_lazy): New; but early exit if callback returns
1208 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1209 (gomp_map_lookup_rev): New.
1210 (gomp_load_image_to_device): Handle reverse-offload function
1212 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1213 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1214 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1215 gomp_map_cdata_lookup): New auxiliary structs and functions for
1217 (gomp_target_rev): Implement reverse offloading and its mapping.
1218 (gomp_target_init): Init current_device.mem_map_rev.root.
1219 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1220 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1221 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1222 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1223 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1224 mapping of on-device allocated variables.
1226 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1228 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1229 item about 'align'; mark clause as 'Y' and directive as 'N'.
1230 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1231 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1233 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1235 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1236 allow processing of device-specific values.
1237 (omp_set_teams_thread_limit): Likewise.
1239 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1240 (omp_set_teams_thread_limit): Likewise.
1242 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1244 (omp_set_teams_thread_limit): Likewise.
1245 * icv.c (omp_set_teams_thread_limit): Removed.
1246 (omp_get_teams_thread_limit): Likewise.
1248 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1249 to the limitation of the number of teams.
1250 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1251 the number of teams by twice the number of compute units.
1252 (parse_target_attributes): Limit the number of teams on gcn offload
1254 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1256 (gomp_load_image_to_device): Added a size check for the ICVs struct
1258 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1259 copy back the ICV values from device to host.
1260 (GOMP_target_ext): Update the number of teams and threads in the kernel
1261 args also considering device-specific values.
1262 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1263 of OMP_TEAMS_THREAD_LIMIT from the environment.
1264 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1265 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1266 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1267 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1268 * testsuite/libgomp.fortran/icv-5.f90: New test.
1269 * testsuite/libgomp.fortran/icv-6.f90: New test.
1271 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1273 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1274 (TR11): Add missing '@tab N @tab'.
1276 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1278 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1280 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1282 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1283 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1284 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1285 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1286 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1287 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1288 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1290 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1292 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1294 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1296 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1297 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1298 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1299 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1301 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1303 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1304 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1305 as valid and the code having no reverse-offload code.
1306 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1308 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1310 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1311 and status for Technical Report (TR) 11.
1313 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1315 * config/gcn/libgomp-gcn.h (struct output):
1316 Remove 'msg_u64' from the union, change
1317 value_u64[2] to value_u64[6].
1318 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1319 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1322 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1324 * config/gcn/libgomp-gcn.h: New file; contains
1325 struct output, declared previously in plugin-gcn.c.
1326 * config/gcn/target.c: Include it.
1327 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1328 (GOMP_target_ext): Handle reverse offload.
1329 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1330 (struct kernargs): Replace struct def by the one
1331 from libgomp-gcn.h for output_data.
1332 (process_reverse_offload): New.
1333 (console_output): Call it.
1335 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1336 Andrew Stubbs <ams@codesourcery.com>
1338 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1339 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1341 2022-11-14 Martin Liska <mliska@suse.cz>
1344 2022-11-14 Martin Liska <mliska@suse.cz>
1346 * doc/amd-radeon-gcn.rst: New file.
1347 * doc/conf.py: New file.
1348 * doc/copyright.rst: New file.
1349 * doc/cuda-streams-usage.rst: New file.
1350 * doc/enabling-openacc.rst: New file.
1351 * doc/enabling-openmp.rst: New file.
1352 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1353 * doc/first-invocation-openacc-library-api.rst: New file.
1354 * doc/funding.rst: New file.
1355 * doc/general-public-license-3.rst: New file.
1356 * doc/gnu-free-documentation-license.rst: New file.
1357 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1358 * doc/index.rst: New file.
1359 * doc/indices-and-tables.rst: New file.
1360 * doc/introduction.rst: New file.
1361 * doc/memory-allocation-with-libmemkind.rst: New file.
1362 * doc/nvptx.rst: New file.
1363 * doc/offload-target-specifics.rst: New file.
1364 * doc/openacc-environment-variables.rst: New file.
1365 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1366 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1367 * doc/openacc-environment-variables/accproflib.rst: New file.
1368 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1369 * doc/openacc-introduction.rst: New file.
1370 * doc/openacc-library-and-environment-variables.rst: New file.
1371 * doc/openacc-library-interoperability.rst: New file.
1372 * doc/openacc-profiling-interface.rst: New file.
1373 * doc/openacc-runtime-library-routines.rst: New file.
1374 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1375 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1376 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1377 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1378 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1379 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1380 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1381 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1382 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1383 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1384 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1385 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1386 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1387 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1388 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1389 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1390 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1391 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1392 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1393 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1394 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1395 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1396 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1397 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1398 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1399 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1400 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1401 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1402 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1403 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1404 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1405 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1406 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1407 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1408 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1409 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1410 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1411 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1412 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1413 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1414 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1415 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1416 * doc/openmp-context-selectors.rst: New file.
1417 * doc/openmp-environment-variables.rst: New file.
1418 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1419 * doc/openmp-environment-variables/gompdebug.rst: New file.
1420 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1421 * doc/openmp-environment-variables/gompspincount.rst: New file.
1422 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1423 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1424 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1425 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1426 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1427 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1428 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1429 * doc/openmp-environment-variables/ompnested.rst: New file.
1430 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1431 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1432 * doc/openmp-environment-variables/ompplaces.rst: New file.
1433 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1434 * doc/openmp-environment-variables/ompschedule.rst: New file.
1435 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1436 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1437 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1438 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1439 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1440 * doc/openmp-implementation-specifics.rst: New file.
1441 * doc/openmp-implementation-status.rst: New file.
1442 * doc/openmp-implementation-status/openmp-45.rst: New file.
1443 * doc/openmp-implementation-status/openmp-50.rst: New file.
1444 * doc/openmp-implementation-status/openmp-51.rst: New file.
1445 * doc/openmp-implementation-status/openmp-52.rst: New file.
1446 * doc/openmp-runtime-library-routines.rst: New file.
1447 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1448 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1449 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1450 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1451 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1452 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1453 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1454 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1455 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1456 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1457 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1458 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1459 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1460 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1461 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1462 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1463 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1464 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1465 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1466 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1467 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1468 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1469 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1470 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1471 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1472 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1473 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1474 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1475 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1476 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1477 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1478 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1479 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1480 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1481 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1482 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1483 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1484 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1485 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1486 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1487 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1488 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1489 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1490 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1491 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1492 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1493 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1494 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1495 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1496 * doc/reporting-bugs.rst: New file.
1497 * doc/the-libgomp-abi.rst: New file.
1498 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1499 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1500 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1501 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1503 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1504 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1505 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1506 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1507 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1508 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1509 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1510 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1511 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1512 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1513 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1515 2022-11-14 Martin Liska <mliska@suse.cz>
1518 2022-11-14 Martin Liska <mliska@suse.cz>
1520 * Makefile.in: Support Sphinx based documentation.
1522 2022-11-14 Martin Liska <mliska@suse.cz>
1525 2022-11-14 Martin Liska <mliska@suse.cz>
1527 * libgomp.texi: Removed.
1529 2022-11-14 Martin Liska <mliska@suse.cz>
1532 2022-11-14 Martin Liska <mliska@suse.cz>
1534 * Makefile.in: Support --with-sphinx-build.
1535 * configure.ac: Likewise..
1536 * configure: Regenerate.
1538 2022-11-14 Martin Liska <mliska@suse.cz>
1541 2022-11-09 Martin Liska <mliska@suse.cz>
1543 * Makefile.in: Build info pages conditionally.
1545 2022-11-14 Martin Liska <mliska@suse.cz>
1548 2022-11-14 Martin Liska <mliska@suse.cz>
1550 * doc/amd-radeon-gcn.rst:
1551 Add trailing newline.
1552 * doc/copyright.rst:
1553 Add trailing newline.
1554 * doc/cuda-streams-usage.rst:
1555 Add trailing newline.
1556 * doc/enabling-openacc.rst:
1557 Add trailing newline.
1558 * doc/enabling-openmp.rst:
1559 Add trailing newline.
1560 * doc/first-invocation-nvidia-cublas-library-api.rst:
1561 Add trailing newline.
1562 * doc/first-invocation-openacc-library-api.rst:
1563 Add trailing newline.
1565 Add trailing newline.
1566 * doc/general-public-license-3.rst:
1567 Add trailing newline.
1568 * doc/gnu-free-documentation-license.rst:
1569 Add trailing newline.
1570 * doc/implementation-status-and-implementation-defined-behavior.rst:
1571 Add trailing newline.
1573 Add trailing newline.
1574 * doc/indices-and-tables.rst:
1575 Add trailing newline.
1576 * doc/introduction.rst:
1577 Add trailing newline.
1578 * doc/memory-allocation-with-libmemkind.rst:
1579 Add trailing newline.
1581 Add trailing newline.
1582 * doc/offload-target-specifics.rst:
1583 Add trailing newline.
1584 * doc/openacc-environment-variables.rst:
1585 Add trailing newline.
1586 * doc/openacc-environment-variables/accdevicenum.rst:
1587 Add trailing newline.
1588 * doc/openacc-environment-variables/accdevicetype.rst:
1589 Add trailing newline.
1590 * doc/openacc-environment-variables/accproflib.rst:
1591 Add trailing newline.
1592 * doc/openacc-environment-variables/gccaccnotify.rst:
1593 Add trailing newline.
1594 * doc/openacc-introduction.rst:
1595 Add trailing newline.
1596 * doc/openacc-library-and-environment-variables.rst:
1597 Add trailing newline.
1598 * doc/openacc-library-interoperability.rst:
1599 Add trailing newline.
1600 * doc/openacc-profiling-interface.rst:
1601 Add trailing newline.
1602 * doc/openacc-runtime-library-routines.rst:
1603 Add trailing newline.
1604 * doc/openacc-runtime-library-routines/accasynctest.rst:
1605 Add trailing newline.
1606 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1607 Add trailing newline.
1608 * doc/openacc-runtime-library-routines/accattach.rst:
1609 Add trailing newline.
1610 * doc/openacc-runtime-library-routines/acccopyin.rst:
1611 Add trailing newline.
1612 * doc/openacc-runtime-library-routines/acccopyout.rst:
1613 Add trailing newline.
1614 * doc/openacc-runtime-library-routines/acccreate.rst:
1615 Add trailing newline.
1616 * doc/openacc-runtime-library-routines/accdelete.rst:
1617 Add trailing newline.
1618 * doc/openacc-runtime-library-routines/accdetach.rst:
1619 Add trailing newline.
1620 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1621 Add trailing newline.
1622 * doc/openacc-runtime-library-routines/accfree.rst:
1623 Add trailing newline.
1624 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1625 Add trailing newline.
1626 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1627 Add trailing newline.
1628 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1629 Add trailing newline.
1630 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1631 Add trailing newline.
1632 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1633 Add trailing newline.
1634 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1635 Add trailing newline.
1636 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1637 Add trailing newline.
1638 * doc/openacc-runtime-library-routines/acchostptr.rst:
1639 Add trailing newline.
1640 * doc/openacc-runtime-library-routines/accinit.rst:
1641 Add trailing newline.
1642 * doc/openacc-runtime-library-routines/accispresent.rst:
1643 Add trailing newline.
1644 * doc/openacc-runtime-library-routines/accmalloc.rst:
1645 Add trailing newline.
1646 * doc/openacc-runtime-library-routines/accmapdata.rst:
1647 Add trailing newline.
1648 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1649 Add trailing newline.
1650 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1651 Add trailing newline.
1652 * doc/openacc-runtime-library-routines/accondevice.rst:
1653 Add trailing newline.
1654 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1655 Add trailing newline.
1656 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1657 Add trailing newline.
1658 * doc/openacc-runtime-library-routines/accproflookup.rst:
1659 Add trailing newline.
1660 * doc/openacc-runtime-library-routines/accprofregister.rst:
1661 Add trailing newline.
1662 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1663 Add trailing newline.
1664 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1665 Add trailing newline.
1666 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1667 Add trailing newline.
1668 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1669 Add trailing newline.
1670 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1671 Add trailing newline.
1672 * doc/openacc-runtime-library-routines/accshutdown.rst:
1673 Add trailing newline.
1674 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1675 Add trailing newline.
1676 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1677 Add trailing newline.
1678 * doc/openacc-runtime-library-routines/accupdateself.rst:
1679 Add trailing newline.
1680 * doc/openacc-runtime-library-routines/accwait.rst:
1681 Add trailing newline.
1682 * doc/openacc-runtime-library-routines/accwaitall.rst:
1683 Add trailing newline.
1684 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1685 Add trailing newline.
1686 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1687 Add trailing newline.
1688 * doc/openmp-context-selectors.rst:
1689 Add trailing newline.
1690 * doc/openmp-environment-variables.rst:
1691 Add trailing newline.
1692 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1693 Add trailing newline.
1694 * doc/openmp-environment-variables/gompdebug.rst:
1695 Add trailing newline.
1696 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1697 Add trailing newline.
1698 * doc/openmp-environment-variables/gompspincount.rst:
1699 Add trailing newline.
1700 * doc/openmp-environment-variables/gompstacksize.rst:
1701 Add trailing newline.
1702 * doc/openmp-environment-variables/ompcancellation.rst:
1703 Add trailing newline.
1704 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1705 Add trailing newline.
1706 * doc/openmp-environment-variables/ompdisplayenv.rst:
1707 Add trailing newline.
1708 * doc/openmp-environment-variables/ompdynamic.rst:
1709 Add trailing newline.
1710 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1711 Add trailing newline.
1712 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1713 Add trailing newline.
1714 * doc/openmp-environment-variables/ompnested.rst:
1715 Add trailing newline.
1716 * doc/openmp-environment-variables/ompnumteams.rst:
1717 Add trailing newline.
1718 * doc/openmp-environment-variables/ompnumthreads.rst:
1719 Add trailing newline.
1720 * doc/openmp-environment-variables/ompplaces.rst:
1721 Add trailing newline.
1722 * doc/openmp-environment-variables/ompprocbind.rst:
1723 Add trailing newline.
1724 * doc/openmp-environment-variables/ompschedule.rst:
1725 Add trailing newline.
1726 * doc/openmp-environment-variables/ompstacksize.rst:
1727 Add trailing newline.
1728 * doc/openmp-environment-variables/omptargetoffload.rst:
1729 Add trailing newline.
1730 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1731 Add trailing newline.
1732 * doc/openmp-environment-variables/ompthreadlimit.rst:
1733 Add trailing newline.
1734 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1735 Add trailing newline.
1736 * doc/openmp-implementation-specifics.rst:
1737 Add trailing newline.
1738 * doc/openmp-implementation-status.rst:
1739 Add trailing newline.
1740 * doc/openmp-implementation-status/openmp-45.rst:
1741 Add trailing newline.
1742 * doc/openmp-implementation-status/openmp-50.rst:
1743 Add trailing newline.
1744 * doc/openmp-implementation-status/openmp-51.rst:
1745 Add trailing newline.
1746 * doc/openmp-implementation-status/openmp-52.rst:
1747 Add trailing newline.
1748 * doc/openmp-runtime-library-routines.rst:
1749 Add trailing newline.
1750 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1751 Add trailing newline.
1752 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1753 Add trailing newline.
1754 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1755 Add trailing newline.
1756 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1757 Add trailing newline.
1758 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1759 Add trailing newline.
1760 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1761 Add trailing newline.
1762 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1763 Add trailing newline.
1764 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1765 Add trailing newline.
1766 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1767 Add trailing newline.
1768 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1769 Add trailing newline.
1770 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1771 Add trailing newline.
1772 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1773 Add trailing newline.
1774 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1775 Add trailing newline.
1776 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1777 Add trailing newline.
1778 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1779 Add trailing newline.
1780 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1781 Add trailing newline.
1782 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1783 Add trailing newline.
1784 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1785 Add trailing newline.
1786 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1787 Add trailing newline.
1788 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1789 Add trailing newline.
1790 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1791 Add trailing newline.
1792 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1793 Add trailing newline.
1794 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1795 Add trailing newline.
1796 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1797 Add trailing newline.
1798 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1799 Add trailing newline.
1800 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1801 Add trailing newline.
1802 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1803 Add trailing newline.
1804 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1805 Add trailing newline.
1806 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1807 Add trailing newline.
1808 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1809 Add trailing newline.
1810 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1811 Add trailing newline.
1812 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1813 Add trailing newline.
1814 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1815 Add trailing newline.
1816 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1817 Add trailing newline.
1818 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1819 Add trailing newline.
1820 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1821 Add trailing newline.
1822 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1823 Add trailing newline.
1824 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1825 Add trailing newline.
1826 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1827 Add trailing newline.
1828 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1829 Add trailing newline.
1830 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1831 Add trailing newline.
1832 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1833 Add trailing newline.
1834 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1835 Add trailing newline.
1836 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1837 Add trailing newline.
1838 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1839 Add trailing newline.
1840 * doc/openmp-runtime-library-routines/omptestlock.rst:
1841 Add trailing newline.
1842 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1843 Add trailing newline.
1844 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1845 Add trailing newline.
1846 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1847 Add trailing newline.
1848 * doc/reporting-bugs.rst:
1849 Add trailing newline.
1850 * doc/the-libgomp-abi.rst:
1851 Add trailing newline.
1852 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1853 Add trailing newline.
1854 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1855 Add trailing newline.
1856 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1857 Add trailing newline.
1858 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1859 Add trailing newline.
1860 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1861 Add trailing newline.
1862 * doc/the-libgomp-abi/implementing-for-construct.rst:
1863 Add trailing newline.
1864 * doc/the-libgomp-abi/implementing-master-construct.rst:
1865 Add trailing newline.
1866 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1867 Add trailing newline.
1868 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1869 Add trailing newline.
1870 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1871 Add trailing newline.
1872 * doc/the-libgomp-abi/implementing-private-clause.rst:
1873 Add trailing newline.
1874 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1875 Add trailing newline.
1876 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1877 Add trailing newline.
1878 * doc/the-libgomp-abi/implementing-single-construct.rst:
1879 Add trailing newline.
1880 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1881 Add trailing newline.
1883 2022-11-14 Martin Liska <mliska@suse.cz>
1886 2022-11-09 Martin Liska <mliska@suse.cz>
1888 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1890 2022-11-14 Martin Liska <mliska@suse.cz>
1893 2022-11-14 Martin Liska <mliska@suse.cz>
1895 * doc/conf.py: Add newline at last line.
1897 2022-11-14 Martin Liska <mliska@suse.cz>
1900 2022-11-14 Martin Liska <mliska@suse.cz>
1903 * configure: Regenerate.
1904 * configure.ac: Always set sphinx-build.
1906 2022-11-13 Martin Liska <mliska@suse.cz>
1909 * configure: Regenerate.
1910 * configure.ac: Always set sphinx-build.
1912 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1915 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1916 unsigned long. Change type of upper from unsigned to unsigned long.
1918 2022-11-10 Martin Liska <mliska@suse.cz>
1920 * doc/conf.py: Add newline at last line.
1922 2022-11-09 Martin Liska <mliska@suse.cz>
1924 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1926 2022-11-09 Martin Liska <mliska@suse.cz>
1928 * doc/amd-radeon-gcn.rst:
1929 Add trailing newline.
1930 * doc/copyright.rst:
1931 Add trailing newline.
1932 * doc/cuda-streams-usage.rst:
1933 Add trailing newline.
1934 * doc/enabling-openacc.rst:
1935 Add trailing newline.
1936 * doc/enabling-openmp.rst:
1937 Add trailing newline.
1938 * doc/first-invocation-nvidia-cublas-library-api.rst:
1939 Add trailing newline.
1940 * doc/first-invocation-openacc-library-api.rst:
1941 Add trailing newline.
1943 Add trailing newline.
1944 * doc/general-public-license-3.rst:
1945 Add trailing newline.
1946 * doc/gnu-free-documentation-license.rst:
1947 Add trailing newline.
1948 * doc/implementation-status-and-implementation-defined-behavior.rst:
1949 Add trailing newline.
1951 Add trailing newline.
1952 * doc/indices-and-tables.rst:
1953 Add trailing newline.
1954 * doc/introduction.rst:
1955 Add trailing newline.
1956 * doc/memory-allocation-with-libmemkind.rst:
1957 Add trailing newline.
1959 Add trailing newline.
1960 * doc/offload-target-specifics.rst:
1961 Add trailing newline.
1962 * doc/openacc-environment-variables.rst:
1963 Add trailing newline.
1964 * doc/openacc-environment-variables/accdevicenum.rst:
1965 Add trailing newline.
1966 * doc/openacc-environment-variables/accdevicetype.rst:
1967 Add trailing newline.
1968 * doc/openacc-environment-variables/accproflib.rst:
1969 Add trailing newline.
1970 * doc/openacc-environment-variables/gccaccnotify.rst:
1971 Add trailing newline.
1972 * doc/openacc-introduction.rst:
1973 Add trailing newline.
1974 * doc/openacc-library-and-environment-variables.rst:
1975 Add trailing newline.
1976 * doc/openacc-library-interoperability.rst:
1977 Add trailing newline.
1978 * doc/openacc-profiling-interface.rst:
1979 Add trailing newline.
1980 * doc/openacc-runtime-library-routines.rst:
1981 Add trailing newline.
1982 * doc/openacc-runtime-library-routines/accasynctest.rst:
1983 Add trailing newline.
1984 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1985 Add trailing newline.
1986 * doc/openacc-runtime-library-routines/accattach.rst:
1987 Add trailing newline.
1988 * doc/openacc-runtime-library-routines/acccopyin.rst:
1989 Add trailing newline.
1990 * doc/openacc-runtime-library-routines/acccopyout.rst:
1991 Add trailing newline.
1992 * doc/openacc-runtime-library-routines/acccreate.rst:
1993 Add trailing newline.
1994 * doc/openacc-runtime-library-routines/accdelete.rst:
1995 Add trailing newline.
1996 * doc/openacc-runtime-library-routines/accdetach.rst:
1997 Add trailing newline.
1998 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1999 Add trailing newline.
2000 * doc/openacc-runtime-library-routines/accfree.rst:
2001 Add trailing newline.
2002 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2003 Add trailing newline.
2004 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2005 Add trailing newline.
2006 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2007 Add trailing newline.
2008 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2009 Add trailing newline.
2010 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2011 Add trailing newline.
2012 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2013 Add trailing newline.
2014 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2015 Add trailing newline.
2016 * doc/openacc-runtime-library-routines/acchostptr.rst:
2017 Add trailing newline.
2018 * doc/openacc-runtime-library-routines/accinit.rst:
2019 Add trailing newline.
2020 * doc/openacc-runtime-library-routines/accispresent.rst:
2021 Add trailing newline.
2022 * doc/openacc-runtime-library-routines/accmalloc.rst:
2023 Add trailing newline.
2024 * doc/openacc-runtime-library-routines/accmapdata.rst:
2025 Add trailing newline.
2026 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2027 Add trailing newline.
2028 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2029 Add trailing newline.
2030 * doc/openacc-runtime-library-routines/accondevice.rst:
2031 Add trailing newline.
2032 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2033 Add trailing newline.
2034 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2035 Add trailing newline.
2036 * doc/openacc-runtime-library-routines/accproflookup.rst:
2037 Add trailing newline.
2038 * doc/openacc-runtime-library-routines/accprofregister.rst:
2039 Add trailing newline.
2040 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2041 Add trailing newline.
2042 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2043 Add trailing newline.
2044 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2045 Add trailing newline.
2046 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2047 Add trailing newline.
2048 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2049 Add trailing newline.
2050 * doc/openacc-runtime-library-routines/accshutdown.rst:
2051 Add trailing newline.
2052 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2053 Add trailing newline.
2054 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2055 Add trailing newline.
2056 * doc/openacc-runtime-library-routines/accupdateself.rst:
2057 Add trailing newline.
2058 * doc/openacc-runtime-library-routines/accwait.rst:
2059 Add trailing newline.
2060 * doc/openacc-runtime-library-routines/accwaitall.rst:
2061 Add trailing newline.
2062 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2063 Add trailing newline.
2064 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2065 Add trailing newline.
2066 * doc/openmp-context-selectors.rst:
2067 Add trailing newline.
2068 * doc/openmp-environment-variables.rst:
2069 Add trailing newline.
2070 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2071 Add trailing newline.
2072 * doc/openmp-environment-variables/gompdebug.rst:
2073 Add trailing newline.
2074 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2075 Add trailing newline.
2076 * doc/openmp-environment-variables/gompspincount.rst:
2077 Add trailing newline.
2078 * doc/openmp-environment-variables/gompstacksize.rst:
2079 Add trailing newline.
2080 * doc/openmp-environment-variables/ompcancellation.rst:
2081 Add trailing newline.
2082 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2083 Add trailing newline.
2084 * doc/openmp-environment-variables/ompdisplayenv.rst:
2085 Add trailing newline.
2086 * doc/openmp-environment-variables/ompdynamic.rst:
2087 Add trailing newline.
2088 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2089 Add trailing newline.
2090 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2091 Add trailing newline.
2092 * doc/openmp-environment-variables/ompnested.rst:
2093 Add trailing newline.
2094 * doc/openmp-environment-variables/ompnumteams.rst:
2095 Add trailing newline.
2096 * doc/openmp-environment-variables/ompnumthreads.rst:
2097 Add trailing newline.
2098 * doc/openmp-environment-variables/ompplaces.rst:
2099 Add trailing newline.
2100 * doc/openmp-environment-variables/ompprocbind.rst:
2101 Add trailing newline.
2102 * doc/openmp-environment-variables/ompschedule.rst:
2103 Add trailing newline.
2104 * doc/openmp-environment-variables/ompstacksize.rst:
2105 Add trailing newline.
2106 * doc/openmp-environment-variables/omptargetoffload.rst:
2107 Add trailing newline.
2108 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2109 Add trailing newline.
2110 * doc/openmp-environment-variables/ompthreadlimit.rst:
2111 Add trailing newline.
2112 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2113 Add trailing newline.
2114 * doc/openmp-implementation-specifics.rst:
2115 Add trailing newline.
2116 * doc/openmp-implementation-status.rst:
2117 Add trailing newline.
2118 * doc/openmp-implementation-status/openmp-45.rst:
2119 Add trailing newline.
2120 * doc/openmp-implementation-status/openmp-50.rst:
2121 Add trailing newline.
2122 * doc/openmp-implementation-status/openmp-51.rst:
2123 Add trailing newline.
2124 * doc/openmp-implementation-status/openmp-52.rst:
2125 Add trailing newline.
2126 * doc/openmp-runtime-library-routines.rst:
2127 Add trailing newline.
2128 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2129 Add trailing newline.
2130 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2131 Add trailing newline.
2132 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2133 Add trailing newline.
2134 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2135 Add trailing newline.
2136 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2137 Add trailing newline.
2138 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2139 Add trailing newline.
2140 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2141 Add trailing newline.
2142 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2143 Add trailing newline.
2144 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2145 Add trailing newline.
2146 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2147 Add trailing newline.
2148 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2149 Add trailing newline.
2150 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2151 Add trailing newline.
2152 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2153 Add trailing newline.
2154 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2155 Add trailing newline.
2156 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2157 Add trailing newline.
2158 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2159 Add trailing newline.
2160 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2161 Add trailing newline.
2162 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2163 Add trailing newline.
2164 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2165 Add trailing newline.
2166 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2167 Add trailing newline.
2168 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2169 Add trailing newline.
2170 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2171 Add trailing newline.
2172 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2173 Add trailing newline.
2174 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2175 Add trailing newline.
2176 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2177 Add trailing newline.
2178 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2179 Add trailing newline.
2180 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2181 Add trailing newline.
2182 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2183 Add trailing newline.
2184 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2185 Add trailing newline.
2186 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2187 Add trailing newline.
2188 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2189 Add trailing newline.
2190 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2191 Add trailing newline.
2192 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2193 Add trailing newline.
2194 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2195 Add trailing newline.
2196 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2197 Add trailing newline.
2198 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2199 Add trailing newline.
2200 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2201 Add trailing newline.
2202 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2203 Add trailing newline.
2204 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2205 Add trailing newline.
2206 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2207 Add trailing newline.
2208 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2209 Add trailing newline.
2210 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2211 Add trailing newline.
2212 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2213 Add trailing newline.
2214 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2215 Add trailing newline.
2216 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2217 Add trailing newline.
2218 * doc/openmp-runtime-library-routines/omptestlock.rst:
2219 Add trailing newline.
2220 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2221 Add trailing newline.
2222 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2223 Add trailing newline.
2224 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2225 Add trailing newline.
2226 * doc/reporting-bugs.rst:
2227 Add trailing newline.
2228 * doc/the-libgomp-abi.rst:
2229 Add trailing newline.
2230 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2231 Add trailing newline.
2232 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2233 Add trailing newline.
2234 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2235 Add trailing newline.
2236 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2237 Add trailing newline.
2238 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2239 Add trailing newline.
2240 * doc/the-libgomp-abi/implementing-for-construct.rst:
2241 Add trailing newline.
2242 * doc/the-libgomp-abi/implementing-master-construct.rst:
2243 Add trailing newline.
2244 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2245 Add trailing newline.
2246 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2247 Add trailing newline.
2248 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2249 Add trailing newline.
2250 * doc/the-libgomp-abi/implementing-private-clause.rst:
2251 Add trailing newline.
2252 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2253 Add trailing newline.
2254 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2255 Add trailing newline.
2256 * doc/the-libgomp-abi/implementing-single-construct.rst:
2257 Add trailing newline.
2258 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2259 Add trailing newline.
2261 2022-11-09 Martin Liska <mliska@suse.cz>
2263 * Makefile.in: Build info pages conditionally.
2265 2022-11-09 Martin Liska <mliska@suse.cz>
2267 * Makefile.in: Support --with-sphinx-build.
2268 * configure.ac: Likewise..
2269 * configure: Regenerate.
2271 2022-11-09 Martin Liska <mliska@suse.cz>
2273 * libgomp.texi: Removed.
2275 2022-11-09 Martin Liska <mliska@suse.cz>
2277 * Makefile.in: Support Sphinx based documentation.
2279 2022-11-09 Martin Liska <mliska@suse.cz>
2281 * doc/amd-radeon-gcn.rst: New file.
2282 * doc/conf.py: New file.
2283 * doc/copyright.rst: New file.
2284 * doc/cuda-streams-usage.rst: New file.
2285 * doc/enabling-openacc.rst: New file.
2286 * doc/enabling-openmp.rst: New file.
2287 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2288 * doc/first-invocation-openacc-library-api.rst: New file.
2289 * doc/funding.rst: New file.
2290 * doc/general-public-license-3.rst: New file.
2291 * doc/gnu-free-documentation-license.rst: New file.
2292 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2293 * doc/index.rst: New file.
2294 * doc/indices-and-tables.rst: New file.
2295 * doc/introduction.rst: New file.
2296 * doc/memory-allocation-with-libmemkind.rst: New file.
2297 * doc/nvptx.rst: New file.
2298 * doc/offload-target-specifics.rst: New file.
2299 * doc/openacc-environment-variables.rst: New file.
2300 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2301 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2302 * doc/openacc-environment-variables/accproflib.rst: New file.
2303 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2304 * doc/openacc-introduction.rst: New file.
2305 * doc/openacc-library-and-environment-variables.rst: New file.
2306 * doc/openacc-library-interoperability.rst: New file.
2307 * doc/openacc-profiling-interface.rst: New file.
2308 * doc/openacc-runtime-library-routines.rst: New file.
2309 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2310 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2311 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2312 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2313 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2314 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2315 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2316 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2317 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2318 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2319 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2320 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2321 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2322 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2323 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2324 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2325 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2326 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2327 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2328 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2329 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2330 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2331 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2332 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2333 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2334 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2335 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2336 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2337 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2338 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2339 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2340 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2341 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2342 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2343 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2344 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2345 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2346 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2347 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2348 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2349 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2350 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2351 * doc/openmp-context-selectors.rst: New file.
2352 * doc/openmp-environment-variables.rst: New file.
2353 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2354 * doc/openmp-environment-variables/gompdebug.rst: New file.
2355 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2356 * doc/openmp-environment-variables/gompspincount.rst: New file.
2357 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2358 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2359 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2360 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2361 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2362 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2363 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2364 * doc/openmp-environment-variables/ompnested.rst: New file.
2365 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2366 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2367 * doc/openmp-environment-variables/ompplaces.rst: New file.
2368 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2369 * doc/openmp-environment-variables/ompschedule.rst: New file.
2370 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2371 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2372 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2373 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2374 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2375 * doc/openmp-implementation-specifics.rst: New file.
2376 * doc/openmp-implementation-status.rst: New file.
2377 * doc/openmp-implementation-status/openmp-45.rst: New file.
2378 * doc/openmp-implementation-status/openmp-50.rst: New file.
2379 * doc/openmp-implementation-status/openmp-51.rst: New file.
2380 * doc/openmp-implementation-status/openmp-52.rst: New file.
2381 * doc/openmp-runtime-library-routines.rst: New file.
2382 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2383 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2384 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2385 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2386 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2387 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2388 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2389 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2390 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2391 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2392 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2393 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2394 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2395 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2396 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2397 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2398 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2399 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2400 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2401 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2402 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2403 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2404 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2405 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2406 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2407 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2408 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2409 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2410 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2411 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2412 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2413 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2414 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2415 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2416 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2417 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2418 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2419 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2420 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2421 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2422 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2423 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2424 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2425 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2426 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2427 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2428 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2429 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2430 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2431 * doc/reporting-bugs.rst: New file.
2432 * doc/the-libgomp-abi.rst: New file.
2433 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2434 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2435 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2436 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2438 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2439 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2440 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2441 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2442 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2443 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2444 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2445 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2446 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2447 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2448 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2450 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2452 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2453 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2455 * plugin/configfrag.ac <enable_offload_targets>
2456 [*-intelmic-* | *-intelmicemul-*]: Remove.
2457 * configure: Regenerate.
2458 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2460 (offload_target_to_openacc_device_type)
2461 [$offload_target = *-intelmic*]: Remove.
2462 (check_effective_target_offload_device_intel_mic)
2463 (check_effective_target_offload_device_any_intel_mic): Remove.
2464 * testsuite/libgomp.c-c++-common/on_device_arch.h
2465 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2466 (any_device_arch_intel_mic): Remove.
2467 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2468 'offload_device_any_intel_mic' XFAIL.
2469 * testsuite/libgomp.fortran/target10.f90: Likewise.
2471 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2473 * testsuite/libgomp.fortran/target-11.f90: New test.
2474 * testsuite/libgomp.fortran/target-13.f90: New test.
2476 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2480 * oacc-mem.c (goacc_enter_data_internal): Support
2481 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2482 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2484 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2486 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2489 * oacc-mem.c (goacc_enter_data_internal): Support
2490 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2491 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2493 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2496 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2498 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2501 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2503 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2506 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2507 Thomas Schwinge <thomas@codesourcery.com>
2509 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2511 2022-10-28 Julian Brown <julian@codesourcery.com>
2512 Thomas Schwinge <thomas@codesourcery.com>
2515 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2516 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2517 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2518 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2519 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2521 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2523 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2524 'ptx_dev->rev_data'.
2526 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2528 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2529 'static' for this variable.
2530 * config/nvptx/libgomp-nvptx.h: New file.
2531 * config/nvptx/target.c: Include it.
2532 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2533 (GOMP_REV_OFFLOAD_VAR): Declare var.
2534 (GOMP_target_ext): Handle reverse offload.
2535 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2536 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2537 * target.c (gomp_target_rev): ... this new stub function.
2538 * libgomp.h (gomp_target_rev): Declare.
2539 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2540 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2541 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2542 (struct ptx_device): Add rev_data member.
2543 (nvptx_open_device): Remove async_engines query, last used in
2544 r10-304-g1f4c5b9b; add unified-address assert check.
2545 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2547 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2548 offload functions exist. Make offload var available
2550 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2551 (GOMP_OFFLOAD_run): Handle reverse offload.
2553 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2555 PR tree-optimization/107195
2557 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2560 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2562 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2564 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2565 on_device_arch_gcn): New.
2566 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2567 requires-4.c but using heap-allocated memory.
2569 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2572 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2574 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2576 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2577 '-foffload-options' syntax.
2579 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2581 * testsuite/libgomp.fortran/task-7.f90: New test.
2582 * testsuite/libgomp.fortran/task-8.f90: New test.
2583 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2584 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2585 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2586 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2587 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2589 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2591 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2592 in deprecation bullet.
2594 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2596 * omp.h.in (omp_in_explicit_task): Declare.
2597 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2598 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2599 * libgomp.map (OMP_5.2): New symbol version, export
2600 omp_in_explicit_task and omp_in_explicit_task_.
2601 * task.c (omp_in_explicit_task): New function.
2602 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2603 (omp_in_explicit_task_): New function.
2604 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2605 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2606 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2607 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2609 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2611 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2612 from within explicit task.
2613 * target.c (GOMP_target_ext): Likewise.
2614 * testsuite/libgomp.c/task-7.c: New test.
2615 * testsuite/libgomp.c/task-8.c: New test.
2616 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2617 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2619 2022-10-12 Martin Liska <mliska@suse.cz>
2621 * configure: Regenerate.
2623 2022-10-11 Olivier Hainque <hainque@adacore.com>
2624 Olivier Hainque <hainque@adacore.com>
2626 * configure: Regenerate.
2628 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2630 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2632 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2634 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2635 Mark as implemented.
2637 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2640 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2642 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2644 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2645 for C/C++. Remove duplicated 'begin declare target' entry.
2647 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2650 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2652 2022-09-14 Julian Brown <julian@codesourcery.com>
2654 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2655 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2656 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2657 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2658 test to here, make "run" test.
2660 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2663 * env.c (get_icv_member_addr): Cast false to void * before assigning
2664 it to icv_addr[1], and comment the whole assignment out.
2666 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2668 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2671 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2673 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2674 that reverse offload requires >= -march=sm_35.
2675 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2677 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2678 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2679 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2680 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2681 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2683 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2685 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2686 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2688 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2691 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2692 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2693 is in the environment, or for OMP_NUM_TEAMS on the device
2694 OMP_NUM_TEAMS_DEV_?.
2696 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2698 * env.c (initialize_env): Include libiberty environ.h.
2700 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2702 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2703 function address table '$offload_func_table' if rev_fn_table
2706 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2708 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2709 .offload_func_table to populate rev_fn_table when requested.
2711 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2713 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2714 'uint64_t **rev_fn_table' argument.
2715 * oacc-host.c (host_load_image): Likewise.
2716 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2718 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2719 * target.c (gomp_load_image_to_device): Update call but pass
2722 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2725 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2726 char * for dest[1] initialization from params[1]. Formatting fixes.
2728 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2731 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2733 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2735 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2736 section; move OpenMP Context Selectors from ...
2737 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2740 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2742 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2744 (omp_get_max_teams): Added for GCN devices.
2745 (omp_set_num_teams): Likewise.
2747 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2749 (omp_get_max_teams): Added for NVPTX devices.
2750 (omp_set_num_teams): Likewise.
2752 * env.c (struct gomp_icv_list): New struct to store entries of initial
2754 (struct gomp_offload_icv_list): New struct to store entries of device-
2755 specific ICV values that are copied to the device and back.
2756 (struct gomp_default_icv_values): New struct to store default values of
2757 ICVs according to the OpenMP standard.
2758 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2759 (print_env_var_error): Function that prints an error for invalid values
2761 (parse_unsigned_long_1): Removed getenv. Generalized.
2762 (parse_unsigned_long): Likewise.
2763 (parse_int_1): Likewise.
2764 (parse_int): Likewise.
2765 (parse_int_secure): Likewise.
2766 (parse_unsigned_long_list): Likewise.
2767 (parse_target_offload): Likewise.
2768 (parse_bind_var): Likewise.
2769 (parse_stacksize): Likewise.
2770 (parse_boolean): Likewise.
2771 (parse_wait_policy): Likewise.
2772 (parse_allocator): Likewise.
2773 (omp_display_env): Extended to output different variants of environment
2775 (print_schedule): New helper function for omp_display_env which prints
2776 the values of run_sched_var.
2777 (print_proc_bind): New helper function for omp_display_env which prints
2778 the values of proc_bind_var.
2779 (enum gomp_parse_type): Collection of types used for parsing environment
2781 (ENTRY): Preprocess string lengths of environment variables.
2782 (OMP_VAR_CNT): Preprocess table size.
2783 (OMP_HOST_VAR_CNT): Likewise.
2784 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2786 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2787 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2788 (print_device_specific_icvs): New helper function for omp_display_env to
2789 print device specific ICV values.
2790 (get_device_num): New helper function for parse_device_specific.
2791 Extracts the device number from an environment variable name.
2792 (get_icv_member_addr): Gets the memory address for a particular member
2794 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2795 (initialize_icvs): New function to initialize a gomp_initial_icvs
2797 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2798 (startswith): Checks if a string starts with a given prefix.
2799 (initialize_env): Extended to parse the new syntax of environment
2801 * icv-device.c (omp_get_max_teams): Added.
2803 (omp_set_num_teams): Likewise.
2804 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2805 (omp_get_max_teams): Likewise.
2807 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2808 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2809 holds the designated ICVs of the target device.
2810 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2811 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2813 (enum gomp_env_suffix): Collection of possible suffixes of environment
2815 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2817 (struct gomp_default_icv):New struct to hold ICVs for which we need
2818 to store initial values.
2819 (struct gomp_icv_list): Definition of a linked list that is used for
2820 storing ICVs for the devices and also for _DEV, _ALL, and without
2822 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2824 (struct gomp_offload_icv_list): Definition of a linked list that holds
2825 device-specific ICVs that are copied to devices.
2826 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2827 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2828 * libgomp.texi: Updated.
2829 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2830 further ICVs from the offload image.
2831 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2832 * target.c (gomp_get_offload_icv_item): Get a list item of
2833 gomp_offload_icv_list.
2834 (get_gomp_offload_icvs): New. Returns the ICV values
2835 depending on the device num and the variable hierarchy.
2836 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2837 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2838 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2839 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2840 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2841 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2842 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2844 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2846 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2848 * testsuite/libgomp.c/doacross-4.c: New test.
2849 * testsuite/libgomp.c/doacross-5.c: New test.
2850 * testsuite/libgomp.c/doacross-6.c: New test.
2851 * testsuite/libgomp.c/doacross-7.c: New test.
2853 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2855 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2857 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2859 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2860 refer to 'requires'.
2861 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2862 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2863 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2864 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2866 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2868 PR middle-end/106548
2869 * testsuite/libgomp.c/linear-2.c: New test.
2871 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2873 * splay-tree.h: Fix splay_* macro unsetting if
2874 splay_tree_prefix is defined.
2876 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2878 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2880 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2882 PR middle-end/106449
2883 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2885 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2887 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2889 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2891 PR middle-end/101551
2892 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2893 'offloading_enabled' diagnostics issue.
2895 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2897 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2898 '_Pragma' diagnostics verification.
2900 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2902 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2903 improved warning locations.
2904 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2906 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2908 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2909 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2910 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2911 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2912 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2914 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2916 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2917 Denote as legacy entry points.
2918 * testsuite/lib/libgomp.exp
2919 (check_effective_target_offload_target_any): New proc.
2920 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2921 'offload_target_any'.
2922 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2923 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2924 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2926 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2928 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2929 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2931 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2933 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2935 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2937 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2939 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2941 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2942 Jakub Jelinek <jakub@redhat.com>
2944 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2946 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2947 Chung-Lin Tang <cltang@codesourcery.com>
2948 Thomas Schwinge <thomas@codesourcery.com>
2950 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2951 omp_requires_mask arg.
2952 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2953 return -1 when device available but omp_requires_mask != 0.
2954 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2955 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2957 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2958 goacc_attach_host_thread_to_device, acc_get_num_devices,
2959 acc_set_device_num, get_property_any): Likewise.
2960 * target.c (omp_requires_mask): New global var.
2961 (gomp_requires_to_name): New.
2962 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2963 (gomp_target_init): Handle omp_requires_mask.
2964 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2965 (OpenMP 5.1): Add a missed item.
2966 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2967 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2968 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2969 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2970 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2971 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2972 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2973 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2974 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2975 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2976 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2977 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2978 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2979 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2980 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2981 * testsuite/libgomp.fortran/requires-1.f90: New test.
2983 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2985 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2986 with fromto as implemented.
2988 2022-06-28 Martin Liska <mliska@suse.cz>
2990 * acinclude.m4: Fix typo in mold linker detection.
2991 * Makefile.in: Regenerate.
2992 * configure: Regenerate.
2994 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2995 Paul Iannetta <piannetta@kalrayinc.com>
2998 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3000 2022-06-17 Martin Liska <mliska@suse.cz>
3002 * libgomp.texi: Add table header for new features of
3005 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3007 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3008 q to ddress of an automatic variable. Use -5 instead of -1 in
3009 omp_get_mapped_ptr call. Add test with omp_initial_device.
3010 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3011 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3012 Renumber stop arguments afterwards.
3014 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3016 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3017 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3019 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3020 * target.c (resolve_device): Add remapped argument, handle
3021 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3022 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3023 if remapped, otherwise treat omp_initial_device that way. For
3024 omp_invalid_device, always emit gomp_fatal, even when
3025 OMP_TARGET_OFFLOAD isn't mandatory.
3026 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3027 GOMP_target_update, GOMP_target_update_ext,
3028 GOMP_target_enter_exit_data): Pass true as remapped argument to
3030 (omp_target_alloc, omp_target_free, omp_target_is_present,
3031 omp_target_memcpy_check, omp_target_associate_ptr,
3032 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3033 omp_target_is_accessible): Pass false as remapped argument to
3034 resolve_device. Treat omp_initial_device the same as
3035 gomp_get_num_devices (). Don't bypass resolve_device calls if
3036 device_num is negative.
3037 (omp_pause_resource): Treat omp_initial_device the same as
3038 gomp_get_num_devices (). Call resolve_device.
3039 * icv-device.c (omp_set_default_device): Always set to device_num
3040 even when it is negative.
3041 * libgomp.texi: Document that Conforming device numbers,
3042 omp_initial_device and omp_invalid_device is implemented.
3043 * testsuite/libgomp.c/target-41.c (main): Add test with
3045 * testsuite/libgomp.c/target-45.c: New test.
3046 * testsuite/libgomp.c/target-46.c: New test.
3047 * testsuite/libgomp.c/target-47.c: New test.
3048 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3049 test with omp_initial_device. Use -5 instead of -1 for negative value
3051 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3052 Likewise. Reorder stop numbers.
3054 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3056 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3057 rather than "libmemkind.so".
3059 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3061 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3062 * plugin/configfrag.ac (--with-cuda-driver)
3063 (--with-cuda-driver-include, --with-cuda-driver-lib)
3064 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3065 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3067 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3068 (cuda_driver_lib): Remove.
3069 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3070 * Makefile.in: Regenerate.
3071 * configure: Likewise.
3072 * testsuite/Makefile.in: Likewise.
3074 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3076 * config/linux/allocator.c: Fix up #include directive.
3078 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3080 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3081 (enum gomp_memkind_kind): New type.
3082 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3084 (struct gomp_memkind_data): New type.
3085 (memkind_data, memkind_data_once): New variables.
3086 (gomp_init_memkind, gomp_get_memkind): New functions.
3087 (omp_init_allocator): Initialize data.memkind, don't fail for
3088 omp_high_bw_mem_space if libmemkind supports it.
3089 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3090 memkind support of LIBGOMP_USE_MEMKIND is defined.
3091 * config/linux/allocator.c: New file.
3093 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3095 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3096 * testsuite/libgomp.fortran/scope-2.f90: New test.
3098 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3100 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3102 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3104 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3105 scope construct with allocate clause.
3106 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3107 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3109 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3111 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3112 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3113 explicit 'to' and 'enter' clause.
3114 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3116 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3119 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3120 defined(HAVE__ALIGNED_MALLOC) case.
3121 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3122 handling as last option before fallback instead of first.
3123 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3126 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3128 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3130 * testsuite/libgomp.c/target-41.c: Likewise.
3132 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3134 * libgomp.texi (Other new OpenMP 5.1 features): Add
3135 'begin declare target'.
3136 (Other new OpenMP 5.2 features): New.
3138 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3140 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3141 is the last task taskwait depend depends on, wake it up.
3142 Similarly if it is the last child of a taskgroup, use atomic
3143 store instead of decrement and awak taskgroup wait if any.
3144 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3146 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3148 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3149 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3150 (gcn_gfx90a_s): New.
3151 (isa_hsa_name): Support gfx90a.
3152 (isa_code): Likewise.
3154 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3157 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3158 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3160 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3163 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3164 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3165 * task.c (empty_task): New function.
3166 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3167 (gomp_task_run_post_handle_depend): Declare.
3168 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3170 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3171 (GOMP_taskwait_depend_nowait): New function.
3172 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3174 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3177 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3178 Support attach for GOMP_MAP_FIRSTPRIVATE.
3179 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3180 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3181 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3183 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3185 * libgomp.map: Added omp_target_memcpy_async and
3186 omp_target_memcpy_rect_async.
3187 * libgomp.texi: Both functions are now supported.
3188 * omp.h.in: Added omp_target_memcpy_async and
3189 omp_target_memcpy_rect_async.
3190 * omp_lib.f90.in: Added interfaces for both new functions.
3191 * omp_lib.h.in: Likewise.
3192 * target.c (ialias_redirect): Added for GOMP_task.
3193 (omp_target_memcpy): Restructured into check and copy part.
3194 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3195 omp_target_memcpy_async that checks requirements.
3196 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3197 omp_target_memcpy_async that performs the memcpy.
3198 (omp_target_memcpy_async_helper): New helper function that is used in
3199 omp_target_memcpy_async for the asynchronous task.
3200 (omp_target_memcpy_async): Added.
3201 (omp_target_memcpy_rect): Restructured into check and copy part.
3202 (omp_target_memcpy_rect_check): New helper function for
3203 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3205 (omp_target_memcpy_rect_copy): New helper function for
3206 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3208 (omp_target_memcpy_rect_async_helper): New helper function that is used
3209 in omp_target_memcpy_rect_async for the asynchronous task.
3210 (omp_target_memcpy_rect_async): Added.
3211 * task.c (ialias): Added for GOMP_task.
3212 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3213 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3214 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3215 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3216 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3217 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3218 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3219 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3221 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3223 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3224 (OpenMP Context Selectors): Add missing comma.
3225 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3226 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3227 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3228 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3230 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3232 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3233 comment for omp_display_env feature.
3235 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3237 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3238 to document OpenMP context selectors.
3240 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3242 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3243 from bool to unsigned char.
3244 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3245 Ignore dependencies where
3246 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3247 rather than just task->depend[i].is_in && ent->is_in. Remember
3248 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3250 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3251 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3252 rather than just elem.is_in && ent->is_in.
3253 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3254 inoutset depend-kind.
3255 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3256 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3257 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3259 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3261 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3263 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3265 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3266 * testsuite/libgomp.fortran/depend-5.f90: New test.
3267 * testsuite/libgomp.fortran/depend-6.f90: New test.
3268 * testsuite/libgomp.fortran/depend-7.f90: New test.
3270 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3272 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3273 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3274 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3276 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3278 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3280 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3282 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3284 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3286 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3287 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3288 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3289 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3290 * Makefile.in: Regenerate.
3292 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3294 * Makefile.am (libgomp_la_LIBADD): Initialize.
3295 * plugin/configfrag.ac (DL_LIBS): New.
3296 (PLUGIN_GCN_LIBS): Remove.
3297 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3298 * plugin/Makefrag.am (libgomp_la_LIBADD)
3299 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3300 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3301 * Makefile.in: Regenerate.
3302 * config.h.in: Likewise.
3303 * configure: Likewise.
3304 * testsuite/Makefile.in: Likewise.
3306 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3308 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3309 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3310 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3311 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3312 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3313 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3314 * Makefile.in: Regenerate.
3315 * config.h.in: Likewise.
3316 * configure: Likewise.
3318 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3320 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3321 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3322 * Makefile.in: Regenerate.
3323 * config.h.in: Likewise.
3324 * configure: Likewise.
3325 * testsuite/Makefile.in: Likewise.
3327 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3329 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3330 * task.c (gomp_init_task): Initialize depend_all_memory.
3331 (gomp_task_handle_depend): Handle omp_all_memory.
3332 (gomp_task_run_post_handle_depend_hash): Clear
3333 parent->depend_all_memory if equal to current task.
3334 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3335 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3336 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3337 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3339 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3341 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3342 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3343 * Makefile.in: Regenerate.
3344 * configure: Likewise.
3345 * testsuite/Makefile.in: Likewise.
3347 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3349 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3350 consider 'PLUGIN_GCN_CPPFLAGS'.
3351 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3352 'PLUGIN_GCN_LDFLAGS'.
3353 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3355 * Makefile.in: Regenerate.
3356 * configure: Likewise.
3357 * testsuite/Makefile.in: Likewise.
3359 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3361 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3362 (HSA_RUNTIME_LDFLAGS): Remove.
3363 * configure: Regenerate.
3365 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3367 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3368 'append always_ld_library_path ":$hsa_runtime_lib"'.
3369 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3371 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3373 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3374 multi-device testing.
3376 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3378 * libgomp.map: Added omp_target_is_accessible.
3379 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3380 * omp.h.in: Added omp_target_is_accessible.
3381 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3382 * omp_lib.h.in: Likewise.
3383 * target.c (omp_target_is_accessible): Added implementation of
3384 omp_target_is_accessible.
3385 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3386 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3388 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3390 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3392 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3394 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3396 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3398 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3400 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3402 * libgomp.map: Added omp_get_mapped_ptr.
3403 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3404 * omp.h.in: Added omp_get_mapped_ptr.
3405 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3406 * omp_lib.h.in: Likewise.
3407 * target.c (omp_get_mapped_ptr): Added implementation of
3409 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3410 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3411 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3412 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3413 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3414 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3415 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3416 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3418 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3421 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3422 privatization scanning. For GCN offloading compilation, raise
3423 '-mgang-private-size'.
3425 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3428 * work.c (gomp_init_work_share): Don't mask of adjustment for
3429 dynamic long long realignment if struct gomp_work_share has smaller
3430 alignof than long long.
3431 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3432 struct gomp_work_share has smaller alignof than long long or if
3433 sizeof (struct gomp_work_share) is smaller than
3434 INLINE_ORDERED_TEAM_IDS_OFF.
3435 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3436 * sections.c (GOMP_sections2_start): Likewise.
3438 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3439 Thomas Schwinge <thomas@codesourcery.com>
3442 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3444 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3446 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3448 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3450 * plugin/cuda/cuda.h: Remove file.
3451 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3452 "cuda/cuda.h" instead of <cuda.h>.
3453 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3454 'PLUGIN_NVPTX_CPPFLAGS'.
3455 * configure: Regenerate.
3457 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3459 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3461 2022-04-04 Tom de Vries <tdevries@suse.de>
3463 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3464 on_device_arch_nvptx instead of offload_target_nvptx.
3465 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3467 2022-04-01 Tom de Vries <tdevries@suse.de>
3469 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3471 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3473 2022-04-01 Tom de Vries <tdevries@suse.de>
3475 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3478 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3479 Lulu Cheng <chenglulu@loongson.cn>
3481 * configure.tgt: Add LoongArch triplet.
3483 2022-03-28 Tom de Vries <tdevries@suse.de>
3485 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3486 instead of /libexec/.
3487 * configure: Regenerate.
3489 2022-03-25 Tom de Vries <tdevries@suse.de>
3492 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3494 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3495 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3497 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3499 PR middle-end/104285
3500 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3501 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3502 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3503 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3504 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3505 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3507 2022-03-22 Tom de Vries <tdevries@suse.de>
3511 * testsuite/libgomp.c/pr104783-2.c: New test.
3513 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3516 * testsuite/libgomp.fortran/associate4.f90: New test.
3518 2022-03-18 Tom de Vries <tdevries@suse.de>
3521 * testsuite/libgomp.c/pr104952-1.c: New test.
3522 * testsuite/libgomp.c/pr104952-2.c: New test.
3524 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3526 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3527 variable next to pl variable.
3529 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3531 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3533 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3534 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3536 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3539 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3540 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3542 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3544 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3545 omp_set_max_active_levels.
3546 * testsuite/libgomp.fortran/icv-8.f90: New test.
3548 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3551 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3553 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3555 * libgomp.texi: Fix typo.
3557 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3559 PR middle-end/100280
3560 PR middle-end/104892
3561 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3562 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3563 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3565 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3567 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3568 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3569 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3572 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3574 PR middle-end/104892
3575 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3577 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3578 enable '--param=openacc-kernels=decompose' and adjust.
3579 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3581 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3582 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3585 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3588 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3589 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3590 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3591 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3593 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3595 PR middle-end/100280
3596 PR middle-end/104086
3597 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3599 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3601 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3603 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3606 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3608 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3609 trait. Test last index in w and v array. Remove redundant
3610 assignment to V(1). Move alignment checks at the end of
3613 2022-03-10 Tom de Vries <tdevries@suse.de>
3615 * testsuite/libgomp.c/pr104783.c: New test.
3617 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3620 PR middle-end/102330
3621 PR middle-end/104774
3622 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.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-2.c:
3640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3642 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3644 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3646 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3648 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3650 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3651 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3652 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3654 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3657 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3658 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3659 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3660 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3662 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3665 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3666 expected diagnostics.
3668 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3670 PR middle-end/104784
3671 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3672 Test with '--param=openacc-kernels=decompose'.
3673 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3675 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3677 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3679 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3681 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3683 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3685 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3687 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3689 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3691 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3693 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3695 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3697 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3699 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3701 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3711 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3713 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3715 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3717 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3719 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3721 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3723 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3725 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3727 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3729 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3731 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3733 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3735 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3738 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3740 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3741 Test '-fopt-info-omp-all'.
3742 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3744 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3746 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3748 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3778 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3780 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3782 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3784 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3786 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3788 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3790 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3792 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3794 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3796 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3798 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3807 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3809 PR middle-end/100280
3810 PR middle-end/104132
3811 PR middle-end/104133
3812 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3815 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3817 PR middle-end/100280
3818 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3819 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3822 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3824 PR middle-end/100280
3825 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3826 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3829 2022-02-28 Tom de Vries <tdevries@suse.de>
3831 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3832 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3833 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3834 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3835 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3836 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3838 2022-02-24 Tom de Vries <tdevries@suse.de>
3840 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3841 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3842 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3843 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3844 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3845 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3846 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3848 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3850 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3851 gang-redundant execution.
3853 2022-02-22 Tom de Vries <tdevries@suse.de>
3856 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3857 from config/rtems/bar.c.
3858 (futex_wait, futex_wake): New function.
3859 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3860 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3861 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3862 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3863 and replace with include of config/linux/bar.c.
3864 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3865 (gomp_barrier_init): Init new fields.
3866 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3868 * testsuite/libgomp.c/pr99555-1.c: Same.
3869 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3871 2022-02-22 Tom de Vries <tdevries@suse.de>
3874 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3875 -foffload=-Wa,--verify for nvptx.
3876 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3878 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3880 * testsuite/libgomp.fortran/depend-4.f90: New test.
3882 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3885 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3887 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3889 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3890 * target.c (copy_firstprivate_data): Copy only if host address is not
3892 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3893 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3894 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3895 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3896 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3897 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3898 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3899 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3900 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3901 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3903 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3906 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3908 * testsuite/libgomp.c/pr104385.c: New test.
3910 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3912 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3913 STOP of previous commit.
3915 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3917 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3918 from is_64bit_aligned_.
3919 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3920 and use it, more implicit none, remove unused argument.
3922 2022-02-03 David Seifert <soap@gentoo.org>
3923 Jakub Jelinek <jakub@redhat.com>
3925 * configure.ac: Support --disable-werror.
3926 * configure: Regenerate.
3928 2022-02-01 Tom de Vries <tdevries@suse.de>
3930 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3932 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3933 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3935 2022-02-01 Tom de Vries <tdevries@suse.de>
3937 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3938 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3940 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3942 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3944 2022-02-01 Tom de Vries <tdevries@suse.de>
3946 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3948 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3950 2022-01-31 Martin Liska <mliska@suse.cz>
3952 * acinclude.m4: Detect *_ld_is_mold and use it.
3953 * configure: Regenerate.
3955 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3957 * libgomp.texi (OpenMP 5.0): Update implementation status.
3959 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3961 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3962 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3963 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3964 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3965 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3966 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3967 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3969 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3970 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3971 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3972 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3973 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3974 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3975 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3977 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3979 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3980 "static") to make the device num available in the offload image.
3982 2022-01-19 Martin Liska <mliska@suse.cz>
3983 Thomas Schwinge <thomas@codesourcery.com>
3985 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3987 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3988 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3990 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3991 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3992 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3993 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3994 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3996 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3998 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4000 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4002 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4004 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4006 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4007 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4008 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4010 2022-01-18 Martin Liska <mliska@suse.cz>
4012 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4014 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4016 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4017 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4018 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4019 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4020 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4021 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4022 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4024 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4025 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4026 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4027 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4028 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4030 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4032 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4033 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4034 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4036 2022-01-17 Julian Brown <julian@codesourcery.com>
4037 Thomas Schwinge <thomas@codesourcery.com>
4039 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4040 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4041 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4043 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4044 Andrew Stubbs <ams@codesourcery.com>
4046 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4047 the number of teams and threads if necessary.
4048 (gcn_exec): Automatically set the number of gangs and workers if
4051 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4053 * testsuite/libgomp.fortran/allocate-1.c: New test.
4054 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4055 * libgomp.texi: Remove string that says that allocate clause
4056 support is for C/C++ only.
4058 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4060 * testsuite/libgomp.c-c++-common/on_device_arch.h
4061 (any_device_arch, any_device_arch_intel_mic): New.
4062 * testsuite/lib/libgomp.exp
4063 (check_effective_target_offload_device_any_intel_mic): New.
4064 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4065 * testsuite/libgomp.fortran/target10.f90: Likewise.
4067 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4069 PR tree-optimization/102192
4070 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4071 '-Wuninitialized' diagnostics.
4073 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4075 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4076 current '-Wuninitialized' diagnostics.
4077 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4078 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4079 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4080 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4081 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4082 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4083 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4084 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4085 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4086 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4087 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4090 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4092 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4093 for 'offload_device_intel_mic'.
4095 2022-01-13 Julian Brown <julian@codesourcery.com>
4096 Thomas Schwinge <thomas@codesourcery.com>
4098 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4099 offloading execution XFAIL.
4101 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4103 PR middle-end/100280
4104 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4106 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4107 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4110 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4112 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4114 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4116 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4117 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4118 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4119 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4122 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4123 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4124 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4125 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4127 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4129 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4130 * testsuite/libgomp.fortran/target10.f90: Likewise.
4132 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4134 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4135 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4136 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4138 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4140 * libgomp.texi: Bump @copying's copyright year.
4142 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4144 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4145 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4147 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4149 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4150 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4151 table, not individual symbols.
4153 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4155 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4156 "target offload_device_nonshared_as"
4157 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4158 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4160 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4162 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4163 not overwritten during cross-host/device copying.
4164 (gomp_update): Likewise.
4165 (gomp_exit_data): Likewise.
4166 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4167 * testsuite/libgomp.c++/target-12.C: Likewise.
4168 * testsuite/libgomp.c++/target-15.C: Likewise.
4169 * testsuite/libgomp.c++/target-16.C: Likewise.
4170 * testsuite/libgomp.c++/target-17.C: Likewise.
4171 * testsuite/libgomp.c++/target-21.C: Likewise.
4172 * testsuite/libgomp.c++/target-23.C: Likewise.
4173 * testsuite/libgomp.c/target-23.c: Likewise.
4174 * testsuite/libgomp.c/target-29.c: Likewise.
4175 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4177 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4180 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4181 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4182 (goacc_enter_data_internal): Likewise.
4183 * target.c (gomp_map_vars_existing): Update assert condition to
4184 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4185 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4186 parameter, add support for mapping a pointer with NULL target.
4187 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4188 parameter, add support for attaching a pointer with NULL target.
4189 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4190 gomp_attach_pointer, add handling for
4191 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4192 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4193 * testsuite/libgomp.c++/target-23.C: New testcase.
4194 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4195 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4196 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4197 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4198 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4199 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4200 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4202 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4204 * libgomp.texi (OpenMP 5.1): Update status.
4206 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4208 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4210 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4213 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4214 * testsuite/libgomp.fortran/pr90030.f90: New test.
4216 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4217 Thomas Schwinge <thomas@codesourcery.com>
4219 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4222 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4223 Thomas Schwinge <thomas@codesourcery.com>
4225 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4228 2021-11-29 Richard Biener <rguenther@suse.de>
4230 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4233 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4235 PR middle-end/103384
4236 * testsuite/libgomp.c/declare-variant-2.c: New test.
4238 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4240 * alloc.c (gomp_aligned_alloc): Fix typo.
4242 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4245 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4246 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4247 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4248 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4249 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4250 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4251 gomp_aligned_alloc instead of team_malloc.
4253 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4256 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4257 memalign over posix_memalign over aligned_alloc over fallback
4258 with malloc instead of aligned_alloc over _aligned_alloc over
4259 posix_memalign over memalign over fallback with malloc. For
4260 aligned_alloc, round up size up to multiple of al.
4262 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4264 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4265 construct as implemented.
4267 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4269 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4271 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4273 * task.c (gomp_create_target_task): Copy args array as well.
4274 * target.c (gomp_target_fallback): Add args argument.
4275 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4276 (GOMP_target): Adjust gomp_target_fallback caller.
4277 (GOMP_target_ext): Likewise.
4278 (gomp_target_task_fn): Likewise.
4279 * config/nvptx/team.c (gomp_nvptx_main): Set
4280 gomp_global_icv.thread_limit_var.
4281 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4283 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4285 * config/nvptx/team.c (__gomp_team_num): Define as
4286 __attribute__((shared)) var.
4287 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4288 * config/nvptx/target.c (__gomp_team_num): Declare as
4289 extern __attribute__((shared)) var.
4290 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4291 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4292 is bigger than num_blocks, use num_teams_lower teams and arrange for
4293 bumping of __gomp_team_num if !first and returning false once we run
4295 * config/nvptx/teams.c (__gomp_team_num): Declare as
4296 extern __attribute__((shared)) var.
4297 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4299 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4301 * testsuite/libgomp.c/teams-5.c: New test.
4303 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4306 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4308 * config/gcn/teams.c: ... here. New file.
4310 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4312 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4313 implicit map handling to allow a "superset" existing map as valid case.
4314 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4315 (get_implicit): New function to extract implicit status.
4316 (gomp_map_fields_existing): Adjust arguments in calls to
4317 gomp_map_vars_existing, and add uses of get_implicit.
4318 (gomp_map_vars_internal): Likewise.
4319 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4321 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4323 * libgomp_g.h (GOMP_teams4): Declare.
4324 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4325 * target.c (GOMP_teams4): New function.
4326 * config/nvptx/target.c (GOMP_teams): Remove.
4327 (GOMP_teams4): New function.
4328 * config/gcn/target.c (GOMP_teams): Remove.
4329 (GOMP_teams4): New function.
4330 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4331 teams instead of <= 2.
4332 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4334 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4336 * testsuite/libgomp.fortran/teams-1.f90: New test.
4338 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4340 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4341 * team.c (struct gomp_thread_start_data): Likewise.
4342 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4343 (gomp_team_start): Initialize start_data->num_teams and
4344 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4345 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4346 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4347 instead of gomp_num_teams and gomp_team_num.
4348 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4349 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4350 * testsuite/libgomp.c/teams-4.c: New test.
4352 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4354 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4356 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4358 * env.c (parse_gomp_openacc_dim): Restore parsing.
4360 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4362 PR middle-end/102972
4363 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4365 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4366 * testsuite/libgomp.c/target-3.c: Likewise.
4367 * testsuite/libgomp.c/target-5.c: Likewise.
4368 * testsuite/libgomp.c/target-6.c: Likewise.
4369 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4370 * testsuite/libgomp.c/teams-1.c: Likewise.
4371 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4372 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4373 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4374 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4375 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4376 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4377 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4379 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4381 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4382 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4384 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4386 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4387 aren't implemented for Fortran yet.
4389 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4391 * testsuite/libgomp.c/loop-26.c: New test.
4392 * testsuite/libgomp.c/loop-27.c: New test.
4394 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4397 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4398 instead of #include <alloca.h> + alloca.
4400 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4402 * libgomp.texi (Support of strictly structured blocks in Fortran):
4404 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4406 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4408 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4409 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4411 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4414 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4415 (struct gomp_work_share): Only use aligned(64) attribute if
4416 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4417 add padding before lock to ensure lock is at offset 64 bytes
4419 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4420 New poor man's static assertions.
4421 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4422 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4424 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4425 Richard Biener <rguenther@suse.de>
4427 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4429 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4431 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4432 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4434 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4443 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4445 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4447 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4448 type from char [50] to const char *.
4449 (places_array): Add a testcase for simplified syntax place followed
4450 by length or length and stride.
4452 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4454 * env.c (parse_one_place): Handle non-negative-number the same
4455 as { non-negative-number }. Reject even !number:1 and
4456 !number:1:stride or !place:1 or !place:1:stride instead of just
4457 length other than 1.
4458 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4459 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4460 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4462 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4465 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4467 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4468 clearly reject return value 0 as invalid handle the case where end
4469 pointer is the same as first argument as invalid.
4470 (parse_unsigned_long_1): Likewise.
4471 (parse_one_place): Likewise.
4472 (parse_places_var): Likewise.
4473 (parse_stacksize): Likewise.
4474 (parse_spincount): Likewise.
4475 (parse_affinity): Likewise.
4476 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4477 Make code valid C89.
4478 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4479 For strtoul calls which don't clearly reject return value 0 as
4480 invalid handle the case where end pointer is the same as first
4481 argument as invalid.
4482 (gomp_affinity_init_level_1): Likewise.
4483 (gomp_affinity_init_numa_domains): Likewise.
4484 * config/rtems/proc.c (parse_thread_pools): Likewise.
4486 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4488 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4489 after creating count places clean up and return immediately.
4490 * testsuite/libgomp.c/places-6.c: New test.
4491 * testsuite/libgomp.c/places-7.c: New test.
4492 * testsuite/libgomp.c/places-8.c: New test.
4493 * testsuite/libgomp.c/places-9.c: New test.
4494 * testsuite/libgomp.c/places-10.c: New test.
4496 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4498 * env.c (parse_places_var): Handle numa_domains as level 5.
4499 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4501 (gomp_affinity_init_level): Use it instead of
4502 gomp_affinity_init_level_1 for level == 5.
4503 * testsuite/libgomp.c/places-5.c: New test.
4505 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4507 * env.c (parse_places_var): Handle ll_caches as level 4.
4508 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4510 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4512 (gomp_affinity_init_level): Likewise.
4513 * testsuite/libgomp.c/places-1.c: New test.
4514 * testsuite/libgomp.c/places-2.c: New test.
4515 * testsuite/libgomp.c/places-3.c: New test.
4516 * testsuite/libgomp.c/places-4.c: New test.
4518 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4520 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4523 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4525 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4527 2021-10-12 Julian Brown <julian@codesourcery.com>
4529 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4532 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4534 * testsuite/libgomp.fortran/icv-3.f90: New.
4535 * testsuite/libgomp.fortran/icv-4.f90: New.
4537 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4539 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4540 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4541 OMP_TEAMS_THREAD_LIMIT): Document.
4543 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4545 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4546 to avoid makeinfo warnings.
4548 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4550 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4551 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4553 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4557 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4558 allocation sizes from 420 to 320 and from 768 to 568.
4559 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4560 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4561 for cr from 16 to 4.
4563 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4565 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4566 * testsuite/libgomp.c/scan-12.c: Likewise.
4567 * testsuite/libgomp.c/scan-13.c: Likewise.
4568 * testsuite/libgomp.c/scan-14.c: Likewise.
4569 * testsuite/libgomp.c/scan-15.c: Likewise.
4570 * testsuite/libgomp.c/scan-16.c: Likewise.
4571 * testsuite/libgomp.c/scan-17.c: Likewise.
4572 * testsuite/libgomp.c/scan-18.c: Likewise.
4573 * testsuite/libgomp.c/scan-19.c: Likewise.
4574 * testsuite/libgomp.c/scan-20.c: Likewise.
4575 * testsuite/libgomp.c/scan-21.c: Likewise.
4576 * testsuite/libgomp.c/scan-22.c: Likewise.
4577 * testsuite/libgomp.c++/scan-9.C: Likewise.
4578 * testsuite/libgomp.c++/scan-10.C: Likewise.
4579 * testsuite/libgomp.c++/scan-11.C: Likewise.
4580 * testsuite/libgomp.c++/scan-12.C: Likewise.
4581 * testsuite/libgomp.c++/scan-13.C: Likewise.
4582 * testsuite/libgomp.c++/scan-14.C: Likewise.
4583 * testsuite/libgomp.c++/scan-15.C: Likewise.
4584 * testsuite/libgomp.c++/scan-16.C: Likewise.
4586 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4588 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4590 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4592 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4594 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4595 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4596 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4597 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4599 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4601 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4602 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4603 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4604 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4605 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4606 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4607 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4608 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4609 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4610 omp_set_teams_thread_limit{,_,_8_}.
4611 * icv.c (omp_set_num_teams, omp_get_max_teams,
4612 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4614 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4615 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4616 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4618 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4619 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4620 is not specified, use gomp_nteams_var.
4621 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4622 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4624 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4625 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4626 omp_get_teams_thread_limit_): New functions.
4628 2021-10-09 liuhongt <hongtao.liu@intel.com>
4630 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4631 * testsuite/libgomp.c++/scan-11.C: Ditto.
4632 * testsuite/libgomp.c++/scan-12.C: Ditto.
4633 * testsuite/libgomp.c++/scan-13.C: Ditto.
4634 * testsuite/libgomp.c++/scan-14.C: Ditto.
4635 * testsuite/libgomp.c++/scan-15.C: Ditto.
4636 * testsuite/libgomp.c++/scan-16.C: Ditto.
4637 * testsuite/libgomp.c++/scan-9.C: Ditto.
4638 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4639 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4640 * testsuite/libgomp.c/scan-11.c: Ditto.
4641 * testsuite/libgomp.c/scan-12.c: Ditto.
4642 * testsuite/libgomp.c/scan-13.c: Ditto.
4643 * testsuite/libgomp.c/scan-14.c: Ditto.
4644 * testsuite/libgomp.c/scan-15.c: Ditto.
4645 * testsuite/libgomp.c/scan-16.c: Ditto.
4646 * testsuite/libgomp.c/scan-17.c: Ditto.
4647 * testsuite/libgomp.c/scan-18.c: Ditto.
4648 * testsuite/libgomp.c/scan-19.c: Ditto.
4649 * testsuite/libgomp.c/scan-20.c: Ditto.
4650 * testsuite/libgomp.c/scan-21.c: Ditto.
4651 * testsuite/libgomp.c/scan-22.c: Ditto.
4653 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4655 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4656 structured block sequences in C/C++. Mention support for
4657 unconstrained/reproducible modifiers on order clause.
4658 Mention partial (C/C++ only) support of extentensions to atomics
4659 construct. Mention partial (C/C++ on clause only) support of
4660 align/allocator modifiers on allocate clause.
4662 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4664 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4665 based on libgomp.c-c++-common/order-reproducible-1.c.
4666 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4667 * testsuite/libgomp.fortran/my-usleep.c: New test.
4669 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4671 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4672 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4673 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4674 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4675 based on libgomp.c-c++-common/alloc-9.c.
4677 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4679 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4680 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4682 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4684 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4686 * env.c (handle_omp_display_env): Use ialias_call.
4687 * icv-device.c: Move ialias right below each function.
4688 (omp_get_device_num): Use ialias_call.
4689 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4690 * icv.c (omp_get_active_level): Add ialias_redirect.
4692 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4694 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4695 __alloc_align__ (1) attribute.
4696 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4698 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4700 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4701 for -fintrinsic-modules-path= warning of the C compiler.
4702 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4703 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4705 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4707 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4708 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4709 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4711 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4713 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4714 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4715 * testsuite/libgomp.fortran/alloc-7.c: New test.
4716 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4717 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4718 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4720 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4722 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4723 omp_realloc): New prototypes.
4724 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4726 * allocator.c: Include string.h.
4727 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4728 variable and use it instead of alignment so that when retrying the old
4729 alignment is used again. Don't retry if new alignment is the same
4730 as old alignment, unless allocator had pool size.
4731 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4732 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4733 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4734 omp_aligned_calloc and omp_realloc.
4735 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4736 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4737 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4738 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4739 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4740 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4742 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4745 * configure.ac: Only check for int-type = 2*size_t support when
4746 building with Fortran support.
4747 * configure: Regenerate.
4749 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4751 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4752 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4754 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4756 * team.c: Initialize start_data.
4757 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4758 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4760 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4762 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4763 dg-message back to dg-note.
4765 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4768 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4769 expected dg-note output.
4771 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4774 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4775 r12-3722 by removing -Wno-missing-include-dirs.
4776 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4778 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4780 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4781 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4783 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4786 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4788 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4790 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4792 * testsuite/libgomp.c++/default-1.C: New test.
4793 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4794 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4795 to default clause in C and C++" as implemented.
4797 2021-09-17 Julian Brown <julian@codesourcery.com>
4799 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4801 2021-09-17 Julian Brown <julian@codesourcery.com>
4803 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4805 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4807 * libgomp.texi (OpenMP 5.1): Spelling fix,
4808 declare variante -> declare variant.
4810 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4812 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4813 Use /* */ comments instead of //.
4814 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4815 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4816 * testsuite/libgomp.c++/atomic-16.C: New test.
4817 * testsuite/libgomp.c++/atomic-17.C: New test.
4819 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4821 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4822 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4823 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4825 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4827 * libgomp.texi (OpenMP Implementation Status): Extend
4829 (OpenACC Profiling Interface): Fix typo.
4831 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4833 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4834 not to 4.5; link to new section.
4835 (OpenMP Implementation Status): New.
4837 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4839 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4841 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4843 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4845 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4847 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4848 Jakub Jelinek <jakub@redhat.com>
4850 * testsuite/libgomp.c/address-space-1.c: New file.
4852 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4854 * testsuite/lib/libgomp.exp
4855 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4856 (check_effective_target_offload_device_intel_mic): New 'proc'.
4857 * testsuite/libgomp.c-c++-common/on_device_arch.h
4858 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4859 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4861 * testsuite/libgomp.fortran/target10.f90: Likewise.
4863 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4865 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4866 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4867 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4868 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4870 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4872 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4873 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4874 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4876 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4878 * config/nvptx/error.c (fwrite, exit): Override, too.
4879 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4880 of offloading testing.
4881 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4883 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4885 * testsuite/libgomp.fortran/error-1.f90: New test.
4887 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4889 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4890 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4891 * error.c (GOMP_warning, GOMP_error): New functions.
4892 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4894 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4896 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4897 omp_target_free. omp_target_is_present, omp_target_memcpy,
4898 omp_target_memcpy_rect, omp_target_associate_ptr,
4899 omp_target_disassociate_ptr): Add interface.
4900 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4901 omp_target_free. omp_target_is_present, omp_target_memcpy,
4902 omp_target_memcpy_rect, omp_target_associate_ptr,
4903 omp_target_disassociate_ptr): Add interface.
4904 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4905 interface block for omp_alloc + omp_free.
4906 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4907 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4908 * testsuite/libgomp.fortran/target-12.f90: New test.
4910 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4912 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4914 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4916 * testsuite/libgomp.fortran/scope-1.f90: New test.
4917 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4919 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4921 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4922 * Makefile.in: Regenerated.
4923 * libgomp_g.h (GOMP_scope_start): Declare.
4924 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4925 * scope.c: New file.
4926 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4927 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4929 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4931 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4934 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4936 * testsuite/libgomp.fortran/masked-1.f90: New test.
4938 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4940 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4942 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4944 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4946 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4948 * env.c (parse_bind_var): Accept 'primary' as alias for
4950 (omp_display_env): Add TODO comment to
4951 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4952 * libgomp.texi: Change 'master thread' to 'primary thread'
4953 in line with OpenMP 5.1.
4954 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4955 omp_proc_bind_master is an alias of it.
4956 (OMP_PROC_BIND): Mention 'PRIMARY'.
4957 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4958 (omp_proc_bind_primary): Add.
4959 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4960 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4961 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4962 * omp_lib.h.in (omp_proc_bind_primary): Add.
4963 * testsuite/libgomp.c/affinity-1.c: Check that
4964 'primary' works and is identical to 'master'.
4966 2021-08-09 Julian Brown <julian@codesourcery.com>
4967 Kwok Cheung Yeung <kcy@codesourcery.com>
4968 Thomas Schwinge <thomas@codesourcery.com>
4970 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4972 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4973 [acc_device_radeon]: Update.
4974 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4975 [ACC_DEVICE_TYPE_radeon]: Likewise.
4976 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4977 [acc_device_radeon]: Likewise.
4978 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4979 [ACC_DEVICE_TYPE_radeon]: Likewise.
4980 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4981 'openacc_radeon_accel_selected' and '-O0'.
4982 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4984 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4986 * icv-device.c (omp_get_device_num): New API function, host side.
4987 * fortran.c (omp_get_device_num_): New interface function.
4988 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4989 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4990 omp_get_device_num_.
4991 * libgomp.texi (omp_get_device_num): Add documentation for new API
4993 * omp.h.in (omp_get_device_num): Add declaration.
4994 * omp_lib.f90.in (omp_get_device_num): Likewise.
4995 * omp_lib.h.in (omp_get_device_num): Likewise.
4996 * target.c (gomp_load_image_to_device): If additional entry for device
4997 number exists at end of returned entries from 'load_image_func' hook,
4998 copy the assigned device number over to the device variable.
4999 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5000 (omp_get_device_num): New API function, device side.
5001 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5002 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5003 at end of returned 'target_table' entries.
5004 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5005 (omp_get_device_num): New API function, device side.
5006 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5007 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5008 at end of returned 'target_table' entries.
5009 * testsuite/lib/libgomp.exp
5010 (check_effective_target_offload_target_intelmic): New function for
5011 testing for intelmic offloading.
5012 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5013 * testsuite/libgomp.fortran/target10.f90: New test.
5015 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5016 Ulrich Drepper <drepper@redhat.com>
5018 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5019 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5021 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5022 Julian Brown <julian@codesourcery.com>
5023 Kwok Cheung Yeung <kcy@codesourcery.com>
5025 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5026 's%oaccdevlow%oaccloops%g'.
5027 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5028 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5029 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5031 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5033 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5035 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5037 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5039 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5041 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5043 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5045 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5047 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5049 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5051 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5053 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5055 * env.c (wait_policy, stacksize): New static variables,
5056 move out of handle_omp_display_env.
5057 (omp_display_env): New function. The meat of the old
5058 handle_omp_display_env function.
5059 (handle_omp_display_env): Change to not take parameters
5060 and instead use the global variables. Only perform
5061 parsing, defer to omp_display_env for the implementation.
5062 (initialize_env): Remove local variables wait_policy and
5063 stacksize. Don't pass parameters to handle_omp_display_env.
5064 * fortran.c: Add ialias_redirect for omp_display_env.
5065 (omp_display_env_, omp_display_env_8_): New functions.
5066 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5067 omp_display_env_, and omp_display_env_8_.
5068 * omp.h.in: Declare omp_display_env.
5069 * omp_lib.f90.in: Likewise.
5070 * omp_lib.h.in: Likewise.
5072 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5073 Julian Brown <julian@codesourcery.com>
5075 * target.c (gomp_coalesce_buf_add): Update comment.
5076 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5078 (gomp_map_vars_internal): Only 'if (!aq)', do
5079 'gomp_coalesce_buf_add'.
5080 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5083 2021-07-27 Julian Brown <julian@codesourcery.com>
5084 Thomas Schwinge <thomas@codesourcery.com>
5086 * libgomp.h (gomp_copy_host2dev): Update prototype.
5087 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5088 argument to gomp_copy_host2dev (false).
5089 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5090 (copy_data): Don't free src.
5091 (queue_push_copy): Remove free_src handling.
5092 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5093 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5095 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5097 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5098 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5099 data when true, and set up deferred freeing of temporary buffer.
5100 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5101 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5102 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5103 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5104 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5107 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5108 Tom de Vries <tom@codesourcery.com>
5110 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5111 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5113 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5115 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5116 sequencing of 'async' data copying vs. profiling events.
5117 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5120 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5121 Julian Brown <julian@codesourcery.com>
5123 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5124 'async'/'wait' issue.
5125 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5126 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5127 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5129 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5130 Joseph Myers <joseph@codesourcery.com>
5131 Cesar Philippidis <cesar@codesourcery.com>
5133 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5135 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5137 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5139 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5141 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5144 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5145 '-Wno-error=array-bounds'.
5146 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5147 * libgomp.h [__AMDGCN__]: Likewise.
5149 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5152 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5153 * libgomp.h [__AMDGCN__]: Likewise.
5155 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5156 Florian Weimer <fweimer@redhat.com>
5158 * config/linux/sem.h: Don't include limits.h.
5159 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5160 * config/linux/affinity.c: Include limits.h.
5162 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5165 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5167 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5170 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5171 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5172 avoid disabling other offload targets.
5173 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5174 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5175 * testsuite/libgomp.c/target-44.c: Likewise.
5177 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5179 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5180 target has shared memory and disable some scalar pointer/allocatable
5181 checks if not as firstprivate does not work.
5183 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5186 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5187 Add "target offload_device_nonshared_as" condition for enabling test.
5189 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5191 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5192 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5193 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5194 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5196 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5198 PR middle-end/101167
5199 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5201 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5203 * hashtab.h (htab_clear): New function with initialization code
5204 factored out from...
5205 (htab_create): ...here, adjust to use htab_clear function.
5206 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5207 special refcount values, add comments.
5208 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5209 (REFCOUNT_LINK): Likewise.
5210 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5212 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5214 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5215 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5216 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5217 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5218 (struct splay_tree_key_s): Add structelem_refcount and
5219 structelem_refcount_ptr fields into a union with dynamic_refcount.
5221 (gomp_map_vars): Delete declaration.
5222 (gomp_map_vars_async): Likewise.
5223 (gomp_unmap_vars): Likewise.
5224 (gomp_unmap_vars_async): Likewise.
5225 (goacc_map_vars): New declaration.
5226 (goacc_unmap_vars): Likewise.
5227 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5228 (goacc_enter_datum): Likewise.
5229 (goacc_enter_data_internal): Likewise.
5230 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5231 and goacc_unmap_vars.
5232 (GOACC_data_start): Adjust to use goacc_map_vars.
5233 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5234 * target.c (hash_entry_type): New typedef.
5235 (htab_alloc): New function hook for hashtab.h.
5236 (htab_free): Likewise.
5237 (htab_hash): Likewise.
5238 (htab_eq): Likewise.
5239 (hashtab.h): Add file include.
5240 (gomp_increment_refcount): New function.
5241 (gomp_decrement_refcount): Likewise.
5242 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5243 gomp_increment_refcount.
5244 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5245 to gomp_map_vars_existing.
5246 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5247 variable to guard OpenMP specific paths, adjust calls to
5248 gomp_map_vars_existing, add structure element sibling splay_tree_key
5249 sequence creation code, adjust Fortran map case to avoid increment
5251 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5252 local refcount_set if caller passed in NULL, adjust call to
5253 gomp_map_vars_internal.
5254 (gomp_map_vars_async): Adjust and rename into...
5255 (goacc_map_vars): ...this new function, adjust call to
5256 gomp_map_vars_internal.
5257 (gomp_remove_splay_tree_key): New function with code factored out from
5258 gomp_remove_var_internal.
5259 (gomp_remove_var_internal): Add code to handle removing multiple
5260 splay_tree_key sequence for structure elements, adjust code to use
5261 gomp_remove_splay_tree_key for splay-tree key removal.
5262 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5263 gomp_decrement_refcount.
5264 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5265 local refcount_set if caller passed in NULL, adjust call to
5266 gomp_unmap_vars_internal.
5267 (gomp_unmap_vars_async): Adjust and rename into...
5268 (goacc_unmap_vars): ...this new function, adjust call to
5269 gomp_unmap_vars_internal.
5270 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5272 (GOMP_target_ext): Likewise.
5273 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5274 (GOMP_target_data): Likewise.
5275 (GOMP_target_data_ext): Likewise.
5276 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5277 (gomp_exit_data): Add refcount_set parameter, adjust to use
5278 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5280 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5281 gomp_map_vars and gomp_exit_data.
5282 (gomp_target_task_fn): Likewise.
5283 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5284 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5285 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5286 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5287 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5288 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5290 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5293 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5295 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5296 Thomas Schwinge <thomas@codesourcery.com>
5298 * libgomp.map (GOACC_2.0.2): New symbol version.
5299 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5300 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5302 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5303 Andrew Stubbs <ams@codesourcery.com>
5305 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5307 (GOACC_enter_exit_data): ... here.
5308 (GOACC_declare): Use it.
5310 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5312 * oacc-parallel.c (GOACC_declare): Move...
5313 * oacc-mem.c: ... here.
5314 * libgomp_g.h: Adjust.
5316 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5317 Thomas Schwinge <thomas@codesourcery.com>
5319 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5322 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5324 PR tree-optimization/100981
5325 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5326 dsdotr and dsdoti to 0.
5328 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5330 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5331 if atomic compare-and-swap is supported on 'int'.
5333 2021-06-09 Richard Biener <rguenther@suse.de>
5335 PR tree-optimization/100981
5336 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5338 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5340 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5342 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5344 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5345 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5347 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5349 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5350 '-DACC_MEM_SHARED=0'.
5351 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5352 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5353 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5354 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5355 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5356 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5357 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5358 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5359 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5360 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5361 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5362 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5363 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5364 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5365 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5366 'acc_device_radeon' testing.
5367 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5368 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5369 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5370 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5371 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5372 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5373 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5374 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5375 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5376 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5377 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5378 for non-'openacc_nvidia_accel_selected'.
5379 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5380 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5381 all implement this checking".
5382 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5383 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5384 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5385 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5386 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5388 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5390 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5391 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5393 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5395 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5396 for 'acc_device_radeon'.
5398 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5400 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5401 for non-'acc_device_nvidia'.
5403 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5405 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5406 'acc_device_radeon' testing.
5407 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5408 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5409 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5411 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5413 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5414 require 'openacc_nvidia_accel_selected'. Fix up for
5415 'ACC_DEVICE_TYPE_radeon'.
5417 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5419 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5420 'openacc_nvidia_accel_selected'.
5421 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5423 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5425 * testsuite/lib/libgomp.exp
5426 (check_effective_target_openacc_radeon_accel_selected):
5429 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5431 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5434 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5436 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5437 <acc_device_nvidia>: Update comment.
5439 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5441 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5443 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5445 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5446 check_effective_target_openacc_cublas,
5447 check_effective_target_openacc_cudart): New.
5448 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5449 target openacc_cublas.
5450 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5451 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5452 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5453 target openacc_cuda.
5454 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5455 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5456 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5457 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5459 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5460 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5461 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5462 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5463 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5471 targets openacc_cublas and openacc_cudart.
5472 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5476 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5477 Require effective target openacc_cudart.
5478 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5479 for effective target openacc_cuda and add && defined USE_CUDA_H to
5480 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5483 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5486 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5487 GOMP_target_end_data, GOMP_target_update_ext,
5488 GOMP_target_enter_exit_data): New dummy entrypoints.
5489 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5490 GOMP_target_end_data, GOMP_target_update_ext,
5491 GOMP_target_enter_exit_data): Likewise.
5492 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5493 OMPFROM, OMPTO): Define.
5494 (main): Remove #pragma omp target teams around all the tests.
5495 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5496 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5498 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5501 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5503 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5506 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5507 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5508 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5510 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5513 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5514 uninteresting/varying diagnostics.
5516 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5519 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5520 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5522 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5525 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5527 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5528 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5529 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5531 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5533 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5535 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5537 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5539 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5541 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5543 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5545 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5547 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5549 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5551 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5553 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5555 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5557 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5559 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5561 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5563 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5565 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5567 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5569 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5571 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5572 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5573 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5574 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5576 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5577 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5578 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5580 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5581 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5584 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5587 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5589 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5591 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5593 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5594 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5596 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5597 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5598 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5599 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5600 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5601 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5602 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5604 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5606 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5608 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5610 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5616 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5618 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5620 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5622 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5624 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5626 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5628 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5629 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5630 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5632 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5634 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5635 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5636 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5638 2021-05-21 Julian Brown <julian@codesourcery.com>
5639 Chung-Lin Tang <cltang@codesourcery.com>
5640 Thomas Schwinge <thomas@codesourcery.com>
5643 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5645 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5647 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5650 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5652 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5653 for nvptx offloading.
5655 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5657 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5659 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5662 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5664 2021-05-19 Julian Brown <julian@codesourcery.com>
5666 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5668 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5670 * testsuite/lib/libgomp.exp
5671 (check_effective_target_offload_target_nvptx): Don't shadow global
5672 'offload_targets' variable.
5674 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5676 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5677 '-latomic' to nvptx offloading compilation.
5678 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5680 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5682 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5683 offloading compilation.
5685 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5687 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5688 if new tasks generated.
5689 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5691 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5693 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5695 2021-05-13 Martin Liska <mliska@suse.cz>
5698 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5699 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5700 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5701 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5703 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5705 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5706 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5708 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5710 PR middle-end/100471
5711 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5712 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5714 * testsuite/libgomp.c/task-reduction-4.c: New test.
5716 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5717 Tom de Vries <tdevries@suse.de>
5719 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5720 complex/floating-point || + && reduction with 'omp target'.
5721 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5723 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5725 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5726 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5727 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5728 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5730 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5733 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5734 declaration to scope of non-'depend'-guarded assignment to avoid races.
5736 2021-05-03 Tom de Vries <tdevries@suse.de>
5739 * testsuite/libgomp.c/target-44.c: New test.
5741 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5743 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5745 2021-04-29 Tom de Vries <tdevries@suse.de>
5747 * testsuite/libgomp.c/pr81778.c: New test.
5749 2021-04-29 Tom de Vries <tdevries@suse.de>
5752 * testsuite/libgomp.c/target-43.c: New file.
5754 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5755 Tobias Burnus <tobias@codesourcery.com>
5757 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5758 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5759 can't be dlopened, silently assume it has no devices.
5760 * Makefile.in: Regenerate.
5761 * config.h.in: Regenerate.
5762 * configure: Regenerate.
5764 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5766 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5767 Use [Ww]arning in dg-bogus as FE diagnostic and default
5768 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5769 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5770 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5771 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5773 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5775 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5776 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5777 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5778 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5779 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5781 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5782 Nathan Sidwell <nathan@codesourcery.com>
5783 Tom de Vries <vries@codesourcery.com>
5784 Julian Brown <julian@codesourcery.com>
5785 Kwok Cheung Yeung <kcy@codesourcery.com>
5787 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5788 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5789 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5790 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5791 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5792 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5793 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5795 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5796 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5797 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5798 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5800 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5801 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5803 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5804 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5805 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5806 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5807 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5810 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5811 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5812 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5813 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5814 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5815 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5816 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5817 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5818 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5819 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5820 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5822 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5824 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5826 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5827 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5829 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5830 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5831 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5832 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5833 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5834 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5835 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5837 2021-04-22 Richard Biener <rguenther@suse.de>
5839 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5842 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5844 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5845 omp_depend_kind instead of defining it as 16.
5847 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5849 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5850 New, based on check_effective_target_offload_target_nvptx.
5851 (check_effective_target_offload_target_nvptx): Call it.
5852 (check_effective_target_offload_target_amdgcn): New.
5853 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5854 Require target offload_target_nvptx || offload_target_amdgcn.
5855 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5856 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5857 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5859 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5861 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5863 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5865 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5866 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5867 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5869 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5871 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5873 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5876 * testsuite/lib/libgomp.exp
5877 (check_effective_target_offload_device_nvptx): New.
5878 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5879 resolved, make sure that we exit quickly, with error status,
5881 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5882 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5884 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5887 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5888 cp = omp_alloc with cp, p arguments instead of cq, q and call
5889 c_f_pointer after last cq = omp_alloc with cq, q.
5891 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5894 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5895 for loop with GT/GE condition.
5896 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5898 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5903 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5905 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5908 * team.c (gomp_thread_start): Call pthread_setspecific for
5909 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5910 has been initialized to avoid false positive warning.
5912 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5915 * testsuite/lib/on_device_arch.c: Move to ...
5916 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5917 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5918 #include on_device_arch.h.
5919 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5920 on_device_arch.h instead of using dg-additional-source.
5921 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5922 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5923 on_device_arch.c without relative paths.
5925 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5927 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5928 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5929 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5930 * config.h.in: Regenerate.
5931 * configure: Likewise.
5933 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5936 * testsuite/lib/on_device_arch.c: New file.
5937 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5938 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5939 skip for nvptx offloading, with error status.
5940 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5942 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5944 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5945 OpenACC 'serial' construct diagnostic for nvptx offloading.
5947 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5950 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5952 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5955 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5957 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5959 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5960 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5961 checking of -m32 or -mx32 options on the command line.
5962 * config.h.in: Regenerated.
5963 * configure: Regenerated.
5965 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5967 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5968 support from the target.
5970 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5971 Jakub Jelinek <jakub@redhat.com>
5974 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5975 (struct gomp_task): Replace detach and completion_sem fields with
5976 union containing completion_sem and detach_team. Add deferred_p
5978 (struct gomp_team): Remove task_detach_queue.
5979 * task.c: Include assert.h.
5980 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5981 Rearrange initialization order of fields.
5982 (task_fulfilled_p): Delete.
5983 (GOMP_task): Use address of task as the event handle. Remove
5984 initialization of detach field. Initialize deferred_p field.
5985 Use automatic local for completion_sem. Initialize detach_team field
5987 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5988 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5989 decrement task_running_count. Move finish_cancelled block out of
5990 else branch. Relocate call to gomp_team_barrier_done.
5991 (GOMP_taskwait): Handle tasks with completion events that have not
5993 (GOMP_taskgroup_end): Likewise.
5994 (omp_fulfill_event): Use address of task as event handle. Post to
5995 completion_sem for undeferred tasks. Clear detach_team if task
5996 has not finished. For finished tasks, handle post-execution tasks,
5997 call gomp_team_barrier_wake if necessary, and free task.
5998 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5999 (free_team): Remove free of task_detach_queue.
6000 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6001 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6002 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6003 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6004 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6005 Change data-sharing of detach events on enclosing parallel to private.
6006 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6008 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6009 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6010 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6011 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6012 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6013 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6014 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6015 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6016 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6017 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6018 Change data-sharing of detach events on enclosing parallel to private.
6019 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6021 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6022 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6023 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6024 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6025 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6027 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6030 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6032 2021-02-17 Julian Brown <julian@codesourcery.com>
6034 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6037 2021-02-17 Julian Brown <julian@codesourcery.com>
6039 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6040 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6042 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6044 * config/linux/x86/futex.h (__futex_wait):
6045 Revert output type back to long.
6046 (__futex_wake): Ditto.
6047 (futex_wait): Update for revert.
6048 (futex_wake): Ditto.
6050 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6052 * config/linux/x86/futex.h (__futex_wait): New static inline
6053 wrapper function. Correct output type to int and
6054 timeout type to void *.
6055 (__futex_wake): New static inline wrapper function.
6056 Correct output type to int.
6057 (futex_wait): Use __futex_wait.
6058 (futex_wake): Use __futex_wake.
6060 2021-02-10 Julian Brown <julian@codesourcery.com>
6063 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6066 2021-02-04 Julian Brown <julian@codesourcery.com>
6068 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6070 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6072 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6073 EF_AMDGPU_MACH_AMDGCN_GFX908.
6074 (gcn_gfx908_s): New constant string.
6075 (isa_hsa_name): Add gfx908.
6076 (isa_code): Add gfx908.
6078 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6080 * libgomp.texi (omp_fulfill_event): New entry.
6082 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6084 * task.c (GOMP_task): Rename priority argument to priority_arg,
6085 add priority automatic variable and modify that variable. Instead of
6086 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6087 check flags for that bit.
6089 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6092 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6094 2021-01-18 Andreas Schwab <schwab@suse.de>
6096 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6098 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6100 * config/rtems/sem.h (gomp_sem_getcount): New function.
6102 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6104 * config/linux/sem.h (gomp_sem_getcount): New function.
6105 * config/posix/sem.h (gomp_sem_getcount): New function.
6106 * config/posix/sem.c (gomp_sem_getcount): New function.
6107 * config/accel/sem.h (gomp_sem_getcount): New function.
6108 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6109 (omp_fulfill_event): Likewise.
6111 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6113 * fortran.c (omp_fulfill_event_): New.
6114 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6115 (struct gomp_team): Add task_detach_queue and task_detach_count
6117 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6118 * libgomp_g.h (GOMP_task): Add extra argument.
6119 * omp.h.in (enum omp_event_handle_t): New.
6120 (omp_fulfill_event): New.
6121 * omp_lib.f90.in (omp_event_handle_kind): New.
6122 (omp_fulfill_event): New.
6123 * omp_lib.h.in (omp_event_handle_kind): New.
6124 (omp_fulfill_event): Declare.
6125 * priority_queue.c (priority_tree_find): New.
6126 (priority_list_find): New.
6127 (priority_queue_find): New.
6128 * priority_queue.h (priority_queue_predicate): New.
6129 (priority_queue_find): New.
6130 * task.c (gomp_init_task): Initialize detach field.
6131 (task_fulfilled_p): New.
6132 (GOMP_task): Add detach argument. Ignore detach argument if
6133 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6134 field. Copy address of completion_sem into detach argument and
6135 into the start of the data record. Wait for detach event if task
6137 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6138 Remove completed tasks and requeue dependent tasks.
6139 (omp_fulfill_event): New.
6140 * team.c (gomp_new_team): Initialize task_detach_queue and
6141 task_detach_count fields.
6142 (free_team): Free task_detach_queue field.
6143 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6144 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6145 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6146 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6147 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6148 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6149 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6150 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6151 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6152 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6153 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6154 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6156 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6159 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6160 be added through preprocessor check on
6161 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6163 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6166 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6168 * configure: Regenerate.
6169 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6172 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6174 * configure: Re-generate.
6176 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6178 * configure: Re-generate.
6180 2021-01-05 Julian Brown <julian@codesourcery.com>
6182 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6183 (struct ptx_device): Add omp_stacks struct.
6184 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6185 (nvptx_close_device): Free cached stacks block and mutex.
6186 (nvptx_stacks_free): New function.
6187 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6188 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6189 (nvptx_stacks_alloc): Rename to...
6190 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6191 size or smaller is required.
6192 (nvptx_stacks_free): Remove.
6193 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6194 during kernel execution.
6196 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6198 * libgomp.texi: Bump @copying's copyright year.
6200 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6202 * libgomp.texi (Top): Avoid bad "up" link.
6204 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6206 * testsuite/libgomp.c/task-6.c: New test.
6208 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6210 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6211 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6213 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6215 * testsuite/libgomp.fortran/scan-1.f90: New test.
6217 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6220 * configure: Regenerate.
6222 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6224 * configure: Regenerate.
6226 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6228 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6229 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6231 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6233 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6236 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6238 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6239 (reserved): Delete unused define.
6241 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6243 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6244 Tcl 8.5-specific behavior.
6245 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6247 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6249 * env.c (gomp_global_icv): Remove nest_var field. Add
6250 max_active_levels_var field.
6251 (gomp_max_active_levels_var): Remove.
6252 (parse_boolean): Return true on success.
6253 (handle_omp_display_env): Express OMP_NESTED in terms of
6254 max_active_levels_var. Change format specifier for
6255 max_active_levels_var.
6256 (initialize_env): Set max_active_levels_var from
6257 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6259 * icv.c (omp_set_nested): Express in terms of
6260 max_active_levels_var.
6261 (omp_get_nested): Likewise.
6262 (omp_set_max_active_levels): Use max_active_levels_var field instead
6263 of gomp_max_active_levels_var.
6264 (omp_get_max_active_levels): Likewise.
6265 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6266 max_active_levels_var field.
6267 (gomp_supported_active_levels): Set to UCHAR_MAX.
6268 (gomp_max_active_levels_var): Delete.
6269 * libgomp.texi (omp_get_nested): Update documentation.
6270 (omp_set_nested): Likewise.
6271 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6272 (OMP_NESTED): Likewise.
6273 (OMP_NUM_THREADS): Likewise.
6274 (OMP_PROC_BIND): Likewise.
6275 * parallel.c (gomp_resolve_num_threads): Replace reference
6276 to nest_var with max_active_levels_var. Use max_active_levels_var
6277 field instead of gomp_max_active_levels_var.
6279 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6281 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6282 nvptx_usleep; use also for device={arch(gcn)}.
6284 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6286 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6287 (foo): Add tests for non-VLA private and firstprivate clauses on
6289 (bar): Likewise. Remove taking of address from private/firstprivate
6291 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6292 (foo): Add p, q, px and s arguments. Add tests for array reductions
6293 and for non-VLA private and firstprivate clauses on omp task.
6295 (main): Adjust foo caller. Don't call bar.
6297 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6298 Thomas Schwinge <thomas@codesourcery.com>
6300 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6302 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6304 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6306 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6307 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6309 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6310 Thomas Schwinge <thomas@codesourcery.com>
6313 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6315 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6317 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6318 for array reductions.
6319 (main): Adjust foo callers.
6321 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6323 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6324 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6325 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6326 * allocator.c (omp_aligned_alloc): New for now static function,
6327 add alignment argument and handle it.
6328 (omp_alloc): Reimplement using omp_aligned_alloc.
6329 (GOMP_alloc, GOMP_free): New functions.
6330 (omp_free): Add ialias.
6331 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6332 * testsuite/libgomp.c++/allocate-1.C: New test.
6334 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6337 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6339 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6341 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6343 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6344 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6345 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6346 (goacc_enter_data_internal): Likewise.
6347 * target.c (gomp_map_vars_internal):
6348 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6349 of gomp_attach_pointer for OpenMP cases.
6350 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6351 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6352 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6354 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6355 Kwok Cheung Yeung <kcy@codesourcery.com>
6357 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6358 * Makefile.in: Regenerate.
6359 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6360 pragmas to ignore -Wdeprecated-declarations warnings.
6362 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6363 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6364 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6365 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6367 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6369 * testsuite/libgomp.c/affinity-1.c: Likewise.
6370 * testsuite/libgomp.c/affinity-2.c: Likewise.
6371 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6372 * testsuite/libgomp.c/lib-1.c: Likewise.
6373 * testsuite/libgomp.c/nested-1.c: Likewise.
6374 * testsuite/libgomp.c/nested-2.c: Likewise.
6375 * testsuite/libgomp.c/nested-3.c: Likewise.
6376 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6377 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6378 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6379 * testsuite/libgomp.c/pr35549.c: Likewise.
6380 * testsuite/libgomp.c/pr42942.c: Likewise.
6381 * testsuite/libgomp.c/pr61200.c: Likewise.
6382 * testsuite/libgomp.c/sort-1.c: Likewise.
6383 * testsuite/libgomp.c/target-5.c: Likewise.
6384 * testsuite/libgomp.c/target-6.c: Likewise.
6385 * testsuite/libgomp.c/teams-1.c: Likewise.
6386 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6387 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6388 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6389 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6390 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6391 * testsuite/libgomp.fortran/lib2.f: Likewise.
6392 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6393 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6395 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6398 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6399 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6400 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6402 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6406 * testsuite/lib/libgomp.exp (libgomp_init): Set
6407 'gcc_warning_prefix', 'gcc_error_prefix'.
6409 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6411 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6412 even in field_tgt_clear initializer.
6414 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6416 * testsuite/libgomp.c/target-42.c: New test.
6418 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6419 Tom de Vries <tdevries@suse.de>
6422 * testsuite/libgomp.c/usleep.h: New file.
6423 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6424 (main): Use tgt_usleep instead of usleep.
6425 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6426 (main): Use tgt_usleep instead of usleep.
6428 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6431 * testsuite/libgomp.c/declare-variant-1.c: New test.
6433 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6435 * testsuite/libgomp.c/target-41.c: New test.
6437 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6439 * icv.c (omp_get_initial_device): Remove including corresponding
6441 * icv-device.c (omp_get_initial_device): New function. Return
6442 gomp_get_num_devices (). Add ialias.
6443 * target.c (resolve_device): Don't fail with
6444 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6445 gomp_get_num_devices ().
6446 (omp_target_alloc, omp_target_free, omp_target_is_present,
6447 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6448 omp_target_disassociate_ptr, omp_pause_resource): Use
6449 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6450 first use in the functions, in uses dominated by the
6451 gomp_get_num_devices call use num_devices_openmp instead.
6452 * libgomp.texi (omp_get_initial_device): Document.
6453 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6455 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6456 * testsuite/libgomp.c/target-40.c: New test.
6458 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6460 * env.c (parse_target_offload): Change new_offload var type to int,
6461 preinitialize to -1, remove found var and test new_offload != -1
6464 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6466 * target.c (gomp_target_init): Inside of the function, use automatic
6467 variables corresponding to num_devices, num_devices_openmp and devices
6468 global variables and update the globals only at the end of the
6471 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6473 * env.c (gomp_target_offload_var): New.
6474 (parse_target_offload): New.
6475 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6476 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6477 * libgomp.h (gomp_target_offload_t): New.
6478 (gomp_target_offload_var): New.
6479 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6480 * target.c (resolve_device): Generate error if device not found and
6481 offloading is mandatory.
6482 (gomp_target_fallback): Generate error if offloading is mandatory.
6483 (GOMP_target): Add argument in call to gomp_target_fallback.
6484 (GOMP_target_ext): Likewise.
6485 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6486 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6487 (GOMP_target_data_ext): Likewise.
6488 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6489 (gomp_target_init): Return early if offloading is disabled.
6491 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6493 * libgomp.texi (omp_get_max_active_levels): Modify description.
6494 (omp_get_supported_active_levels): Make descriptions consistent.
6496 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6498 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6500 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6502 * env.c (gomp_max_active_levels_var): Initialize to
6503 gomp_supported_active_levels.
6504 (initialize_env): Limit gomp_max_active_levels_var to be at most
6505 equal to gomp_supported_active_levels.
6506 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6507 (omp_get_supported_active_levels_): New.
6508 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6509 to at most equal to gomp_supported_active_levels.
6510 (omp_get_supported_active_levels): New.
6511 * libgomp.h (gomp_supported_active_levels): New.
6512 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6513 omp_get_supported_active_levels_.
6514 * libgomp.texi (omp_get_supported_active_levels): New.
6515 (omp_set_max_active_levels): Update. Add reference to
6516 omp_get_supported_active_levels.
6517 * omp.h.in (omp_get_supported_active_levels): New.
6518 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6519 * omp_lib.h.in (omp_get_supported_active_levels): New.
6520 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6521 against omp_get_supported_active_levels.
6522 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6524 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6526 * config/t-aix: Delete and recreate libgomp before creating
6529 2020-10-08 Tom de Vries <tdevries@suse.de>
6532 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6535 2020-10-06 Tom de Vries <tdevries@suse.de>
6537 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6539 2020-10-06 Tom de Vries <tdevries@suse.de>
6542 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6544 2020-10-05 Tom de Vries <tdevries@suse.de>
6547 * testsuite/libgomp.fortran/pr95654.f90: New test.
6549 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6551 * Makefile.in: Regenerate with automake 1.15.1.
6552 * aclocal.m4: Likewise.
6553 * configure: Likewise.
6554 * testsuite/Makefile.in: Likewise.
6556 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6558 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6561 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6563 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6565 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6567 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6568 total number of threads is one.
6569 (gomp_team_barrier_wake): Likewise.
6570 (gomp_team_barrier_wait_end): Likewise.
6571 (gomp_team_barrier_wait_cancel_end): Likewise.
6572 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6573 (gomp_team_barrier_wake): Likewise.
6574 (gomp_team_barrier_wait_end): Likewise.
6575 (gomp_team_barrier_wait_cancel_end): Likewise.
6576 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6578 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6581 * testsuite/libgomp.c++/pr96390.C: New test.
6582 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6584 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6586 * config/t-aix: Use $(AR) without -X32_64.
6588 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6590 * testsuite/libgomp.c/loop-25.c: New test.
6592 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6595 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6597 2020-09-22 Tom de Vries <tdevries@suse.de>
6599 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6602 2020-09-16 Nathan Sidwell <nathan@acm.org>
6604 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6606 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6609 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6611 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6614 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6615 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6616 (gomp_map_vars_existing): Update call to it.
6617 (gomp_map_fields_existing): Likewise
6618 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6619 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6621 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6623 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6624 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6626 2020-09-14 Tom de Vries <tdevries@suse.de>
6628 * config/nvptx/atomic.c: New file. Add
6629 __sync_val_compare_and_swap_16.
6630 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6631 target offload_target_nvptx.
6633 2020-09-08 Julian Brown <julian@codesourcery.com>
6635 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6636 iteration-ordering assumptions.
6638 2020-09-08 Julian Brown <julian@codesourcery.com>
6640 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6641 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6643 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6645 * plugin/plugin-nvptx.c (nvptx_free):
6646 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6647 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6650 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6652 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6654 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6656 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6658 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6660 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6661 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6662 * testsuite/libgomp.c/loop-24.c: New test.
6664 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6665 Tobias Burnus <tobias@codesourcery.com>
6668 * testsuite/libgomp.fortran/pr93553.f90: New test.
6670 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6672 * testsuite/libgomp.c/loop-22.c: New test.
6673 * testsuite/libgomp.c/loop-23.c: New test.
6675 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6678 * testsuite/libgomp.c/teams-3.c: New test.
6679 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6681 (N(test)): Use it before all N(f*) calls.
6682 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6683 (main): Don't call all test_* functions from within
6684 #pragma omp teams reduction(|:err), call them directly.
6686 2020-08-04 Tom de Vries <tdevries@suse.de>
6689 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6690 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6692 2020-08-03 Julian Brown <julian@codesourcery.com>
6693 Thomas Schwinge <thomas@codesourcery.com>
6695 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6696 shared-memory devices. Extend with further checking.
6698 2020-08-03 Martin Jambor <mjambor@suse.cz>
6700 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6701 * aclocal.m4: Regenerated.
6702 * Makefile.in: Regenerated.
6703 * config.h.in: Regenerated.
6704 * configure: Regenerated.
6705 * plugin/configfrag.ac: Likewise.
6706 * plugin/hsa_ext_finalize.h: Removed.
6707 * plugin/plugin-hsa.c: Likewise.
6708 * testsuite/Makefile.in: Regenerated.
6709 * testsuite/lib/libgomp.exp
6710 (offload_target_to_openacc_device_type): Remove hsa case.
6711 (check_effective_target_hsa_offloading_selected_nocache): Removed
6712 (check_effective_target_hsa_offloading_selected): Likewise.
6713 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6714 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6715 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6716 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6717 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6718 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6719 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6720 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6721 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6722 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6723 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6724 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6725 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6726 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6727 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6728 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6729 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6730 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6731 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6732 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6733 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6734 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6735 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6736 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6737 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6739 2020-07-27 Julian Brown <julian@codesourcery.com>
6740 Thomas Schwinge <thomas@codesourcery.com>
6742 * libgomp.h (struct target_var_desc): Rename do_detach field to
6744 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6745 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6746 (goacc_enter_data_internal): Don't affect reference counts
6747 for attach mappings.
6748 (goacc_exit_data_internal): Don't affect reference counts for detach
6750 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6752 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6753 mark attach mappings.
6754 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6755 reference count for attach mappings.
6756 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6757 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6758 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6759 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6761 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6762 gracefully in no-finalize mode.
6763 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6765 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6767 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6769 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6770 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6772 2020-07-23 Julian Brown <julian@codesourcery.com>
6773 Thomas Schwinge <thomas@codesourcery.com>
6775 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6776 finalization for detach operation.
6777 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6780 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6782 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6783 * libgomp_f.h.in (omp_check_defines): Check whether
6784 sizeof of determined Fortran kind and C typedef match.
6785 * omp_lib.f90.in: Add omp_depened_kind.
6786 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6787 * configure: Regenerate.
6788 * Makefile.in: Regenerate.
6789 * testsuite/Makefile.in: Regenerate.
6791 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6793 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6794 gcc/testsuite/c-c++-common/gomp/.
6795 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6796 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6797 from gcc/testsuite/gfortran.dg/gomp/.
6798 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6800 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6802 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6803 * omp_lib.h.in: Likewise.
6805 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6808 * testsuite/libgomp.c/pr95620.c: New test.
6810 2020-07-16 Julian Brown <julian@codesourcery.com>
6811 Thomas Schwinge <thomas@codesourcery.com>
6813 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6814 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6816 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6818 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6819 avoid conversion on 32bit systems from 32bit to 64bit due
6820 to -fdefault-integer-8.
6822 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6824 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6825 variables; add character(kind=4) tests; update TODO comment.
6827 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6829 * allocator.c: Add ialias for omp_init_allocator and
6830 omp_destroy_allocator.
6831 * configure.ac: Set INTPTR_T_KIND.
6832 * configure: Regenerate.
6833 * Makefile.in: Regenerate.
6834 * testsuite/Makefile.in: Regenerate.
6835 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6836 omp_set_default_allocator_, omp_get_default_allocator_): New
6837 functions and ialias_redirect.
6838 * icv.c: Add ialias for omp_set_default_allocator and
6839 omp_get_default_allocator.
6840 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6841 omp_destroy_allocator_, omp_set_default_allocator_ and
6842 omp_get_default_allocator_.
6843 * omp_lib.f90.in: Add allocator traits parameters, declare
6844 allocator routines and add related kind parameters.
6845 * omp_lib.h.in: Likewise.
6846 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6847 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6848 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6849 * testsuite/libgomp.fortran/alloc-3.F: New test.
6850 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6851 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6853 2020-07-14 Tom de Vries <tom@codesourcery.com>
6854 Cesar Philippidis <cesar@codesourcery.com>
6855 Thomas Schwinge <thomas@codesourcery.com>
6856 Kwok Cheung Yeung <kcy@codesourcery.com>
6858 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6860 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6861 acc_init_state to initializing at the start, and to initialized at the
6863 (self_initializing_p): New function.
6864 (acc_get_device_type): Return acc_device_none if called by thread that
6865 is currently executing acc_init_1.
6866 * libgomp.texi (acc_get_device_type): Update documentation.
6867 (Implementation Status and Implementation-Defined Behavior): Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6870 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6872 * config/t-aix: Set BITS from compiler cpp macro.
6874 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6876 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6878 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6881 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6883 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6885 * testsuite/libgomp.c/loop-21.c: New test.
6887 2020-07-13 Julian Brown <julian@codesourcery.com>
6888 Thomas Schwinge <thomas@codesourcery.com>
6890 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6892 2020-07-10 Julian Brown <julian@codesourcery.com>
6893 Thomas Schwinge <thomas@codesourcery.com>
6895 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6897 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6898 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6900 (acc_unmap_data): Update comment.
6901 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6902 dynamic_refcount semantics.
6903 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6904 Adjust for dynamic_refcount semantics.
6905 (goacc_enter_data_internal): Implement "present" case of dynamic
6906 memory-map handling here. Update "non-present" case for
6907 dynamic_refcount semantics.
6908 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6909 * target.c (gomp_map_vars_internal): Remove
6910 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6912 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6913 (gomp_load_image_to_device): Substitute dynamic_refcount for
6915 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6916 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6917 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6918 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6919 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6921 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6923 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6925 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6926 Remove stale comment.
6927 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6928 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6929 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6930 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6931 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6932 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6934 2020-07-10 Julian Brown <julian@codesourcery.com>
6935 Thomas Schwinge <thomas@codesourcery.com>
6937 * oacc-mem.c (goacc_map_var_existing): New function.
6938 (goacc_enter_datum): Use above function.
6939 (goacc_exit_datum_1): New function.
6940 (goacc_exit_datum): Use above function.
6942 2020-07-09 Julian Brown <julian@codesourcery.com>
6943 Thomas Schwinge <thomas@codesourcery.com>
6946 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6947 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6949 2020-07-09 Julian Brown <julian@codesourcery.com>
6951 * oacc-mem.c (find_group_last): Group data-movement clauses
6952 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6953 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6955 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6957 * testsuite/libgomp.c/loop-19.c: New test.
6958 * testsuite/libgomp.c/loop-20.c: New test.
6960 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6962 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6963 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6964 it. Remove __omp_alloctrait_value_max__.
6965 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6966 omp_atk_alignment and omp_atk_pool_size.
6968 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6970 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6971 behavior for 'GOMP_MAP_FORCE_FROM'.
6972 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6974 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6976 * oacc-mem.c (goacc_exit_data_internal): Remove
6977 'GOMP_MAP_ALWAYS_FROM' handling.
6979 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6981 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6982 'scan-assembler' with 'scan-offload-rtl'.
6983 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6985 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6988 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6990 * target.c (gomp_map_vars_existing): Assert 'kind !=
6992 (gomp_map_vars_internal): Clean up.
6994 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6996 * testsuite/libgomp.c/loop-17.c: New test.
6997 * testsuite/libgomp.c/loop-18.c: New test.
6999 2020-06-26 Marek Polacek <polacek@redhat.com>
7001 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7003 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7005 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7006 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7008 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7010 * Makefile.am: Use -include.
7011 * Makefile.in: Regenerate.
7013 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7015 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7016 * Makefile.in: Regenerate
7017 * configure.ac (tmake_file): Substitute.
7018 * configure: Regenerate.
7019 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7020 * config/t-aix: New file.
7022 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7025 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7028 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7030 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7031 variant for HSA_RUNTIME_LIB name.
7032 (find_executable_symbol_1): Delete.
7033 (find_executable_symbol): Delete.
7034 (init_kernel_properties): Add ".kd" suffix to symbol names.
7035 (find_load_offset): Delete.
7036 (create_and_finalize_hsa_program): Remove relocation handling.
7038 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7040 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7042 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7046 * testsuite/libgomp.fortran/target-var.f90: New test.
7048 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7049 Julian Brown <julian@codesourcery.com>
7051 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7054 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7055 Julian Brown <julian@codesourcery.com>
7057 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7060 2020-06-05 Julian Brown <julian@codesourcery.com>
7062 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7063 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7065 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7067 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7068 Evaluate 'copyfrom' individually for each entry.
7069 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7071 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7073 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7074 Evaluate 'finalize' individually for each entry.
7075 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7076 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7079 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7081 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7083 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7085 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7086 Julian Brown <julian@codesourcery.com>
7088 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7090 (acc_unmap_data, goacc_exit_data_internal): Restore
7091 'is_tgt_unmapped' checking.
7092 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7094 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7095 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7096 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7097 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7098 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7099 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7101 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7102 Julian Brown <julian@codesourcery.com>
7104 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7106 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7109 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7111 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7114 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7117 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7118 Julian Brown <julian@codesourcery.com>
7120 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7122 (acc_map_data): Clean up accordingly.
7124 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7126 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7127 of over-eager 'finalize' clause.
7128 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7130 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7131 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7132 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7133 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7134 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7135 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7136 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7137 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7139 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7141 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7143 2020-06-04 Julian Brown <julian@codesourcery.com>
7145 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7147 (goacc_detach_internal): Likewise.
7149 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7151 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7153 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7154 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7155 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7156 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7157 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7159 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7161 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7164 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7166 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7168 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7170 * allocator.c (omp_alloc): For size == 0, return NULL early.
7172 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7175 * configure: Regenerated.
7177 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7180 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7182 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7184 * omp.h.in (omp_uintptr_t): New typedef.
7185 (__GOMP_UINTPTR_T_ENUM): Define.
7186 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7187 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7188 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7189 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7190 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7191 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7192 (gomp_def_allocator): Declare.
7193 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7194 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7195 omp_alloc and omp_free.
7196 * team.c (gomp_team_start): Copy over ts.def_allocator.
7197 * env.c (gomp_def_allocator): New variable.
7198 (parse_wait_policy): Adjust function comment.
7199 (parse_allocator): New function.
7200 (handle_omp_display_env): Print OMP_ALLOCATOR.
7201 (initialize_env): Call parse_allocator.
7202 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7203 * allocator.c: New file.
7204 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7206 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7207 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7208 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7209 * Makefile.in: Regenerated.
7211 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7214 * configure: Regenerated.
7216 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7219 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7221 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7223 * configure: Regenerated.
7225 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7227 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7229 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7232 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7233 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7234 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7235 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7236 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7237 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7238 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7240 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7242 * testsuite/libgomp.c/target-39.c: New test.
7244 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7246 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7247 * openacc.f90 (acc_device_current): Likewise.
7248 * openacc.h (acc_device_current): Likewise.
7249 * openacc_lib.h (acc_device_current): Likewise.
7252 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7253 'dg-allow-blank-lines-in-output'.
7255 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7256 * testsuite/lib/libgomp.exp
7257 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7258 'radeon'. Adjust all users.
7259 (check_effective_target_openacc_amdgcn_accel_present): Rename
7261 (check_effective_target_openacc_radeon_accel_present): ... this.
7263 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7264 (check_effective_target_openacc_radeon_accel_selected): ... this.
7267 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7270 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7274 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7276 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7277 hsa_agent_iterate_regions.
7279 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7282 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7285 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7288 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7291 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7294 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7296 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7299 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7301 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7303 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7305 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7307 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7309 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7311 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7313 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7315 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7317 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7319 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7321 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7323 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7325 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7327 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7329 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7331 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7333 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7335 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7337 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7339 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7341 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7343 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7345 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7347 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7349 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7351 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7353 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7355 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7357 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7359 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7361 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7364 2020-04-10 Julian Brown <julian@codesourcery.com>
7365 Thomas Schwinge <thomas@codesourcery.com>
7368 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7370 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7372 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7374 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7376 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7378 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7380 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7382 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7384 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7386 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7388 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7390 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7392 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7394 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7396 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7398 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7401 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7403 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7406 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7409 * libgomp.oacc-c++/declare-pr94120.C: New.
7411 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7413 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7415 * configure: Regenerate.
7416 * testsuite/libgomp-site-extra.exp.in: New file.
7417 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7419 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7421 * testsuite/Makefile.in: Regenerate.
7423 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7425 PR tree-optimization/89713
7427 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7429 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7431 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7433 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7434 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7436 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7439 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7441 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7444 * target.c (gomp_load_image_to_device): Fix link
7447 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7450 * testsuite/libgomp.c++/pr93931.C: New test.
7452 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7454 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7455 dg-allow-blank-lines-in-output.
7457 2020-03-18 Julian Brown <julian@codesourcery.com>
7458 Tobias Burnus <tobias@codesourcery.com>
7460 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7461 it work concurrently.
7463 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7465 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7466 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7467 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7469 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7472 * testsuite/libgomp.c/pr93566.c: New test.
7474 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7476 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7477 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7478 integer(acc_device_property) for the type of the return value of
7481 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7483 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7484 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7485 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7486 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7487 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7488 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7489 corrections; add note about the previous interface and named constant.
7490 (OpenACC library and environment variables): Fix two typos.
7491 * openacc.f90: Use for all procedures the argument names from the spec
7492 as for …_h they are user visible.
7493 (openacc_kinds): Rename acc_device_property to
7494 acc_device_property_kinds and change value to int32 ; and update users.
7495 Re-add acc_device_property for for backward compatibility.
7496 (acc_get_property_string_h): Clean up as acc_device_property_kind
7498 (acc_get_property_h): Likewise and return c_size_t instead of
7499 acc_device_property.
7500 (openacc): Also export acc_device_property_kinds.
7501 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7502 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7503 handling; check against /= 0 instead of == 1 to match C.
7504 * openacc_lib.h: Use for all procedures the argument names from the spec
7505 as for …_h they are user visible. Place !GCC$ into the first column to
7506 be active also for fixed-form souce form.
7507 (acc_device_current, acc_device_property_kind, acc_device_property,
7508 acc_property_memory, acc_property_free_memory, acc_property_name,
7509 acc_property_vendor, acc_property_driver): New named constants.
7510 (acc_get_property, acc_get_property_string): New generic interface.
7512 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7515 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7516 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7518 (gomp_target_task_fn): Assert "devicep->async_run_func".
7519 (clear_unsupported_flags): New function to remove unsupported flags
7520 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7521 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7522 * testsuite/libgomp.c/target-33.c:
7523 Remove xfail for offload_target_nvptx.
7524 * testsuite/libgomp.c/target-34.c: Likewise.
7526 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7528 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7529 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7530 * testsuite/libgomp.c/target-34.c: Likewise.
7531 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7532 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7534 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7536 * testsuite/libgomp.c/target-38.c: New test.
7538 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7541 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7543 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7545 * testsuite/lib/libgomp.exp
7546 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7547 and not as 'source' argument to libgomp_target_compile.
7549 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7551 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7552 (gcn_gfx801_s): Remove.
7553 (isa_hsa_name): Remove gfx801.
7554 (isa_gcc_name): Remove gfx801/carizzo.
7555 (isa_code): Remove gfx801.
7557 2020-02-03 Julian Brown <julian@codesourcery.com>
7558 Tobias Burnus <tobias@codesourcery.com>
7560 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7561 and *_finalize variants; document acc_attach and acc_detach; update
7562 references from OpenACC 2.0 to 2.6.
7563 * openacc.f90 (openacc_version): Update to 201711.
7564 * openacc_lib.h (openacc_version): Update to 201711.
7565 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7566 openacc_version to 201711.
7567 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7569 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7571 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7572 and vgpr_count fields.
7573 (struct kernel_info): Add a field for a hsa_kernel_description.
7574 (run_kernel): Reduce the number of threads/workers if the requested
7575 number would require too many VGPRs.
7576 (init_basic_kernel_info): Initialize description field with
7577 the hsa_kernel_description entry for the kernel.
7579 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7582 * plugin/configfrag.ac (enable_offload_targets): Skip
7583 HSA and GCN plugin besides -m32 also for -mx32.
7584 * configure: Regenerate.
7586 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7588 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7590 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7592 * plugin-gcn.c (struct agent_info): Add fields "name" and
7594 (GOMP_OFFLOAD_init_device): ... and init from here.
7595 (struct hsa_context_info): Add field "driver_version_s" ...
7596 (init_hsa_contest): ... and init from here.
7597 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7599 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7600 Enable test execution for amdgcn and host offloading targets.
7601 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7603 (expect_device_properties): Split function into ...
7604 (expect_device_string_properties): ... this new function ...
7605 (expect_device_memory): ... and this new function.
7606 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7609 2020-01-28 Julian Brown <julian@codesourcery.com>
7611 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7612 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7613 component/non-component variable refs in a single directive.
7614 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7616 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7618 * configure.ac: Handle `--with-toolexeclibdir='.
7619 * Makefile.in: Regenerate.
7620 * aclocal.m4: Regenerate.
7621 * configure: Regenerate.
7622 * testsuite/Makefile.in: Regenerate.
7624 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7626 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7627 (expect_device_properties): Remove "expected_free_mem" argument,
7628 change "expected_total_mem" argument type to size_t;
7629 change types of acc_get_property results to size_t,
7630 adapt format strings.
7631 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7632 Use %zu instead of %zd to print size_t values.
7633 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7635 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7636 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7638 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7640 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7642 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7645 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7647 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7648 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7649 Adjust test dimensions for amdgcn.
7650 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7651 gang/worker/vector expectations dynamically.
7652 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7654 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7657 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7660 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7663 (acc_gang): Recognise acc_device_radeon.
7664 (acc_worker): Likewise.
7665 (acc_vector): Likewise.
7666 (main): Set expectations for amdgcn.
7667 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7668 (main): Adjust gang/worker/vector expectations dynamically.
7669 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7670 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7671 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7672 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7675 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7677 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7679 (openacc): Likewise.
7680 * openacc.f90 (openacc_kinds): Likewise.
7681 (openacc): Likewise.
7682 * openacc.h (acc_device_t): Likewise.
7683 * openacc_lib.h: Likewise.
7684 * testsuite/lib/libgomp.exp
7685 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7686 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7687 (cb_compute_construct_end): Likewise.
7688 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7689 (cb_enqueue_launch_start): Likewise.
7690 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7691 (cb_enter_data_end): Likewise.
7692 (cb_exit_data_start): Likewise.
7693 (cb_exit_data_end): Likewise.
7694 (cb_compute_construct_end): Likewise.
7695 (cb_enqueue_launch_start): Likewise.
7696 (cb_enqueue_launch_end): Likewise.
7697 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7700 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7702 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7703 to use this instead of 'enum gomp_device_property'.
7704 (GOMP_OFFLOAD_get_property): Rename to...
7705 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7706 * libgomp.h (struct gomp_device_descr): Move
7707 'GOMP_OFFLOAD_openacc_get_property'...
7708 (struct acc_dispatch_t): ... here. Adjust all users.
7709 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7711 * target.c (gomp_map_vars_internal)
7712 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7715 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7718 * libgomp.h (gomp_print_string): Change return type from void to int.
7719 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7720 not all characters have been written.
7722 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7724 * libgomp.texi: Fix typos, use https.
7726 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7728 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7729 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7730 dummy arguments; those are/shall be regarded as absent arguments.
7731 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7732 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7734 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7736 Update copyright years.
7738 * libgomp.texi: Bump @copying's copyright year.
7740 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7743 * oacc-init.c (goacc_runtime_deinitialize): New function.
7745 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7748 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7749 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7751 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7752 Frederik Harwath <frederik@codesourcery.com>
7753 Thomas Schwinge <tschwinge@codesourcery.com>
7755 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7756 * libgomp-plugin.h (gomp_device_property_value): New union.
7757 (gomp_device_property_value): New prototype.
7758 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7760 (acc_device_property_t): New enum.
7761 (acc_get_property, acc_get_property_string): New prototypes.
7762 * oacc-init.c (acc_get_device_type): Also assert that result
7763 is not `acc_device_current'.
7764 (get_property_any, acc_get_property, acc_get_property_string):
7766 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7767 `acc_property_memory', `acc_property_free_memory',
7768 `acc_property_name', `acc_property_vendor' and
7769 `acc_property_driver' constants. Add `acc_device_property' data
7771 (openacc_internal): Add `acc_get_property' and
7772 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7773 `acc_get_property_string_h', `acc_get_property_l' and
7774 `acc_get_property_string_l'.
7775 * oacc-host.c (host_get_property): New function.
7776 (host_dispatch): Wire it.
7777 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7778 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7779 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7780 * libgomp.texi (OpenACC Runtime Library Routines): Add
7782 (acc_get_property): New node.
7783 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7785 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7786 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7787 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7789 (GOMP_OFFLOAD_get_property): New function.
7790 (struct ptx_device): Add new field "name".
7791 (cuda_driver_version_s): Add new static variable ...
7792 (nvptx_init): ... and init from here.
7794 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7795 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7796 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7797 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7798 with test helper functions.
7800 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7802 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7804 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7807 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7809 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7812 2019-12-19 Julian Brown <julian@codesourcery.com>
7814 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7815 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7816 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7818 2019-12-19 Julian Brown <julian@codesourcery.com>
7819 Cesar Philippidis <cesar@codesourcery.com>
7821 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7822 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7823 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7824 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7825 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7826 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7827 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7828 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7829 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7830 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7831 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7832 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7833 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7835 2019-12-19 Julian Brown <julian@codesourcery.com>
7837 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7838 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7839 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7840 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7841 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7842 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7843 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7844 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7845 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7846 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7847 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7848 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7850 2019-12-19 Julian Brown <julian@codesourcery.com>
7852 * libgomp.h (struct target_var_desc): Add do_detach flag.
7853 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7854 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7855 struct components. Tidy up and add some new checks.
7856 (goacc_enter_data_internal): Update call to find_group_last.
7857 (goacc_exit_data_internal): Support detach operations and
7859 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7860 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7861 attach/detach in enter/exit data detection code.
7862 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7864 (gomp_map_vars_internal): Support attach.
7865 (gomp_unmap_vars_internal): Support detach.
7867 2019-12-19 Julian Brown <julian@codesourcery.com>
7868 Thomas Schwinge <thomas@codesourcery.com>
7870 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7871 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7872 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7873 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7874 acc_detach_finalize_async.
7875 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7876 acc_detach, acc_detach_async, acc_detach_finalize,
7877 acc_detach_finalize_async): New functions.
7878 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7879 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7881 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7882 (gomp_remove_var_internal): Free attachment counts if present.
7883 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7884 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7886 2019-12-19 Julian Brown <julian@codesourcery.com>
7887 Cesar Philippidis <cesar@codesourcery.com>
7889 * libgomp.h (gomp_map_val): Add prototype.
7890 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7891 open-coding device-address calculation.
7892 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7895 2019-12-19 Julian Brown <julian@codesourcery.com>
7897 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7898 field for virtual_refcount.
7899 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7900 (gomp_free_memmap): Remove prototype.
7901 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7902 instead of calling gomp_free_memmap.
7903 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7905 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7906 to_free field to NULL then calling gomp_unmap_vars. Handle
7907 REFCOUNT_INFINITY on target blocks.
7908 (goacc_enter_data): Rename to...
7909 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7910 handling for mapping groups. Use virtual_refcount instead of
7911 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7912 map_map_vars_async call. Re-do lookup for target pointer return value.
7913 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7914 renamed goacc_enter_datum function.
7915 (goacc_exit_data): Rename to...
7916 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7917 (acc_delete, acc_delete_async, acc_delete_finalize,
7918 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7919 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7920 goacc_exit_datum function.
7921 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7922 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7924 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7925 goacc_exit_data_internal helper functions.
7926 * target.c (gomp_map_vars_internal): Handle
7927 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7929 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7930 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7931 virtual_refcount field instead of dynamic_refcount.
7932 (gomp_free_memmap): Remove function.
7933 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7934 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7935 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7937 2019-12-19 Julian Brown <julian@codesourcery.com>
7938 Thomas Schwinge <thomas@codesourcery.com>
7940 * libgomp.h (struct splay_tree_aux): New.
7941 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7942 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7944 (gomp_remove_var_internal): Free aux block if present.
7945 (gomp_load_image_to_device): Zero-initialise aux field instead of
7947 (omp_target_associate_pointer): Zero-initialise aux field.
7949 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7952 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7954 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7957 2019-12-19 Julian Brown <julian@codesourcery.com>
7958 Maciej W. Rozycki <macro@codesourcery.com>
7959 Tobias Burnus <tobias@codesourcery.com>
7960 Thomas Schwinge <thomas@codesourcery.com>
7962 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7963 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7964 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7965 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7966 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7967 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7968 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7969 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7970 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7972 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7974 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7976 (goacc_insert_pointer): ... from here, "present" case.
7977 (goacc_insert_pointer): Inline function into...
7978 (GOACC_enter_exit_data): ... here, and simplify.
7980 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7982 (goacc_insert_pointer): ... from here, "not present" case.
7984 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7987 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7988 'goacc_enter_data', 'goacc_exit_data'.
7990 * oacc-mem.c (delete_copyout): Refactor into...
7991 (goacc_exit_data): ... this. Adjust all users.
7993 * oacc-mem.c (present_create_copy): Refactor into...
7994 (goacc_enter_data): ... this. Adjust all users.
7996 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7999 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8000 like 'GOMP_MAP_FROM'.
8005 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8007 (GOACC_enter_exit_data): Simplify accordingly.
8008 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8010 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8011 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8013 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8015 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8016 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8018 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8020 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8022 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8023 'finalize' handling.
8026 * oacc-mem.c (acc_map_data, present_create_copy)
8027 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8028 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8029 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8030 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8031 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8037 * target.c (gomp_unmap_tgt): Make it 'static'.
8038 * libgomp.h (gomp_unmap_tgt): Remove.
8040 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8043 * testsuite/libgomp.c/pr86416-1.c: New.
8044 * testsuite/libgomp.c/pr86416-2.c: New.
8046 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8048 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8049 all symbols as public except for the 'use …, only' imported symbol,
8051 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8052 all symbols from module openacc_kinds as PUBLIC
8053 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8055 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8057 2019-12-13 Julian Brown <julian@codesourcery.com>
8061 * libgomp.h (gomp_remove_var_async): Add prototype.
8062 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8064 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8065 whether target_mem_desc was unmapped.
8066 (gomp_unref_tgt_void): New.
8067 (gomp_remove_var): Reimplement in terms of...
8068 (gomp_remove_var_internal): ...this new helper function.
8069 (gomp_remove_var_async): New, implemented using above helper function.
8070 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8073 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8075 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8076 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8077 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8078 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8079 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8081 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8082 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8084 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8086 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8087 as public except for the 'use …, only' imported symbol, which is
8089 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8090 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8091 attributes for acc_copyout_finalize and acc_delete_finalize.
8093 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8096 * testsuite/libgomp.fortran/atomic1.f90: New test.
8098 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8101 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8102 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8104 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8105 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8106 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8107 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8108 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8110 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8111 * oacc-mem.c: ... here.
8112 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8113 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8114 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8116 * libgomp_g.h: Update.
8118 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8119 * oacc-async.c: ... here.
8120 * oacc-int.h (goacc_wait): Declare.
8121 * libgomp_g.h: Update
8124 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8126 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8128 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8130 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8132 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8134 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8137 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8138 Julian Brown <julian@codesourcery.com>
8140 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8141 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8143 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8145 * omp_lib.h.in: Fix spelling of function declaration
8146 omp_get_cancell(l)ation.
8147 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8149 * env.c: Fix comment typos.
8150 * oacc-host.c: Likewise.
8151 * ordered.c: Likewise.
8154 * config/gcn/task.c: Likewise.
8155 * config/gcn/team.c: Likewise.
8156 * config/nvptx/task.c: Likewise.
8157 * config/nvptx/team.c: Likewise.
8158 * plugin/plugin-gcn.c: Likewise.
8159 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8160 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8161 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8163 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8165 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8166 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8167 unnecessary 'dg-additional-options "-w"'.
8169 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8170 Julian Brown <julian@codesourcery.com>
8175 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8176 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8178 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8180 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8182 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8184 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8187 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8188 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8190 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8192 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8194 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8196 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8198 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8200 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8201 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8204 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8205 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8206 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8207 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8208 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8209 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8212 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8213 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8214 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8216 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8218 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8220 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8221 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8224 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8226 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8228 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8230 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8232 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8233 ... with their content moved into, and extended in this new file.
8234 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8236 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8238 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8240 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8243 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8246 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8248 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8250 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8252 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8254 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8256 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8257 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8258 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8259 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8261 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8262 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8264 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8266 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8268 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8269 Kwok Cheung Yeung <kcy@codesourcery.com>
8271 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8272 if input it a NULL pointer.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8274 diagnostic of NULL pointer.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8276 * testsuite/libgomp.fortran/optional-map.f90: New.
8277 * testsuite/libgomp.fortran/use_device_addr-1.f90
8278 (test_dummy_opt_callee_1_absent): New.
8279 (test_dummy_opt_call_1): Call it.
8280 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8281 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8282 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8283 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8284 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8285 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8286 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8287 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8288 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8289 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8290 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8291 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8292 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8293 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8294 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8295 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8297 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8299 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8300 expect dg-output of 'Error termination.' for GCN.
8301 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8302 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8304 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8307 * testsuite/libgomp.fortran/teams1.f90: New test.
8308 * testsuite/libgomp.fortran/teams2.f90: New test.
8310 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8312 * oacc-init.c (acc_known_device_type): Add function.
8313 (unknown_device_type_error): Add function.
8314 (name_of_acc_device_t): Change to call unknown_device_type_error
8316 (resolve_device): Use acc_known_device_type.
8317 (acc_init): Fail if acc_device_t argument is not valid.
8318 (acc_shutdown): Likewise.
8319 (acc_get_num_devices): Likewise.
8320 (acc_set_device_type): Likewise.
8321 (acc_get_device_num): Likewise.
8322 (acc_set_device_num): Likewise.
8323 (acc_on_device): Add comment that argument validity is not checked.
8325 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8327 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8329 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8330 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8331 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8332 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8333 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8335 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8338 * configure.tgt: Avoid IE tls on *-*-musl*.
8340 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8342 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8343 adding a common-block test case.
8345 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8348 * testsuite/libgomp.c++/udr-20.C: New test.
8349 * testsuite/libgomp.c++/udr-21.C: New test.
8351 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8353 * testsuite/lib/libgomp.exp
8354 (check_effective_target_offload_target_nvptx): New proc.
8355 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8357 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8358 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8359 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8361 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8363 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8364 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8365 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8366 * testsuite/libgomp.c/private-1.c: Likewise.
8367 * testsuite/libgomp.c/task-1.c: Likewise.
8368 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8370 2019-11-20 Julian Brown <julian@codesourcery.com>
8372 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8374 (queue_push_launch): Lock aq->mutex before calling
8375 wait_for_queue_nonfull.
8376 (queue_push_callback): Likewise.
8377 (queue_push_asyncwait): Likewise.
8378 (queue_push_placeholder): Likewise.
8380 2019-11-20 Julian Brown <julian@codesourcery.com>
8382 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8383 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8384 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8387 2019-11-20 Julian Brown <julian@codesourcery.com>
8391 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8392 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8393 in non-present/create case.
8394 (delete_copyout): Change error condition to fail only on copies outside
8395 of mapped block. Adjust error message accordingly.
8396 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8397 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8398 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8400 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8401 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8402 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8404 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8406 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8407 libatomic in build-tree testing.
8409 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8411 * testsuite/Makefile.in: Regenerate.
8413 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8415 * testsuite/libgomp.c/target-print-1.c: New file.
8416 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8417 * testsuite/libgomp.oacc-c/print-1.c: New file.
8418 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8420 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8421 Kwok Cheung Yeung <kcy@codesourcery.com>
8422 Julian Brown <julian@codesourcery.com>
8423 Tom de Vries <tom@codesourcery.com>
8425 * plugin/Makefrag.am: Add amdgcn plugin support.
8426 * plugin/configfrag.ac: Likewise.
8427 * plugin/plugin-gcn.c: New file.
8428 * configure: Regenerate.
8429 * Makefile.in: Regenerate.
8430 * testsuite/Makefile.in: Regenerate.
8432 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8434 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8435 and use team_malloc variants.
8436 (gomp_gcn_exit_kernel): Use team_free.
8437 * libgomp.h (TEAM_ARENA_SIZE): Define.
8438 (TEAM_ARENA_START): Define.
8439 (TEAM_ARENA_FREE): Define.
8440 (TEAM_ARENA_END): Define.
8441 (team_malloc): New function.
8442 (team_malloc_cleared): New function.
8443 (team_free): New function.
8444 * team.c (gomp_new_team): Initialize and use team_malloc.
8445 (free_team): Use team_free.
8446 (gomp_free_thread): Use team_free.
8447 (gomp_pause_host): Use team_free.
8448 * work.c (gomp_init_work_share): Use team_malloc.
8449 (gomp_fini_work_share): Use team_free.
8451 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8452 Kwok Cheung Yeung <kcy@codesourcery.com>
8453 Julian Brown <julian@codesourcery.com>
8454 Tom de Vries <tom@codesourcery.com>
8456 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8457 * Makefile.in: Regenerate.
8458 * config.h.in (PLUGIN_GCN): Add new undef.
8459 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8460 * config/gcn/affinity-fmt.c: New file.
8461 * config/gcn/bar.c: New file.
8462 * config/gcn/bar.h: New file.
8463 * config/gcn/doacross.h: New file.
8464 * config/gcn/icv-device.c: New file.
8465 * config/gcn/oacc-target.c: New file.
8466 * config/gcn/simple-bar.h: New file.
8467 * config/gcn/target.c: New file.
8468 * config/gcn/task.c: New file.
8469 * config/gcn/team.c: New file.
8470 * config/gcn/time.c: New file.
8471 * configure.ac: Add amdgcn*-*-*.
8472 * configure: Regenerate.
8473 * configure.tgt: Add amdgcn*-*-*.
8474 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8475 * libgomp.h (gcn_thrs): Add amdgcn variant.
8476 (set_gcn_thrs): Likewise.
8477 (gomp_thread): Likewise.
8478 * oacc-int.h (goacc_thread): Likewise.
8479 * oacc-target.c: New file.
8480 * openacc.f90 (acc_device_gcn): New parameter.
8481 * openacc.h (acc_device_t): Add acc_device_gcn.
8482 * team.c (gomp_free_pool_helper): Add amdgcn support.
8484 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8485 Julian Brown <julian@codesourcery.com>
8487 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8489 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8491 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8492 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8495 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8497 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8498 * config/nvptx/libgomp-plugin.c: Move ...
8499 * config/accel/libgomp-plugin.c: ... to here.
8500 * config/nvptx/lock.c: Move ...
8501 * config/accel/lock.c: ... to here.
8502 * config/nvptx/mutex.c: Move ...
8503 * config/accel/mutex.c: ... to here.
8504 * config/nvptx/mutex.h: Move ...
8505 * config/accel/mutex.h: ... to here.
8506 * config/nvptx/oacc-async.c: Move ...
8507 * config/accel/oacc-async.c: ... to here.
8508 * config/nvptx/oacc-cuda.c: Move ...
8509 * config/accel/oacc-cuda.c: ... to here.
8510 * config/nvptx/oacc-host.c: Move ...
8511 * config/accel/oacc-host.c: ... to here.
8512 * config/nvptx/oacc-init.c: Move ...
8513 * config/accel/oacc-init.c: ... to here.
8514 * config/nvptx/oacc-mem.c: Move ...
8515 * config/accel/oacc-mem.c: ... to here.
8516 * config/nvptx/oacc-plugin.c: Move ...
8517 * config/accel/oacc-plugin.c: ... to here.
8518 * config/nvptx/omp-lock.h: Move ...
8519 * config/accel/omp-lock.h: ... to here.
8520 * config/nvptx/openacc.f90: Move ...
8521 * config/accel/openacc.f90: ... to here.
8522 * config/nvptx/pool.h: Move ...
8523 * config/accel/pool.h: ... to here.
8524 * config/nvptx/proc.c: Move ...
8525 * config/accel/proc.c: ... to here.
8526 * config/nvptx/ptrlock.c: Move ...
8527 * config/accel/ptrlock.c: ... to here.
8528 * config/nvptx/ptrlock.h: Move ...
8529 * config/accel/ptrlock.h: ... to here.
8530 * config/nvptx/sem.c: Move ...
8531 * config/accel/sem.c: ... to here.
8532 * config/nvptx/sem.h: Move ...
8533 * config/accel/sem.h: ... to here.
8534 * config/nvptx/thread-stacksize.h: Move ...
8535 * config/accel/thread-stacksize.h: ... to here.
8537 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8538 Tobias Burnus <tobias@codesourcery.com>
8539 Frederik Harwath <frederik@codesourcery.com>
8540 Thomas Schwinge <thomas@codesourcery.com>
8543 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8544 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8545 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8547 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8548 Kwok Cheung Yeung <kcy@codesourcery.com>
8550 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8551 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8553 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8555 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8557 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8559 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8560 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8562 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8564 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8565 Add expected warnings about missing reduction clauses.
8566 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8568 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8570 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8573 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8575 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8576 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8577 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8578 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8579 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8580 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8582 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8585 * testsuite/libgomp.fortran/allocatable2.f90: Use
8586 unique numbers with 'stop'.
8587 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8588 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8589 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8590 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8591 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8593 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8595 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8596 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8597 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8598 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8599 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8600 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8602 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8604 * testsuite/libgomp.fortran/target9.f90: New.
8606 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8608 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8609 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8610 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8611 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8612 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8613 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8614 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8615 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8616 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8617 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8618 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8619 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8620 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8621 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8622 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8623 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8624 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8625 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8626 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8627 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8628 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8629 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8630 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8631 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8632 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8633 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8634 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8635 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8636 * testsuite/libgomp.fortran/character1.f90: Ditto.
8637 * testsuite/libgomp.fortran/character2.f90: Ditto.
8638 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8639 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8640 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8641 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8642 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8643 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8644 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8645 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8646 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8647 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8648 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8649 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8650 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8651 * testsuite/libgomp.fortran/do1.f90: Ditto.
8652 * testsuite/libgomp.fortran/do2.f90: Ditto.
8653 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8654 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8655 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8656 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8657 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8658 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8659 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8660 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8661 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8662 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8663 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8664 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8665 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8666 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8667 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8668 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8669 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8670 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8671 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8672 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8673 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8674 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8675 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8676 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8677 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8678 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8679 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8680 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8681 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8682 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8683 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8684 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8685 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8686 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8687 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8688 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8689 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8690 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8691 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8692 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8693 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8694 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8695 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8696 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8697 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8698 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8699 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8700 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8701 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8702 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8703 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8704 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8705 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8706 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8707 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8708 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8709 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8710 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8711 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8712 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8713 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8714 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8715 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8716 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8717 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8718 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8719 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8720 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8721 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8722 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8723 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8724 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8725 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8726 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8727 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8728 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8729 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8730 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8731 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8732 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8733 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8734 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8735 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8736 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8737 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8738 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8739 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8740 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8741 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8742 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8743 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8744 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8745 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8746 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8747 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8748 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8749 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8750 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8751 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8752 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8753 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8754 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8755 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8756 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8757 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8758 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8759 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8760 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8761 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8762 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8763 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8764 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8765 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8766 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8767 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8768 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8769 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8770 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8771 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8772 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8773 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8774 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8775 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8776 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8777 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8778 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8779 * testsuite/libgomp.fortran/stack.f90: Ditto.
8780 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8781 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8782 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8783 * testsuite/libgomp.fortran/target1.f90: Ditto.
8784 * testsuite/libgomp.fortran/target2.f90: Ditto.
8785 * testsuite/libgomp.fortran/target3.f90: Ditto.
8786 * testsuite/libgomp.fortran/target4.f90: Ditto.
8787 * testsuite/libgomp.fortran/target5.f90: Ditto.
8788 * testsuite/libgomp.fortran/target6.f90: Ditto.
8789 * testsuite/libgomp.fortran/target7.f90: Ditto.
8790 * testsuite/libgomp.fortran/target8.f90: Ditto.
8791 * testsuite/libgomp.fortran/task1.f90: Ditto.
8792 * testsuite/libgomp.fortran/task2.f90: Ditto.
8793 * testsuite/libgomp.fortran/task3.f90: Ditto.
8794 * testsuite/libgomp.fortran/task4.f90: Ditto.
8795 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8796 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8797 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8798 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8799 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8800 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8801 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8802 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8803 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8804 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8805 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8806 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8807 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8808 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8809 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8810 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8811 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8812 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8813 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8814 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8815 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8816 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8817 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8818 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8819 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8820 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8821 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8822 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8823 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8824 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8825 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8826 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8827 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8828 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8830 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8832 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8833 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8834 Ditto; add 'dg-do run' for torture testing.
8835 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8836 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8837 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8838 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8839 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8840 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8841 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8842 * testsuite/libgomp.fortran/task2.f90: Ditto.
8843 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8844 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8845 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8846 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8847 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8848 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8850 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8852 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8853 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8854 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8855 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8856 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8857 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8858 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8859 Use 'stop' not abort().
8860 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8861 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8862 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8863 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8864 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8865 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8866 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8867 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8868 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8869 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8870 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8871 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8872 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8873 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8874 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8875 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8876 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8878 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8880 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8882 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8884 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8886 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8888 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8890 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8892 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8894 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8896 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8898 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8900 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8902 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8904 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8905 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8906 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8907 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8908 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8909 Likewise and also add 'dg-do run'.
8910 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8913 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8914 Tobias Burnus <tobias@codesourcery.com>
8916 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8917 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8918 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8920 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8923 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8926 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8928 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8929 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8931 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8934 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8937 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8940 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8942 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8944 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8947 * target.c (gomp_map_vars_internal): Readd the previous
8948 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8949 though do that just in the !not_found_cnt case.
8951 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8953 * gfortran.dg/gomp/target-simd.f90: New.
8955 2019-10-02 Julian Brown <julian@codesourcery.com>
8956 Cesar Philippidis <cesar@codesourcery.com>
8958 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8959 * target.c (FIELD_TGT_EMPTY): Define.
8960 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8961 as switch instead of list of ifs.
8962 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8964 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8966 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8967 include. Replace alloca () with __builtin_alloca ().
8968 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8970 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8972 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8973 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8974 * oacc-parallel.c: Don't include "libgomp_g.h".
8975 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8976 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8977 * aclocal.m4: Regenerated.
8978 * config.h.in: Regenerated.
8979 * configure: Regenerated.
8980 * Makefile.in: Regenerated.
8982 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8984 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8986 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8988 * configure: Regenerate.
8990 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8992 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8993 string is initialized.
8995 2019-09-06 Florian Weimer <fweimer@redhat.com>
8997 * configure: Regenerate.
8999 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9002 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9003 scanning to conform to the GNU Coding Standards.
9004 * configure: Regenerate.
9006 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9009 * testsuite/libgomp.c/scan-21.c: New test.
9010 * testsuite/libgomp.c/scan-22.c: New test.
9012 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9015 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9017 * testsuite/libgomp.c/scan-12.c: Likewise.
9018 * testsuite/libgomp.c/scan-13.c: Likewise.
9019 * testsuite/libgomp.c/scan-14.c: Likewise.
9020 * testsuite/libgomp.c/scan-15.c: Likewise.
9021 * testsuite/libgomp.c/scan-16.c: Likewise.
9022 * testsuite/libgomp.c/scan-17.c: Likewise.
9023 * testsuite/libgomp.c/scan-18.c: Likewise.
9024 * testsuite/libgomp.c/scan-19.c: Likewise.
9025 * testsuite/libgomp.c/scan-20.c: Likewise.
9026 * testsuite/libgomp.c++/scan-9.C: Likewise.
9027 * testsuite/libgomp.c++/scan-10.C: Likewise.
9028 * testsuite/libgomp.c++/scan-11.C: Likewise.
9029 * testsuite/libgomp.c++/scan-12.C: Likewise.
9030 * testsuite/libgomp.c++/scan-14.C: Likewise.
9031 * testsuite/libgomp.c++/scan-15.C: Likewise.
9032 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9033 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9034 * testsuite/libgomp.c++/scan-16.C: Likewise.
9036 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9039 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9040 -std=legacy so invalid code in the test case is accepted.
9042 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9045 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9048 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9050 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9051 perform the lookup in the first loop only if !not_found_cnt, otherwise
9052 perform lookups for it in the second loop guarded with
9053 if (not_found_cnt || has_firstprivate).
9054 * testsuite/libgomp.c/target-37.c: New test.
9055 * testsuite/libgomp.c++/target-22.C: New test.
9057 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9059 * testsuite/libgomp.c/target-18.c (struct S): New type.
9060 (foo): Use use_device_addr clause instead of use_device_ptr clause
9061 where required by OpenMP 5.0, add further tests for both use_device_ptr
9062 and use_device_addr clauses.
9063 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9064 (foo): Use use_device_addr clause instead of use_device_ptr clause
9065 where required by OpenMP 5.0, add further tests for both use_device_ptr
9066 and use_device_addr clauses. Add t and u arguments.
9067 (main): Adjust caller.
9069 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9071 * testsuite/libgomp.c++/loop-13.C: New test.
9072 * testsuite/libgomp.c++/loop-14.C: New test.
9073 * testsuite/libgomp.c++/loop-15.C: New test.
9075 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9078 * testsuite/libgomp.c++/for-27.C: New test.
9080 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9082 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9083 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9085 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9087 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9089 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9091 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9092 * testsuite/libgomp.c++/scan-16.C: Likewise.
9094 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9096 * testsuite/libgomp.c/scan-19.c: New test.
9097 * testsuite/libgomp.c/scan-20.c: New test.
9099 * testsuite/libgomp.c/scan-11.c: New test.
9100 * testsuite/libgomp.c/scan-12.c: New test.
9101 * testsuite/libgomp.c/scan-13.c: New test.
9102 * testsuite/libgomp.c/scan-14.c: New test.
9103 * testsuite/libgomp.c/scan-15.c: New test.
9104 * testsuite/libgomp.c/scan-16.c: New test.
9105 * testsuite/libgomp.c/scan-17.c: New test.
9106 * testsuite/libgomp.c/scan-18.c: New test.
9107 * testsuite/libgomp.c++/scan-9.C: New test.
9108 * testsuite/libgomp.c++/scan-10.C: New test.
9109 * testsuite/libgomp.c++/scan-11.C: New test.
9110 * testsuite/libgomp.c++/scan-12.C: New test.
9111 * testsuite/libgomp.c++/scan-13.C: New test.
9112 * testsuite/libgomp.c++/scan-14.C: New test.
9113 * testsuite/libgomp.c++/scan-15.C: New test.
9114 * testsuite/libgomp.c++/scan-16.C: New test.
9116 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9118 * testsuite/libgomp.c/scan-9.c: New test.
9119 * testsuite/libgomp.c/scan-10.c: New test.
9121 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9123 * testsuite/libgomp.c++/scan-1.C: New test.
9124 * testsuite/libgomp.c++/scan-2.C: New test.
9125 * testsuite/libgomp.c++/scan-3.C: New test.
9126 * testsuite/libgomp.c++/scan-4.C: New test.
9127 * testsuite/libgomp.c++/scan-5.C: New test.
9128 * testsuite/libgomp.c++/scan-6.C: New test.
9129 * testsuite/libgomp.c++/scan-7.C: New test.
9130 * testsuite/libgomp.c++/scan-8.C: New test.
9131 * testsuite/libgomp.c/scan-1.c: New test.
9132 * testsuite/libgomp.c/scan-2.c: New test.
9133 * testsuite/libgomp.c/scan-3.c: New test.
9134 * testsuite/libgomp.c/scan-4.c: New test.
9135 * testsuite/libgomp.c/scan-5.c: New test.
9136 * testsuite/libgomp.c/scan-6.c: New test.
9137 * testsuite/libgomp.c/scan-7.c: New test.
9138 * testsuite/libgomp.c/scan-8.c: New test.
9140 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9142 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9143 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9146 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9149 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9151 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9154 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9157 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9159 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9160 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9161 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9162 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9165 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9168 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9170 2019-06-16 Tom de Vries <tdevries@suse.de>
9172 PR tree-optimization/89376
9173 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9175 2019-06-15 Tom de Vries <tdevries@suse.de>
9177 PR tree-optimization/89713
9178 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9179 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9181 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9184 * testsuite/libgomp.c/pr90779.c: New test.
9185 * testsuite/libgomp.fortran/pr90779.f90: New test.
9187 2019-06-15 Tom de Vries <tdevries@suse.de>
9189 PR tree-optimization/90009
9190 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9192 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9194 PR tree-optimization/89713
9195 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9197 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9200 * testsuite/libgomp.c/pr90811.c: New test.
9202 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9204 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9205 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9207 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9209 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9210 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9211 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9212 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9214 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9216 * configure.ac: Call AX_COUNT_CPUS.
9217 Substitute CPU_COUNT.
9218 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9220 * aclocal.m4: Regenerate.
9221 * configure: Regenerate.
9222 * Makefile.in, testsuite/Makefile.in: Regenerate.
9224 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9226 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9228 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9229 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9230 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9232 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9234 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9236 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9239 * work.c (gomp_init_work_share): Instead of aligning final ordered
9240 value to multiples of long long alignment, align to that the
9241 first part (ordered team ids) and if inline_ordered_team_ids
9242 is not on a long long alignment boundary within the structure,
9243 use __alignof__ (long long) - 1 pad size always.
9244 * loop.c (GOMP_loop_start): Fix *mem computation if
9245 inline_ordered_team_ids is not aligned on long long alignment boundary
9246 within the structure.
9247 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9248 * sections.c (GOMP_sections2_start): Likewise.
9250 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9252 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9253 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9256 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9257 HAVE_INTTYPES_H is defined.
9258 (print_uint64_t): New typedef.
9259 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9260 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9261 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9262 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9263 before casting to void *.
9264 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9265 * oacc-mem.c: Don't include config.h nor stdint.h.
9266 * target.c: Don't include config.h.
9267 * oacc-cuda.c: Likewise.
9268 * oacc-host.c: Don't include stdint.h.
9270 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9273 * alloc.c (_GNU_SOURCE): Define.
9275 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9277 * acc_prof.h: New file.
9278 * oacc-profiling.c: Likewise.
9279 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9280 Add these, respectively.
9281 * Makefile.in: Regenerate.
9282 * env.c (initialize_env): Call goacc_profiling_initialize.
9283 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9284 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9285 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9286 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9287 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9288 acc_prof_register, acc_prof_unregister, and acc_register_library.
9289 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9290 GOMP_PLUGIN_goacc_thread.
9291 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9292 prof_callbacks_enabled members.
9293 (goacc_prof_enabled, goacc_profiling_initialize)
9294 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9295 (goacc_profiling_dispatch): Declare.
9296 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9297 (GOACC_PROFILING_SETUP_P): Define.
9298 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9299 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9300 OpenACC Profiling Interface.
9301 * oacc-cuda.c (acc_get_current_cuda_device)
9302 (acc_get_current_cuda_context, acc_get_cuda_stream)
9303 (acc_set_cuda_stream): Likewise.
9304 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9305 (acc_init, acc_set_device_type, acc_get_device_type)
9306 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9307 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9308 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9309 (acc_unmap_data, present_create_copy, delete_copyout)
9310 (update_dev_host): Likewise.
9311 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9312 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9314 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9315 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9317 * libgomp.texi: Update.
9318 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9320 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9321 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9323 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9325 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9327 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9330 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9332 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9333 (struct goacc_asyncqueue_list): Likewise.
9334 (goacc_aq): Likewise.
9335 (goacc_aq_list): Likewise.
9336 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9337 (GOMP_OFFLOAD_openacc_async_test): Remove.
9338 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9339 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9340 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9341 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9342 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9343 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9344 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9345 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9346 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9347 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9348 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9349 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9350 (GOMP_OFFLOAD_openacc_async_test): Declare.
9351 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9352 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9353 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9354 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9355 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9357 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9358 (gomp_acc_insert_pointer): Adjust declaration.
9359 (gomp_copy_host2dev): New declaration.
9360 (gomp_copy_dev2host): Likewise.
9361 (gomp_map_vars_async): Likewise.
9362 (gomp_unmap_tgt): Likewise.
9363 (gomp_unmap_vars_async): Likewise.
9364 (gomp_fini_device): Likewise.
9366 * oacc-async.c (get_goacc_thread): New function.
9367 (get_goacc_thread_device): New function.
9368 (lookup_goacc_asyncqueue): New function.
9369 (get_goacc_asyncqueue): New function.
9370 (acc_async_test): Adjust code to use new async design.
9371 (acc_async_test_all): Likewise.
9372 (acc_wait): Likewise.
9373 (acc_wait_async): Likewise.
9374 (acc_wait_all): Likewise.
9375 (acc_wait_all_async): Likewise.
9376 (goacc_async_free): New function.
9377 (goacc_init_asyncqueues): Likewise.
9378 (goacc_fini_asyncqueues): Likewise.
9379 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9381 (acc_set_cuda_stream): Likewise.
9382 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9383 (host_openacc_register_async_cleanup): Remove.
9384 (host_openacc_async_exec): New function.
9385 (host_openacc_async_test): Adjust parameters.
9386 (host_openacc_async_test_all): Remove.
9387 (host_openacc_async_wait): Remove.
9388 (host_openacc_async_wait_async): Remove.
9389 (host_openacc_async_wait_all): Remove.
9390 (host_openacc_async_wait_all_async): Remove.
9391 (host_openacc_async_set_async): Remove.
9392 (host_openacc_async_synchronize): New function.
9393 (host_openacc_async_serialize): New function.
9394 (host_openacc_async_host2dev): New function.
9395 (host_openacc_async_dev2host): New function.
9396 (host_openacc_async_queue_callback): New function.
9397 (host_openacc_async_construct): New function.
9398 (host_openacc_async_destruct): New function.
9399 (struct gomp_device_descr host_dispatch): Remove initialization of old
9400 interface, add initialization of new async sub-struct.
9401 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9402 (goacc_attach_host_thread_to_device): Remove old async code usage.
9403 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9404 (goacc_fini_asyncqueues): Likewise.
9405 (goacc_async_copyout_unmap_vars): Likewise.
9406 (goacc_async_free): Likewise.
9407 (get_goacc_asyncqueue): Likewise.
9408 (lookup_goacc_asyncqueue): Likewise.
9409 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9411 (present_create_copy): Adjust code to use new async design.
9412 (delete_copyout): Likewise.
9413 (update_dev_host): Likewise.
9414 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9416 (gomp_acc_remove_pointer): Adjust code to use new async design.
9417 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9419 (GOACC_enter_exit_data): Likewise.
9420 (goacc_wait): Likewise.
9421 (GOACC_update): Likewise.
9422 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9423 when called, warn as obsolete in comment.
9424 * target.c (goacc_device_copy_async): New function.
9425 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9426 add goacc_device_copy_async case.
9427 (gomp_copy_dev2host): Likewise.
9428 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9429 (gomp_map_pointer): Likewise.
9430 (gomp_map_fields_existing): Likewise.
9431 (gomp_map_vars_internal): New always_inline function, renamed from
9433 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9434 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9435 passing goacc_asyncqueue argument.
9436 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9437 (gomp_unref_tgt): New function.
9438 (gomp_unmap_vars_internal): New always_inline function, renamed from
9440 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9441 (gomp_unmap_vars_async): Implement by calling
9442 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9443 (gomp_fini_device): New function.
9444 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9445 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9446 new async interface.
9447 (gomp_target_fini): Adjust code to call gomp_fini_device.
9449 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9450 (struct ptx_stream): Remove.
9451 (struct nvptx_thread): Remove current_stream field.
9452 (cuda_map_create): Remove.
9453 (cuda_map_destroy): Remove.
9458 (struct goacc_asyncqueue): Define.
9459 (struct nvptx_callback): Define.
9460 (struct ptx_free_block): Define.
9461 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9462 stream_lock, and next fields.
9463 (enum ptx_event_type): Remove.
9464 (struct ptx_event): Remove.
9465 (ptx_event_lock): Remove.
9466 (ptx_events): Remove.
9467 (init_streams_for_device): Remove.
9468 (fini_streams_for_device): Remove.
9469 (select_stream_for_async): Remove.
9470 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9471 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9473 (nvptx_open_device): Add free_blocks initialization, remove
9474 init_streams_for_device call.
9475 (nvptx_close_device): Remove fini_streams_for_device call, add
9476 free_blocks destruct code.
9478 (event_add): Remove.
9479 (nvptx_exec): Adjust parameters and code.
9480 (nvptx_free): Likewise.
9481 (nvptx_host2dev): Remove.
9482 (nvptx_dev2host): Remove.
9483 (nvptx_set_async): Remove.
9484 (nvptx_async_test): Remove.
9485 (nvptx_async_test_all): Remove.
9486 (nvptx_wait): Remove.
9487 (nvptx_wait_async): Remove.
9488 (nvptx_wait_all): Remove.
9489 (nvptx_wait_all_async): Remove.
9490 (nvptx_get_cuda_stream): Remove.
9491 (nvptx_set_cuda_stream): Remove.
9492 (GOMP_OFFLOAD_alloc): Adjust code.
9493 (GOMP_OFFLOAD_free): Likewise.
9494 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9495 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9496 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9497 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9498 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9499 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9500 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9501 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9502 (cuda_free_argmem): New function.
9503 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9504 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9505 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9506 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9507 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9508 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9509 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9510 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9511 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9512 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9513 (cuda_callback_wrapper): New function.
9514 (cuda_memcpy_sanity_check): New function.
9515 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9516 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9517 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9518 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9520 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9523 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9525 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9527 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9529 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9531 * team.c (gomp_team_start): Initialize pool->threads[0].
9533 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9535 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9536 "-foffload=$offload_target".
9537 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9538 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9539 * testsuite/lib/libgomp.exp
9540 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9541 as (conceptually) merged into
9542 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9545 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9546 * testsuite/libgomp-test-support.exp.in: Adjust.
9547 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9548 openacc_device_types_s.
9549 (offload_target_to_openacc_device_type): New proc.
9550 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9551 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9552 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9553 * Makefile.in: Regenerate.
9554 * configure: Likewise.
9555 * testsuite/Makefile.in: Likewise.
9557 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9558 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9559 instead of OFFLOAD_TARGETS.
9560 * target.c (gomp_target_init): Adjust.
9561 * testsuite/libgomp-test-support.exp.in: Likewise.
9562 * testsuite/lib/libgomp.exp: Likewise. Populate
9563 openacc_device_types_s instead of offload_targets_s_openacc.
9564 (check_effective_target_openacc_nvidia_accel_selected)
9565 (check_effective_target_openacc_host_selected): Adjust.
9566 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9567 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9568 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9569 * Makefile.in: Regenerate.
9570 * config.h.in: Likewise.
9571 * configure: Likewise.
9572 * testsuite/Makefile.in: Likewise.
9574 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9575 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9576 "offloading: supported, but hardware not accessible".
9577 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9578 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9580 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9583 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9585 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9586 and related adjustment.
9588 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9591 * testsuite/libgomp.c++/pr88988.C: New test.
9593 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9596 * testsuite/libgomp.c/pr89002.c: New test.
9598 2019-01-28 Richard Biener <rguenther@suse.de>
9601 PR tree-optimization/86865
9602 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9604 2019-01-24 Tom de Vries <tdevries@suse.de>
9606 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9607 once instantiated_devices drops to 0.
9609 2019-01-23 Tom de Vries <tdevries@suse.de>
9612 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9614 (nvptx_exec): Don't call map_push if mapnum == 0.
9615 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9617 2019-01-23 Tom de Vries <tdevries@suse.de>
9621 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9622 (map_fini): Remove "assert (!s->map->active)".
9623 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9625 2019-01-23 Tom de Vries <tdevries@suse.de>
9628 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9629 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9631 2019-01-15 Tom de Vries <tdevries@suse.de>
9634 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9637 2019-01-12 Tom de Vries <tdevries@suse.de>
9639 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9640 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9641 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9642 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9644 2019-01-12 Tom de Vries <tdevries@suse.de>
9646 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9648 2019-01-12 Tom de Vries <tdevries@suse.de>
9650 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9651 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9652 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9654 2019-01-12 Tom de Vries <tdevries@suse.de>
9657 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9658 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9660 2019-01-12 Tom de Vries <tdevries@suse.de>
9663 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9664 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9666 2019-01-12 Tom de Vries <tdevries@suse.de>
9668 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9669 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9670 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9672 2019-01-12 Tom de Vries <tdevries@suse.de>
9674 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9675 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9676 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9678 2019-01-12 Tom de Vries <tdevries@suse.de>
9680 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9681 resources diagnostic.
9683 2019-01-12 Tom de Vries <tdevries@suse.de>
9685 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9686 vector length to be 128.
9687 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9688 length 2097152 to be reduced to 1024 instead of 32.
9690 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9691 James Norris <jnorris@codesourcery.com>
9693 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9694 Library Routines", and "Environment Variables".
9696 2019-01-11 Tom de Vries <tdevries@suse.de>
9698 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9701 2019-01-11 Tom de Vries <tdevries@suse.de>
9703 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9705 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9706 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9707 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9708 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9710 2019-01-11 Tom de Vries <tdevries@suse.de>
9712 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9715 2019-01-10 Nathan Sidwell <nathan@acm.org>
9716 Julian Brown <julian@codesourcery.com>
9719 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9720 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9722 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9724 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9727 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9729 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9730 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9733 2019-01-09 Tom de Vries <tdevries@suse.de>
9736 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9737 #define instead of "const int".
9738 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9739 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9740 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9741 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9743 2019-01-09 Tom de Vries <tdevries@suse.de>
9745 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9748 2019-01-07 Tom de Vries <tdevries@suse.de>
9750 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9751 GOMP_OPENACC_DIM argument.
9753 2019-01-03 Tom de Vries <tdevries@suse.de>
9755 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9756 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9758 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9760 Update copyright years.
9762 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9764 * libgomp.texi: Bump @copying's copyright year.
9766 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9768 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9769 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9770 (GOACC_declare): Redefine the "device" argument to "flags".
9772 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9773 Cesar Philippidis <cesar@codesourcery.com>
9775 * target.c (struct gomp_coalesce_chunk): New structure.
9776 (struct gomp_coalesce_buf): Update the chunks member to use that
9777 type. Adjust all users.
9779 2018-12-19 Tom de Vries <tdevries@suse.de>
9781 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9782 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9783 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9785 2018-12-19 Tom de Vries <tdevries@suse.de>
9787 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9788 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9789 gcc/testsuite/gcc.dg/goacc.
9790 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9792 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9793 Chung-Lin Tang <cltang@codesourcery.com>
9795 * oacc-mem.c (acc_present_or_create): Remove definition and change
9796 to alias of acc_create.
9797 (acc_present_or_copyin): Remove definition and change to alias of
9799 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9800 of acc_present_or_create.
9801 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9802 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9803 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9804 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9805 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9806 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9807 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9808 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9809 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9810 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9811 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9812 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9813 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9814 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9815 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9816 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9818 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9821 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9822 "identical parameters".
9823 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9824 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9827 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9828 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9831 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9832 (nvptx_wait_async): Unseen async-argument is a no-op.
9833 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9834 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9835 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9836 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9837 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9838 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9839 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9840 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9841 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9843 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9844 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9846 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9848 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9849 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9850 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9852 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9855 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9856 (acc_set_cuda_stream): Clarify.
9857 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9859 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9861 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9862 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9863 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9864 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9866 2018-12-14 Tom de Vries <tdevries@suse.de>
9868 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9869 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9870 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9871 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9872 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9874 2018-12-13 Tom de Vries <tdevries@suse.de>
9876 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9877 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9878 * fortran.c (omp_display_affinity_): ... here.
9879 * libgomp.h (gomp_print_string): Declare.
9880 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9881 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9884 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9887 * testsuite/libgomp.c++/for-24.C (results): Include it in
9888 omp declare target region.
9889 (main): Use map (always, tofrom: results) instead of
9890 map (tofrom: results).
9892 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9895 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9896 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9898 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9900 2018-12-12 Andreas Schwab <schwab@suse.de>
9902 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9905 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9908 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9910 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9911 Jakub Jelinek <jakub@redhat.com>
9913 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9914 devicep->host2dev_func.
9916 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9919 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9920 tls_runtime effective target.
9921 (t): New threadprivate variable.
9922 (main): Set t in threads which execute iterations of the worksharing
9923 loop. Propagate that to the task after the loop and don't abort
9924 if the current taskgroup hasn't been cancelled.
9926 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9928 * testsuite/libgomp.c/task-reduction-3.c: New test.
9930 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9932 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9935 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9936 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9938 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9940 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9942 2018-10-19 Richard Biener <rguenther@suse.de>
9944 PR tree-optimization/88182
9945 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9947 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9949 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9950 (RUNTEST): Don't define.
9951 (RUNTESTDEFAULTFLAGS): Add.
9952 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9953 (distclean-am): Depend on distclean-DEJAGNU.
9954 (check-am): If -j% option is present in MFLAGS and if
9955 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9956 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9957 * testsuite/Makefile.in: Regenerated.
9959 2018-11-26 Richard Biener <rguenther@suse.de>
9961 PR tree-optimization/88182
9962 * testsuite/libgomp.c++/pr88182.C: New testcase.
9964 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9967 * config/mingw32/affinity-fmt.c: New file.
9969 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9971 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9972 (gomp_display_affinity): Use __builtin_choose_expr to handle
9973 properly handle argument having integral, or pointer or some other
9974 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9975 with uint64_t type instead of %llx and unsigned long long.
9977 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9978 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9980 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9982 * affinity.c: Include <string.h>, <stdio.h>.
9983 (gomp_display_affinity_place): Remove cpusetp.
9984 * teams.c: Include <limits.h>.
9986 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9988 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9989 in_reduction clause for s[0].
9991 * affinity.c (gomp_display_affinity_place): New function.
9992 * affinity-fmt.c: New file.
9993 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9994 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9995 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9996 Move these functions to ...
9997 * config/nvptx/teams.c: ... here. New file.
9998 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10000 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10002 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10003 and _aligned_malloc.
10004 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10005 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10006 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10007 gomp_affinity_format_len): New variables.
10008 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10009 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10010 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10011 modifiers. Display (non-default) chunk sizes. Print
10012 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10013 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10014 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10015 * fortran.c: Include stdio.h and string.h.
10016 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10017 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10018 (omp_set_affinity_format_, omp_get_affinity_format_,
10019 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10020 omp_pause_resource_all_): New functions.
10021 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10023 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10025 * teams.c: ... here. New file.
10026 * libgomp_g.h: Include gstdint.h.
10027 (GOMP_loop_nonmonotonic_runtime_start,
10028 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10029 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10030 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10031 GOMP_parallel_loop_nonmonotonic_runtime,
10032 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10033 GOMP_loop_ull_nonmonotonic_runtime_start,
10034 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10035 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10036 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10037 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10038 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10039 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10040 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10041 GOMP_teams_reg): Declare.
10042 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10043 gomp_aligned_alloc uses fallback implementation.
10044 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10045 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10046 (struct gomp_doacross_work_share): Add extra field.
10047 (struct gomp_work_share): Add task_reductions field.
10048 (struct gomp_taskgroup): Add workshare and reductions fields.
10049 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10050 (gomp_thread_handle): New typedef.
10051 (gomp_display_affinity_place, gomp_set_affinity_format,
10052 gomp_display_string, gomp_display_affinity,
10053 gomp_display_affinity_thread): Declare.
10054 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10055 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10056 gomp_workshare_task_reduction_register): Declare.
10057 (gomp_team_start): Add taskgroup argument.
10058 (gomp_pause_host): Declare.
10059 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10061 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10062 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10063 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10064 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10065 GOMP_loop_ull_doacross_start,
10066 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10067 GOMP_loop_maybe_nonmonotonic_runtime_next,
10068 GOMP_loop_maybe_nonmonotonic_runtime_start,
10069 GOMP_loop_nonmonotonic_runtime_next,
10070 GOMP_loop_nonmonotonic_runtime_start,
10071 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10072 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10073 GOMP_loop_ull_nonmonotonic_runtime_next,
10074 GOMP_loop_ull_nonmonotonic_runtime_start,
10075 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10076 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10077 GOMP_taskgroup_reduction_register,
10078 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10079 GOMP_teams_reg and GOMP_taskwait_depend.
10080 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10081 omp_{capture,display}_affinity{,_}, and
10082 omp_[gs]et_affinity_format{,_}.
10083 * loop.c: Include string.h.
10084 (GOMP_loop_runtime_next): Add ialias.
10085 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10086 (gomp_loop_static_start, gomp_loop_dynamic_start,
10087 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10088 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10089 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10090 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10091 or gomp_doacross_init callers.
10092 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10093 GOMP_loop_doacross_start): New functions.
10094 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10095 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10096 Mask off GFS_MONOTONIC bit.
10097 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10098 GOMP_loop_maybe_nonmonotonic_runtime_start,
10099 GOMP_loop_nonmonotonic_runtime_next,
10100 GOMP_loop_nonmonotonic_runtime_start,
10101 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10102 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10104 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10106 * loop_ull.c: Include string.h.
10107 (GOMP_loop_ull_runtime_next): Add ialias.
10108 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10109 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10110 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10111 gomp_loop_ull_ordered_dynamic_start,
10112 gomp_loop_ull_ordered_guided_start,
10113 gomp_loop_ull_doacross_static_start,
10114 gomp_loop_ull_doacross_dynamic_start,
10115 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10116 and gomp_doacross_ull_init callers.
10117 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10118 GOMP_loop_ull_doacross_start): New functions.
10119 (GOMP_loop_ull_runtime_start,
10120 GOMP_loop_ull_ordered_runtime_start,
10121 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10122 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10123 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10124 GOMP_loop_ull_nonmonotonic_runtime_next,
10125 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10126 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10127 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10128 (omp_pause_resource_t, omp_depend_t): New typedefs.
10129 (enum omp_lock_hint_t): Renamed to ...
10130 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10131 enumerators using numbers and omp_lock_hint_* as their aliases.
10132 (omp_lock_hint_t): New typedef. Rename to ...
10133 (omp_sync_hint_t): ... this.
10134 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10135 omp_sync_hint_t instead of omp_lock_hint_t.
10136 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10137 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10139 (omp_target_is_present, omp_target_disassociate_ptr):
10140 Change first argument from void * to const void *.
10141 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10142 from void * to const void *.
10143 (omp_target_associate_ptr): Change first and second arguments from
10144 void * to const void *.
10145 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10146 omp_pause_hard): New parameters.
10147 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10148 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10150 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10151 omp_pause_hard): New parameters.
10152 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10153 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10155 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10156 EXTRA argument. If not needed to prepare array, if extra is 0,
10157 clear ws->doacross, otherwise allocate just doacross structure and
10158 extra payload. If array is needed, allocate also extra payload.
10159 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10160 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10162 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10164 (GOMP_parallel): Likewise. Formatting fix.
10165 (GOMP_parallel_reductions): New function.
10166 (GOMP_cancellation_point): If taskgroup has workshare
10167 flag set, check cancelled of prev taskgroup if any.
10168 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10169 on prev taskgroup if any.
10170 * sections.c: Include string.h.
10171 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10172 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10173 (GOMP_sections2_start): New function.
10174 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10175 Pass NULL as taskgroup to gomp_team_start.
10176 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10177 gomp_work_share_start callers.
10178 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10179 If taskgroup has workshare flag set, check cancelled on prev
10180 taskgroup if any. Guard all cancellation tests with
10181 gomp_cancel_var test.
10182 (omp_target_is_present, omp_target_disassociate_ptr):
10183 Change ptr argument from void * to const void *.
10184 (omp_target_memcpy): Change src argument from void * to const void *.
10185 (omp_target_memcpy_rect): Likewise.
10186 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10187 instead of char * where needed.
10188 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10189 from void * to const void *.
10190 (omp_pause_resource, omp_pause_resource_all): New functions.
10191 * task.c (gomp_task_handle_depend): Handle new depend array format
10192 in addition to the old. Handle mutexinoutset kinds the same as
10193 inout for now, handle unspecified kinds.
10194 (gomp_create_target_task): If taskgroup has workshare flag set, check
10195 cancelled on prev taskgroup if any. Guard all cancellation tests with
10196 gomp_cancel_var test. Handle new depend array format count in
10197 addition to the old.
10198 (GOMP_task): Likewise. Adjust function comment.
10199 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10200 cancelled on prev taskgroup if any. Guard all cancellation tests with
10201 gomp_cancel_var test.
10202 (GOMP_taskwait_depend): New function.
10203 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10204 format in addition to the old. Handle mutexinoutset kinds the same as
10205 inout for now, handle unspecified kinds. Fix a function comment typo.
10206 (gomp_taskgroup_init): New function.
10207 (GOMP_taskgroup_start): Use it.
10208 (gomp_reduction_register, gomp_create_artificial_team,
10209 GOMP_taskgroup_reduction_register,
10210 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10211 gomp_parallel_reduction_register,
10212 gomp_workshare_task_reduction_register,
10213 gomp_workshare_taskgroup_start,
10214 GOMP_workshare_task_reduction_unregister): New functions.
10215 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10216 check cancelled on prev taskgroup if any. Guard all cancellation
10217 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10218 by calling GOMP_taskgroup_reduction_register.
10219 * team.c (gomp_thread_attr): Remove comment.
10220 (struct gomp_thread_start_data): Add handle field.
10221 (gomp_thread_start): Call pthread_detach.
10222 (gomp_new_team): Adjust gomp_init_work_share caller.
10223 (gomp_free_pool_helper): Call pthread_detach.
10224 (gomp_team_start): Add taskgroup argument, initialize implicit
10225 tasks' taskgroup field to that. Don't call
10226 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10227 (gomp_team_end): Determine nesting by thr->ts.level != 0
10228 rather than thr->ts.team != NULL.
10229 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10230 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10231 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10232 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10233 if more than 1 allocate also extra payload at the end of array. Never
10234 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10235 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10236 return true instead of ws.
10237 * Makefile.in: Regenerated.
10238 * configure: Regenerated.
10239 * config.h.in: Regenerated.
10240 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10242 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10243 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10244 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10245 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10246 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10247 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10248 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10249 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10250 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10251 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10252 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10253 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10254 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10255 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10256 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10257 define a different N(test), don't define N(f0) to N(f14), but instead
10258 define N(f20) to N(f34) using != comparisons.
10259 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10260 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10261 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10262 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10263 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10264 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10265 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10266 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10267 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10268 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10269 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10270 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10271 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10272 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10273 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10274 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10275 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10276 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10277 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10278 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10279 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10280 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10281 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10282 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10283 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10284 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10285 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10286 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10287 * testsuite/libgomp.c++/depend-1.C: New test.
10288 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10289 * testsuite/libgomp.c++/depobj-1.C: New test.
10290 * testsuite/libgomp.c++/for-16.C: New test.
10291 * testsuite/libgomp.c++/for-21.C: New test.
10292 * testsuite/libgomp.c++/for-22.C: New test.
10293 * testsuite/libgomp.c++/for-23.C: New test.
10294 * testsuite/libgomp.c++/for-24.C: New test.
10295 * testsuite/libgomp.c++/for-25.C: New test.
10296 * testsuite/libgomp.c++/for-26.C: New test.
10297 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10298 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10299 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10300 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10301 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10302 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10303 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10304 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10305 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10306 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10307 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10308 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10309 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10310 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10311 * testsuite/libgomp.c/task-reduction-1.c: New test.
10312 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10313 * testsuite/libgomp.c/task-reduction-2.c: New test.
10314 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10315 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10316 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10317 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10318 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10319 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10320 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10321 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10322 * testsuite/libgomp.c/teams-1.c: New test.
10323 * testsuite/libgomp.c/teams-2.c: New test.
10324 * testsuite/libgomp.c/thread-limit-4.c: New test.
10325 * testsuite/libgomp.c/thread-limit-5.c: New test.
10326 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10328 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10330 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10331 acc_memcpy_to/from_device functions, now with async parameter.
10332 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10333 (acc_memcpy_from_device): Likewise.
10334 (acc_memcpy_to_device_async): New API function.
10335 (acc_memcpy_from_device_async): Likewise.
10336 (present_create_copy): Add async parameter and async setting/unsetting.
10337 (acc_create): Adjust present_create_copy call.
10338 (acc_copyin): Likewise.
10339 (acc_present_or_create): Likewise.
10340 (acc_present_or_copyin): Likewise.
10341 (acc_create_async): New API function.
10342 (acc_copyin_async): New API function.
10343 (delete_copyout): Add async parameter and async setting/unsetting.
10344 (acc_delete): Adjust delete_copyout call.
10345 (acc_copyout): Likewise.
10346 (acc_delete_async): New API function.
10347 (acc_copyout_async): Likewise.
10348 (update_dev_host): Add async parameter and async setting/unsetting.
10349 (acc_update_device): Adjust update_dev_host call.
10350 (acc_update_self): Likewise.
10351 (acc_update_device_async): New API function.
10352 (acc_update_self_async): Likewise.
10353 * openacc.h (acc_copyin_async): Declare new API function.
10354 (acc_create_async): Likewise.
10355 (acc_copyout_async): Likewise.
10356 (acc_delete_async): Likewise.
10357 (acc_update_device_async): Likewise.
10358 (acc_update_self_async): Likewise.
10359 (acc_memcpy_to_device_async): Likewise.
10360 (acc_memcpy_from_device_async): Likewise.
10361 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10362 (acc_copyin_async_64_h): New subroutine.
10363 (acc_copyin_async_array_h): New subroutine.
10364 (acc_create_async_32_h): New subroutine.
10365 (acc_create_async_64_h): New subroutine.
10366 (acc_create_async_array_h): New subroutine.
10367 (acc_copyout_async_32_h): New subroutine.
10368 (acc_copyout_async_64_h): New subroutine.
10369 (acc_copyout_async_array_h): New subroutine.
10370 (acc_delete_async_32_h): New subroutine.
10371 (acc_delete_async_64_h): New subroutine.
10372 (acc_delete_async_array_h): New subroutine.
10373 (acc_update_device_async_32_h): New subroutine.
10374 (acc_update_device_async_64_h): New subroutine.
10375 (acc_update_device_async_array_h): New subroutine.
10376 (acc_update_self_async_32_h): New subroutine.
10377 (acc_update_self_async_64_h): New subroutine.
10378 (acc_update_self_async_array_h): New subroutine.
10379 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10380 (acc_copyin_async_64_h): New subroutine.
10381 (acc_copyin_async_array_h): New subroutine.
10382 (acc_create_async_32_h): New subroutine.
10383 (acc_create_async_64_h): New subroutine.
10384 (acc_create_async_array_h): New subroutine.
10385 (acc_copyout_async_32_h): New subroutine.
10386 (acc_copyout_async_64_h): New subroutine.
10387 (acc_copyout_async_array_h): New subroutine.
10388 (acc_delete_async_32_h): New subroutine.
10389 (acc_delete_async_64_h): New subroutine.
10390 (acc_delete_async_array_h): New subroutine.
10391 (acc_update_device_async_32_h): New subroutine.
10392 (acc_update_device_async_64_h): New subroutine.
10393 (acc_update_device_async_array_h): New subroutine.
10394 (acc_update_self_async_32_h): New subroutine.
10395 (acc_update_self_async_64_h): New subroutine.
10396 (acc_update_self_async_array_h): New subroutine.
10397 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10398 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10399 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10400 acc_memcpy_to_device_async*, acc_update_device_async*, and
10401 acc_update_self_async* entries.
10402 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10403 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10404 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10406 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10409 * Makefile.am: Include multilib.am
10410 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10411 (CLEANFILES): Remove libgomp.info.
10412 * configure.ac: Remove AC_PREREQ.
10413 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10414 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10417 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10418 Julian Brown <julian@codesourcery.com>
10420 * testsuite/libgomp.oacc-c++/this.C: New.
10422 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10424 * plugin/plugin-nvptx.c (struct cuda_map): New.
10425 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10426 h_tail with (cuda_map *) map.
10427 (cuda_map_create): New function.
10428 (cuda_map_destroy): New function.
10429 (map_init): Update to use a linked list of cuda_map objects.
10430 (map_fini): Likewise.
10431 (map_pop): Likewise.
10432 (map_push): Likewise. Return CUdeviceptr instead of void.
10433 (init_streams_for_device): Remove stales references to ptx_stream
10435 (select_stream_for_async): Likewise.
10436 (nvptx_exec): Update call to map_init.
10438 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10439 Julian Brown <julian@codesourcery.com>
10441 PR middle-end/86336
10442 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10444 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10445 Thomas Koenig <tkoenig@gcc.gnu.org>
10448 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10449 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10450 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10451 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10452 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10453 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10454 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10456 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10457 Tom de Vries <tdevries@suse.de>
10460 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10461 (cuOccupancyMaxPotentialBlockSize): Declare.
10462 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10463 CUDA_ONE_CALL_MAYBE_NULL.
10464 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10465 CUoccupancyB2DSize and declare
10466 cuOccupancyMaxPotentialBlockSize.
10467 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10468 default num_gangs and num_workers when the driver supports it.
10470 2018-08-08 Tom de Vries <tdevries@suse.de>
10472 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10473 CUDA_ONE_CALL_MAYBE_NULL.
10474 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10475 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10476 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10479 2018-08-08 Tom de Vries <tdevries@suse.de>
10481 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10482 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10485 2018-08-08 Tom de Vries <tdevries@suse.de>
10487 * plugin/plugin-nvptx.c
10488 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10489 (nvptx_open_device): Use
10490 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10492 2018-08-08 Tom de Vries <tdevries@suse.de>
10494 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10495 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10497 2018-08-07 Tom de Vries <tdevries@suse.de>
10499 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10500 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10501 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10502 corresponding call in CUDA_ONE_CALL. Add def/undef of
10503 CUDA_ONE_CALL_MAYBE_NULL.
10504 (CUDA_CALL_EXISTS): Define.
10506 2018-08-07 Tom de Vries <tdevries@suse.de>
10508 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10509 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10510 corresponding undefs right after.
10512 2018-08-04 Tom de Vries <tdevries@suse.de>
10514 * plugin/configfrag.ac: For --without-cuda-driver, set
10515 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10516 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10517 * configure: Regenerate.
10519 2018-08-02 Tom de Vries <tdevries@suse.de>
10522 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10523 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10524 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10526 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10527 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10528 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10530 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10531 Thomas Schwinge <thomas@codesourcery.com>
10533 * config/nvptx/oacc-parallel.c: Truncate.
10535 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10536 James Norris <jnorris@codesourcery.com>
10538 * plugin/plugin-nvptx.c (struct map): Removed.
10539 (map_init, map_pop): Remove use of struct map.
10540 (map_push): Likewise and change argument list.
10541 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10543 2018-08-01 Tom de Vries <tdevries@suse.de>
10545 * plugin/cuda-lib.def: New file. Factor out of ...
10546 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10547 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10550 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10552 Revert 'AsyncI/O patch committed'.
10553 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10554 Thomas Koenig <tkoenig@gcc.gnu.org>
10557 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10558 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10559 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10560 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10561 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10562 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10563 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10565 2018-07-30 Tom de Vries <tdevries@suse.de>
10567 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10568 (nvptx_exec): Ensure worker and vector default dims don't exceed
10569 targ_fn->max_threads_per_block.
10571 2018-07-30 Tom de Vries <tdevries@suse.de>
10573 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10574 (nvptx_open_device): Init default_dims for device.
10575 (nvptx_exec): Use default_dims from device.
10577 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10580 * testsuite/libgomp.c++/for-15.C (results): Include it in
10581 omp declare target region.
10582 (main): Use map (always, tofrom: results) instead of
10583 map (tofrom: results).
10585 PR middle-end/86660
10586 * testsuite/libgomp.c/pr86660.c: New test.
10588 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10589 Tom de Vries <tdevries@suse.de>
10591 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10592 sufficient resources to launch a kernel, and give a hint on how to fix
10595 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10596 Tom de Vries <tdevries@suse.de>
10598 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10599 max_threads_per_block and max_threads_per_multiprocessor fields.
10600 (nvptx_open_device): Initialize new fields.
10601 (nvptx_exec): Use num_sms, and new fields.
10603 2018-07-26 Tom de Vries <tdevries@suse.de>
10605 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10606 to correct locations. Remove xfail.
10608 2018-07-26 Tom de Vries <tdevries@suse.de>
10610 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10611 acc_wait. Move acc_async_test calls to correct locations. Remove
10614 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10615 Thomas Koenig <tkoenig@gcc.gnu.org>
10618 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10619 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10620 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10621 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10622 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10623 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10624 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10626 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10628 PR middle-end/86542
10629 * testsuite/libgomp.c++/pr86542.C: New test.
10631 PR middle-end/86539
10632 * testsuite/libgomp.c++/pr86539.C: New test.
10634 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10637 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10638 (results): Make sure the variable is not inside declare target region.
10639 (qux): Remove unused function.
10641 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10644 * testsuite/libgomp.c++/for-15.C: New test.
10646 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10649 * testsuite/libgomp.c++/pr86291.C: New test.
10651 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10653 * libgomp.texi (Top): Move www.openmp.org to https.
10654 (Enabling OpenMP): Ditto.
10655 (omp_get_active_level): Ditto.
10656 (omp_get_ancestor_thread_num): Ditto.
10657 (omp_get_cancellation): Ditto.
10658 (omp_get_default_device): Ditto.
10659 (omp_get_dynamic): Ditto.
10660 (omp_get_level): Ditto.
10661 (omp_get_max_active_levels): Ditto.
10662 (omp_get_max_task_priority): Ditto.
10663 (omp_get_max_threads): Ditto.
10664 (omp_get_nested): Ditto.
10665 (omp_get_num_devices): Ditto.
10666 (omp_get_num_procs): Ditto.
10667 (omp_get_num_teams): Ditto.
10668 (omp_get_num_threads): Ditto.
10669 (omp_get_proc_bind): Ditto.
10670 (omp_get_schedule): Ditto.
10671 (omp_get_team_num): Ditto.
10672 (omp_get_team_size): Ditto.
10673 (omp_get_thread_limit): Ditto.
10674 (omp_get_thread_num): Ditto.
10675 (omp_in_parallel): Ditto.
10676 (omp_in_final): Ditto.
10677 (omp_is_initial_device): Ditto.
10678 (omp_set_default_device): Ditto.
10679 (omp_set_dynamic): Ditto.
10680 (omp_set_max_active_levels): Ditto.
10681 (omp_set_nested): Ditto.
10682 (omp_set_num_threads): Ditto.
10683 (omp_set_schedule): Ditto.
10684 (omp_init_lock): Ditto.
10685 (omp_set_lock): Ditto.
10686 (omp_test_lock): Ditto.
10687 (omp_unset_lock): Ditto.
10688 (omp_destroy_lock): Ditto.
10689 (omp_init_nest_lock): Ditto.
10690 (omp_set_nest_lock): Ditto.
10691 (omp_test_nest_lock): Ditto.
10692 (omp_unset_nest_lock): Ditto.
10693 (omp_destroy_nest_lock): Ditto.
10694 (omp_get_wtick): Ditto.
10695 (omp_get_wtime): Ditto.
10696 (OMP_CANCELLATION): Ditto.
10697 (OMP_DISPLAY_ENV): Ditto.
10698 (OMP_DEFAULT_DEVICE): Ditto.
10699 (OMP_DYNAMIC): Ditto.
10700 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10701 (OMP_MAX_TASK_PRIORITY): Ditto.
10702 (OMP_NESTED): Ditto.
10703 (OMP_NUM_THREADS): Ditto.
10704 (OMP_PROC_BIND): Ditto.
10705 (OMP_PLACES): Ditto.
10706 (OMP_STACKSIZE): Ditto.
10707 (OMP_SCHEDULE): Ditto.
10708 (OMP_THREAD_LIMIT): Ditto.
10709 (OMP_WAIT_POLICY): Ditto.
10711 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10712 James Norris <jnorris@codesourcery.com>
10713 Julian Brown <julian@codesourcery.com>
10714 Thomas Schwinge <thomas@codesourcery.com>
10715 Tom de Vries <tom@codesourcery.com>
10717 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10718 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10719 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10720 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10721 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10722 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10723 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10724 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10725 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10726 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10728 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10730 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10732 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10734 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10736 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10738 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10740 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10742 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10744 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10746 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10748 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10778 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10780 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10781 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10782 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10783 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10784 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10785 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10786 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10787 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10788 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10790 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10792 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10793 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10794 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10796 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10797 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10798 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10806 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10808 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10810 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10812 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10814 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10816 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10818 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10820 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10822 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10824 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10826 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10828 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10829 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10830 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10831 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10832 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10833 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10834 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10836 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10837 Thomas Schwinge <thomas@codesourcery.com>
10838 Cesar Philippidis <cesar@codesourcery.com>
10840 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10841 (gomp_acc_remove_pointer): Update declaration.
10842 (gomp_acc_declare_allocate): Declare.
10843 (gomp_remove_var): Declare.
10844 * libgomp.map (OACC_2.5): Define.
10845 * oacc-mem.c (acc_map_data): Update refcount.
10846 (acc_unmap_data): Likewise.
10847 (present_create_copy): Likewise.
10848 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10849 (acc_copyin): Likewise.
10850 (FLAG_FINALIZE): Define.
10851 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10852 (acc_delete_finalize): New function.
10853 (acc_delete_finalize_async): New function.
10854 (acc_copyout_finalize): New function.
10855 (acc_copyout_finalize_async): New function.
10856 (gomp_acc_insert_pointer): Update refcounts.
10857 (gomp_acc_remove_pointer): Return if data is not present on the
10859 * oacc-parallel.c (find_pset): Rename to find_pointer.
10860 (find_pointer): Add support for GOMP_MAP_POINTER.
10861 (handle_ftn_pointers): New function.
10862 (GOACC_parallel_keyed): Update refcounts of variables.
10863 (GOACC_enter_exit_data): Add support for finalized data mappings.
10864 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10866 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10867 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10868 for GOMP_MAP_FORCE_FROM.
10869 * openacc.f90 (module openacc_internal): Add
10870 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10871 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10872 acc_copyout_finalize and acc_delete_finalize.
10873 (acc_copyout_finalize_32_h): New subroutine.
10874 (acc_copyout_finalize_64_h): New subroutine.
10875 (acc_copyout_finalize_array_h): New subroutine.
10876 (acc_delete_finalize_32_h): New subroutine.
10877 (acc_delete_finalize_64_h): New subroutine.
10878 (acc_delete_finalize_array_h): New subroutine.
10879 * openacc.h (acc_copyout_finalize): Declare.
10880 (acc_copyout_finalize_async): Declare.
10881 (acc_delete_finalize): Declare.
10882 (acc_delete_finalize_async): Declare.
10883 * openacc_lib.h (acc_copyout_finalize): New interface.
10884 (acc_delete_finalize): New interface.
10885 * target.c (gomp_map_vars): Update dynamic_refcount.
10886 (gomp_remove_var): New function.
10887 (gomp_unmap_vars): Use it.
10888 (gomp_unload_image_from_device): Likewise.
10889 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10890 case to utilize OpenACC 2.5 data clause semantics.
10891 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10892 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10893 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10894 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10895 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10896 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10897 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10898 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10899 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10900 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10901 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10902 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10903 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10904 utilize OpenACC 2.5 data clause semantics.
10905 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10906 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10907 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10908 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10909 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10910 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10911 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10912 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10913 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10915 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10919 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10920 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10921 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10922 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10923 * testsuite/libgomp.fortran/task2.f90: Ditto.
10924 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10925 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10926 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10927 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10928 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10929 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10930 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10931 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10932 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10934 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10937 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10939 2018-05-09 Tom de Vries <tom@codesourcery.com>
10942 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10943 to GOACC_enter_exit_data.
10945 2018-05-09 Tom de Vries <tom@codesourcery.com>
10948 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10949 (async_synchronous_p): New function.
10950 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10952 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10953 async_valid_stream_id_p.
10954 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10955 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10957 2018-05-07 Tom de Vries <tom@codesourcery.com>
10960 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10961 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10963 2018-05-03 Tom de Vries <tom@codesourcery.com>
10966 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10967 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10968 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10969 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10971 2018-05-02 Tom de Vries <tom@codesourcery.com>
10974 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10975 GOMP_OPENACC_DIM ...
10976 * env.c (parse_gomp_openacc_dim): ... here. New function.
10977 (initialize_env): Call parse_gomp_openacc_dim.
10978 (goacc_default_dims): Define.
10979 * libgomp.h (goacc_default_dims): Declare.
10980 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10981 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10982 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10983 GOMP_PLUGIN_acc_default_dim.
10984 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10985 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10987 2018-05-02 Tom de Vries <tom@codesourcery.com>
10990 * testsuite/libgomp.c++/udr-9.C: Update.
10991 * testsuite/libgomp.c++/atomic-16.C: Remove.
10992 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10993 * testsuite/libgomp.c++/loop-13.C: Remove.
10994 * testsuite/libgomp.c++/loop-14.C: Remove.
10995 * testsuite/libgomp.c++/loop-15.C: Remove.
10996 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10997 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10998 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10999 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11000 * testsuite/libgomp.c++/ordered-1.C: Remove.
11001 * testsuite/libgomp.c++/pr45784.C: Remove.
11002 * testsuite/libgomp.c++/pr64824.C: Remove.
11003 * testsuite/libgomp.c++/pr64868.C: Remove.
11004 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11005 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11006 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11007 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11008 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11009 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11010 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11011 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11012 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11013 * testsuite/libgomp.c++/pr69389.C: Remove.
11014 * testsuite/libgomp.c++/simd10.C: Remove.
11015 * testsuite/libgomp.c++/simd11.C: Remove.
11016 * testsuite/libgomp.c++/simd12.C: Remove.
11017 * testsuite/libgomp.c++/simd13.C: Remove.
11018 * testsuite/libgomp.c++/target-1.C: Remove.
11019 * testsuite/libgomp.c++/target-3.C: Remove.
11020 * testsuite/libgomp.c++/target-4.C: Remove.
11021 * testsuite/libgomp.c++/target-5.C: Remove.
11022 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11023 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11024 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11025 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11026 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11027 * testsuite/libgomp.c++/udr-9.C: Remove.
11028 * testsuite/libgomp.c++/for-10.C: Remove.
11029 * testsuite/libgomp.c++/for-11.C: Remove.
11030 * testsuite/libgomp.c++/for-12.C: Remove.
11031 * testsuite/libgomp.c++/for-13.C: Remove.
11032 * testsuite/libgomp.c++/for-14.C: Remove.
11033 * testsuite/libgomp.c++/for-9.C: Remove.
11034 * testsuite/libgomp.c/atomic-18.c: Move ...
11035 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11036 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11037 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11038 * testsuite/libgomp.c/loop-13.c: Move ...
11039 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11040 * testsuite/libgomp.c/loop-14.c: Move ...
11041 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11042 * testsuite/libgomp.c/loop-15.c: Remove.
11043 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11044 * testsuite/libgomp.c/monotonic-1.c: Move ...
11045 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11046 * testsuite/libgomp.c/monotonic-2.c: Move ...
11047 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11048 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11049 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11050 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11051 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11052 * testsuite/libgomp.c/ordered-4.c: Move ...
11053 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11054 * testsuite/libgomp.c/pr45784.c: Move ...
11055 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11056 * testsuite/libgomp.c/pr64824.c: Move ...
11057 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11058 * testsuite/libgomp.c/pr64868.c: Move ...
11059 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11060 * testsuite/libgomp.c/pr66199-1.c: Move ...
11061 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11062 * testsuite/libgomp.c/pr66199-2.c: Move ...
11063 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11064 * testsuite/libgomp.c/pr66199-3.c: Move ...
11065 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11066 * testsuite/libgomp.c/pr66199-4.c: Move ...
11067 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11068 * testsuite/libgomp.c/pr66199-5.c: Move ...
11069 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11070 * testsuite/libgomp.c/pr66199-6.c: Move ...
11071 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11072 * testsuite/libgomp.c/pr66199-7.c: Move ...
11073 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11074 * testsuite/libgomp.c/pr66199-8.c: Move ...
11075 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11076 * testsuite/libgomp.c/pr66199-9.c: Move ...
11077 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11078 * testsuite/libgomp.c/pr69389.c: Move ...
11079 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11080 * testsuite/libgomp.c/simd-14.c: Move ...
11081 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11082 * testsuite/libgomp.c/simd-15.c: Move ...
11083 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11084 * testsuite/libgomp.c/simd-16.c: Move ...
11085 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11086 * testsuite/libgomp.c/simd-17.c: Move ...
11087 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11088 * testsuite/libgomp.c/target-1.c: Move ...
11089 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11090 * testsuite/libgomp.c/target-10.c: Move ...
11091 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11092 * testsuite/libgomp.c/target-13.c: Move ...
11093 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11094 * testsuite/libgomp.c/target-2.c: Move ...
11095 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11096 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11097 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11098 * testsuite/libgomp.c/taskloop-1.c: Move ...
11099 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11100 * testsuite/libgomp.c/taskloop-2.c: Move ...
11101 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11102 * testsuite/libgomp.c/taskloop-3.c: Move ...
11103 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11104 * testsuite/libgomp.c/taskloop-4.c: Move ...
11105 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11106 * testsuite/libgomp.c/udr-1.c: Move ...
11107 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11108 * testsuite/libgomp.c/for-1.c: Move ...
11109 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11110 * testsuite/libgomp.c/for-1.h: Move ...
11111 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11112 * testsuite/libgomp.c/for-2.c: Move ...
11113 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11114 * testsuite/libgomp.c/for-2.h: Move ...
11115 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11116 * testsuite/libgomp.c/for-3.c: Move ...
11117 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11118 * testsuite/libgomp.c/for-4.c: Move ...
11119 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11120 * testsuite/libgomp.c/for-5.c: Move ...
11121 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11122 * testsuite/libgomp.c/for-6.c: Move ...
11123 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11125 2018-05-02 Tom de Vries <tom@codesourcery.com>
11128 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11129 __builtin_goacc_parlevel_{id,size}.
11130 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11131 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11132 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11133 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11134 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11135 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11136 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11137 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11138 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11139 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11140 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11141 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11142 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11143 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11144 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11145 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11146 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11147 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11148 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11149 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11150 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11151 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11152 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11154 2018-05-02 Tom de Vries <tom@codesourcery.com>
11157 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11159 2018-05-02 Tom de Vries <tom@codesourcery.com>
11162 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11164 2018-04-29 Julian Brown <julian@codesourcery.com>
11165 Tom de Vries <tom@codesourcery.com>
11168 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11169 arbitrary order for iterations of atomic subtract check.
11171 2018-04-28 Tom de Vries <tom@codesourcery.com>
11174 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11175 atomic capture results obtained in parallel loop to an array, instead of
11178 2018-04-26 Tom de Vries <tom@codesourcery.com>
11181 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11182 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11183 (process_GOMP_NVPTX_JIT): New function.
11184 (link_ptx): Use process_GOMP_NVPTX_JIT.
11186 2018-04-26 Richard Biener <rguenther@suse.de>
11187 Tom de Vries <tom@codesourcery.com>
11190 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11192 2018-04-26 Tom de Vries <tom@codesourcery.com>
11195 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11196 recursion depth from 25 to 23.
11197 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11199 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11201 * configure: Regenerated.
11203 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11204 Tom de Vries <tom@codesourcery.com>
11207 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11209 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11212 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11213 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11214 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11215 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11216 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11217 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11219 PR libfortran/85166
11220 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11222 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11224 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11226 * configure: Regenerated.
11228 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11231 * configure: Regenerate.
11233 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11234 Tom de Vries <tom@codesourcery.com>
11236 PR middle-end/84955
11237 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11238 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11240 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11244 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11245 test from gfortran.dg to here.
11247 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11249 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11250 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11252 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11254 PR middle-end/84955
11255 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11256 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11258 2018-04-05 Tom de Vries <tom@codesourcery.com>
11261 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11263 2018-03-26 Tom de Vries <tom@codesourcery.com>
11265 PR tree-optimization/85063
11266 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11267 * testsuite/libgomp.c/switch-conversion.c: New test.
11268 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11269 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11271 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11274 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11275 call abort by STOP n.
11276 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11277 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11278 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11279 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11280 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11281 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11282 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11283 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11284 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11285 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11286 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11287 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11288 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11289 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11290 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11291 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11292 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11293 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11294 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11295 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11296 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11297 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11298 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11299 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11300 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11301 * testsuite/libgomp.fortran/character1.f90: Likewise.
11302 * testsuite/libgomp.fortran/character2.f90: Likewise.
11303 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11304 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11305 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11306 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11307 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11308 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11309 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11310 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11311 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11312 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11313 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11314 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11315 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11316 * testsuite/libgomp.fortran/do1.f90: Likewise.
11317 * testsuite/libgomp.fortran/do2.f90: Likewise.
11318 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11319 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11320 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11321 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11322 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11323 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11324 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11325 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11326 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11327 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11328 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11329 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11330 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11331 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11332 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11333 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11334 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11335 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11336 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11337 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11338 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11339 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11340 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11341 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11342 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11343 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11344 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11345 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11346 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11347 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11348 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11349 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11350 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11351 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11352 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11353 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11354 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11355 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11356 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11357 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11358 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11359 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11360 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11361 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11362 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11363 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11364 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11365 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11366 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11367 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11368 * testsuite/libgomp.fortran/lib2.f: Likewise.
11369 * testsuite/libgomp.fortran/lib3.f: Likewise.
11370 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11371 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11372 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11373 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11374 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11375 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11376 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11377 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11378 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11379 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11380 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11381 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11382 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11383 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11384 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11385 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11386 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11387 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11388 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11389 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11390 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11391 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11392 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11393 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11394 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11395 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11396 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11397 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11398 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11399 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11400 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11401 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11402 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11403 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11404 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11405 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11406 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11407 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11408 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11409 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11410 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11411 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11412 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11413 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11414 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11415 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11416 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11417 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11418 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11419 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11420 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11421 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11422 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11423 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11424 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11425 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11426 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11427 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11428 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11429 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11430 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11431 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11432 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11433 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11434 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11435 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11436 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11437 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11438 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11439 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11440 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11441 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11442 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11443 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11444 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11445 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11446 * testsuite/libgomp.fortran/stack.f90: Likewise.
11447 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11448 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11449 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11450 * testsuite/libgomp.fortran/target1.f90: Likewise.
11451 * testsuite/libgomp.fortran/target2.f90: Likewise.
11452 * testsuite/libgomp.fortran/target3.f90: Likewise.
11453 * testsuite/libgomp.fortran/target4.f90: Likewise.
11454 * testsuite/libgomp.fortran/target5.f90: Likewise.
11455 * testsuite/libgomp.fortran/target6.f90: Likewise.
11456 * testsuite/libgomp.fortran/target7.f90: Likewise.
11457 * testsuite/libgomp.fortran/target8.f90: Likewise.
11458 * testsuite/libgomp.fortran/task1.f90: Likewise.
11459 * testsuite/libgomp.fortran/task2.f90: Likewise.
11460 * testsuite/libgomp.fortran/task3.f90: Likewise.
11461 * testsuite/libgomp.fortran/task4.f90: Likewise.
11462 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11463 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11464 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11465 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11466 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11467 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11468 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11469 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11470 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11471 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11472 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11473 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11474 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11475 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11476 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11477 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11478 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11479 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11480 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11481 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11482 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11483 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11484 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11485 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11486 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11487 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11488 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11489 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11490 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11491 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11492 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11493 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11494 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11495 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11496 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11497 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11498 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11499 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11500 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11501 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11502 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11503 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11504 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11505 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11506 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11507 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11508 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11509 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11510 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11511 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11512 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11513 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11514 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11515 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11516 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11517 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11518 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11519 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11520 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11521 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11522 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11523 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11524 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11525 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11526 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11527 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11528 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11529 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11530 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11531 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11532 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11533 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11534 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11535 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11536 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11537 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11538 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11539 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11540 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11541 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11542 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11543 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11544 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11545 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11546 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11547 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11548 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11549 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11550 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11551 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11552 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11553 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11554 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11555 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11556 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11557 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11558 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11559 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11560 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11561 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11562 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11563 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11564 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11565 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11566 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11567 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11568 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11569 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11570 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11571 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11572 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11573 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11574 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11575 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11576 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11577 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11578 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11579 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11580 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11581 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11582 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11583 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11584 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11585 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11586 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11587 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11589 2018-03-20 Richard Biener <rguenther@suse.de>
11591 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11592 parallelizable loop.
11594 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11597 * configure: Regenerate.
11599 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11602 * libgomp.fortran/pr84418-1.f90: New test.
11603 * libgomp.fortran/pr84418-2.f90: New test.
11605 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11608 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11609 -std=f2003 -fall-intrinsics into dg-additional-options.
11611 2018-02-08 Martin Jambor <mjambor@suse.cz>
11613 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11616 2018-02-08 Martin Jambor <mjambor@suse.cz>
11618 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11620 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11622 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11623 [__cplusplus]: Declare extern "C".
11625 2018-02-07 Tom de Vries <tom@codesourcery.com>
11628 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11630 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11631 Jakub Jelinek <jakub@redhat.com>
11634 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11635 instead of omp_lock_t.
11637 2018-01-25 Tom de Vries <tom@codesourcery.com>
11640 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11642 2018-01-24 Tom de Vries <tom@codesourcery.com>
11645 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11647 2018-01-24 Tom de Vries <tom@codesourcery.com>
11650 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11652 2018-01-19 Tom de Vries <tom@codesourcery.com>
11653 Cesar Philippidis <cesar@codesourcery.com>
11656 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11657 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11659 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11661 Update copyright years.
11663 * libgomp.texi: Bump @copying's copyright year.
11665 2017-12-30 Tom de Vries <tom@codesourcery.com>
11668 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11669 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11671 2017-12-27 Tom de Vries <tom@codesourcery.com>
11674 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11675 (test_nonstatic): Fix return type to workaround PR83046.
11677 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11680 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11681 j suffix instead of i.
11682 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11685 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11687 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11688 call to acc_wait (1).
11690 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11693 * testsuite/libgomp.fortran/pr81304.f90: New test.
11695 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11698 * libgomp.fortran/pr81841.f90: New test.
11700 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11703 * target.c (gomp_target_init): Compute lengths just once and
11704 use them in both malloc size and subsequent copying.
11706 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11708 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11709 * acinclude.m4: Add cet.m4.
11710 * configure: Regenerate.
11711 * Makefile.in: Likewise.
11712 * testsuite/Makefile.in: Likewise.
11714 2017-11-15 Tom de Vries <tom@codesourcery.com>
11716 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11717 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11718 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11719 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11720 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11721 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11723 2017-11-14 Tom de Vries <tom@codesourcery.com>
11725 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11726 non-nvidia devices.
11728 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11731 * testsuite/libgomp.c++/pr82835.C: New test.
11733 2017-11-06 Martin Liska <mliska@suse.cz>
11735 * testsuite/libgomp.c++/loop-2.C: Return a value
11736 for functions with non-void return type, or change type to void,
11737 or add -Wno-return-type for test.
11738 * testsuite/libgomp.c++/loop-4.C: Likewise.
11739 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11740 * testsuite/libgomp.c++/shared-1.C: Likewise.
11741 * testsuite/libgomp.c++/single-1.C: Likewise.
11742 * testsuite/libgomp.c++/single-2.C: Likewise.
11744 2017-10-31 Tom de Vries <tom@codesourcery.com>
11746 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11747 "do {} while (false)".
11748 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11749 after HSA_DEBUG call.
11751 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11753 * target.c (struct gomp_coalesce_buf): New type.
11754 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11755 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11756 (gomp_copy_host2dev): Add CBUF argument, if copying into
11757 the cached ranges, memcpy into buffer instead of copying
11759 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11760 Add CBUF argument, pass it through to other calls.
11761 (gomp_map_vars): Aggregate copies from host to device if small enough
11762 and with small enough gaps in between into memcpy into a buffer and
11763 fewer host to device copies from the buffer.
11764 (gomp_update): Adjust gomp_copy_host2dev caller.
11766 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11768 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11770 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11771 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11772 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11773 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11775 2017-10-16 Tom de Vries <tom@codesourcery.com>
11777 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11778 openacc_nvidia_accel_selected.
11779 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11780 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11781 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11782 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11783 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11784 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11785 openacc_nvidia_accel_selected. Skip for shared memory device.
11786 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11787 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11789 2017-10-09 Martin Jambor <mjambor@suse.cz>
11792 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11794 2017-10-07 Tom de Vries <tom@codesourcery.com>
11796 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11797 Remove acc_device_nvidia references.
11798 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11801 2017-10-05 Tom de Vries <tom@codesourcery.com>
11803 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11804 vector_length(32) clause from acc parallel directive.
11805 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11807 2017-10-04 Tom de Vries <tom@codesourcery.com>
11809 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11810 (main): Reduce sum of arr elements. Assert that hres is exactly
11811 representable in 32-bit floating point.
11812 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11813 (main): Reduce sum of arr elements. Assert that hres and hmres are
11814 exactly representable in 32-bit floating point.
11815 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11817 2017-09-28 Tom de Vries <tom@codesourcery.com>
11819 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11821 * testsuite/libgomp.c++/pr69393.C: Same.
11822 * testsuite/libgomp.c++/taskloop-1.C: Same.
11823 * testsuite/libgomp.c++/taskloop-3.C: Same.
11824 * testsuite/libgomp.c++/taskloop-4.C: Same.
11825 * testsuite/libgomp.c/for-4.c: Same.
11826 * testsuite/libgomp.c/pr66199-3.c: Same.
11827 * testsuite/libgomp.c/pr66199-4.c: Same.
11828 * testsuite/libgomp.c/pr66199-6.c: Same.
11829 * testsuite/libgomp.c/taskloop-1.c: Same.
11830 * testsuite/libgomp.c/taskloop-3.c: Same.
11831 * testsuite/libgomp.c/taskloop-4.c: Same.
11832 * testsuite/libgomp.fortran/aligned1.f03: Same.
11833 * testsuite/libgomp.fortran/condinc1.f: Same.
11834 * testsuite/libgomp.fortran/condinc3.f90: Same.
11835 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11836 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11837 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11838 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11839 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11840 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11841 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11842 * testsuite/libgomp.fortran/recursion1.f90: Same.
11843 * testsuite/libgomp.fortran/target2.f90: Same.
11844 * testsuite/libgomp.fortran/target5.f90: Same.
11845 * testsuite/libgomp.fortran/task3.f90: Same.
11847 2017-09-28 Tom de Vries <tom@codesourcery.com>
11849 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11850 vector_length(32) clause from acc parallel directive.
11851 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11853 2017-09-27 Tom de Vries <tom@codesourcery.com>
11855 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11856 Remove acc_device_nvidia references.
11858 2017-09-16 Tom de Vries <tom@codesourcery.com>
11861 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11863 2017-09-14 Tom de Vries <tom@codesourcery.com>
11865 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11866 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11867 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11868 * testsuite/libgomp.c/c.exp: Include test-cases from
11869 libgomp.c-c++-common.
11870 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11873 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11876 * testsuite/libgomp.c++/pr81314.C: New test.
11878 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11880 * libgomp.texi (Top): www.openacc.org now uses https.
11881 (Enabling OpenACC): Ditto.
11882 (acc_get_num_devices): Ditto.
11883 (acc_set_device_type): Ditto.
11884 (acc_get_device_type): Ditto.
11885 (acc_set_device_num): Ditto.
11886 (acc_get_device_num): Ditto.
11887 (acc_async_test): Ditto.
11888 (acc_async_test_all): Ditto.
11890 (acc_wait_all): Ditto.
11891 (acc_wait_all_async): Ditto.
11892 (acc_wait_async): Ditto.
11894 (acc_shutdown): Ditto.
11895 (acc_on_device): Ditto.
11896 (acc_malloc): Ditto.
11898 (acc_copyin): Ditto.
11899 (acc_present_or_copyin): Ditto.
11900 (acc_create): Ditto.
11901 (acc_present_or_create): Ditto.
11902 (acc_copyout): Ditto.
11903 (acc_delete): Ditto.
11904 (acc_update_device): Ditto.
11905 (acc_update_self): Ditto.
11906 (acc_map_data): Ditto.
11907 (acc_unmap_data): Ditto.
11908 (acc_deviceptr): Ditto.
11909 (acc_hostptr): Ditto.
11910 (acc_is_present): Ditto.
11911 (acc_memcpy_to_device): Ditto.
11912 (acc_memcpy_from_device): Ditto.
11913 (acc_get_current_cuda_device): Ditto.
11914 (acc_get_current_cuda_context): Ditto.
11915 (acc_get_cuda_stream): Ditto.
11916 (acc_set_cuda_stream): Ditto.
11917 (ACC_DEVICE_TYPE): Ditto.
11918 (ACC_DEVICE_NUM): Ditto.
11919 (OpenACC Library Interoperability): Ditto.
11921 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11924 * testsuite/libgomp.c/pr81687-1.c: New test.
11925 * testsuite/libgomp.c/pr81687-2.c: New test.
11927 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11930 * testsuite/libgomp.c/pr69389.c: New test.
11931 * testsuite/libgomp.c++/pr69389.C: New test.
11933 2017-08-07 Tom de Vries <tom@codesourcery.com>
11935 PR middle-end/78266
11936 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11937 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11939 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11942 * testsuite/libgomp.c/pr45784.c: New test.
11943 * testsuite/libgomp.c++/pr45784.C: New test.
11945 2017-07-19 Tom de Vries <tom@codesourcery.com>
11947 * testsuite/libgomp.oacc-c/vec.c: New test.
11949 2017-07-03 Tom de Vries <tom@codesourcery.com>
11951 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11953 2017-06-27 Tom de Vries <tom@codesourcery.com>
11955 * plugin/plugin-nvptx.c (notify_var): New function.
11956 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11958 2017-06-27 Tom de Vries <tom@codesourcery.com>
11960 * env.c (parse_unsigned_long_1): Factor out of ...
11961 (parse_unsigned_long): ... here.
11962 (parse_int_1): Factor out of ...
11963 (parse_int): ... here.
11964 (parse_int_secure): New function.
11965 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11966 * secure_getenv.h: Factor out of ...
11967 * plugin/plugin-hsa.c: ... here.
11968 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11970 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11973 * testsuite/libgomp.c++/pr81130.C: New test.
11975 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11977 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11979 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11980 dg-xfail-run-if default args.
11982 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11984 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11985 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11987 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11990 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11991 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11992 sibling lists, depending on level just pick up what CPUs to put
11993 together into a place vs. whether add multiple ordered places.
11995 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11997 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11998 * libgomp.map (OACC_2.0.1): Add these.
11999 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12000 for "acc_wait", and "acc_wait_all", respectively.
12001 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12002 for "acc_wait", and "acc_wait_all", respectively.
12003 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12004 * libgomp.texi (acc_wait, acc_wait_all): Update.
12005 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12006 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12007 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12009 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12010 acc_present_or_copyin and acc_present_or_create procedures,
12012 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12013 generally different variants of OpenACC Runtime Library functions.
12014 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12016 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12017 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12019 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12020 of preprocessor definitions.
12021 * libgomp.h (strong_alias): Guard by "#ifdef
12022 HAVE_ATTRIBUTE_ALIAS".
12023 * oacc-mem.c: Provide "acc_pcreate" as alias for
12024 "acc_present_or_create", and "acc_pcopyin" as alias for
12025 "acc_present_or_copyin".
12026 * libgomp.map: New version "OACC_2.0.1".
12027 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12028 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12029 its content into...
12030 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12033 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12034 when disabling nvptx offloading.
12036 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12038 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12039 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12040 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12042 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12043 * testsuite/lib/libgomp.exp
12044 (check_effective_target_openacc_nvidia_accel_configured): New
12046 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12047 (check_effective_target_c++): New procs.
12048 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12049 (check_effective_target_c++): Likewise.
12051 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12053 PR middle-end/80809
12054 * testsuite/libgomp.c/pr80809-2.c: New test.
12055 * testsuite/libgomp.c/pr80809-3.c: New test.
12057 PR middle-end/80809
12058 * testsuite/libgomp.c/pr80809-1.c: New test.
12060 PR middle-end/80853
12061 * testsuite/libgomp.c/pr80853.c: New test.
12063 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12065 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12066 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12067 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12068 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12069 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12071 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12072 Debug output for failure.
12074 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12076 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12078 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12081 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12082 bootstrap compare failures.
12084 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12086 * testsuite/libgomp.c/target-36.c: New testcase.
12088 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12090 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12093 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12096 * testsuite/libgomp.c/pr80394.c: New test.
12098 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12101 * config/posix/thread-stacksize.h: New file.
12102 * config/darwin/thread-stacksize.h: New file.
12103 * config/nvptx/thread-stacksize.h: New file.
12104 * env.c: Include thread-stacksize.h.
12105 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12106 instead of 0. Call pthread_attr_setstacksize even if
12107 GOMP_DEFAULT_STACKSIZE is non-zero.
12109 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12111 * env.c (initialize_env): Initialize stacksize to 0.
12113 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12116 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12118 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12121 * testsuite/libgomp.c/pr79940.c: New test.
12123 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12125 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12127 Add __float128 options.
12129 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12131 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12132 hppa*-*-* dg-skip-if directive.
12134 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12136 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12137 dg-skip-if directive into a comment.
12139 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12140 Chung-Lin Tang <cltang@codesourcery.com>
12142 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12143 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12144 add additional case.
12145 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12146 "openacc_nvidia_accel_selected".
12147 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12148 Add num_workers(8) clause.
12150 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12152 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12154 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12155 include complex.h on hppa*-*-hpux*.
12156 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12158 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12160 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12162 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12163 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12164 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12165 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12166 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12167 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12168 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12169 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12170 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12171 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12173 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12175 * libgomp-plugin.h: #include <stdbool.h>.
12176 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12177 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12178 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12179 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12180 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12181 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12182 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12183 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12184 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12185 (GOMP_OFFLOAD_openacc_async_test)
12186 (GOMP_OFFLOAD_openacc_async_test_all)
12187 (GOMP_OFFLOAD_openacc_async_wait)
12188 (GOMP_OFFLOAD_openacc_async_wait_async)
12189 (GOMP_OFFLOAD_openacc_async_wait_all)
12190 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12191 (GOMP_OFFLOAD_openacc_async_set_async)
12192 (GOMP_OFFLOAD_openacc_create_thread_data)
12193 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12194 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12195 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12196 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12197 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12198 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12200 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12201 (GOMP_OFFLOAD_unload_image): Fix argument types.
12203 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12205 * testsuite/lib/libgomp.exp
12206 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12207 check_compile invocation. Fix up removal of executable. Drop
12208 bogus "2>&1" argument.
12210 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12213 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12214 Martin Jambor <mjambor@suse.cz>
12216 * plugin/hsa.h: Moved to top level include.
12217 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12219 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12222 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12223 of cat to get version from BASE-VER file.
12224 * testsuite/Makefile.in: Regenerated.
12226 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12228 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12231 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12233 * plugin/hsa.h: Add GCC runtime library exception.
12234 * plugin/hsa_ext_finalize.h: Likewise.
12236 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12237 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12238 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12239 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12240 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12241 library to link ptx plugin against.
12242 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12243 (CUDA_CALLS): Define.
12244 (cuda_lib, cuda_lib_inited): New variables.
12245 (init_cuda_lib): New function.
12246 (CUDA_CALL_PREFIX): Define.
12247 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12248 (CUDA_CALL): Use FN instead of (FN).
12249 (CUDA_CALL_NOCHECK): Define.
12250 (cuda_error, fini_streams_for_device, select_stream_for_async,
12251 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12252 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12253 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12254 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12256 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12258 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12259 Use CUDA_CALL_NOCHECK.
12260 * plugin/cuda/cuda.h: New file.
12261 * config.h.in: Regenerated.
12262 * configure: Regenerated.
12265 * configure.ac: Add GCC_BASE_VER.
12266 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12267 get version from BASE-VER file.
12268 * testsuite/Makefile.in: Regenerated.
12269 * configure: Regenerated.
12270 * Makefile.in: Regenerated.
12272 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12275 * Makefile.am: Make fincludedir multilib-aware.
12276 * Makefile.in: Regenerate.
12278 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12280 Update copyright years.
12282 * libgomp.texi: Bump @copying's copyright year.
12284 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12286 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12287 pthread_spinlock_t instead of gomp_mutex_t lock.
12288 (gomp_get_thread_pool): Likewise.
12289 (gomp_release_thread_pool): Likewise.
12290 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12293 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12295 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12296 thread pool in case nthreads == 1.
12298 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12300 * config/nvptx/env.c: Delete.
12301 * icv.c: Move definitions of ICV variables back ...
12302 * env.c: ...here. Do not compile environment-related functionality if
12303 LIBGOMP_OFFLOADED_ONLY is set.
12305 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12307 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12308 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12309 * configure: Regenerate.
12310 * config.h.in: Likewise.
12312 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12314 * Makefile.in: Regenerate with automake-1.11.6.
12315 * aclocal.m4: Likewise.
12316 * configure: Likewise.
12317 * testsuite/Makefile.in: Likewise.
12319 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12321 * config/nvptx/critical.c: Delete to use generic implementation.
12323 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12325 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12326 ../../affinity.c as fallback.
12327 * config/nvptx/affinity.c: Delete to use fallback implementation.
12329 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12330 Jakub Jelinek <jakub@redhat.com>
12331 Dmitry Melnik <dm@ispras.ru>
12333 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12334 * Makefile.in. Regenerate.
12335 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12336 (LIBGOMP_USE_PTHREADS): ...here; new define.
12337 * configure: Regenerate.
12338 * config.h.in: Likewise.
12339 * config/posix/affinity.c: Move to...
12340 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12341 interface by LIBGOMP_USE_PTHREADS.
12342 * critical.c: Split out GOMP_atomic_{start,end} into...
12343 * atomic.c: ...here (new file).
12344 * env.c: Split out ICV definitions into...
12345 * icv.c: ...here (new file) and...
12346 * icv-device.c: ...here. New file.
12347 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12348 (gomp_destroy_lock_30): Ditto.
12349 (gomp_set_lock_30): Ditto.
12350 (gomp_unset_lock_30): Ditto.
12351 (gomp_test_lock_30): Ditto.
12352 (gomp_init_nest_lock_30): Ditto.
12353 (gomp_destroy_nest_lock_30): Ditto.
12354 (gomp_set_nest_lock_30): Ditto.
12355 (gomp_unset_nest_lock_30): Ditto.
12356 (gomp_test_nest_lock_30): Ditto.
12358 * config/nvptx/lock.c: New.
12359 * config/nvptx/bar.c: New.
12360 * config/nvptx/bar.h: New.
12361 * config/nvptx/doacross.h: New.
12362 * config/nvptx/error.c: New.
12363 * config/nvptx/icv-device.c: New.
12364 * config/nvptx/mutex.h: New.
12365 * config/nvptx/pool.h: New.
12366 * config/nvptx/proc.c: New.
12367 * config/nvptx/ptrlock.h: New.
12368 * config/nvptx/sem.h: New.
12369 * config/nvptx/simple-bar.h: New.
12370 * config/nvptx/target.c: New.
12371 * config/nvptx/task.c: New.
12372 * config/nvptx/team.c: New.
12373 * config/nvptx/time.c: New.
12374 * config/posix/simple-bar.h: New.
12375 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12376 (gomp_num_teams_var): Declare.
12377 (struct gomp_thread_pool): Change threads_dock member to
12378 gomp_simple_barrier_t.
12379 [__nvptx__] (gomp_thread): New implementation.
12380 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12381 (gomp_thread_destructor): Ditto.
12382 (gomp_init_thread_affinity): Ditto.
12383 * team.c: Guard uses of Pthreads-specific interfaces by
12384 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12385 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12386 * config/nvptx/alloc.c: Delete.
12387 * config/nvptx/barrier.c: Ditto.
12388 * config/nvptx/fortran.c: Ditto.
12389 * config/nvptx/iter.c: Ditto.
12390 * config/nvptx/iter_ull.c: Ditto.
12391 * config/nvptx/loop.c: Ditto.
12392 * config/nvptx/loop_ull.c: Ditto.
12393 * config/nvptx/ordered.c: Ditto.
12394 * config/nvptx/parallel.c: Ditto.
12395 * config/nvptx/priority_queue.c: Ditto.
12396 * config/nvptx/sections.c: Ditto.
12397 * config/nvptx/single.c: Ditto.
12398 * config/nvptx/splay-tree.c: Ditto.
12399 * config/nvptx/work.c: Ditto.
12400 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12401 -foffload=-lgfortran in addition to -lgfortran.
12402 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12403 * plugin/plugin-nvptx.c: Include <limits.h>.
12404 (struct targ_fn_descriptor): Add new fields.
12405 (struct ptx_device): Ditto. Set them...
12406 (nvptx_open_device): ...here.
12407 (nvptx_adjust_launch_bounds): New.
12408 (nvptx_host2dev): Allow NULL 'nvthd'.
12409 (nvptx_dev2host): Ditto.
12410 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12411 (link_ptx): Adjust log sizes.
12412 (nvptx_host2dev): Allow NULL 'nvthd'.
12413 (nvptx_dev2host): Ditto.
12414 (nvptx_set_clocktick): New. Use it...
12415 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12417 (GOMP_OFFLOAD_dev2dev): New.
12418 (nvptx_adjust_launch_bounds): New.
12419 (nvptx_stacks_size): New.
12420 (nvptx_stacks_alloc): New.
12421 (nvptx_stacks_free): New.
12422 (GOMP_OFFLOAD_run): New.
12423 (GOMP_OFFLOAD_async_run): New (stub).
12425 2016-11-23 Martin Jambor <mjambor@suse.cz>
12427 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12428 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12429 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12431 2016-11-23 Martin Liska <mliska@suse.cz>
12432 Martin Jambor <mjambor@suse.cz>
12434 * plugin/hsa.h: New file.
12435 * plugin/hsa_ext_finalize.h: New file.
12436 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12437 header file unistd.h, and functions secure_getenv, __secure_getenv,
12438 getuid, geteuid, getgid and getegid.
12439 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12441 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12442 Handle various cases of secure_getenv presence, add an implementation
12443 when we can test effective UID and GID.
12444 (struct hsa_runtime_fn_info): New structure.
12445 (hsa_runtime_fn_info hsa_fns): New variable.
12446 (hsa_runtime_lib): Likewise.
12447 (support_cpu_devices): Likewise.
12448 (init_enviroment_variables): Load newly introduced ENV
12450 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12451 (hsa_fatal): Likewise.
12452 (DLSYM_FN): New macro.
12453 (init_hsa_runtime_functions): New function.
12454 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12455 structure. Depending on environment, also allow CPU devices.
12456 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12457 (get_kernarg_memory_region): Likewise.
12458 (GOMP_OFFLOAD_init_device): Likewise.
12459 (destroy_hsa_program): Likewise.
12460 (init_basic_kernel_info): New function.
12461 (GOMP_OFFLOAD_load_image): Use it.
12462 (create_and_finalize_hsa_program): Call hsa run-time functions via
12464 (create_single_kernel_dispatch): Likewise.
12465 (release_kernel_dispatch): Likewise.
12466 (init_single_kernel): Likewise.
12467 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12468 (get_group_size): New function.
12469 (run_kernel): Likewise.
12470 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12471 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12473 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12474 * testsuite/libgomp-test-support.exp.in: Likewise.
12475 * Makefile.in: Regenerated.
12476 * aclocal.m4: Likewise.
12477 * config.h.in: Likewise.
12478 * configure: Likewise.
12479 * testsuite/Makefile.in: Likewise.
12481 2016-11-15 Martin Jambor <mjambor@suse.cz>
12482 Alexander Monakov <amonakov@ispras.ru>
12484 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12485 mapping clauses to target constructs.
12486 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12488 2016-11-15 Matthias Klose <doko@ubuntu.com>
12490 * configure: Regenerate.
12492 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12494 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12495 * omp_lib.h.in (openmp_version): Likewise.
12496 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12498 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12500 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12501 (fib_wrapper): Add map(from: x) clause.
12502 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12503 (e_53_2): Likewise.
12504 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12505 (accum): Add map(tmp) clause.
12506 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12507 (accum): Add map(tofrom: tmp) clause.
12508 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12509 (gramSchmidt): Likewise.
12510 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12511 map(tofrom: sum) clause.
12512 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12513 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12514 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12515 only allowed on the loop iterator.
12516 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12517 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12518 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12519 * testsuite/libgomp.fortran/doacross1.f90: New test.
12520 * testsuite/libgomp.fortran/doacross3.f90: New test.
12521 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12522 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12523 * testsuite/libgomp.fortran/doacross2.f90: New test.
12524 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12525 #pragma omp atomic read.
12526 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12527 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12529 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12530 Nathan Sidwell <nathan@acm.org>
12532 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12533 to determine default geometry.
12534 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12537 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12539 * hashtab.h: Use standard GPLv3 with runtime exception
12542 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12544 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12545 size when allocating new thread.
12547 2016-09-14 Marek Polacek <polacek@redhat.com>
12549 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12551 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12554 * testsuite/libgomp.fortran/pr71014.f90: New test.
12556 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12558 PR middle-end/70895
12559 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12560 firstprivate clauses.
12561 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12563 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12564 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12565 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12566 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12567 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12568 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12569 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12570 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12571 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12572 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12573 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12574 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12576 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12579 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12581 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12584 * testsuite/libgomp.c++/pr58706.C: New test.
12586 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12588 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12589 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12590 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12592 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12593 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12595 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12597 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12598 test, and don't hardcode -O0.
12600 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12602 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12604 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12606 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12609 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12611 PR middle-end/71734
12612 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12613 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12615 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12618 * testsuite/libgomp.fortran/associate3.f90: New test.
12620 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12622 * testsuite/libgomp.c++/target-21.C: New test.
12624 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12626 * testsuite/libgomp.c++/target-20.C: New test.
12628 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12629 Cesar Philippidis <cesar@codesourcery.com>
12631 PR middle-end/71373
12632 * libgomp.oacc-c/nested-function-1.c: New file.
12633 * libgomp.oacc-c/nested-function-2.c: Likewise.
12634 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12635 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12636 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12638 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12641 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12642 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12643 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12645 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12647 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12648 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12650 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12653 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12655 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12657 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12658 instead of invalid schedule(static, 0).
12659 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12661 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12663 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12664 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12665 parameter, use to set async stream around call to gomp_unmap_vars,
12666 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12667 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12668 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12669 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12670 (event_add): Add int parameter, initialize 'val' field when
12671 adding new ptx_event struct.
12672 (nvptx_evec): Adjust event_add() call arguments.
12673 (nvptx_host2dev): Likewise.
12674 (nvptx_dev2host): Likewise.
12675 (nvptx_wait_async): Likewise.
12676 (nvptx_wait_all_async): Likewise.
12677 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12678 pass to event_add() call.
12679 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12681 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12682 call openacc.register_async_cleanup_func() hook.
12683 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12684 * target.c (gomp_copy_from_async): Delete function.
12685 (gomp_map_vars): Remove async_refcount.
12686 (gomp_unmap_vars): Likewise.
12687 (gomp_load_image_to_device): Likewise.
12688 (omp_target_associate_ptr): Likewise.
12689 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12690 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12691 (gomp_copy_from_async): Remove.
12693 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12695 * target.c (gomp_device_copy): New function.
12696 (gomp_copy_host2dev): Likewise.
12697 (gomp_copy_dev2host): Likewise.
12698 (gomp_free_device_memory): Likewise.
12699 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12700 (gomp_map_pointer): Likewise.
12701 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12702 NULL value from alloc_func plugin hook.
12703 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12704 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12705 (gomp_unmap_vars): Likewise.
12706 (gomp_update): Adjust to call gomp_copy_dev2host and
12707 gomp_copy_host2dev functions.
12708 (gomp_unload_image_from_device): Handle false value from
12709 unload_image_func plugin hook.
12710 (gomp_init_device): Handle false value from init_device_func
12712 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12713 (omp_target_free): Adjust to call gomp_free_device_memory.
12714 (omp_target_memcpy): Handle return values from host2dev_func,
12715 dev2host_func, and dev2dev_func plugin hooks.
12716 (omp_target_memcpy_rect_worker): Likewise.
12717 (gomp_target_fini): Handle false value from fini_device_func
12719 * libgomp.h (struct gomp_device_descr): Adjust return type of
12720 init_device_func, fini_device_func, unload_image_func, free_func,
12721 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12722 * oacc-init.c (acc_shutdown_1): Handle false value from
12723 fini_device_func plugin hook.
12724 * oacc-host.c (host_init_device): Change return type to bool.
12725 (host_fini_device): Likewise.
12726 (host_unload_image): Likewise.
12727 (host_free): Likewise.
12728 (host_dev2host): Likewise.
12729 (host_host2dev): Likewise.
12730 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12731 (acc_memcpy_to_device): Likewise.
12732 (acc_memcpy_from_device): Likewise.
12733 (delete_copyout): Add libfnname parameter, handle free_func
12734 hook fatal error case.
12735 (acc_delete): Adjust delete_copyout call.
12736 (acc_copyout): Likewise.
12737 (update_dev_host): Move gomp_mutex_unlock to after
12738 host2dev/dev2host hook calls.
12740 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12741 to 'hsa_error_msg', for clarity.
12742 (hsa_fatal): Likewise.
12743 (hsa_error): New function.
12744 (init_hsa_context): Change return type to bool, adjust to return
12746 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12748 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12749 return false on error.
12750 (get_agent_info): Adjust to return NULL on error.
12751 (destroy_hsa_program): Change return type to bool, adjust to
12752 return false on error.
12753 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12754 (destroy_module): Change return type to bool, adjust to
12755 return false on error.
12756 (GOMP_OFFLOAD_unload_image): Likewise.
12757 (GOMP_OFFLOAD_fini_device): Likewise.
12758 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12759 (GOMP_OFFLOAD_free): Change to return false when called.
12760 (GOMP_OFFLOAD_dev2host): Likewise.
12761 (GOMP_OFFLOAD_host2dev): Likewise.
12762 (GOMP_OFFLOAD_dev2dev): Likewise.
12764 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12765 (CUDA_CALL): Likewise.
12766 (CUDA_CALL_ASSERT): Likewise.
12767 (map_init): Change return type to bool, use CUDA_CALL* macros.
12768 (map_fini): Likewise.
12769 (init_streams_for_device): Change return type to bool, adjust
12771 (fini_streams_for_device): Change return type to bool, adjust
12773 (select_stream_for_async): Release stream_lock before calls to
12774 GOMP_PLUGIN_fatal, adjust call to map_init.
12775 (nvptx_init): Use CUDA_CALL* macros.
12776 (nvptx_attach_host_thread_to_device): Change return type to bool,
12777 use CUDA_CALL* macros.
12778 (nvptx_open_device): Use CUDA_CALL* macros.
12779 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12781 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12782 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12783 (nvptx_exec): Use CUDA_CALL* macros.
12784 (nvptx_alloc): Use CUDA_CALL* macros.
12785 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12786 (nvptx_host2dev): Likewise.
12787 (nvptx_dev2host): Likewise.
12788 (nvptx_wait): Use CUDA_CALL* macros.
12789 (nvptx_wait_async): Likewise.
12790 (nvptx_wait_all): Likewise.
12791 (nvptx_wait_all_async): Likewise.
12792 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12793 use CUDA_CALL* macros, adjust call to map_fini.
12794 (GOMP_OFFLOAD_init_device): Change return type to bool,
12795 adjust code accordingly.
12796 (GOMP_OFFLOAD_fini_device): Likewise.
12797 (GOMP_OFFLOAD_load_image): Adjust calls to
12798 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12799 use CUDA_CALL* macros.
12800 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12802 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12803 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12804 handle error return.
12805 (GOMP_OFFLOAD_dev2host): Likewise.
12806 (GOMP_OFFLOAD_host2dev): Likewise.
12807 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12808 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12810 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12812 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12813 (acc_free): Likewise.
12814 (acc_memcpy_to_device): Likewise.
12815 (acc_memcpy_from_device): Likewise.
12816 (acc_deviceptr): Likewise.
12817 (acc_hostptr): Likewise.
12818 (acc_is_present): Likewise.
12819 (acc_map_data): Likewise.
12820 (acc_unmap_data): Likewise.
12821 (present_create_copy): Likewise.
12822 (delete_copyout): Likewise.
12823 (update_dev_host): Likewise.
12824 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12825 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12826 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12827 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12828 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12829 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12830 it only runs on nvptx targets.
12831 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12832 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12833 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12834 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12835 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12836 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12837 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12838 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12839 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12840 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12842 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12844 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12845 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12846 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12847 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12848 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12849 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12850 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12851 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12852 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12853 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12855 2016-05-23 Martin Jambor <mjambor@suse.cz>
12857 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12859 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12861 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12862 to gomp_init_targets_once.
12863 (acc_set_device_type): Remove !cached_base_dev condition on call to
12864 gomp_init_targets_once, move call to before acc_device_lock acquire,
12866 (acc_get_device_num): Remove !cached_base_dev condition on call to
12867 gomp_init_targets_once.
12868 (acc_set_device_num): Likewise.
12870 2016-05-16 Martin Jambor <mjambor@suse.cz>
12872 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12874 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12876 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12877 expected partitioning.
12879 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12881 PR middle-end/70626
12882 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12883 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12884 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12886 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12888 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12891 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12893 PR middle-end/70680
12894 * testsuite/libgomp.c/pr70680-1.c: New test.
12895 * testsuite/libgomp.c/pr70680-2.c: New test.
12897 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12899 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12900 pass parameter variables to subroutines.
12902 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12904 PR middle-end/70643
12905 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12907 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12910 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12911 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12913 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12915 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12916 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12917 GOACC_declare prototype.
12919 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12920 Merge this file, and...
12921 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12922 ... this file, and...
12923 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12924 ... this file, and...
12925 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12926 ... this file, and...
12927 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12928 ... this file, and...
12929 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12930 ... this file, and...
12931 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12932 ... this file, and...
12933 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12934 ... this file, and...
12935 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12936 ... this file, and...
12937 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12938 ... this file, and...
12939 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12940 ... this file, and...
12941 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12942 ... this file, and...
12943 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12944 ... this file into...
12945 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12948 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12949 Make failure observable.
12951 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12953 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12955 * target.c (gomp_target_fallback_firstprivate,
12956 gomp_target_unshare_firstprivate): Removed.
12957 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12958 before waiting for dependencies.
12959 (gomp_target_task_fn): Don't copy firstprivate vars here.
12960 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12961 firstprivate_copies here.
12962 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12963 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12964 explicit/implicit firstprivate.
12966 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12970 PR tree-optimization/70373
12971 PR middle-end/70533
12972 PR middle-end/70534
12973 PR middle-end/70535
12974 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12976 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12978 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12980 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12982 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12984 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12986 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12988 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12990 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12992 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12993 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12994 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12995 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12997 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12999 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13001 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13003 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13005 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13006 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13007 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13008 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13009 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13010 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13012 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13013 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13014 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13015 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13016 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13017 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13018 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13019 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13020 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13021 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13022 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13023 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13024 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13025 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13026 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13028 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13029 James Norris <jnorris@codesourcery.com>
13030 Nathan Sidwell <nathan@codesourcery.com>
13031 Julian Brown <julian@codesourcery.com>
13032 Cesar Philippidis <cesar@codesourcery.com>
13033 Chung-Lin Tang <cltang@codesourcery.com>
13034 Tom de Vries <tom@codesourcery.com>
13036 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13037 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13038 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13039 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13040 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13041 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13042 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13043 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13044 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13046 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13048 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13050 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13051 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13052 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13055 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13057 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13058 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13059 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13060 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13061 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13062 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13063 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13064 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13065 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13066 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13068 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13069 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13070 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13072 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13074 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13076 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13078 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13080 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13081 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13082 ... this new file. Update.
13083 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13084 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13085 ... this new file. Update.
13086 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13087 file. Incorporate...
13088 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13090 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13092 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13094 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13096 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13098 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13099 set-torture-options.
13101 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13103 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13105 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13106 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13107 -fno-builtin-acc_on_device instead of -O0.
13108 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13110 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13111 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13113 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13114 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13115 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13116 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13117 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13118 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13119 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13120 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13122 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13123 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13124 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13125 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13126 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13127 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13128 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13129 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13130 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13132 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13134 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13137 2016-03-24 Martin Liska <mliska@suse.cz>
13139 * plugin/plugin-hsa.c (packet_store_release): New function
13140 that is taken from the HSA runtime manual.
13141 (GOMP_OFFLOAD_run): Use the function.
13143 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13146 * testsuite/libgomp.c++/pr70376.C: New test.
13148 2016-03-23 Tom de Vries <tom@codesourcery.com>
13150 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13151 initialization of lresult and lvresult.
13152 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13154 2016-03-23 James Norris <jnorris@codesourcery.com>
13155 Daichi Fukuoka <dc-fukuoka@sgi.com>
13158 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13159 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13160 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13161 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13163 2016-03-23 Martin Liska <mliska@suse.cz>
13166 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13167 argument just in case a dispatched kernel uses that argument.
13169 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13171 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13172 -ftree-parallelize-loops/-fopenacc changes.
13173 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13175 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13177 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13179 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13181 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13182 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13184 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13186 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13187 always_ld_library_path the path to libgcc_s.
13189 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13192 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13194 2016-03-09 Tom de Vries <tom@codesourcery.com>
13196 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13197 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13198 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13200 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13201 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13202 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13203 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13205 2016-03-07 Martin Jambor <mjambor@suse.cz>
13207 * testsuite/lib/libgomp.exp
13208 (check_effective_target_hsa_offloading_selected_nocache): New.
13209 (check_effective_target_hsa_offloading_selected): Likewise.
13210 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13211 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13212 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13213 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13214 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13215 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13216 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13217 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13218 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13219 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13220 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13221 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13222 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13223 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13224 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13225 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13226 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13228 2016-03-07 Martin Jambor <mjambor@suse.cz>
13230 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13231 non-shared memory accelerators.
13232 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13233 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13234 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13235 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13236 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13237 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13238 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13239 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13240 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13242 2016-03-07 Martin Jambor <mjambor@suse.cz>
13244 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13247 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13250 * testsuite/libgomp.c++/pr69555-1.C: New test.
13251 * testsuite/libgomp.c++/pr69555-2.C: New test.
13253 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13254 Martin Jambor <mjambor@suse.cz>
13256 * testsuite/lib/libgomp.exp
13257 (check_effective_target_offload_device_shared_as): New proc.
13258 * testsuite/libgomp.c++/declare_target-1.C: New test.
13260 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13263 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13265 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13267 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13268 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13270 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13271 -ftree-parallelize-loops/-fopenacc changes.
13272 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13273 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13275 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13277 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13279 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13287 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13291 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13293 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13294 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13297 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13299 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13301 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13304 * testsuite/libgomp.c/pr69805.c: New test.
13306 2016-02-16 Tom de Vries <tom@codesourcery.com>
13309 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13311 2016-02-09 Tom de Vries <tom@codesourcery.com>
13313 PR tree-optimization/69599
13314 * testsuite/libgomp.c/omp-nested-3.c: New test.
13315 * testsuite/libgomp.c/pr46032-2.c: New test.
13316 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13317 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13319 2016-02-09 Tom de Vries <tom@codesourcery.com>
13322 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13324 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13326 * testsuite/libgomp.c/target-31.c: Fix testcase.
13328 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13330 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13332 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13333 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13334 reduction and map clauses.
13335 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13337 2016-02-02 James Norris <jnorris@codesourcery.com>
13339 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13341 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13343 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13344 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13346 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13349 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13351 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13352 (hsa_kmt_lib): Set variables.
13353 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13354 always_ld_library_path.
13355 * Makefile.in: Regenerate.
13356 * configure: Likewise.
13357 * testsuite/Makefile.in: Likewise.
13359 * plugin/configfrag.ac (offload_additional_options)
13360 (offload_additional_lib_paths): Don't amend for hsa offloading.
13361 * configure: Regenerate.
13363 * plugin/configfrag.ac: Don't configure for offloading target if
13364 we don't build the corresponding plugin.
13365 * configure: Regenerate.
13367 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13369 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13370 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13372 2016-01-26 Tom de Vries <tom@codesourcery.com>
13374 PR tree-optimization/69110
13375 * testsuite/libgomp.c/pr69110.c: New test.
13377 2016-01-25 Richard Biener <rguenther@suse.de>
13380 * testsuite/libgomp.c++/pr69393.C: New testcase.
13382 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13384 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13385 function wasn't mapped to the device with non-shared memory.
13387 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13389 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13391 2016-01-19 Martin Jambor <mjambor@suse.cz>
13392 Martin Liska <mliska@suse.cz>
13394 * plugin/Makefrag.am: Add HSA plugin requirements.
13395 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13396 (HSA_RUNTIME_LIB): Likewise.
13397 (HSA_RUNTIME_CPPFLAGS): Likewise.
13398 (HSA_RUNTIME_INCLUDE): New substitution.
13399 (HSA_RUNTIME_LIB): Likewise.
13400 (HSA_RUNTIME_LDFLAGS): Likewise.
13401 (hsa-runtime): New configure option.
13402 (hsa-runtime-include): Likewise.
13403 (hsa-runtime-lib): Likewise.
13404 (PLUGIN_HSA): New substitution variable.
13405 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13407 (PLUGIN_HSA_CPPFLAGS): Likewise.
13408 (PLUGIN_HSA_LDFLAGS): Likewise.
13409 (PLUGIN_HSA_LIBS): Likewise.
13410 Check that we have access to HSA run-time.
13411 * libgomp-plugin.h (offload_target_type): New element
13412 OFFLOAD_TARGET_TYPE_HSA.
13413 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13415 (bool gomp_create_target_task): Updated.
13416 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13417 new field can_run_func.
13418 * libgomp_g.h (GOMP_target_ext): Update prototype.
13419 * oacc-host.c (host_run): Added a new parameter args.
13420 * target.c (calculate_firstprivate_requirements): New function.
13421 (copy_firstprivate_data): Likewise.
13422 (gomp_target_fallback_firstprivate): Use them.
13423 (gomp_target_unshare_firstprivate): New function.
13424 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13426 (GOMP_target): Do host fallback for all shared memory devices. Do not
13427 pass any args to plugins.
13428 (GOMP_target_ext): Introduce device-specific argument parameter args.
13429 Allow host fallback if device shares memory. Do not remap data if
13430 device has shared memory.
13431 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13432 like host fallback for mappings.
13433 (GOMP_target_data): Treat shared memory devices like host fallback.
13434 (GOMP_target_data_ext): Likewise.
13435 (GOMP_target_update): Likewise.
13436 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13437 gomp_create_target_task.
13438 (GOMP_target_enter_exit_data): Likewise.
13439 (omp_target_alloc): Treat shared memory devices like host fallback.
13440 (omp_target_free): Likewise.
13441 (omp_target_is_present): Likewise.
13442 (omp_target_memcpy): Likewise.
13443 (omp_target_memcpy_rect): Likewise.
13444 (omp_target_associate_ptr): Likewise.
13445 (gomp_load_plugin_for_device): Also load can_run.
13446 * task.c (GOMP_PLUGIN_target_task_completion): Free
13447 firstprivate_copies.
13448 (gomp_create_target_task): Accept new argument args and store it to
13450 * plugin/plugin-hsa.c: New file.
13452 2016-01-18 Tom de Vries <tom@codesourcery.com>
13454 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13455 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13456 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13457 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13458 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13459 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13460 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13461 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13462 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13463 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13464 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13466 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13468 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13469 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13470 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13471 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13472 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13473 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13475 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13477 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13479 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13481 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13483 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13485 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13487 2016-01-12 James Norris <jnorris@codesourcery.com>
13489 * libgomp.texi: Updates for OpenACC.
13491 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13493 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13495 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13498 * testsuite/libgomp.fortran/pr66680.f90: New test.
13500 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13502 PR middle-end/68960
13503 * testsuite/libgomp.c/pr68960.c: New test.
13505 2016-01-06 Nathan Sidwell <nathan@acm.org>
13507 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13508 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13510 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13512 Update copyright years.
13514 * libgomp.texi: Bump @copying's copyright year.
13516 2015-12-31 Nathan Sidwell <nathan@acm.org>
13518 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13519 dg-additional-options syntax.
13520 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13521 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13522 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13523 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13524 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13525 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13526 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13527 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13528 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13529 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13530 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13531 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13532 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13533 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13534 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13535 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13536 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13537 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13539 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13541 * libgomp.h (REFCOUNT_LINK): Define.
13542 (struct splay_tree_key_s): Add link_key.
13543 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13544 Replace target address of the pointer with target address of newly
13545 mapped object in the splay tree. Set link pointer on target to the
13546 device address of the mapped object.
13547 (gomp_unmap_vars): Restore target address of the pointer in the splay
13548 tree for REFCOUNT_LINK objects after unmapping.
13549 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13550 declare target link" objects.
13551 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13552 "omp declare target link" objects, which were mapped for the image.
13553 (gomp_exit_data): Restore target address of the pointer in the splay
13554 tree for REFCOUNT_LINK objects after unmapping.
13555 * testsuite/libgomp.c/target-link-1.c: New file.
13557 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13559 * libgomp.h (gomp_device_state): New enum.
13560 (struct gomp_device_descr): Replace is_initialized with state.
13561 (gomp_fini_device): Remove declaration.
13562 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13563 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13564 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13565 (acc_set_device_type): Use state instead of is_initialized.
13566 (acc_set_device_num): Likewise.
13567 * target.c (resolve_device): Use state instead of is_initialized.
13568 Do not initialize finalized device.
13569 (gomp_map_vars): Do nothing if device is finalized.
13570 (gomp_unmap_vars): Likewise.
13571 (gomp_update): Likewise.
13572 (GOMP_offload_register_ver): Use state instead of is_initialized.
13573 (GOMP_offload_unregister_ver): Likewise.
13574 (gomp_init_device): Likewise.
13575 (gomp_unload_device): Likewise.
13576 (gomp_fini_device): Remove.
13577 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13578 (GOMP_target): Go to host fallback if device is finalized.
13579 (GOMP_target_ext): Likewise.
13580 (gomp_exit_data): Do nothing if device is finalized.
13581 (gomp_target_task_fn): Go to host fallback if device is finalized.
13582 (gomp_target_fini): New static function.
13583 (gomp_target_init): Use state instead of is_initialized.
13584 Call gomp_target_fini at exit.
13586 2015-12-09 Tom de Vries <tom@codesourcery.com>
13588 PR tree-optimization/68716
13589 * testsuite/libgomp.c/omp-nested-2.c: New test.
13591 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13593 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13594 target openacc_nvidia_accel_selected.
13595 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13596 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13597 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13598 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13600 2015-12-01 Julian Brown <julian@codesourcery.com>
13601 James Norris <James_Norris@mentor.com>
13603 * oacc-parallel.c (GOACC_host_data): New function.
13604 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13605 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13606 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13607 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13608 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13609 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13610 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13612 2015-11-30 James Norris <jnorris@codesourcery.com>
13613 Cesar Philippidis <cesar@codesourcery.com>
13616 * libgomp.oacc-fortran/routine-5.f90: New test.
13617 * libgomp.oacc-fortran/routine-7.f90: New test.
13618 * libgomp.oacc-fortran/routine-9.f90: New test.
13620 2015-11-30 Tom de Vries <tom@codesourcery.com>
13622 PR tree-optimization/46032
13623 * testsuite/libgomp.c/pr46032.c: New test.
13625 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13628 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13629 (gomp_create_target_task): Call it before freeing
13630 GOMP_TARGET_TASK_DATA tasks.
13633 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13634 in between case label and OpenMP standalone directives.
13635 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13637 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13639 * configure: Regenerate.
13641 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13643 * testsuite/libgomp.c/target-35.c: New test.
13645 2015-11-22 James Norris <jnorris@codesourcery.com>
13646 Cesar Philippidis <cesar@codesourcery.com>
13648 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13649 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13650 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13651 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13652 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13654 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13656 PR middle-end/68221
13657 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13658 * testsuite/libgomp.c/reduction-12.c: Likewise.
13659 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13660 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13662 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13664 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13665 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13666 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13667 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13668 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13670 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13671 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13673 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13675 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13676 worker & gang cases.
13677 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13679 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13681 * config/nvptx/priority_queue.c: New file.
13683 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13685 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13688 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13689 Aldy Hernandez <aldyh@redhat.com>
13690 Ilya Verbin <ilya.verbin@intel.com>
13692 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13693 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13694 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13695 iterators or IV by chunk size.
13696 * parallel.c (gomp_resolve_num_threads): Don't assume that
13697 if thr->ts.team is non-NULL, then pool must be non-NULL.
13698 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13699 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13700 GOMP_PLUGIN_target_task_completion.
13701 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13702 * Makefile.in: Regenerate.
13703 * libgomp.h: Shuffle prototypes and forward definitions around so
13704 priority queues can be defined.
13705 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13706 (enum gomp_target_task_state): New enum.
13707 (struct gomp_target_task): Add state, tgt, task and team fields.
13708 (gomp_create_target_task): Change return type to bool, add
13710 (gomp_target_task_fn): Change return type to bool.
13711 (struct gomp_device_descr): Add async_run_func.
13712 (struct gomp_task): Remove children, next_child, prev_child,
13713 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13715 (struct gomp_taskgroup): Remove children.
13716 Add taskgroup_queue.
13717 (struct gomp_team): Change task_queue type to a priority queue.
13718 (splay_compare): Define inline.
13719 (priority_queue_offset): New.
13720 (priority_node_to_task): New.
13721 (task_to_priority_node): New.
13722 * oacc-mem.c: Do not include splay-tree.h.
13723 * priority_queue.c: New file.
13724 * priority_queue.h: New file.
13725 * splay-tree.c: Do not include splay-tree.h.
13726 (splay_tree_foreach_internal): New.
13727 (splay_tree_foreach): New.
13728 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13729 (splay_tree_callback): Define typedef.
13730 * target.c (splay_compare): Move to libgomp.h.
13731 (GOMP_target): Don't adjust *thr in any way around running offloaded
13733 (GOMP_target_ext): Likewise. Handle target nowait.
13734 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13735 return value from gomp_create_target_task, if false, fallthrough
13736 as if no dependencies exist.
13737 (gomp_target_task_fn): Change return type to bool, return true
13738 if the task should have another part scheduled later. Handle
13740 (gomp_load_plugin_for_device): Initialize async_run.
13741 * task.c (gomp_init_task): Initialize children_queue.
13742 (gomp_clear_parent_in_list): New.
13743 (gomp_clear_parent_in_tree): New.
13744 (gomp_clear_parent): Handle priorities.
13745 (GOMP_task): Likewise.
13746 (priority_queue_move_task_first,
13747 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13749 (gomp_create_target_task): Use priority queues. Change return type
13750 to bool, add state argument, return false if for async
13751 {{enter,exit} data,update} constructs no dependencies need to be
13752 waited for, handle target nowait. Set task->fn to NULL instead of
13753 gomp_target_task_fn.
13754 (verify_children_queue): Remove.
13755 (priority_list_upgrade_task): New.
13756 (priority_queue_upgrade_task): New.
13757 (verify_task_queue): Remove.
13758 (priority_list_downgrade_task): New.
13759 (priority_queue_downgrade_task): New.
13760 (gomp_task_run_pre): Use priority queues.
13761 Abstract code out to priority_queue_downgrade_task.
13762 (gomp_task_run_post_handle_dependers): Use priority queues.
13763 (gomp_task_run_post_remove_parent): Likewise.
13764 (gomp_task_run_post_remove_taskgroup): Likewise.
13765 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13767 (GOMP_taskwait): Likewise.
13768 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13769 priority-queue_upgrade_task.
13770 (GOMP_taskgroup_start): Use priority queues.
13771 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13772 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13774 * taskloop.c (GOMP_taskloop): Handle priorities.
13775 * team.c (gomp_new_team): Call priority_queue_init.
13776 (free_team): Call priority_queue_free.
13777 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13778 team created for target nowait in implicit parallel region.
13779 (gomp_team_start): For nested check, test thr->ts.level instead of
13780 thr->ts.team != NULL.
13781 * testsuite/libgomp.c/doacross-3.c: New test.
13782 * testsuite/libgomp.c/ordered-5.c: New test.
13783 * testsuite/libgomp.c/priority.c: New test.
13784 * testsuite/libgomp.c/target-31.c: New test.
13785 * testsuite/libgomp.c/target-32.c: New test.
13786 * testsuite/libgomp.c/target-33.c: New test.
13787 * testsuite/libgomp.c/target-34.c: New test.
13789 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13791 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13793 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13794 loop is sequential.
13796 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13798 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13799 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13801 2015-11-12 James Norris <jnorris@codesourcery.com>
13802 Joseph Myers <joseph@codesourcery.com>
13804 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13805 * oacc-parallel.c (GOACC_declare): New function.
13806 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13807 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13808 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13809 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13810 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13812 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13814 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13816 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13818 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13819 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13821 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13823 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13824 inadvertent commit.
13826 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13828 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13829 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13830 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13831 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13832 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13834 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13836 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13837 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13839 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13840 Ilya Verbin <ilya.verbin@intel.com>
13842 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13843 GOMP_loop_nonmonotonic_dynamic_start,
13844 GOMP_loop_nonmonotonic_guided_next,
13845 GOMP_loop_nonmonotonic_guided_start,
13846 GOMP_loop_ull_nonmonotonic_dynamic_next,
13847 GOMP_loop_ull_nonmonotonic_dynamic_start,
13848 GOMP_loop_ull_nonmonotonic_guided_next,
13849 GOMP_loop_ull_nonmonotonic_guided_start,
13850 GOMP_parallel_loop_nonmonotonic_dynamic,
13851 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13852 (GOMP_target_41): Renamed to ...
13853 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13855 (GOMP_target_data_41): Renamed to ...
13856 (GOMP_target_data_ext): ... this.
13857 (GOMP_target_update_41): Renamed to ...
13858 (GOMP_target_update_ext): ... this.
13859 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13860 GOMP_target_data_ext and GOMP_target_update_ext instead of
13861 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13862 Export GOMP_loop_nonmonotonic_dynamic_next,
13863 GOMP_loop_nonmonotonic_dynamic_start,
13864 GOMP_loop_nonmonotonic_guided_next,
13865 GOMP_loop_nonmonotonic_guided_start,
13866 GOMP_loop_ull_nonmonotonic_dynamic_next,
13867 GOMP_loop_ull_nonmonotonic_dynamic_start,
13868 GOMP_loop_ull_nonmonotonic_guided_next,
13869 GOMP_loop_ull_nonmonotonic_guided_start,
13870 GOMP_parallel_loop_nonmonotonic_dynamic and
13871 GOMP_parallel_loop_nonmonotonic_guided.
13872 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13873 GOMP_parallel_loop_nonmonotonic_guided,
13874 GOMP_loop_nonmonotonic_dynamic_start,
13875 GOMP_loop_nonmonotonic_guided_start,
13876 GOMP_loop_nonmonotonic_dynamic_next,
13877 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13878 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13879 GOMP_loop_ull_nonmonotonic_guided_start,
13880 GOMP_loop_ull_nonmonotonic_dynamic_next,
13881 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13882 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13884 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13885 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13886 Use gomp_map_val function.
13887 (gomp_target_fallback_firstprivate): New static function.
13888 (GOMP_target_41): Renamed to ...
13889 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13890 arguments. Move firstprivate fallback handling into a new
13892 (GOMP_target_data_41): Renamed to ...
13893 (GOMP_target_data_ext): ... this.
13894 (GOMP_target_update_41): Renamed to ...
13895 (GOMP_target_update_ext): ... this.
13896 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13897 gomp_map_0len_lookup instead of gomp_map_lookup.
13898 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13900 * testsuite/libgomp.c/target-28.c: Likewise.
13901 * testsuite/libgomp.c/monotonic-1.c: New test.
13902 * testsuite/libgomp.c/monotonic-2.c: New test.
13903 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13904 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13905 * testsuite/libgomp.c/pr66199-5.c: New test.
13906 * testsuite/libgomp.c/pr66199-6.c: New test.
13907 * testsuite/libgomp.c/pr66199-7.c: New test.
13908 * testsuite/libgomp.c/pr66199-8.c: New test.
13909 * testsuite/libgomp.c/pr66199-9.c: New test.
13910 * testsuite/libgomp.c/reduction-11.c: New test.
13911 * testsuite/libgomp.c/reduction-12.c: New test.
13912 * testsuite/libgomp.c/reduction-13.c: New test.
13913 * testsuite/libgomp.c/reduction-14.c: New test.
13914 * testsuite/libgomp.c/reduction-15.c: New test.
13915 * testsuite/libgomp.c/target-12.c (main): Adjust for
13916 omp_target_is_present change for one-past-last element.
13917 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13918 the same var is both mapped and privatized.
13919 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13920 handling of zero-length array sections.
13921 * testsuite/libgomp.c/target-28.c: New test.
13922 * testsuite/libgomp.c/target-29.c: New test.
13923 * testsuite/libgomp.c/target-30.c: New test.
13924 * testsuite/libgomp.c/target-teams-1.c: New test.
13925 * testsuite/libgomp.c++/member-6.C: New test.
13926 * testsuite/libgomp.c++/member-7.C: New test.
13927 * testsuite/libgomp.c++/monotonic-1.C: New test.
13928 * testsuite/libgomp.c++/monotonic-2.C: New test.
13929 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13930 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13931 * testsuite/libgomp.c++/pr66199-3.C: New test.
13932 * testsuite/libgomp.c++/pr66199-4.C: New test.
13933 * testsuite/libgomp.c++/pr66199-5.C: New test.
13934 * testsuite/libgomp.c++/pr66199-6.C: New test.
13935 * testsuite/libgomp.c++/pr66199-7.C: New test.
13936 * testsuite/libgomp.c++/pr66199-8.C: New test.
13937 * testsuite/libgomp.c++/pr66199-9.C: New test.
13938 * testsuite/libgomp.c++/reduction-11.C: New test.
13939 * testsuite/libgomp.c++/reduction-12.C: New test.
13940 * testsuite/libgomp.c++/target-13.C: New test.
13941 * testsuite/libgomp.c++/target-14.C: New test.
13942 * testsuite/libgomp.c++/target-15.C: New test.
13943 * testsuite/libgomp.c++/target-16.C: New test.
13944 * testsuite/libgomp.c++/target-17.C: New test.
13945 * testsuite/libgomp.c++/target-18.C: New test.
13946 * testsuite/libgomp.c++/target-19.C: New test.
13948 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13950 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13951 and reduction copy.
13952 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13953 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13954 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13955 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13956 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13957 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13958 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13959 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13960 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13961 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13962 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13963 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13964 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13965 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13967 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13969 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13970 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13971 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13972 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13973 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13974 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13975 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13976 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13978 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13980 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13981 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13982 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13983 * oacc-host.c (host_openacc_exec): Likewise.
13984 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13986 2015-11-03 Julian Brown <julian@codesourcery.com>
13987 Thomas Schwinge <thomas@codesourcery.com>
13989 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13990 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13991 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13993 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13994 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13996 2015-11-03 James Norris <jnorris@codesourcery.com>
13998 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14000 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14002 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14003 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14004 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14005 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14006 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14008 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14010 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14012 (enum acc_async_t): Reformat.
14013 (acc_on_device): Declare compatible with builtin and provide C++
14015 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14017 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14018 Cesar Philippidis <cesar@codesourcery.com>
14020 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14021 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14022 ... this. Add a description of the test at the top of the file.
14023 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14024 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14025 ... this. Add a description of the test at the top of the file.
14027 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14029 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14030 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14031 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14032 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14033 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14034 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14036 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14038 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14041 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14044 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14046 2015-10-27 James Norris <jnorris@codesourcery.com>
14048 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14049 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14051 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14053 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14054 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14056 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14057 acc_device_nvidia usage.
14058 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14059 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14060 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14062 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14063 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14066 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14070 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14071 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14073 2015-10-23 Tom de Vries <tom@codesourcery.com>
14076 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14078 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14080 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14082 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14084 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14085 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14087 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14088 to 0 when mapnum is 0.
14090 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14092 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14093 Cast to int from int32_t.
14095 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14096 Aldy Hernandez <aldyh@redhat.com>
14097 Ilya Verbin <ilya.verbin@intel.com>
14099 * config/linux/affinity.c (omp_get_place_num_procs,
14100 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14101 * config/linux/doacross.h: New file.
14102 * config/posix/affinity.c (omp_get_place_num_procs,
14103 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14104 * config/posix/doacross.h: New file.
14105 * env.c: Include gomp-constants.h.
14106 (struct gomp_task_icv): Rename run_sched_modifier to
14107 run_sched_chunk_size.
14108 (gomp_max_task_priority_var): New variable.
14109 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14110 (handle_omp_display_env): Change _OPENMP value from 201307 to
14111 201511. Print OMP_MAX_TASK_PRIORITY.
14112 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14113 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14114 chunk_size and run_sched_modifier to run_sched_chunk_size.
14115 (omp_get_max_task_priority, omp_get_initial_device,
14116 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14117 omp_get_partition_place_nums): New functions.
14118 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14119 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14121 (omp_get_num_places_, omp_get_place_num_procs_,
14122 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14123 omp_get_place_proc_ids_8_, omp_get_place_num_,
14124 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14125 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14126 omp_get_max_task_priority_): New functions.
14127 * libgomp_g.h (GOMP_loop_doacross_static_start,
14128 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14129 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14130 GOMP_loop_ull_doacross_dynamic_start,
14131 GOMP_loop_ull_doacross_guided_start,
14132 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14133 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14134 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14135 GOMP_target_data_41, GOMP_target_update_41,
14136 GOMP_target_enter_exit_data): New prototypes.
14137 (GOMP_task): Add prototype argument.
14138 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14139 (struct gomp_doacross_work_share): New type.
14140 (struct gomp_work_share): Add doacross field.
14141 (struct gomp_task_icv): Rename run_sched_modifier to
14142 run_sched_chunk_size.
14143 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14144 GOMP_TASK_UNDEFERRED. Add comments.
14145 (struct gomp_task_depend_entry): Add comments.
14146 (struct gomp_task): Likewise.
14147 (struct gomp_taskgroup): Likewise.
14148 (struct gomp_target_task): New type.
14149 (struct gomp_team): Add comment.
14150 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14151 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14152 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14153 (struct target_var_desc): New type.
14154 (struct target_mem_desc): Adjust comment. Use struct
14155 target_var_desc instead of splay_tree_key for list.
14156 (REFCOUNT_INFINITY): Define.
14157 (struct splay_tree_key_s): Remove copy_from field.
14158 (struct gomp_device_descr): Add dev2dev_func field.
14159 (enum gomp_map_vars_kind): New enum.
14160 (gomp_map_vars): Add one argument.
14161 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14162 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14163 omp_get_place_num_procs, omp_get_place_num_procs_,
14164 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14165 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14166 omp_get_place_num_, omp_get_partition_num_places,
14167 omp_get_partition_num_places_, omp_get_partition_place_nums,
14168 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14169 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14170 omp_target_free, omp_target_is_present, omp_target_memcpy,
14171 omp_target_memcpy_rect, omp_target_associate_ptr and
14172 omp_target_disassociate_ptr.
14173 (GOMP_4.0.2): Renamed to ...
14174 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14175 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14176 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14177 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14178 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14179 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14180 GOMP_loop_ull_doacross_guided_start,
14181 GOMP_loop_ull_doacross_runtime_start,
14182 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14183 GOMP_doacross_ull_wait.
14184 * libgomp.texi: Document omp_get_max_task_priority.
14185 Rename modifier argument to chunk_size for omp_set_schedule and
14186 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14187 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14188 to run_sched_chunk_size renaming.
14189 (GOMP_loop_ordered_runtime_start): Likewise.
14190 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14191 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14192 GOMP_parallel_loop_runtime_start): New functions.
14193 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14194 to run_sched_chunk_size renaming.
14195 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14196 GOMP_loop_doacross_guided_start): New functions or aliases.
14197 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14198 run_sched_modifier to run_sched_chunk_size renaming.
14199 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14200 (gomp_loop_ull_doacross_static_start,
14201 gomp_loop_ull_doacross_dynamic_start,
14202 gomp_loop_ull_doacross_guided_start,
14203 GOMP_loop_ull_doacross_runtime_start): New functions.
14204 (GOMP_loop_ull_doacross_static_start,
14205 GOMP_loop_ull_doacross_dynamic_start,
14206 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14207 * oacc-mem.c (acc_map_data, present_create_copy,
14208 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14210 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14211 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14212 instead of false to gomp_map_vars.
14213 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14214 * omp.h.in (omp_lock_hint_t): New type.
14215 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14216 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14217 omp_get_place_num, omp_get_partition_num_places,
14218 omp_get_partition_place_nums, omp_get_initial_device,
14219 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14220 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14221 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14223 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14224 (omp_lock_hint_none, omp_lock_hint_uncontended,
14225 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14226 omp_lock_hint_speculative): New parameters.
14227 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14228 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14229 omp_get_place_num, omp_get_partition_num_places,
14230 omp_get_partition_place_nums, omp_get_initial_device,
14231 omp_get_max_task_priority): New interfaces.
14232 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14234 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14235 (omp_lock_hint_none, omp_lock_hint_uncontended,
14236 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14237 omp_lock_hint_speculative): New parameters.
14238 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14239 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14240 omp_get_place_num, omp_get_partition_num_places,
14241 omp_get_partition_place_nums, omp_get_initial_device,
14242 omp_get_max_task_priority): New functions and subroutines.
14243 * ordered.c: Include stdarg.h and string.h.
14244 (MAX_COLLAPSED_BITS): Define.
14245 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14246 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14247 GOMP_doacross_ull_wait): New functions.
14248 * target.c: Include errno.h.
14249 (resolve_device): If device is not initialized, call
14250 gomp_init_device on it.
14251 (gomp_map_lookup): New function.
14252 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14253 Don't bump refcount if REFCOUNT_INFINITY. Handle
14254 GOMP_MAP_ALWAYS_TO_P.
14255 (get_kind): Rename is_openacc argument to short_mapkind.
14256 (gomp_map_pointer): Use gomp_map_lookup.
14257 (gomp_map_fields_existing): New function.
14258 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14259 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14260 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14261 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14262 Adjust for tgt->list changed type and copy_from living in there.
14263 (gomp_copy_from_async): Adjust for tgt->list changed type and
14264 copy_from living in there.
14265 (gomp_unmap_vars): Likewise.
14266 (gomp_update): Likewise. Rename is_openacc argument to
14267 short_mapkind. Don't fail if object is not mapped.
14268 (gomp_load_image_to_device): Initialize refcount to
14270 (gomp_target_fallback): New function.
14271 (gomp_get_target_fn_addr): Likewise.
14272 (GOMP_target): Adjust gomp_map_vars caller, use
14273 gomp_get_target_fn_addr and gomp_target_fallback.
14274 (GOMP_target_41): New function.
14275 (gomp_target_data_fallback): New function.
14276 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14277 (GOMP_target_data_41): New function.
14278 (GOMP_target_update): Adjust gomp_update caller.
14279 (GOMP_target_update_41): New function.
14280 (gomp_exit_data, GOMP_target_enter_exit_data,
14281 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14282 omp_target_is_present, omp_target_memcpy,
14283 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14284 omp_target_associate_ptr, omp_target_disassociate_ptr,
14285 gomp_load_plugin_for_device): New functions.
14286 * task.c: Include gomp-constants.h. Include taskloop.c
14287 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14288 (gomp_task_handle_depend): New function.
14289 (GOMP_task): Use it. Add priority argument. Use
14290 gomp-constant.h constants instead of hardcoded numbers.
14291 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14292 (gomp_create_target_task): New function.
14293 (verify_children_queue, verify_taskgroup_queue,
14294 verify_task_queue): New functions.
14295 (gomp_task_run_pre): Call verify_*_queue functions.
14296 If an upcoming tied task is about to leave the sibling or
14297 taskgroup queues in an invalid state, adjust appropriately.
14298 Remove taskgroup argument. Add comments.
14299 (gomp_task_run_post_handle_dependers): Add comments.
14300 (gomp_task_run_post_remove_parent): Likewise.
14301 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14302 (GOMP_taskwait): Likewise. Add comments.
14303 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14304 problem such that the first non parent_depends_on task does not
14305 end up at the end of the children queue.
14306 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14307 GOMP_TASK_UNDEFERRED.
14308 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14309 * taskloop.c: New file.
14310 * testsuite/lib/libgomp.exp
14311 (check_effective_target_offload_device_nonshared_as): New proc.
14312 * testsuite/libgomp.c/affinity-2.c: New test.
14313 * testsuite/libgomp.c/doacross-1.c: New test.
14314 * testsuite/libgomp.c/doacross-2.c: New test.
14315 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14316 Add map clause to target.
14317 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14318 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14319 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14320 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14321 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14323 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14324 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14325 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14326 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14327 not defined. Use those where needed.
14328 * testsuite/libgomp.c/for-4.c: New test.
14329 * testsuite/libgomp.c/for-5.c: New test.
14330 * testsuite/libgomp.c/for-6.c: New test.
14331 * testsuite/libgomp.c/linear-1.c: New test.
14332 * testsuite/libgomp.c/ordered-4.c: New test.
14333 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14334 only allowed on the loop iterator.
14335 * testsuite/libgomp.c/pr66199-3.c: New test.
14336 * testsuite/libgomp.c/pr66199-4.c: New test.
14337 * testsuite/libgomp.c/reduction-7.c: New test.
14338 * testsuite/libgomp.c/reduction-8.c: New test.
14339 * testsuite/libgomp.c/reduction-9.c: New test.
14340 * testsuite/libgomp.c/reduction-10.c: New test.
14341 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14343 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14344 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14345 * testsuite/libgomp.c/target-11.c: New test.
14346 * testsuite/libgomp.c/target-12.c: New test.
14347 * testsuite/libgomp.c/target-13.c: New test.
14348 * testsuite/libgomp.c/target-14.c: New test.
14349 * testsuite/libgomp.c/target-15.c: New test.
14350 * testsuite/libgomp.c/target-16.c: New test.
14351 * testsuite/libgomp.c/target-17.c: New test.
14352 * testsuite/libgomp.c/target-18.c: New test.
14353 * testsuite/libgomp.c/target-19.c: New test.
14354 * testsuite/libgomp.c/target-20.c: New test.
14355 * testsuite/libgomp.c/target-21.c: New test.
14356 * testsuite/libgomp.c/target-22.c: New test.
14357 * testsuite/libgomp.c/target-23.c: New test.
14358 * testsuite/libgomp.c/target-24.c: New test.
14359 * testsuite/libgomp.c/target-25.c: New test.
14360 * testsuite/libgomp.c/target-26.c: New test.
14361 * testsuite/libgomp.c/target-27.c: New test.
14362 * testsuite/libgomp.c/taskloop-1.c: New test.
14363 * testsuite/libgomp.c/taskloop-2.c: New test.
14364 * testsuite/libgomp.c/taskloop-3.c: New test.
14365 * testsuite/libgomp.c/taskloop-4.c: New test.
14366 * testsuite/libgomp.c++/ctor-13.C: New test.
14367 * testsuite/libgomp.c++/doacross-1.C: New test.
14368 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14369 Replace offload_device with offload_device_nonshared_as.
14370 * testsuite/libgomp.c++/for-12.C: New test.
14371 * testsuite/libgomp.c++/for-13.C: New test.
14372 * testsuite/libgomp.c++/for-14.C: New test.
14373 * testsuite/libgomp.c++/linear-1.C: New test.
14374 * testsuite/libgomp.c++/member-1.C: New test.
14375 * testsuite/libgomp.c++/member-2.C: New test.
14376 * testsuite/libgomp.c++/member-3.C: New test.
14377 * testsuite/libgomp.c++/member-4.C: New test.
14378 * testsuite/libgomp.c++/member-5.C: New test.
14379 * testsuite/libgomp.c++/ordered-1.C: New test.
14380 * testsuite/libgomp.c++/reduction-5.C: New test.
14381 * testsuite/libgomp.c++/reduction-6.C: New test.
14382 * testsuite/libgomp.c++/reduction-7.C: New test.
14383 * testsuite/libgomp.c++/reduction-8.C: New test.
14384 * testsuite/libgomp.c++/reduction-9.C: New test.
14385 * testsuite/libgomp.c++/reduction-10.C: New test.
14386 * testsuite/libgomp.c++/reference-1.C: New test.
14387 * testsuite/libgomp.c++/simd14.C: New test.
14388 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14389 * testsuite/libgomp.c++/target-5.C: New test.
14390 * testsuite/libgomp.c++/target-6.C: New test.
14391 * testsuite/libgomp.c++/target-7.C: New test.
14392 * testsuite/libgomp.c++/target-8.C: New test.
14393 * testsuite/libgomp.c++/target-9.C: New test.
14394 * testsuite/libgomp.c++/target-10.C: New test.
14395 * testsuite/libgomp.c++/target-11.C: New test.
14396 * testsuite/libgomp.c++/target-12.C: New test.
14397 * testsuite/libgomp.c++/taskloop-1.C: New test.
14398 * testsuite/libgomp.c++/taskloop-2.C: New test.
14399 * testsuite/libgomp.c++/taskloop-3.C: New test.
14400 * testsuite/libgomp.c++/taskloop-4.C: New test.
14401 * testsuite/libgomp.c++/taskloop-5.C: New test.
14402 * testsuite/libgomp.c++/taskloop-6.C: New test.
14403 * testsuite/libgomp.c++/taskloop-7.C: New test.
14404 * testsuite/libgomp.c++/taskloop-8.C: New test.
14405 * testsuite/libgomp.c++/taskloop-9.C: New test.
14406 * testsuite/libgomp.fortran/affinity1.f90: New test.
14407 * testsuite/libgomp.fortran/affinity2.f90: New test.
14409 2015-10-13 Tom de Vries <tom@codesourcery.com>
14411 PR tree-optimization/67476
14412 * testsuite/libgomp.c/autopar-3.c: New test.
14413 * testsuite/libgomp.c/autopar-4.c: New test.
14414 * testsuite/libgomp.c/autopar-5.c: New test.
14415 * testsuite/libgomp.c/autopar-6.c: New test.
14416 * testsuite/libgomp.c/autopar-7.c: New test.
14417 * testsuite/libgomp.c/autopar-8.c: New test.
14419 2015-10-12 James Norris <jnorris@codesourcery.com>
14421 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14424 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14426 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14427 using load_gcc_lib.
14429 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14431 * oacc-ptx.h: Remove file, moving its content into...
14432 * config/nvptx/fortran.c: ... here...
14433 * config/nvptx/oacc-init.c: ..., here...
14434 * config/nvptx/oacc-parallel.c: ..., and here.
14435 * config/nvptx/openacc.f90: New file.
14436 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14437 (link_ptx): Don't link in predefined bits of PTX code.
14439 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14440 Bernd Schmidt <bernds@codesourcery.com>
14442 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14443 (struct targ_ptx_obj): New.
14444 (nvptx_tdata): Move earlier, change data format.
14445 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14447 (GOMP_OFFLOAD_load_image): Adjust.
14449 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14451 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14452 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14453 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14454 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14455 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14456 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14457 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14458 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14459 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14460 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14461 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14462 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14463 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14464 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14465 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14466 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14467 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14468 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14469 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14470 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14471 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14472 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14473 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14474 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14475 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14476 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14477 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14478 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14479 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14480 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14481 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14482 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14483 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14484 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14485 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14486 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14487 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14488 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14489 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14490 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14491 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14492 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14493 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14494 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14495 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14496 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14497 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14498 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14499 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14500 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14501 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14502 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14503 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14504 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14505 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14506 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14507 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14508 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14509 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14510 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14511 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14512 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14513 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14515 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14517 * oacc-init.c (acc_on_device): Force optimization level.
14519 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14521 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14522 (cuda_errlist): Delete.
14523 (cuda_error): Reimplement.
14525 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14527 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14529 * libgomp.map (GOACC_parallel_keyed): New.
14530 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14532 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14533 and take keyed varargs list. Adjust call to exec_func.
14534 (GOACC_parallel): Force host fallback.
14535 * libgomp_g.h (GOACC_parallel): Remove.
14536 (GOACC_parallel_keyed): Declare.
14537 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14538 (struct targ_gn_descriptor): Replace name field with launch field.
14539 (nvptx_exec): Lose separate geometry args, take array. Process
14540 dynamic dimensions and adjust.
14541 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14542 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14544 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14546 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14549 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14552 * oacc-int.h (goacc_host_init): Add declaration.
14553 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14554 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14556 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14557 Sebastian Pop <s.pop@samsung.com>
14559 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14561 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14562 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14563 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14564 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14565 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14567 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14569 * configure.tgt: Add missing ;; in between nvptx and rtems
14572 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14574 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14575 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14576 (gomp_thread_pool_reservoir): Add priority member.
14577 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14579 (parse_thread_pools): Likewise.
14580 * team.c (gomp_team_start): Call configuration provided
14581 gomp_adjust_thread_attr(). Destroy thread attributes if
14583 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14585 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14587 * config/posix/pool.h: New.
14588 * config/rtems/pool.h: Likewise.
14589 * config/rtems/proc.c: Likewise.
14590 * libgomp.h (gomp_thread_destructor): Declare.
14591 * team.c: Include configuration provided "pool.h".
14592 (gomp_get_thread_pool): Define in configuration.
14593 (gomp_team_end): Call configuration defined
14594 gomp_release_thread_pool().
14596 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14598 * config/rtems/bar.c: New.
14599 * config/rtems/bar.h: Likewise.
14600 * config/rtems/mutex.c: Likewise.
14601 * config/rtems/mutex.h: Likewise.
14602 * config/rtems/sem.c: Likewise.
14603 * config/rtems/sem.h: Likewise.
14604 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14605 <sys/lock.h> header file.
14606 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14607 supported by Newlib.
14608 * configure: Regenerate.
14610 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14612 * team.c (gomp_new_thread_pool): Delete and move content to ...
14613 (gomp_get_thread_pool): ... new function. Allocate and
14614 initialize thread pool on demand.
14615 (get_last_team): Use gomp_get_thread_pool().
14616 (gomp_team_start): Delete thread pool initialization.
14618 2015-09-03 Tom de Vries <tom@codesourcery.com>
14620 PR tree-optimization/65637
14621 * testsuite/libgomp.c/autopar-2.c: New test.
14623 2015-08-29 Tom de Vries <tom@codesourcery.com>
14625 PR tree-optimization/46193
14626 * testsuite/libgomp.c/pr46193.c: New test.
14628 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14631 * libgomp.map: Add 4.0.2 version.
14632 * target.c (offload_image_descr): Add version field.
14633 (gomp_load_image_to_device): Add version argument. Adjust plugin
14634 call. Improve load mismatch diagnostic.
14635 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14637 (GOMP_offload_regster): Make stub function, move bulk to ...
14638 (GOMP_offload_register_ver): ... here. Process version argument.
14639 (GOMP_offload_unregister): Make stub function, move bulk to ...
14640 (GOMP_offload_unregister_ver): ... here. Process version argument.
14641 (gomp_init_device): Process version field.
14642 (gomp_unload_device): Process version field.
14643 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14644 macros. Check plugin version.
14645 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14646 loader and unloader types.
14647 * oacc-host.c: Include gomp-constants.h.
14648 (host_version): New.
14649 (host_load_image, host_unload_image): Adjust.
14650 (host_dispatch): Add host_version.
14651 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14652 (GOMP_OFFLOAD_version): New.
14653 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14654 (GOMP_OFFLOAD_unload_image): Likewise.
14655 * plugin/plugin-host.c: Include gomp-constants.h.
14656 (GOMP_OFFLOAD_version): New.
14657 (GOMP_OFFLOAD_load_image): Add version arg.
14658 (GOMP_OFFLOAD_unload_image): Likewise.
14660 2015-08-24 Tom de Vries <tom@codesourcery.com>
14662 PR tree-optimization/65468
14663 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14665 2015-08-24 Tom de Vries <tom@codesourcery.com>
14667 PR tree-optimization/65468
14668 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14670 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14674 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14675 (gomp_iter_guided_next): Idem.
14676 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14677 (gomp_iter_ull_guided_next): Idem.
14678 * config/linux/wait.h (do_spin): Idem.
14680 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14682 * libgomp-plugin.h (enum offload_target_type): Remove
14683 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14684 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14685 * openacc.h (enum acc_device_t): Likewise.
14686 * openacc_lib.h: Likewise.
14687 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14688 (acc_on_device): Just use __builtin_acc_on_device.
14689 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14690 of acc_on_device builtin.
14691 * plugin/plugin-host.h: Remove file.
14692 * plugin/plugin-host.c: Likewise, but salvage some content into...
14693 * oacc-host.c: ... this file.
14694 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14695 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14696 * Makefile.in: Regenerate.
14697 * configure: Likewise.
14698 * testsuite/lib/libgomp.exp
14699 (check_effective_target_openacc_host_nonshm_selected): Remove.
14700 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14701 ACC_DEVICE_TYPE=host_nonshm.
14702 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14703 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14704 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14705 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14706 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14707 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14709 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14710 Jakub Jelinek <jakub@redhat.com>
14712 * config/nvptx/affinity.c: New file.
14713 * config/nvptx/alloc.c: Likewise.
14714 * config/nvptx/bar.c: Likewise.
14715 * config/nvptx/barrier.c: Likewise.
14716 * config/nvptx/critical.c: Likewise.
14717 * config/nvptx/env.c: Likewise.
14718 * config/nvptx/error.c: Likewise.
14719 * config/nvptx/fortran.c: Likewise.
14720 * config/nvptx/iter.c: Likewise.
14721 * config/nvptx/iter_ull.c: Likewise.
14722 * config/nvptx/libgomp-plugin.c: Likewise.
14723 * config/nvptx/lock.c: Likewise.
14724 * config/nvptx/loop.c: Likewise.
14725 * config/nvptx/loop_ull.c: Likewise.
14726 * config/nvptx/mutex.c: Likewise.
14727 * config/nvptx/oacc-async.c: Likewise.
14728 * config/nvptx/oacc-cuda.c: Likewise.
14729 * config/nvptx/oacc-host.c: Likewise.
14730 * config/nvptx/oacc-init.c: Likewise.
14731 * config/nvptx/oacc-mem.c: Likewise.
14732 * config/nvptx/oacc-parallel.c: Likewise.
14733 * config/nvptx/oacc-plugin.c: Likewise.
14734 * config/nvptx/omp-lock.h: Likewise.
14735 * config/nvptx/ordered.c: Likewise.
14736 * config/nvptx/parallel.c: Likewise.
14737 * config/nvptx/proc.c: Likewise.
14738 * config/nvptx/ptrlock.c: Likewise.
14739 * config/nvptx/sections.c: Likewise.
14740 * config/nvptx/sem.c: Likewise.
14741 * config/nvptx/single.c: Likewise.
14742 * config/nvptx/splay-tree.c: Likewise.
14743 * config/nvptx/target.c: Likewise.
14744 * config/nvptx/task.c: Likewise.
14745 * config/nvptx/team.c: Likewise.
14746 * config/nvptx/time.c: Likewise.
14747 * config/nvptx/work.c: Likewise.
14748 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14749 * configure: Regenerate.
14750 * configure.tgt (config_path): Set to "nvptx" for target
14753 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14755 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14757 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14759 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14760 (cuda_errlist): Constify.
14761 (errmsg): Move into ...
14762 (cuda_error): ... here. Make smaller.
14763 (_XSTR, _STR): Delete.
14764 (cuda_synames): Delete.
14765 (verify_device_library): Delete.
14766 (nvptx_init): Don't call it.
14768 2015-07-28 Tom de Vries <tom@codesourcery.com>
14770 * testsuite/libgomp.c/uns-outer-4.c: New test.
14772 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14774 * testsuite/libgomp.c/pr66714.c: New test.
14776 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14779 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14780 (fib_ref): New function.
14781 (fib): Correct corner cases in the recursion.
14782 (main): Replace the non-simd loop with fib_ref call.
14783 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14785 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14786 for the last array element value. Replace the non-simd loop with
14787 fib_ref call. Remove redundant b_ref array. Remove the comparison
14788 of the last array element with according Fibonacci sequence element.
14789 (fib): Correct corner cases in the recursion.
14791 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14793 * target.c (gomp_offload_image_to_device): Rename to ...
14794 (gomp_load_image_to_device): ... here.
14795 (GOMP_offload_register): Adjust call.
14796 (gomp_init_device): Likewise.
14797 (gomp_unload_image_from_device): New. Broken out of ...
14798 (GOMP_offload_unregister): ... here. Call it.
14799 (gomp_unload_device): New.
14800 * libgomp.h (gomp_unload_device): Declare.
14801 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14804 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14806 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14808 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14810 (goacc_waits): Move !num_waits handling to ...
14811 (GOACC_wait): ... here, the only caller that might have zero waits.
14813 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14814 (struct ptx_image_data): Move earlier, add fns field.
14815 (struct ptx_device): Add images and image_lock fields.
14816 (ptx_images, ptx_image_lock): Delete.
14817 (nvptx_open_device): Initialize images and image_lock fields.
14818 (nvptx_close_device): Destroy image_lock.
14819 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14820 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14823 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14825 * target.c (GOMP_offload_register): Use int for device type arg.
14826 (GOMP_offload_unregister): Likewise.
14828 * target.c (struct_offload_image_descr): Constify host_table.
14829 (gomp_offload_image_to_device): Likewise.
14830 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14832 * libgomp.h (gomp_device_descr): Constify target data arguments.
14833 * target.c (struct offload_image_descr): Constify target_data.
14834 (gomp_offload_image_to_device): Likewise.
14835 (GOMP_offload_register): Likewise.
14836 (GOMP_offload_unregister): Likewise.
14837 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14838 GOMP_OFFLOAD_unload_image): Constify target data.
14839 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14840 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14842 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14844 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14845 Workaround driver library const error.
14846 (struct nvptx_tdata, nvptx_tdata_t): New.
14847 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14850 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14852 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14853 of EPS parameter from integer to real.
14854 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14855 type of EPS parameter from integer to real.
14857 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14859 * team.c (get_last_team): New.
14860 (gomp_new_team): Recycle last non-nested team if possible.
14861 (gomp_team_end): Move team work share list free lock destruction
14863 (free_team): ... here.
14865 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14867 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14868 and ref from int to double. Replaced their comparison with
14869 an inequality of their difference and EPS.
14870 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14871 comparison of pri and a reference number with an inequality of their
14872 difference and EPS.
14873 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14874 the comparison of sum and sum_ref with an inequality of their
14875 difference and EPS.
14876 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14877 the comparison of pri and a reference number with an inequality of
14878 their difference and EPS.
14880 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14882 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14883 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14884 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14885 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14886 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14887 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14888 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14889 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14890 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14891 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14892 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14893 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14894 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14896 (vec_mult): Likewise. Add #pragma omp taskwait.
14897 (main): Adjust caller.
14898 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14899 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14900 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14901 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14902 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14903 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14904 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14905 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14906 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14907 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14908 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14909 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14910 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14911 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14912 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14913 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14914 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14915 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14916 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14917 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14918 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14919 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14920 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14921 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14922 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14923 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14924 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14925 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14926 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14927 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14928 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14929 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14930 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14931 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14932 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14933 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14934 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14935 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14936 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14937 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14938 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14939 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14940 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14941 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14942 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14943 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14944 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14945 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14946 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14947 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14948 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14949 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14950 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14951 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14952 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14953 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14954 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14955 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14956 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14957 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14958 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14959 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14960 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14961 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14962 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14963 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14964 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14965 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14966 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14967 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14968 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14969 (vec_mult): Add !$omp taskwait.
14970 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14971 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14972 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14973 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14974 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14975 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14976 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14977 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14978 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14979 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14980 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14981 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14982 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14983 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14984 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14985 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14986 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14987 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14988 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14989 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14990 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14991 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14992 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14993 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14994 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14995 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14996 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14997 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14998 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14999 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15000 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15001 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15002 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15003 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15004 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15005 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15006 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15007 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15008 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15009 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15010 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15011 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15012 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15013 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15014 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15015 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15016 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15017 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15018 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15019 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15020 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15021 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15022 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15023 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15024 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15025 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15026 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15027 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15028 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15029 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15030 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15031 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15032 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15033 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15034 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15035 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15036 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15038 2015-07-10 Tom de Vries <tom@codesourcery.com>
15040 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15041 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15043 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15046 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15047 in a 64-bit configuration.
15048 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15049 offloading testing if no such device is available.
15050 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15051 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15053 2015-07-08 Tom de Vries <tom@codesourcery.com>
15055 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15057 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15059 2015-07-07 Tom de Vries <tom@codesourcery.com>
15061 PR tree-optimization/66642
15062 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15063 iteration count case.
15064 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15065 function, factor out of ...
15066 (main): ... here. Test low iteration count case.
15068 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15070 * libgomp.h (gomp_thread_pool): Comment last_team field.
15072 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15074 * testsuite/libgomp.c++/pr66702-1.C: Require
15075 vect_simd_clones effective target.
15076 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15078 2015-06-30 Tom de Vries <tom@codesourcery.com>
15080 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15081 already set. Use DEFAULT_CFLAGS in dg-runtest.
15082 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15085 2015-06-30 Tom de Vries <tom@codesourcery.com>
15087 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15088 already set. Use DEFAULT_CFLAGS in dg-runtest.
15089 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15090 * testsuite/libgomp.c++/pr64824.C: Same.
15091 * testsuite/libgomp.c++/pr64868.C: Same.
15092 * testsuite/libgomp.c++/pr66199-1.C: Same.
15093 * testsuite/libgomp.c++/pr66199-2.C: Same.
15094 * testsuite/libgomp.c++/target-2.C: Same.
15095 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15096 -std=<standard> option.
15097 * testsuite/libgomp.c++/udr-11.C: Same.
15098 * testsuite/libgomp.c++/udr-12.C: Same.
15099 * testsuite/libgomp.c++/udr-13.C: Same.
15100 * testsuite/libgomp.c++/udr-14.C: Same.
15101 * testsuite/libgomp.c++/udr-15.C: Same.
15102 * testsuite/libgomp.c++/udr-16.C: Same.
15103 * testsuite/libgomp.c++/udr-17.C: Same.
15104 * testsuite/libgomp.c++/udr-18.C: Same.
15105 * testsuite/libgomp.c++/udr-19.C: Same.
15106 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15107 * testsuite/libgomp.c++/simd-1.C: Same.
15108 * testsuite/libgomp.c++/simd-2.C: Same.
15109 * testsuite/libgomp.c++/simd-3.C: Same.
15110 * testsuite/libgomp.c++/simd-4.C: Same.
15111 * testsuite/libgomp.c++/simd-5.C: Same.
15112 * testsuite/libgomp.c++/simd-6.C: Same.
15113 * testsuite/libgomp.c++/simd-7.C: Same.
15114 * testsuite/libgomp.c++/simd-8.C: Same.
15115 * testsuite/libgomp.c++/simd-9.C: Same.
15116 * testsuite/libgomp.c++/simd10.C: Same.
15117 * testsuite/libgomp.c++/simd11.C: Same.
15118 * testsuite/libgomp.c++/simd12.C: Same.
15119 * testsuite/libgomp.c++/simd13.C: Same.
15121 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15123 PR middle-end/66702
15124 * testsuite/libgomp.c++/pr66702-1.C: New test.
15125 * testsuite/libgomp.c++/pr66702-2.C: New test.
15127 2015-06-30 Tom de Vries <tom@codesourcery.com>
15129 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15130 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15131 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15132 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15134 2015-06-30 Tom de Vries <tom@codesourcery.com>
15136 PR tree-optimization/66652
15137 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15138 using restrict pointers.
15139 (main): Add arguments to calls to f.
15140 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15142 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15144 * configure.ac: Fix check for header <sys/sysctl.h>.
15145 * configure: Regenerate.
15146 * config.h.in: Likewise.
15148 2015-06-23 Tom de Vries <tom@codesourcery.com>
15150 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15152 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15154 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15156 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15160 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15161 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15163 2015-06-15 Tom de Vries <tom@codesourcery.com>
15165 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15166 dg-additional-options for any remaining options.
15167 * testsuite/libgomp.c/atomic-2.c: Same.
15168 * testsuite/libgomp.c/atomic-4.c: Same.
15169 * testsuite/libgomp.c/atomic-5.c: Same.
15170 * testsuite/libgomp.c/atomic-6.c: Same.
15171 * testsuite/libgomp.c/autopar-1.c: Same.
15172 * testsuite/libgomp.c/copyin-1.c: Same.
15173 * testsuite/libgomp.c/copyin-2.c: Same.
15174 * testsuite/libgomp.c/copyin-3.c: Same.
15175 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15176 * testsuite/libgomp.c/nestedfn-5.c: Same.
15177 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15178 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15179 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15180 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15181 * testsuite/libgomp.c/pr32362-1.c: Same.
15182 * testsuite/libgomp.c/pr32362-2.c: Same.
15183 * testsuite/libgomp.c/pr32362-3.c: Same.
15184 * testsuite/libgomp.c/pr39591-1.c: Same.
15185 * testsuite/libgomp.c/pr39591-2.c: Same.
15186 * testsuite/libgomp.c/pr39591-3.c: Same.
15187 * testsuite/libgomp.c/pr58392.c: Same.
15188 * testsuite/libgomp.c/pr58756.c: Same.
15189 * testsuite/libgomp.c/simd-1.c: Same.
15190 * testsuite/libgomp.c/simd-10.c: Same.
15191 * testsuite/libgomp.c/simd-11.c: Same.
15192 * testsuite/libgomp.c/simd-12.c: Same.
15193 * testsuite/libgomp.c/simd-13.c: Same.
15194 * testsuite/libgomp.c/simd-14.c: Same.
15195 * testsuite/libgomp.c/simd-15.c: Same.
15196 * testsuite/libgomp.c/simd-2.c: Same.
15197 * testsuite/libgomp.c/simd-3.c: Same.
15198 * testsuite/libgomp.c/simd-4.c: Same.
15199 * testsuite/libgomp.c/simd-5.c: Same.
15200 * testsuite/libgomp.c/simd-6.c: Same.
15201 * testsuite/libgomp.c/simd-7.c: Same.
15202 * testsuite/libgomp.c/simd-8.c: Same.
15203 * testsuite/libgomp.c/simd-9.c: Same.
15205 2015-06-15 Tom de Vries <tom@codesourcery.com>
15207 * testsuite/libgomp.c/pr35625.c: Fix typo.
15209 2015-06-15 Tom de Vries <tom@codesourcery.com>
15211 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15213 * testsuite/libgomp.c/atomic-3.c: Same.
15214 * testsuite/libgomp.c/debug-1.c: Same.
15215 * testsuite/libgomp.c/nqueens-1.c: Same.
15216 * testsuite/libgomp.c/pr26171.c: Same.
15217 * testsuite/libgomp.c/pr48591.c: Same.
15218 * testsuite/libgomp.c/pr64824.c: Same.
15219 * testsuite/libgomp.c/pr64868.c: Same.
15220 * testsuite/libgomp.c/pr66133.c: Same.
15221 * testsuite/libgomp.c/pr66199-1.c: Same.
15222 * testsuite/libgomp.c/pr66199-2.c: Same.
15223 * testsuite/libgomp.c/target-8.c: Same.
15225 2015-06-15 Tom de Vries <tom@codesourcery.com>
15227 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15229 * testsuite/libgomp.c/for-1.c: Same.
15230 * testsuite/libgomp.c/for-2.c: Same.
15231 * testsuite/libgomp.c/for-3.c: Same.
15232 * testsuite/libgomp.c/pr35625.c: Same.
15233 * testsuite/libgomp.c/pr39154.c: Same.
15234 * testsuite/libgomp.c/simd-16.c: Same.
15235 * testsuite/libgomp.c/simd-17.c: Same.
15237 2015-06-13 Tom de Vries <tom@codesourcery.com>
15239 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15241 2015-06-13 Tom de Vries <tom@codesourcery.com>
15243 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15244 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15245 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15247 (main): Use N instead of hardcoded constants.
15249 2015-06-05 Tom de Vries <tom@codesourcery.com>
15251 merge from gomp4 branch:
15252 2015-05-28 Tom de Vries <tom@codesourcery.com>
15254 PR tree-optimization/65443
15255 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15256 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15257 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15259 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15261 * testsuite/libgomp.graphite/bounds.c: Adjust for
15262 cleanup-tree-dump removal.
15263 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15264 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15265 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15266 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15267 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15268 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15269 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15270 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15271 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15272 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15274 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15276 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15277 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15278 (futex_wake) [!__x86_64__]: Ditto.
15280 2015-05-28 Julian Brown <julian@codesourcery.com>
15282 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15283 function comment. Only call gomp_fatal if new argument is true.
15284 (acc_dev_num_out_of_range): New function.
15285 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15286 acc_dev_num_out_of_range as appropriate.
15287 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15288 (acc_get_device_num, acc_set_device_num): Update calls to
15290 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15293 2015-05-28 Julian Brown <julian@codesourcery.com>
15296 * oacc-init.c (plugin/plugin-host.h): Include.
15297 (acc_on_device): Check whether we're in an offloaded region for
15299 plugin. Don't use __builtin_acc_on_device.
15300 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15301 nonshm_exec flag in thread-local data.
15302 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15303 data for host_nonshm plugin.
15304 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15305 for host_nonshm plugin.
15306 * plugin/plugin-host.h: New.
15308 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15310 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15312 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15314 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15316 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15317 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15320 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15322 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15324 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15326 * target.c (gomp_map_pointer): New function abstracting out
15327 GOMP_MAP_POINTER handling.
15328 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15329 gomp_map_pointer().
15331 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15333 PR middle-end/66199
15334 * testsuite/libgomp.c/pr66199-1.c: New test.
15335 * testsuite/libgomp.c/pr66199-2.c: New test.
15336 * testsuite/libgomp.c++/pr66199-1.C: New test.
15337 * testsuite/libgomp.c++/pr66199-2.C: New test.
15338 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15339 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15341 2015-05-19 Julian Brown <julian@codesourcery.com>
15343 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15346 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15348 PR middle-end/66133
15349 * testsuite/libgomp.c/pr66133.c: New test.
15351 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15353 * Makefile.in: Regenerated with automake-1.11.6.
15354 * aclocal.m4: Likewise.
15355 * config.h.in: Likewise.
15356 * configure: Likewise.
15357 * testsuite/Makefile.in: Likewise.
15359 2015-05-08 Jason Merrill <jason@redhat.com>
15361 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15364 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15366 2015-05-06 Julian Brown <julian@codesourcery.com>
15368 * oacc-init.c (acc_device_lock): Add explanatory comment.
15369 (resolve_device): Add comment about locking requirement.
15370 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15371 gomp_init_device and gomp_fini_device calls.
15372 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15373 (acc_get_device_num, acc_set_device_num): Add locking around
15374 resolve_device and gomp_init_device calls.
15376 2015-05-06 Julian Brown <julian@codesourcery.com>
15378 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15379 goacc_thread_lock on error paths.
15380 * oacc-mem.c (lookup_host): Remove locking from function. Note
15381 locking requirement for caller in function comment.
15382 (lookup_dev): Likewise.
15383 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15384 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15385 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15388 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15392 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15393 don't expect "0x" prefix for "%p" format specifier, don't expect
15394 "(nil)" for NULL pointer.
15395 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15396 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15397 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15398 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15399 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15400 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15401 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15402 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15403 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15404 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15405 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15406 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15407 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15408 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15409 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15410 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15411 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15412 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15413 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15414 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15415 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15416 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15417 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15418 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15419 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15420 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15421 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15422 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15423 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15424 accurately specify what we're looking for.
15425 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15426 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15427 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15428 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15429 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15431 2015-04-30 James Norris <jnorris@codesourcery.com>
15434 * testsuite/lib/libgomp.exp
15435 (check_effective_target_openacc_host_selected)
15436 (check_effective_target_openacc_host_nonshm_selected): New
15438 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15440 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15441 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15442 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15443 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15444 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15445 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15446 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15447 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15448 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15449 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15450 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15451 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15452 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15453 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15454 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15455 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15456 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15457 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15458 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15459 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15460 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15461 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15462 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15463 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15464 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15465 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15466 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15467 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15468 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15469 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15470 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15471 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15472 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15473 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15474 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15475 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15476 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15477 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15478 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15479 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15480 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15481 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15482 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15484 2015-04-08 Julian Brown <julian@codesourcery.com>
15486 * libgomp.h (target_mem_desc: Remove mem_map field.
15487 (acc_dispatch_t): Remove open_device_func, close_device_func,
15488 get_device_num_func, set_device_num_func, target_data members.
15489 Change create_thread_data_func argument to device number instead of
15491 * oacc-async.c (assert.h): Include.
15492 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15493 (acc_wait_all, acc_wait_all_async): Use current host thread's
15494 active device, not base_dev.
15495 * oacc-cuda.c (acc_get_current_cuda_device)
15496 (acc_get_current_cuda_context, acc_get_cuda_stream)
15497 (acc_set_cuda_stream): Likewise.
15498 * oacc-host.c (host_dispatch): Don't set open_device_func,
15499 close_device_func, get_device_num_func or set_device_num_func.
15500 * oacc-init.c (base_dev, init_key): Remove.
15501 (cached_base_dev): New.
15502 (name_of_acc_device_t): New.
15503 (acc_init_1): Initialise default-numbered device, not zeroth.
15504 (acc_shutdown_1): Close all devices of a given type.
15505 (goacc_destroy_thread): Don't use base_dev.
15506 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15507 (goacc_attach_host_thread_to_device): New.
15508 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15509 (acc_get_num_devices): Don't use base_dev.
15510 (acc_set_device_type): Reimplement.
15511 (acc_get_device_type): Don't use base_dev.
15512 (acc_get_device_num): Tweak logic.
15513 (acc_set_device_num): Likewise.
15514 (acc_on_device): Use acc_get_device_type.
15515 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15516 (goacc_lazy_initialize): Reimplement with acc_init and
15517 goacc_attach_host_thread_to_device.
15518 * oacc-int.h (goacc_thread): Add base_dev field.
15519 (base_dev): Remove extern declaration.
15520 (goacc_attach_host_thread_to_device): Add prototype.
15521 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15523 (acc_free): Likewise.
15524 (acc_memcpy_to_device): Likewise.
15525 (acc_memcpy_from_device): Likewise.
15526 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15527 goacc_lazy_initialize (throughout).
15528 (GOACC_parallel): Use tgt_offset to locate target functions.
15529 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15530 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15531 (gomp_load_plugin_for_device): Remove open_device, close_device,
15532 get_device_num, set_device_num openacc hook initialisation. Don't set
15533 openacc.target_data.
15534 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15535 (GOMP_OFFLOAD_openacc_close_device)
15536 (GOMP_OFFLOAD_openacc_get_device_num)
15537 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15538 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15540 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15541 (instantiated_devices, ptx_dev_lock): New.
15542 (struct ptx_image_data): New.
15543 (ptx_devices, ptx_images, ptx_image_lock): New.
15544 (fini_streams_for_device): Reorder cuStreamDestroy call.
15545 (nvptx_get_num_devices): Remove forward declaration.
15546 (nvptx_init): Change return type to bool.
15547 (nvptx_fini): Remove.
15548 (nvptx_attach_host_thread_to_device): New.
15549 (nvptx_open_device): Return struct ptx_device* instead of void*.
15550 (nvptx_close_device): Change argument type to struct ptx_device*,
15551 return type to void.
15552 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15553 (kernel_target_data, kernel_host_table): Remove static globals.
15554 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15555 (GOMP_OFFLOAD_init_device): Reimplement.
15556 (GOMP_OFFLOAD_fini_device): Likewise.
15557 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15558 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15559 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15560 (GOMP_OFFLOAD_openacc_open_device)
15561 (GOMP_OFFLOAD_openacc_close_device)
15562 (GOMP_OFFLOAD_openacc_set_device_num)
15563 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15564 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15568 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15570 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15572 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15573 * libgomp.h (struct gomp_memory_mapping): Remove.
15574 (struct target_mem_desc): Change type of mem_map from
15575 gomp_memory_mapping * to splay_tree_s *.
15576 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15577 Add load_image_func, unload_image_func.
15578 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15579 Remove offload_regions_registered.
15580 (gomp_init_tables): Remove.
15581 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15583 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15584 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15585 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15586 offload_regions_registered.
15587 Initialize load_image_func, unload_image_func, mem_map.root.
15588 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15589 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15590 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15591 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15592 gomp_memory_mapping *. Use dev's lock and splay_tree.
15593 (lookup_dev): Use dev's lock.
15594 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15595 (acc_is_present): Likewise.
15596 (acc_map_data): Likewise.
15597 (acc_unmap_data): Likewise. Use dev's lock.
15598 (present_create_copy): Likewise.
15599 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15600 (update_dev_host): Likewise.
15601 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15602 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15603 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15604 (GOMP_OFFLOAD_get_table): Remove
15605 (GOMP_OFFLOAD_load_image): New function.
15606 (GOMP_OFFLOAD_unload_image): New function.
15607 * target.c (register_lock): New mutex for offload image registration.
15608 (num_devices): Do not guard with PLUGIN_SUPPORT.
15609 (gomp_realloc_unlock): New static function.
15610 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15612 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15613 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15614 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15616 (gomp_unmap_vars): Likewise.
15617 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15618 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15619 (gomp_offload_image_to_device): New static function.
15620 (GOMP_offload_register): Add mutex lock.
15621 Call gomp_offload_image_to_device for all initialized devices.
15622 Replace gomp_realloc with gomp_realloc_unlock.
15623 (GOMP_offload_unregister): New function.
15624 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15625 get_table_func from the plugin with calls to init_device_func and
15626 gomp_offload_image_to_device.
15627 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15629 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15630 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15631 (GOMP_target_data): Do not call gomp_init_tables.
15632 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15633 (gomp_load_plugin_for_device): Replace register_image and get_table
15634 with load_image and unload_image in DLSYM ().
15635 (gomp_register_images_for_device): Remove function.
15636 (gomp_target_init): Do not initialize current_device.mem_map.*,
15637 current_device.offload_regions_registered.
15638 Remove call to gomp_register_images_for_device.
15639 Do not free offload_images and num_offload_images.
15641 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15644 * testsuite/libgomp.fortran/pr65597.f90: New test.
15646 2015-03-27 Tom de Vries <tom@codesourcery.com>
15649 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15650 (init, check): New function.
15651 (foo): Change return type to void.
15652 (main): Call init and check.
15654 2015-03-27 Tom de Vries <tom@codesourcery.com>
15657 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15658 (foo): Use M for non-inner loops to scale down test-case.
15660 2015-03-25 Kai Tietz <ktietz@redhat.com>
15663 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15664 (GOACC_data_start): Likewise.
15665 * target.c (gomp_map_vars): Likewise.
15667 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15669 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15672 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15674 * testsuite/libgomp.c/target-10.c: New test.
15675 * testsuite/libgomp.c++/target-4.C: New test.
15677 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15679 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15680 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15682 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15684 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15685 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15686 (pthread.h): Check for this header file.
15687 * configure: Regenerate.
15689 2015-02-25 Tom de Vries <tom@codesourcery.com>
15691 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15692 (check_reduction_op, check_reduction_macro, max, min):
15694 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15696 (main): Use new functions.
15698 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15700 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15701 char * for variables holding dlerror return values.
15702 (DLSYM_OPT): Ditto.
15704 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15706 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15708 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15709 Cesar Philippidis <cesar@codesourcery.com>
15711 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15712 GOACC_ctaid, and GOACC_nctaid routines.
15714 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15717 * testsuite/libgomp.c/atomic-18.c: New test.
15718 * testsuite/libgomp.c++/atomic-16.C: New test.
15720 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15724 * testsuite/libgomp.c/pr64824.c: New test.
15725 * testsuite/libgomp.c/pr64868.c: New test.
15726 * testsuite/libgomp.c++/pr64824.C: New test.
15727 * testsuite/libgomp.c++/pr64868.C: New test.
15729 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15732 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15733 Link with -lpthread.
15734 * config/aix/plugin-suffix.h: Delete.
15736 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15739 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15740 (*-*-darwin*): Use config_path "bsd darwin posix".
15741 (*-*-hpux*): Use config_path "hpux posix".
15742 * target.c: Add include of plugin-suffix.h and use
15743 SONAME_SUFFIX macro.
15744 * config/aix/plugin-suffix.h: New file.
15745 * config/darwin/plugin-suffix.h: New file.
15746 * config/hpux/plugin-suffix.h: New file.
15747 * config/posix/plugin-suffix.h: New file.
15749 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15751 PR middle-end/64734
15752 * libgomp.c/pr64734.c: New test.
15754 2015-01-23 Tom de Vries <tom@codesourcery.com>
15757 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15759 2015-01-23 Tom de Vries <tom@codesourcery.com>
15762 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15765 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15768 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15769 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15770 formal parameter. Update all users.
15771 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15772 Document unused formal parameter.
15774 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15776 * oacc-parallel.c: Don't include <alloca.h>.
15777 (GOACC_parallel): Use gomp_alloca instead of alloca.
15779 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15781 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15783 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15784 James Norris <jnorris@codesourcery.com>
15785 Tom de Vries <tom@codesourcery.com>
15786 Julian Brown <julian@codesourcery.com>
15787 Cesar Philippidis <cesar@codesourcery.com>
15788 Nathan Sidwell <nathan@codesourcery.com>
15789 Tobias Burnus <burnus@net-b.de>
15791 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15792 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15793 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15794 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15795 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15796 Include $(top_srcdir)/plugin/Makefrag.am.
15797 (nodist_libsubinclude_HEADERS): Add openacc.h.
15798 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15799 openacc.f90, openacc.mod, openacc_kinds.mod.
15800 (omp_lib.mod): Generalize into...
15801 (%.mod): ... this new rule.
15802 (openacc_kinds.mod, openacc.mod): New rules.
15803 * plugin/configfrag.ac: New file.
15804 * configure.ac: Move plugin/offloading support into it. Include
15805 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15806 * plugin/Makefrag.am: New file.
15807 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15808 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15810 (libgomp-test-support.exp): New rule.
15811 (all-local): Depend on it.
15812 * Makefile.in: Regenerate.
15813 * testsuite/Makefile.in: Regenerate.
15814 * config.h.in: Likewise.
15815 * configure: Likewise.
15816 * configure.tgt: Harden shell syntax.
15817 * env.c: Include "oacc-int.h".
15818 (parse_acc_device_type): New function.
15819 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15821 (initialize_env): Initialize those. Call
15822 goacc_runtime_initialize.
15823 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15824 (gomp_fatal): Call gomp_vfatal.
15825 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15826 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15827 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15828 (splay_tree_node, splay_tree, splay_tree_key)
15829 (struct target_mem_desc, struct splay_tree_key_s)
15830 (struct gomp_memory_mapping, struct acc_dispatch_t)
15831 (struct gomp_device_descr, gomp_acc_insert_pointer)
15832 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15833 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15834 (gomp_free_memmap, gomp_fini_device): New declarations.
15835 (gomp_vdebug, gomp_debug): New macros.
15836 Include "splay-tree.h".
15837 * libgomp.map (OACC_2.0): New symbol version. Use for
15838 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15839 acc_set_device_type_h_, acc_get_device_type,
15840 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15841 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15842 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15843 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15844 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15845 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15846 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15847 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15848 acc_copyin_array_h_, acc_present_or_copyin,
15849 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15850 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15851 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15852 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15853 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15854 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15855 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15856 acc_update_device, acc_update_device_32_h_,
15857 acc_update_device_64_h_, acc_update_device_array_h_,
15858 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15859 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15860 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15861 acc_is_present_64_h_, acc_is_present_array_h_,
15862 acc_memcpy_to_device, acc_memcpy_from_device,
15863 acc_get_current_cuda_device, acc_get_current_cuda_context,
15864 acc_get_cuda_stream, acc_set_cuda_stream.
15865 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15866 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15867 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15868 GOACC_get_num_threads.
15869 (GOMP_PLUGIN_1.0): New symbol version. Use for
15870 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15871 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15872 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15873 GOMP_PLUGIN_acc_thread.
15874 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15875 environment variable.
15876 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15877 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15878 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15879 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15880 (splay_tree_remove): New declarations.
15881 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15882 (splay_tree_remove, splay_tree_lookup): Move into...
15883 * splay-tree.c: ... this new file.
15884 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15885 (splay_tree_node, splay_tree, splay_tree_key)
15886 (struct target_mem_desc, struct splay_tree_key_s)
15887 (struct gomp_device_descr): Don't declare.
15888 (num_devices_openmp): New variable.
15889 (gomp_get_num_devices ): Use it.
15890 (gomp_init_targets_once): New function.
15891 (gomp_get_num_devices ): Use it.
15892 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15893 (gomp_fini_device, gomp_register_image_for_device): New functions.
15894 (gomp_map_vars): Add devaddrs parameter.
15895 (gomp_update): Add mm parameter.
15896 (gomp_init_device): Move most of it into...
15897 (gomp_init_tables): ... this new function.
15898 (gomp_register_images_for_device): Remove function.
15899 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15900 Make them hidden instead of static.
15901 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15902 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15903 (GOMP_target_end_data, GOMP_target_update)
15904 (gomp_load_plugin_for_device, gomp_target_init): Update for
15906 * oacc-async.c: New file.
15907 * oacc-cuda.c: Likewise.
15908 * oacc-host.c: Likewise.
15909 * oacc-init.c: Likewise.
15910 * oacc-int.h: Likewise.
15911 * oacc-mem.c: Likewise.
15912 * oacc-parallel.c: Likewise.
15913 * oacc-plugin.c: Likewise.
15914 * oacc-plugin.h: Likewise.
15915 * oacc-ptx.h: Likewise.
15916 * openacc.f90: Likewise.
15917 * openacc.h: Likewise.
15918 * openacc_lib.h: Likewise.
15919 * plugin/plugin-host.c: Likewise.
15920 * plugin/plugin-nvptx.c: Likewise.
15921 * libgomp-plugin.c: Likewise.
15922 * libgomp-plugin.h: Likewise.
15923 * libgomp_target.h: Remove file after merging content into the
15924 former file. Update all users.
15925 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15926 (offload_targets_s, offload_targets_s_openacc): New variables.
15927 (check_effective_target_openacc_nvidia_accel_present)
15928 (check_effective_target_openacc_nvidia_accel_selected): New
15930 (libgomp_init): Update for OpenACC changes.
15931 * testsuite/libgomp-test-support.exp.in: New file.
15932 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15933 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15934 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15935 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15936 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15937 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15938 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15939 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15940 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15941 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15942 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15943 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15944 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15945 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15946 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15947 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15948 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15949 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15950 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15951 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15952 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15953 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15954 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15955 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15956 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15957 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15958 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15959 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15960 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15961 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15962 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15963 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15964 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15965 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15966 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15967 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15968 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15969 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15970 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15971 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15972 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15973 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15974 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15975 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15976 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15977 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15978 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15979 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15980 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15981 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15982 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15983 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15984 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15985 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15986 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15987 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15988 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15989 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15990 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15991 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15992 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15993 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15994 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15995 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15996 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15997 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15998 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15999 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16000 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16001 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16002 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16003 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16004 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16005 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16006 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16007 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16008 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16009 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16010 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16011 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16012 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16013 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16014 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16015 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16016 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16017 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16018 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16019 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16020 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16021 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16022 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16023 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16024 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16025 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16026 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16027 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16028 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16029 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16030 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16031 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16032 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16033 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16034 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16035 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16036 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16037 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16038 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16039 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16040 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16041 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16042 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16043 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16044 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16045 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16046 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16047 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16048 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16049 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16050 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16051 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16052 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16053 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16054 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16055 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16056 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16057 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16058 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16059 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16060 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16061 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16062 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16063 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16064 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16065 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16066 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16067 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16068 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16069 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16070 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16071 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16073 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16074 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16075 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16076 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16077 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16078 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16079 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16080 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16081 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16082 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16083 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16084 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16085 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16086 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16087 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16088 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16089 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16090 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16091 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16092 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16093 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16094 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16095 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16096 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16097 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16098 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16099 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16100 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16101 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16102 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16103 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16104 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16105 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16106 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16107 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16108 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16109 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16110 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16111 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16112 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16113 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16114 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16115 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16116 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16117 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16118 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16119 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16120 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16121 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16122 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16123 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16124 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16125 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16126 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16127 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16128 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16129 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16130 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16131 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16132 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16134 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16135 Julian Brown <julian@codesourcery.com>
16136 David Malcolm <dmalcolm@redhat.com>
16138 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16139 to "GNU Offloading and Multi Processing Runtime Library". Change
16141 * configure: Regenerate.
16142 * libgomp.texi: Update.
16144 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16146 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16148 * configure: Regenerate.
16150 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16151 "intelmic" in $offload_targets.
16153 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16155 Update copyright years.
16157 * libgomp.texi: Bump @copying's copyright year.
16159 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16161 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16162 Move load of target-supports.exp earlier.
16164 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16166 * testsuite/libgomp.c/target-9.c: New test.
16168 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16170 * config.h.in: Regenerate.
16171 * configure: Regenerate.
16172 * configure.ac: Add GCC_CHECK_EMUTLS.
16173 * libgomp.h: Add check for USE_EMUTLS: this case
16174 is equal to HAVE_TLS.
16175 * team.c: Likewise.
16177 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16179 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16181 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16182 Ilya Verbin <ilya.verbin@intel.com>
16184 * testsuite/libgomp.c/target-critical-1.c: New test.
16186 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16188 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16189 to dg-options unless expensive testing is on.
16190 (TESTITERS): Define to N if not defined.
16191 (main): Use TESTITERS instead of N.
16192 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16193 dg-additional-options depending on whether expensive testing is on.
16194 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16195 Decrease N to 100000 and CHUNKSZ to 10000.
16197 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16200 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16201 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16203 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16205 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16207 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16210 * configure: Regenerated.
16212 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16214 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16215 vect_simd_clones effective target.
16216 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16218 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16220 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16221 of 32 as block_size.
16222 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16223 instead of 32 as block_size.
16225 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16226 Ilya Verbin <ilya.verbin@intel.com>
16228 * Makefile.in: Regenerate.
16229 * configure: Regenerate.
16230 * configure.ac: Set up offload_additional_options,
16231 offload_additional_lib_paths and offload_targets.
16232 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16233 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16234 * testsuite/Makefile.in: Regenerate.
16235 * testsuite/lib/libgomp.exp (libgomp_init): Append
16236 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16237 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16238 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16240 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16241 Ilya Verbin <ilya.verbin@intel.com>
16242 Kirill Yukhin <kirill.yukhin@intel.com>
16243 Ilya Tocar <ilya.tocar@intel.com>
16245 * testsuite/lib/libgomp.exp
16246 (check_effective_target_offload_device): New.
16247 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16248 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16249 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16250 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16251 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16252 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16253 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16254 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16255 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16256 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16257 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16258 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16259 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16260 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16261 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16262 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16263 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16264 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16265 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16266 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16267 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16268 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16269 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16270 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16271 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16272 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16273 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16274 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16275 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16276 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16277 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16278 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16279 * testsuite/libgomp.c/target-7.c: Fix test.
16280 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16281 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16282 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16283 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16284 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16285 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16286 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16287 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16288 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16289 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16290 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16291 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16292 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16293 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16294 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16295 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16296 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16297 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16298 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16299 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16300 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16301 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16302 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16303 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16304 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16305 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16306 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16307 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16308 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16309 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16310 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16312 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16313 Ilya Verbin <ilya.verbin@intel.com>
16314 Thomas Schwinge <thomas@codesourcery.com>
16315 Andrey Turetskiy <andrey.turetskiy@intel.com>
16317 * libgomp.map (GOMP_4.0.1): New symbol version.
16318 Add GOMP_offload_register.
16319 * libgomp_target.h: New file.
16320 * splay-tree.h: New file.
16321 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16322 (gomp_target_init): New forward declaration.
16323 (gomp_is_initialized): New static variable.
16324 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16325 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16327 (offload_images, num_offload_images, devices, num_devices): New static
16329 (splay_compare): New static function.
16330 (struct gomp_device_descr): New structure.
16331 (gomp_get_num_devices): Call gomp_target_init.
16332 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16333 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16334 (GOMP_offload_register): New function.
16335 (GOMP_target): Arrange for host callback to be performed in a separate
16336 initial thread and contention group, inheriting ICVs from
16337 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16338 Add device initialization and lookup for target function in splay tree.
16339 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16340 (GOMP_target_end_data): Call gomp_unmap_vars.
16341 (GOMP_target_update): Add device initialization and call gomp_update.
16342 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16343 (gomp_target_init): New static functions.
16345 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16346 Thomas Schwinge <thomas@codesourcery.com>
16347 Ilya Verbin <ilya.verbin@intel.com>
16348 Andrey Turetskiy <andrey.turetskiy@intel.com>
16350 * config.h.in: Regenerate.
16351 * configure: Regenerate.
16352 * configure.ac: Check for libdl, required for plugin support.
16353 (PLUGIN_SUPPORT): Define if plugins are supported.
16354 (enable_offload_targets): Support Intel MIC targets.
16355 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16357 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16360 * configure: Regenerate.
16362 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16364 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16366 2014-10-06 Marek Polacek <polacek@redhat.com>
16368 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16369 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16370 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16371 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16373 2014-10-06 Marek Polacek <polacek@redhat.com>
16375 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16376 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16377 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16378 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16379 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16380 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16381 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16382 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16383 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16384 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16385 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16386 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16387 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16388 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16389 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16390 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16391 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16392 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16395 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16398 * testsuite/libgomp.c/pr61200.c: New test.
16400 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16403 * testsuite/libgomp.c++/pr63248.C: New test.
16405 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16407 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16408 is not zero, but taskgroup->children is NULL and there are
16409 any task->children, schedule those instead of waiting.
16410 * testsuite/libgomp.c/depend-6.c: New test.
16411 * testsuite/libgomp.c/depend-7.c: New test.
16412 * testsuite/libgomp.c/depend-8.c: New test.
16413 * testsuite/libgomp.c/depend-9.c: New test.
16414 * testsuite/libgomp.c/depend-10.c: New test.
16416 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16418 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16419 (struct gomp_taskwait): New type.
16420 (struct gomp_task): Add taskwait and parent_depends_on, remove
16421 in_taskwait and taskwait_sem fields.
16422 (gomp_finish_task): Don't destroy taskwait_sem.
16423 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16424 taskwait and parent_depends_on.
16425 (GOMP_task): For if (0) tasks with depend clause that depend on
16426 earlier tasks don't defer them, instead call
16427 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16428 Initialize redundant_out field, for redundant out entries just
16429 move them at the end of linked list instead of removing them
16430 completely, and set redundant_out flag instead of redundant.
16431 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16433 (gomp_task_run_post_handle_dependers): If parent is in
16434 gomp_task_maybe_wait_for_dependencies and newly runnable task
16435 is not parent_depends_on, queue it in parent->children linked
16436 list after all runnable tasks with parent_depends_on set.
16437 Adjust for addition of taskwait indirection.
16438 (gomp_task_run_post_remove_parent): If parent is in
16439 gomp_task_maybe_wait_for_dependencies and task to be removed
16440 is parent_depends_on, decrement n_depend and if needed awake
16441 parent. Adjust for addition of taskwait indirection.
16442 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16443 (gomp_task_maybe_wait_for_dependencies): New function.
16444 * testsuite/libgomp.c/depend-5.c: New test.
16446 2014-07-13 Tobias Burnus <burnus@net-b.de>
16448 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16449 with TS 18508/Fortran 2015.
16451 2014-07-06 Marek Polacek <polacek@redhat.com>
16454 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16456 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16458 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16459 matches regex $lang_source_re, add $lang_include_flags to options.
16460 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16461 * testsuite/libgomp.c++/c++.exp: Likewise.
16462 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16463 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16465 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16467 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16469 * testsuite/libgomp.fortran/fortran.exp: Explain
16470 gfortran-dg-runtest usage.
16472 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16474 * testsuite/libgomp.fortran/simd5.f90: New test.
16475 * testsuite/libgomp.fortran/simd6.f90: New test.
16476 * testsuite/libgomp.fortran/simd7.f90: New test.
16478 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16480 * testsuite/libgomp.c/for-2.c: Define SC to static for
16481 #pragma omp for simd testing.
16482 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16483 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16485 * testsuite/libgomp.c/simd-14.c: New test.
16486 * testsuite/libgomp.c/simd-15.c: New test.
16487 * testsuite/libgomp.c/simd-16.c: New test.
16488 * testsuite/libgomp.c/simd-17.c: New test.
16489 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16490 #pragma omp for simd testing.
16491 * testsuite/libgomp.c++/simd10.C: New test.
16492 * testsuite/libgomp.c++/simd11.C: New test.
16493 * testsuite/libgomp.c++/simd12.C: New test.
16494 * testsuite/libgomp.c++/simd13.C: New test.
16496 * testsuite/libgomp.fortran/aligned1.f03: New test.
16497 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16498 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16499 tasks with !$omp parallel !$omp single.
16500 * testsuite/libgomp.fortran/target8.f90: New test.
16501 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16502 not to use trim in the combiner, instead call elemental function.
16503 (fn): New elemental function.
16504 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16506 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16508 * testsuite/libgomp.fortran/udr12.f90: New test.
16509 * testsuite/libgomp.fortran/udr13.f90: New test.
16510 * testsuite/libgomp.fortran/udr14.f90: New test.
16511 * testsuite/libgomp.fortran/udr15.f90: New test.
16513 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16515 * omp_lib.f90.in (openmp_version): Set to 201307.
16516 * omp_lib.h.in (openmp_version): Likewise.
16517 * testsuite/libgomp.c/target-8.c: New test.
16518 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16519 and inbranch clauses.
16520 * testsuite/libgomp.fortran/depend-3.f90: New test.
16521 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16523 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16524 * testsuite/libgomp.fortran/target1.f90: New test.
16525 * testsuite/libgomp.fortran/target2.f90: New test.
16526 * testsuite/libgomp.fortran/target3.f90: New test.
16527 * testsuite/libgomp.fortran/target4.f90: New test.
16528 * testsuite/libgomp.fortran/target5.f90: New test.
16529 * testsuite/libgomp.fortran/target6.f90: New test.
16530 * testsuite/libgomp.fortran/target7.f90: New test.
16532 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16535 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16536 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16537 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16538 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16539 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16540 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16541 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16542 * testsuite/libgomp.fortran/associate1.f90: New test.
16543 * testsuite/libgomp.fortran/associate2.f90: New test.
16544 * testsuite/libgomp.fortran/procptr1.f90: New test.
16546 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16548 * testsuite/libgomp.fortran/simd1.f90: New test.
16549 * testsuite/libgomp.fortran/udr1.f90: New test.
16550 * testsuite/libgomp.fortran/udr2.f90: New test.
16551 * testsuite/libgomp.fortran/udr3.f90: New test.
16552 * testsuite/libgomp.fortran/udr4.f90: New test.
16553 * testsuite/libgomp.fortran/udr5.f90: New test.
16554 * testsuite/libgomp.fortran/udr6.f90: New test.
16555 * testsuite/libgomp.fortran/udr7.f90: New test.
16556 * testsuite/libgomp.fortran/udr8.f90: New test.
16557 * testsuite/libgomp.fortran/udr9.f90: New test.
16558 * testsuite/libgomp.fortran/udr10.f90: New test.
16559 * testsuite/libgomp.fortran/udr11.f90: New test.
16561 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16563 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16564 vect_simd_clones effective target.
16565 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16567 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16569 PR middle-end/61252
16570 * testsuite/libgomp.c++/simd-9.C: New test.
16572 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16574 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16575 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16576 texts according to their @menu entry positions.
16578 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16580 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16581 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16582 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16583 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16584 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16585 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16586 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16587 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16588 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16589 * testsuite/libgomp.fortran/depend-1.f90: New test.
16590 * testsuite/libgomp.fortran/depend-2.f90: New test.
16591 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16592 * testsuite/libgomp.fortran/simd1.f90: New test.
16593 * testsuite/libgomp.fortran/simd2.f90: New test.
16594 * testsuite/libgomp.fortran/simd3.f90: New test.
16595 * testsuite/libgomp.fortran/simd4.f90: New test.
16596 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16598 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16600 * testsuite/libgomp.c/simd-10.c: New test.
16601 * testsuite/libgomp.c/simd-11.c: New test.
16602 * testsuite/libgomp.c/simd-12.c: New test.
16603 * testsuite/libgomp.c/simd-13.c: New test.
16605 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16607 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16608 atomic type clauses in any order and optional comma in between.
16609 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16610 * testsuite/libgomp.c/atomic-17.c: Likewise.
16612 * testsuite/libgomp.c/simd-7.c: New test.
16613 * testsuite/libgomp.c/simd-8.c: New test.
16614 * testsuite/libgomp.c/simd-9.c: New test.
16615 * testsuite/libgomp.c/loop-16.c: New test.
16617 2014-04-02 Richard Henderson <rth@redhat.com>
16619 * config/linux/futex.h (futex_wait): Get error value from errno.
16620 (futex_wake): Likewise.
16622 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16625 * testsuite/libgomp.c++/udr-11.C: New test.
16626 * testsuite/libgomp.c++/udr-12.C: New test.
16627 * testsuite/libgomp.c++/udr-13.C: New test.
16628 * testsuite/libgomp.c++/udr-14.C: New test.
16629 * testsuite/libgomp.c++/udr-15.C: New test.
16630 * testsuite/libgomp.c++/udr-16.C: New test.
16631 * testsuite/libgomp.c++/udr-17.C: New test.
16632 * testsuite/libgomp.c++/udr-18.C: New test.
16633 * testsuite/libgomp.c++/udr-19.C: New test.
16635 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16637 Update copyright years
16639 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16641 * hashtab.h: Use the standard form for the copyright notice.
16643 2014-01-02 Tobias Burnus <burnus@net-b.de>
16645 * libgomp.texi: Bump @copying's copyright year.
16647 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16649 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16650 alloca () with __builtin_alloca ().
16651 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16652 * testsuite/libgomp.c/lock-3.c: Likewise.
16653 * testsuite/libgomp.c/pr48591.c: Likewise.
16655 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16658 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16661 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16664 * testsuite/libgomp.c/pr58756.c: New test.
16666 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16669 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16672 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16674 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16676 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16677 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16678 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16679 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16682 * libgomp_g.h: Include <stddef.h> for size_t.
16684 * libgomp.spec.in: Update comment about libgomp's dependencies.
16685 * configure.ac: Likewise.
16686 * configure: Regenerate.
16688 2013-10-16 Tobias Burnus <burnus@net-b.de>
16690 * libgomp.texi: (Runtime Library Routines): Update references for
16691 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16692 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16693 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16694 (Environment Variables): Update references for OpenMP 4.0. Add
16695 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16696 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16699 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16701 * env.c (parse_bind_var): Initialize value to avoid
16702 (false positive) warning.
16704 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16707 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16709 (gomp_init_num_threads): Move i variable declaration into
16710 #ifdef CPU_ALLOC_SIZE block.
16711 * config/linux/affinity.c (gomp_affinity_init_level): Test
16712 gomp_places_list_len == 0 rather than gomp_places_list == 0
16713 when checking for topology reading error.
16714 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16715 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16716 gomp_places_list, only parse env var and always return false.
16717 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16718 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16719 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16720 and either of these variables were parsed correctly into a places
16723 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16724 Jakub Jelinek <jakub@redhat.com>
16726 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16727 of 5 loopfn matches.
16728 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16729 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16730 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16731 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16732 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16733 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16734 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16735 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16737 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16739 * Makefile.am (omp_lib.mod): Streamline rule.
16740 * Makefile.in: Regenerate.
16742 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16745 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16746 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16747 * testsuite/libgomp.fortran/lib2.f: Likewise.
16748 * testsuite/libgomp.fortran/lib3.f: Likewise.
16750 * configure.ac: Typo fix.
16751 * configure: Regenerate.
16753 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16754 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16756 * omp.h.in: Don't touch the user's namespace.
16758 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16759 Tobias Burnus <burnus@net-b.de>
16760 Richard Henderson <rth@redhat.com>
16762 * target.c: New file.
16763 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16764 * Makefile.in: Regenerated.
16765 * libgomp_g.h (GOMP_task): Add depend argument.
16766 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16767 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16768 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16769 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16770 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16771 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16772 GOMP_taskgroup_start, GOMP_taskgroup_end,
16773 GOMP_parallel_sections): New prototypes.
16774 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16775 (omp_is_initial_device_): New function.
16776 (ULP, STR1, STR2, ialias_redirect): Removed.
16777 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16778 omp_set_default_device_8_, omp_get_default_device_,
16779 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16781 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16782 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16783 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16785 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16786 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16787 omp_set_default_device, omp_set_default_device_,
16788 omp_set_default_device_8_, omp_get_default_device,
16789 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16790 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16791 omp_get_team_num_): Export @@OMP_4.0.
16792 * team.c (struct gomp_thread_start_data): Add place field.
16793 (gomp_thread_start): Clear thr->thread_pool and
16794 thr->task before returning. Use gomp_team_barrier_wait_final
16795 instead of gomp_team_barrier_wait. Initialize thr->place.
16796 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16797 team_cancelled and task_queued_count fields.
16798 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16799 before calling pthread_exit.
16800 (gomp_free_thread): No longer static. Use
16801 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16802 (gomp_team_start): Add flags argument. Set
16803 thr->thread_pool->threads_busy to nthreads immediately after creating
16804 new pool. Use gomp_managed_threads_lock instead of
16805 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16806 (gomp_team_end): Use gomp_managed_threads_lock instead of
16807 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16808 of gomp_team_barrier_wait. If team->team_cancelled, call
16809 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16810 rather than thr->ts.work_share.
16811 (initialize_team): Don't call gomp_sem_init here.
16812 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16814 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16815 * env.c (gomp_global_icv): Add default_device_var, target_data and
16816 bind_var initializers.
16817 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16818 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16819 gomp_places_list_len): New variables.
16820 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16821 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16823 (gomp_cancel_var): New global variable.
16824 (parse_int): New function.
16825 (handle_omp_display_env): New function.
16826 (initialize_env): Use it. Initialize default_device_var.
16827 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16828 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16829 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16830 been successfully parsed (and call gomp_init_affinity in that case).
16831 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16832 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16833 omp_get_team_num, omp_is_initial_device): New functions.
16834 * libgomp.h: Include stdlib.h.
16835 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16837 (struct target_mem_desc): Forward declare.
16838 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16839 and thread_limit_var fields.
16840 (gomp_get_num_devices): New prototype.
16841 (gomp_cancel_var): New extern decl.
16842 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16843 team_cancelled and task_queued_count fields. Add comments about
16844 task_{,queued_,running_}count.
16845 (gomp_cancel_kind): New enum.
16846 (gomp_work_share_end_cancel): New prototype.
16847 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16848 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16850 (struct gomp_taskgroup): New type.
16851 (struct gomp_task_depend_entry,
16852 struct gomp_dependers_vec): New types.
16853 (gomp_finish_task): Free depend_hash if non-NULL.
16854 (struct gomp_team_state): Add place_partition_off
16855 and place_partition_len fields.
16856 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16857 gomp_places_list_len): New extern decls.
16858 (struct gomp_thread): Add place field.
16859 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16860 (gomp_init_thread_affinity): Add place argument.
16861 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16862 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16863 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16864 gomp_affinity_init_level, gomp_affinity_print_place): New
16866 (gomp_team_start): Add flags argument.
16867 (gomp_thread_limit_var, gomp_remaining_threads_count,
16868 gomp_remaining_threads_lock): Remove.
16869 (gomp_managed_threads_lock): New variable.
16870 (struct gomp_thread_pool): Add threads_busy field.
16871 (gomp_free_thread): New prototype.
16872 * task.c: Include hashtab.h.
16873 (hash_entry_type): New typedef.
16874 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16875 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16876 copy_ctors_done and taskgroup fields.
16877 (GOMP_task): Add depend argument, handle depend clauses. If
16878 gomp_team_barrier_cancelled or if it's taskgroup has been
16879 cancelled, don't queue or start new tasks. Set copy_ctors_done
16880 field if needed. Initialize taskgroup field. If copy_ctors_done
16881 and already cancelled, don't discard the task. If taskgroup is
16882 non-NULL, enqueue the task into taskgroup queue. Increment
16883 num_children field in taskgroup. Increment task_queued_count.
16884 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16885 gomp_task_run_post_remove_taskgroup): New inline functions.
16886 (gomp_task_run_post_handle_depend_hash,
16887 gomp_task_run_post_handle_dependers,
16888 gomp_task_run_post_handle_depend): New functions.
16889 (GOMP_taskwait): Use them. If more than one new tasks
16890 have been queued, wake other threads if needed.
16891 (gomp_barrier_handle_tasks): Likewise. If
16892 gomp_team_barrier_cancelled, don't start any new tasks, just free
16894 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16896 (omp_proc_bind_kind, omp_proc_bind_false,
16897 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16898 omp_proc_bind_spread): New params.
16899 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16900 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16901 omp_get_team_num, omp_is_initial_device): New interfaces.
16902 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16903 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16904 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16905 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16906 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16907 useless use omp_lib_kinds.
16908 * omp.h.in (omp_proc_bind_t): New typedef.
16909 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16910 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16911 omp_get_team_num, omp_is_initial_device): New prototypes.
16912 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16913 through to gomp_team_start.
16914 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16915 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16916 Adjust gomp_parallel_loop_start callers.
16917 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16918 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16919 GOMP_loop_end_cancel): New functions.
16920 (GOMP_parallel_end): Add ialias_redirect.
16921 * hashtab.h: New file.
16922 * libgomp.texi (Environment Variables): Minor cleanup,
16923 update section refs to OpenMP 4.0rc2.
16924 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16925 environment variables.
16926 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16927 team->work_shares_to_free to thr->ts.work_share before calling
16929 (gomp_work_share_end_cancel): New function.
16930 * config/linux/proc.c: Include errno.h.
16931 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16932 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16933 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16934 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16935 gomp_cpuset_size is sizeof (cpu_set_t).
16936 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16937 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16938 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16939 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16940 contain any logical CPUs.
16941 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16942 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16943 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16944 pthread_getaffinity_np. Check gomp_places_list instead of
16945 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16946 * config/linux/bar.c (gomp_barrier_wait_end,
16947 gomp_barrier_wait_last): Use BAR_* defines.
16948 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16949 from state where needed. Set work_share_cancelled to 0 on last
16951 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16952 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16954 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16955 Add cpusetsize argument.
16956 (gomp_cpuset_size, gomp_cpusetp): Declare.
16957 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16958 (affinity_counter): Remove.
16959 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16960 if CPU_ALLOC_SIZE isn't defined.
16961 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16962 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16963 bind current thread to the first place.
16964 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16965 pthread_setaffinity_np to gomp_places_list[place].
16966 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16967 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16968 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16969 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16970 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16971 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16972 (gomp_barrier_t): Add awaited_final field.
16973 (gomp_barrier_init): Initialize awaited_final field.
16974 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16975 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16977 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16979 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16980 gomp_team_barrier_cancelled): New inline functions.
16981 (gomp_barrier_last_thread,
16982 gomp_team_barrier_set_task_pending,
16983 gomp_team_barrier_clear_task_pending,
16984 gomp_team_barrier_set_waiting_for_tasks,
16985 gomp_team_barrier_waiting_for_tasks,
16986 gomp_team_barrier_done): Use BAR_* defines.
16987 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16988 (gomp_barrier_wait_end): Use BAR_* defines.
16989 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16990 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16992 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16993 gomp_team_barrier_cancel): New functions.
16994 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16996 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16997 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16998 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16999 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17000 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17001 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17002 (gomp_barrier_t): Add cancellable field.
17003 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17004 gomp_team_barrier_cancel): New prototypes.
17005 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17006 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17007 gomp_team_barrier_cancelled): New inline functions.
17008 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17009 gomp_team_barrier_set_task_pending,
17010 gomp_team_barrier_clear_task_pending,
17011 gomp_team_barrier_set_waiting_for_tasks,
17012 gomp_team_barrier_waiting_for_tasks,
17013 gomp_team_barrier_done): Use BAR_* defines.
17014 * barrier.c (GOMP_barrier_cancel): New function.
17015 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17016 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17017 omp_proc_bind_spread): New params.
17018 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17019 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17020 omp_get_team_num, omp_is_initial_device): New externals.
17021 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17023 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17024 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17025 infinity. If not nested, just return minimum of max_num_threads
17026 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17027 to the returned value. Otherwise, don't update atomically
17028 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17029 (GOMP_parallel_end): Adjust for thread_limit now being in
17030 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17031 infinity. Adjust threads_busy in the pool rather than
17032 gomp_remaining_threads_count. Remember team->nthreads and call
17033 gomp_team_end before adjusting threads_busy, if not nested
17034 afterwards, just set it to 1 non-atomically. Add ialias.
17035 (GOMP_parallel_start): Adjust gomp_team_start caller.
17036 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17037 * testsuite/libgomp.c/affinity-1.c: New test.
17038 * testsuite/libgomp.c/atomic-15.c: New test.
17039 * testsuite/libgomp.c/atomic-16.c: New test.
17040 * testsuite/libgomp.c/atomic-17.c: New test.
17041 * testsuite/libgomp.c/cancel-for-1.c: New test.
17042 * testsuite/libgomp.c/cancel-for-2.c: New test.
17043 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17044 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17045 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17046 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17047 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17048 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17049 * testsuite/libgomp.c/depend-1.c: New test.
17050 * testsuite/libgomp.c/depend-2.c: New test.
17051 * testsuite/libgomp.c/depend-3.c: New test.
17052 * testsuite/libgomp.c/depend-4.c: New test.
17053 * testsuite/libgomp.c/for-1.c: New test.
17054 * testsuite/libgomp.c/for-1.h: New file.
17055 * testsuite/libgomp.c/for-2.c: New test.
17056 * testsuite/libgomp.c/for-2.h: New file.
17057 * testsuite/libgomp.c/for-3.c: New test.
17058 * testsuite/libgomp.c/pr58392.c: New test.
17059 * testsuite/libgomp.c/simd-1.c: New test.
17060 * testsuite/libgomp.c/simd-2.c: New test.
17061 * testsuite/libgomp.c/simd-3.c: New test.
17062 * testsuite/libgomp.c/simd-4.c: New test.
17063 * testsuite/libgomp.c/simd-5.c: New test.
17064 * testsuite/libgomp.c/simd-6.c: New test.
17065 * testsuite/libgomp.c/target-1.c: New test.
17066 * testsuite/libgomp.c/target-2.c: New test.
17067 * testsuite/libgomp.c/target-3.c: New test.
17068 * testsuite/libgomp.c/target-4.c: New test.
17069 * testsuite/libgomp.c/target-5.c: New test.
17070 * testsuite/libgomp.c/target-6.c: New test.
17071 * testsuite/libgomp.c/target-7.c: New test.
17072 * testsuite/libgomp.c/taskgroup-1.c: New test.
17073 * testsuite/libgomp.c/thread-limit-1.c: New test.
17074 * testsuite/libgomp.c/thread-limit-2.c: New test.
17075 * testsuite/libgomp.c/thread-limit-3.c: New test.
17076 * testsuite/libgomp.c/udr-1.c: New test.
17077 * testsuite/libgomp.c/udr-2.c: New test.
17078 * testsuite/libgomp.c/udr-3.c: New test.
17079 * testsuite/libgomp.c++/affinity-1.C: New test.
17080 * testsuite/libgomp.c++/atomic-10.C: New test.
17081 * testsuite/libgomp.c++/atomic-11.C: New test.
17082 * testsuite/libgomp.c++/atomic-12.C: New test.
17083 * testsuite/libgomp.c++/atomic-13.C: New test.
17084 * testsuite/libgomp.c++/atomic-14.C: New test.
17085 * testsuite/libgomp.c++/atomic-15.C: New test.
17086 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17087 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17088 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17089 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17090 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17091 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17092 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17093 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17094 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17095 * testsuite/libgomp.c++/cancel-test.h: New file.
17096 * testsuite/libgomp.c++/for-9.C: New test.
17097 * testsuite/libgomp.c++/for-10.C: New test.
17098 * testsuite/libgomp.c++/for-11.C: New test.
17099 * testsuite/libgomp.c++/simd-1.C: New test.
17100 * testsuite/libgomp.c++/simd-2.C: New test.
17101 * testsuite/libgomp.c++/simd-3.C: New test.
17102 * testsuite/libgomp.c++/simd-4.C: New test.
17103 * testsuite/libgomp.c++/simd-5.C: New test.
17104 * testsuite/libgomp.c++/simd-6.C: New test.
17105 * testsuite/libgomp.c++/simd-7.C: New test.
17106 * testsuite/libgomp.c++/simd-8.C: New test.
17107 * testsuite/libgomp.c++/target-1.C: New test.
17108 * testsuite/libgomp.c++/target-2.C: New test.
17109 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17110 * testsuite/libgomp.c++/target-3.C: New test.
17111 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17112 * testsuite/libgomp.c++/udr-1.C: New test.
17113 * testsuite/libgomp.c++/udr-2.C: New test.
17114 * testsuite/libgomp.c++/udr-3.C: New test.
17115 * testsuite/libgomp.c++/udr-4.C: New test.
17116 * testsuite/libgomp.c++/udr-5.C: New test.
17117 * testsuite/libgomp.c++/udr-6.C: New test.
17118 * testsuite/libgomp.c++/udr-7.C: New test.
17119 * testsuite/libgomp.c++/udr-8.C: New test.
17120 * testsuite/libgomp.c++/udr-9.C: New test.
17122 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17125 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17128 2013-09-20 Alan Modra <amodra@gmail.com>
17130 * configure: Regenerate.
17132 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17134 * testsuite/libgomp.c/sections-2.c: New test.
17136 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17138 * testsuite/libgomp.fortran/strassen.f90:
17139 Add dg-skip-if aarch64_tiny.
17141 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17142 Cesar Philippidis <cesar@codesourcery.com>
17144 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17145 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17146 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17147 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17148 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17149 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17150 Use dg-runtest rather than gfortran-dg-runtest.
17152 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17154 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17155 Linux-based x86 systems to cover all GNU systems.
17156 * testsuite/libgomp.c/lock-3.c: Likewise.
17157 * testsuite/libgomp.c/pr48591.c: Likewise.
17159 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17161 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17162 GNU/Hurd, as done for Linux-based systems.
17164 * config/posix/ptrlock.h: Fix comment.
17166 2013-05-27 Tobias Burnus <burnus@net-b.de>
17169 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17170 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17171 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17172 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17173 omp_destroy_nest_lock): Correct arguments to match the one in
17175 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17176 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17177 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17178 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17180 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17182 * testsuite/libgomp.c/loop-13.c: New test.
17183 * testsuite/libgomp.c/loop-14.c: New test.
17184 * testsuite/libgomp.c/loop-15.c: New test.
17185 * testsuite/libgomp.c++/loop-13.C: New test.
17186 * testsuite/libgomp.c++/loop-14.C: New test.
17187 * testsuite/libgomp.c++/loop-15.C: New test.
17189 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17191 PR middle-end/56217
17192 * testsuite/libgomp.c++/pr56217.C: New test.
17194 2013-02-01 Alan Modra <amodra@gmail.com>
17196 * task.c (GOMP_task, GOMP_taskwait): Comment.
17198 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17199 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17202 * config/linux/wait.h (do_spin): Use atomic load for addr.
17203 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17204 for intptr and ptrlock.
17205 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17208 2013-01-22 Alan Modra <amodra@gmail.com>
17212 * task.c (GOMP_task): Revert 2011-12-09 change.
17213 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17214 barrier to read task->children..
17215 (gomp_barrier_handle_tasks): ..and matching atomic store with
17216 release barrier here when setting parent->children to NULL.
17218 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17219 Tobias Burnus <burnus@net-b.de>
17222 * testsuite/libgomp.fortran/fortran.exp: Use
17223 -fintrinsic-modules-path= instead of
17224 -fintrinsic-modules-path.
17226 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17228 Update copyright years.
17230 2012-12-19 Tobias Burnus <burnus@net-b.de>
17232 * testsuite/libgomp.fortran/fortran.exp: Set
17233 -fintrinsic-modules-path.
17235 2012-12-19 Tobias Burnus <burnus@net-b.de>
17237 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17238 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17240 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17243 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17244 if pool had any threads_used.
17246 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17248 * testsuite/libgomp.c++/pr24455.C: Use
17249 -Wl,-undefined,dynamic_lookup on darwin.
17251 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17253 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17255 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17257 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17259 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17260 Jim MacArthur <jim.macarthur@arm.com>
17261 Marcus Shawcroft <marcus.shawcroft@arm.com>
17262 Nigel Stephens <nigel.stephens@arm.com>
17263 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17264 Richard Earnshaw <rearnsha@arm.com>
17265 Sofiane Naci <sofiane.naci@arm.com>
17266 Stephen Thomas <stephen.thomas@arm.com>
17267 Tejas Belagod <tejas.belagod@arm.com>
17268 Yufeng Zhang <yufeng.zhang@arm.com>
17270 * configure.tgt: Add AArch64.
17272 2012-10-04 Jason Merrill <jason@redhat.com>
17274 * testsuite/libgomp.c++/tls-init1.C: New.
17276 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17278 * configure: Regenerated.
17280 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17282 * config/linux/mips/futex.h (sys_futex0): Change to static
17283 function with noinline, nomips16 attributes under MIPS16. Adjust
17284 asm statement to place 'li v0,SYS_futex' immediately before
17287 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17289 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17290 conflict with index.html on case-insensitive file systems.
17292 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17294 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17295 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17297 2012-07-02 Richard Guenther <rguenther@suse.de>
17298 Michael Matz <matz@suse.de>
17299 Tobias Grosser <tobias@grosser.es>
17300 Sebastian Pop <sebpop@gmail.com>
17302 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17303 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17304 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17305 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17307 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17309 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17311 2012-06-22 Richard Guenther <rguenther@suse.de>
17313 Merge from graphite branch
17314 2012-01-13 Tobias Grosser <tobias@grosser.es>
17316 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17317 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17319 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17321 PR middle-end/53580
17322 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17323 use GOMP_barrier () call instead.
17324 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17325 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17326 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17327 call GOMP_barrier instead.
17328 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17330 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17333 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17334 argument to memset call.
17336 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17338 * configure: Regenerated.
17340 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17342 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17344 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17347 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17349 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17351 PR middle-end/52547
17352 * testsuite/libgomp.c/pr52547.c: New test.
17354 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17356 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17358 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17360 * configure.tgt (mips-sgi-irix6*): Remove.
17362 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17364 * configure.tgt (alpha*-dec-osf*): Remove.
17366 * config/osf/sem.h: Remove.
17367 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17369 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17371 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17373 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17376 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17377 Remove ENABLE_SYMVERS_SOL2.
17378 * configure: Regenerate.
17379 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17380 (PREPROCESS): New variable.
17381 (libgomp.ver): New target.
17382 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17383 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17384 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17386 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17387 * Makefile.in: Regenerate.
17389 2012-02-14 Walter Lee <walt@tilera.com>
17391 * configure.tgt: Handle tilegx and tilepro.
17392 * config/linux/tile/futex.h: New file.
17394 2012-02-08 Richard Guenther <rguenther@suse.de>
17396 PR tree-optimization/46886
17397 * testsuite/libgomp.c/pr46886.c: New testcase.
17399 2012-01-25 Matthias Klose <doko@ubuntu.com>
17401 * config/linux/arm: Remove empty directory.
17402 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17404 2011-12-09 Alan Modra <amodra@gmail.com>
17407 * task.c (GOMP_taskwait): Don't access task->children outside of
17408 task_lock mutex region.
17409 (GOMP_task): Likewise.
17411 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17414 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17416 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17417 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17418 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17419 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17420 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17422 2011-12-02 Alan Modra <amodra@gmail.com>
17424 * config/linux/affinity.c: Use atomic rather than sync builtin.
17425 * config/linux/lock.c: Likewise.
17426 * config/linux/ptrlock.h: Likewise.
17427 * config/linux/ptrlock.c: Likewise.
17428 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17429 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17430 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17431 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17432 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17433 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17434 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17435 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17436 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17437 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17439 2011-11-30 Alan Modra <amodra@gmail.com>
17442 * config/linux/bar.h: Use atomic rather than sync builtins.
17443 * config/linux/bar.c: Likewise. Add missing acquire
17444 synchronisation on generation field.
17445 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17448 2011-11-30 Alan Modra <amodra@gmail.com>
17450 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17451 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17452 * config/linux/mutex.h: Use atomic rather than sync builtins.
17453 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17454 * config/linux/omp-lock.h: Comment fix.
17455 * config/linux/arm/mutex.h: Delete.
17456 * config/linux/powerpc/mutex.h: Delete.
17457 * config/linux/ia64/mutex.h: Delete.
17458 * config/linux/mips/mutex.h: Delete.
17460 2011-11-30 Alan Modra <amodra@gmail.com>
17463 * config/linux/sem.h: Rewrite.
17464 * config/linux/sem.c: Rewrite.
17466 2011-11-28 Richard Henderson <rth@redhat.com>
17468 * libgomp.h (enum memmodel): New.
17470 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17472 * configure: Regenerate.
17474 2011-10-10 Matthias Klose <doko@ubuntu.com>
17476 * config/posix95: Remove empty directory.
17478 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17480 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17482 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17485 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17486 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17488 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17490 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17492 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17495 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17497 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17499 * config/linux/proc.h: New.
17500 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17501 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17502 (gomp_init_num_threads): Update call to cpuset_popcount.
17503 (get_num_procs): Ditto.
17504 * config/linux/affinity.c (gomp_init_affinity): Call
17505 gomp_cpuset_popcount.
17507 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17511 * omp.h.in (omp_in_final): New prototype.
17512 * omp_lib.f90.in (omp_in_final): New interface.
17513 (omp_integer_kind, omp_logical_kind): Remove
17514 and replace all its uses in the module with 4.
17515 (openmp_version): Change to 201107.
17516 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17517 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17518 kind for the parameters.
17519 (omp_in_final): New external.
17520 (openmp_version): Change to 201107.
17521 * task.c (omp_in_final): New function.
17522 (gomp_init_task): Initialize final_task.
17523 (GOMP_task): Remove unused attribute from flags. Handle final
17525 (GOMP_taskyield): New function.
17526 (omp_in_final): Return true if if (false) or final (true) task
17527 or descendant of final (true).
17528 * fortran.c (omp_in_final_): New function.
17529 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17530 (GOMP_3.0): Export GOMP_taskyield.
17531 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17533 (parse_unsigned_long_list): New function.
17534 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17535 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17536 even if parse_affinity returned false.
17537 * config/linux/affinity.c (gomp_init_affinity): Handle
17538 gomp_cpu_affinity_len == 0.
17539 * libgomp_g.h (GOMP_taskyield): New prototype.
17540 * libgomp.h (struct gomp_task): Add final_task field.
17541 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17542 * team.c (gomp_team_start): Override new task's nthreads_var icv
17543 if list form OMP_NUM_THREADS has been used and it has value for
17544 the new nesting level.
17546 * testsuite/libgomp.c/atomic-11.c: New test.
17547 * testsuite/libgomp.c/atomic-12.c: New test.
17548 * testsuite/libgomp.c/atomic-13.c: New test.
17549 * testsuite/libgomp.c/atomic-14.c: New test.
17550 * testsuite/libgomp.c/reduction-6.c: New test.
17551 * testsuite/libgomp.c/task-5.c: New test.
17552 * testsuite/libgomp.c++/atomic-2.C: New test.
17553 * testsuite/libgomp.c++/atomic-3.C: New test.
17554 * testsuite/libgomp.c++/atomic-4.C: New test.
17555 * testsuite/libgomp.c++/atomic-5.C: New test.
17556 * testsuite/libgomp.c++/atomic-6.C: New test.
17557 * testsuite/libgomp.c++/atomic-7.C: New test.
17558 * testsuite/libgomp.c++/atomic-8.C: New test.
17559 * testsuite/libgomp.c++/atomic-9.C: New test.
17560 * testsuite/libgomp.c++/task-8.C: New test.
17561 * testsuite/libgomp.c++/reduction-4.C: New test.
17562 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17563 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17564 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17565 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17566 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17567 * testsuite/libgomp.fortran/pointer1.f90: New test.
17568 * testsuite/libgomp.fortran/pointer2.f90: New test.
17569 * testsuite/libgomp.fortran/task4.f90: New test.
17571 2011-08-02 Tobias Burnus <burnus@net-b.de>
17573 * libgomp.texi: Update OpenMP spec references to 3.1.
17574 (omp_in_final,OMP_PROC_BIND): New sections.
17575 (OMP_NUM_THREADS): Document that the value can be now a list.
17576 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17578 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17580 * config/linux/x86/futex.h: Check __x86_64__ instead of
17583 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17585 PR middle-end/49897
17586 PR middle-end/49898
17587 * testsuite/libgomp.c/pr49897-1.c: New test.
17588 * testsuite/libgomp.c/pr49897-2.c: New test.
17589 * testsuite/libgomp.c/pr49898-1.c: New test.
17590 * testsuite/libgomp.c/pr49898-2.c: New test.
17592 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17594 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17595 for ia32 instead of ilp32.
17597 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17598 * testsuite/libgomp.c/atomic-6.c: Likewise.
17600 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17602 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17603 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17605 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17608 * config/osf/sem.h: New file.
17609 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17611 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17614 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17617 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17619 * config/linux/wait.h (do_spin): New inline, largely copied
17620 from do_wait, just don't do futex_wait here, instead return true if
17622 (do_wait): Implement using do_spin.
17623 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17625 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17626 __sync_bool_compare_and_swap, pass the oldval to
17627 gomp_mutex_lock_slow.
17628 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17629 If all mutex contenders are just spinning and not sleeping, don't
17630 change state to 2 unnecessarily. Optimize the loop when state has
17631 already become 2 to use just one atomic operation per loop instead
17633 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17635 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17636 __sync_bool_compare_and_swap, pass the oldval to
17637 gomp_mutex_lock_slow.
17639 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17642 * iter.c (gomp_iter_static_next): For chunk size 0
17643 only use n ceil/ nthreads size for the first
17644 n % nthreads threads in the team instead of
17645 all threads except for the last few ones which
17646 get less work or none at all.
17647 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17648 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17649 chunk argument, set run_sched_modifier to 0 for static
17650 resp. 1 for other kinds. If chunk argument is 0
17651 and not static, set value to 1.
17653 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17656 * testsuite/libgomp.c++/pr49043.C: New test.
17659 * testsuite/libgomp.c++/pr48869.C: New test.
17661 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17664 * fortran.c: Include limits.h.
17666 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17668 (omp_set_num_threads_8_, omp_set_schedule_8_,
17669 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17670 omp_get_team_size_8_): Use TO_INT macro.
17671 * testsuite/libgomp.fortran/pr48894.f90: New test.
17673 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17675 PR middle-end/48591
17676 * testsuite/libgomp.c/pr48591.c: New test.
17678 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17681 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17682 * configure: Regenerate.
17684 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17687 * testsuite/libgomp.fortran/task3.f90: New test.
17689 2011-02-24 Tobias Burnus <burnus@net-b.de>
17691 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17693 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17696 * libgomp.texi (omp_get_wtime): Don't say time in the past
17697 must be Unix Epoch.
17699 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17702 * testsuite/libgomp.fortran/fortran.exp: Check for both
17703 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17704 but $blddir != "", still append ${blddir}/${lang_library_path}
17705 to ld_library_path.
17707 2011-02-16 Tobias Burnus <burnus@net-b.de>
17710 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17711 of libquadmath.a before adding its libpath to ldflags.
17713 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17716 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17717 to FUTEX_WAIT futex syscall.
17718 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17720 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17722 * configure: Regenerate.
17724 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17727 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17729 2011-01-16 Gerald Pfeifer
17731 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17733 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17736 * libgomp.fortran/allocatable6.f90: New test.
17738 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17740 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17741 * configure: Regenerate.
17743 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17747 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17748 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17749 * aclocal.m4: Regenerate.
17750 * configure: Regenerate.
17751 * Makefile.in: Regenerate.
17752 * testsuite/Makefile.in: Regenerate.
17754 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17757 * libgomp.fortran/pr46753.f90: New test.
17760 * env.c (initialize_env): Default to spin count 300000
17761 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17765 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17766 at the end if sync builtins aren't supported.
17768 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17770 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17772 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17774 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17776 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17778 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17780 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17781 Tobias Burnus <burnus@net-b.de>
17785 * configure: Regenerate.
17787 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17789 * config/linux/futex.h: New.
17790 * config/linux/arm/mutex.h: New.
17791 * configure.tgt (arm*-*-linux*): Add config path.
17793 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17795 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17797 2010-09-23 Tobias Burnus <burnus@net-b.de>
17799 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17800 Change Fortran datatype to LOGICAL.
17801 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17802 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17804 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17806 * configure: Regenerate.
17808 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17810 * libgomp.texi: Add function keyword to a couple of Fortran
17811 interfaces, use integer instead of int for Fortran.
17813 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17815 * libgomp.texi: Fix spelling and pasto problems throughout.
17816 Adjust prototypes to match code.
17818 2010-07-24 Tobias Burnus <burnus@net-b.de>
17820 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17821 silence -fwhole-file warning.
17823 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17825 * configure.tgt (*-*-solaris2.[56]*): Removed.
17827 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17829 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17830 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17831 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17832 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17833 targetting solaris2*.
17834 * configure: Regenerate.
17835 * config.h.in: Regenerate.
17837 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17838 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17839 Add libgomp_version_dep.
17840 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17842 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17843 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17844 * Makefile.in: Regenerate.
17846 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17847 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17848 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17849 to common block, protected by
17850 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17852 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17854 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17856 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17859 * configure: Regenerate.
17861 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17864 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17865 * configure: Regenerate.
17866 * Makefile.in: Regenerate.
17867 * testsuite/Makefile.in: Regenerate.
17869 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17872 * testsuite/libgomp.c/pr43893.c: New test.
17873 * testsuite/libgomp.c++/pr43893.C: New test.
17875 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17877 PR middle-end/43570
17878 * testsuite/libgomp.fortran/vla8.f90: New test.
17880 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17883 * config/linux/affinity.c (gomp_init_affinity): Decrease
17884 gomp_available_cpus if affinity mask confines the process to fewer
17886 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17887 non-NULL, just return gomp_available_cpus.
17890 * sections.c (gomp_sections_init): Initialize ws->mode.
17892 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17894 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17895 not unused bar variable.
17896 * configure: Regenerate.
17898 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17900 * Makefile.in: Regenerate.
17901 * aclocal.m4: Regenerate.
17902 * testsuite/Makefile.in: Regenerate.
17904 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17907 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17908 (initialize_env): Adjust callers.
17909 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17910 when the argument is 0.
17912 * testsuite/libgomp.c/pr42942.c: New test.
17914 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17916 PR middle-end/42644
17917 PR middle-end/42130
17918 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17919 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17921 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17923 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17924 * testsuite/libgomp.c++/task-6.C: Likewise.
17926 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17928 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17930 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17932 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17933 * configure: Regenerate.
17935 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17938 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17940 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17942 * configure.ac: Test for executability of GFORTRAN.
17943 * configure: Regenerate.
17945 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17947 * configure: Regenerate.
17949 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17952 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17954 2010-01-03 Richard Guenther <rguenther@suse.de>
17956 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17958 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17960 * testsuite/libgomp.graphite/pr4118.c: New.
17962 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17964 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17965 for darwin, protect the test with require-effective-target tls_runtime.
17966 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17968 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17971 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17972 link spec %s substitutions for static libraries.
17974 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17977 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17979 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17981 * Makefile.in: Regenerate.
17982 * configure: Regenerate.
17983 * testsuite/Makefile.in: Regenerate.
17985 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17987 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17988 settings for LC_ALL and LANG.
17990 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17993 * testsuite/libgomp.fortran/pr42162.f90: New test.
17995 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17997 PR middle-end/42029
17998 * testsuite/libgomp.c/pr42029.c: New test.
18000 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18002 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18003 *s. Accept ld version without text in ()s.
18004 * configure: Regenerated.
18006 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18008 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18010 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18013 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18014 or a hyphen (happens with fortran language disabled).
18015 * configure: Regenerate.
18017 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18019 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18020 use sed script portable to Solaris /bin/sed for extracting ld
18022 * configure: Regenerate.
18024 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18026 * testsuite/libgomp.graphite/bounds.c: New test.
18028 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18030 * Makefile.am (libgomp_la_LINK): New.
18031 * Makefile.in: Regenerate.
18033 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18035 * configure.ac (AC_PREREQ): Bump to 2.64.
18037 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18039 * Makefile.am (install-html, install-pdf): Remove.
18040 * Makefile.in: Regenerate.
18042 * Makefile.in: Regenerate.
18043 * aclocal.m4: Regenerate.
18044 * config.h.in: Regenerate.
18045 * configure: Regenerate.
18046 * testsuite/Makefile.in: Regenerate.
18048 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18050 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18051 * Makefile.in: Regenerate.
18053 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18055 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18056 * Makefile.in: Regenerate.
18058 2009-08-19 Tobias Burnus <burnus@net-b.de>
18061 omp_lib.h.in: Fix -std=f95 errors.
18063 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18065 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18066 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18067 * testsuite/libgomp.graphite/graphite.exp: New.
18069 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18071 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18074 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18076 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18077 needed memory barrier semantics.
18078 * config/linux/mips/mutex.h: New file.
18080 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18082 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18084 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18086 * configure: Regenerate.
18088 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18093 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18094 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18095 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18097 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18099 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18100 options when choosing a multilib.
18102 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18104 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18105 ld_library_path. Use add_path. Add just find_libgcc_s to
18106 ld_library_path, not every libgcc multilib directory.
18107 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18108 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18109 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18111 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18113 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18115 * Makefile.am (LTLDFLAGS): Define.
18117 * Makefile.in: Regenerate.
18119 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18122 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18123 libgfortranbegin, check existence of libgfortran.a instead of
18124 libgfortranbegin.a.
18126 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18129 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18130 (gomp_free_pool_helper): Likewise.
18132 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18133 Jakub Jelinek <jakub@redhat.com>
18136 * testsuite/libgomp.fortran/workshare2.f90: New test.
18138 2009-04-09 Nick Clifton <nickc@redhat.com>
18140 * iter.c: Change copyright header to refer to version 3 of the
18141 GNU General Public License with version 3.1 of the GCC Runtime
18142 Library Exception and to point readers at the COPYING3 and
18143 COPYING3.RUNTIME files and the FSF's license web page.
18144 * alloc.c: Likewise.
18145 * barrier.c: Likewise.
18146 * config/bsd/proc.c: Likewise.
18147 * config/linux/affinity.c: Likewise.
18148 * config/linux/alpha/futex.h: Likewise.
18149 * config/linux/bar.c: Likewise.
18150 * config/linux/bar.h: Likewise.
18151 * config/linux/ia64/futex.h: Likewise.
18152 * config/linux/ia64/mutex.h: Likewise.
18153 * config/linux/lock.c: Likewise.
18154 * config/linux/mips/futex.h: Likewise.
18155 * config/linux/mutex.c: Likewise.
18156 * config/linux/mutex.h: Likewise.
18157 * config/linux/powerpc/futex.h: Likewise.
18158 * config/linux/proc.c: Likewise.
18159 * config/linux/ptrlock.c: Likewise.
18160 * config/linux/ptrlock.h: Likewise.
18161 * config/linux/s390/futex.h: Likewise.
18162 * config/linux/sem.c: Likewise.
18163 * config/linux/sem.h: Likewise.
18164 * config/linux/sparc/futex.h: Likewise.
18165 * config/linux/wait.h: Likewise.
18166 * config/linux/x86/futex.h: Likewise.
18167 * config/mingw32/proc.c: Likewise.
18168 * config/mingw32/time.c: Likewise.
18169 * config/posix/affinity.c: Likewise.
18170 * config/posix/bar.c: Likewise.
18171 * config/posix/bar.h: Likewise.
18172 * config/posix/lock.c: Likewise.
18173 * config/posix/mutex.h: Likewise.
18174 * config/posix/proc.c: Likewise.
18175 * config/posix/ptrlock.h: Likewise.
18176 * config/posix/sem.c: Likewise.
18177 * config/posix/sem.h: Likewise.
18178 * config/posix/time.c: Likewise.
18179 * config/posix95/lock.c: Likewise.
18180 * critical.c: Likewise.
18182 * error.c: Likewise.
18183 * fortran.c: Likewise.
18184 * iter_ull.c: Likewise.
18185 * libgomp.h: Likewise.
18186 * libgomp_f.h.in: Likewise.
18187 * libgomp_g.h: Likewise.
18188 * loop.c: Likewise.
18189 * loop_ull.c: Likewise.
18190 * omp.h.in: Likewise.
18191 * omp_lib.f90.in: Likewise.
18192 * omp_lib.h.in: Likewise.
18193 * ordered.c: Likewise.
18194 * parallel.c: Likewise.
18195 * sections.c: Likewise.
18196 * single.c: Likewise.
18197 * task.c: Likewise.
18198 * team.c: Likewise.
18199 * work.c: Likewise.
18201 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18203 * testsuite/config/default.exp: Change copyright header to refer to
18204 version 3 of the GNU General Public License and to point readers
18205 at the COPYING3 file and the FSF's license web page.
18207 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18209 PR middle-end/39573
18210 * libgomp.c++/pr39573.C: New test.
18212 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18215 * testsuite/libgomp.c/pr39591-1.c: New test.
18216 * testsuite/libgomp.c/pr39591-2.c: New test.
18217 * testsuite/libgomp.c/pr39591-3.c: New test.
18219 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18221 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18222 * testsuite/libgomp.c/atomic-6.c: Ditto.
18224 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18227 * testsuite/libgomp.c/loop-12.c: New test.
18228 * testsuite/libgomp.c/loop-11.c: New test.
18229 * testsuite/libgomp.c++/loop-11.C: New test.
18230 * testsuite/libgomp.c++/loop-12.C: New test.
18231 * testsuite/libgomp.c++/for-8.C: New test.
18233 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18235 * configure: Regenerate.
18237 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18239 PR middle-end/39154
18240 * testsuite/libgomp.c/pr39154.c: New test.
18242 2009-01-30 Ian Lance Taylor <iant@google.com>
18244 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18245 libgomp_ld_is_gold. Get gold version number.
18246 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18247 * configure: Rebuild.
18249 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18251 * testsuite/lib/libgomp.exp: Add -B option for targets that
18252 use libgfortran.a%s in their specs.
18254 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18257 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18258 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18259 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18260 * configure: Regenerated.
18261 * config.h.in: Likewise.
18263 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18266 * testsuite/libgomp.c/pr38650.c: New test.
18267 * testsuite/libgomp.c++/pr38650.C: New test.
18269 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18271 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18273 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18275 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18277 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18279 * configure: Regenerate.
18281 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18283 PR middle-end/36802
18284 * testsuite/libgomp.c/pr36802-1.c: New test.
18285 * testsuite/libgomp.c/pr36802-2.c: New test.
18286 * testsuite/libgomp.c/pr36802-3.c: New test.
18288 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18291 * config/linux/powerpc/mutex.h: New.
18293 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18296 * testsuite/libgomp.c++/for-7.C: New test.
18299 * testsuite/libgomp.c++/for-6.C: New test.
18301 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18304 * testsuite/lib/libgomp.exp: Include new timeout library files.
18305 (libgomp_target_compile): Set timeout value from new proc.
18307 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18310 * config/linux/ia64/mutex.h: New.
18312 2008-11-04 Tobias Burnus <burnus@net-b.de>
18315 * libgomp.texi (Runtime library routines, environment variables):
18316 Update for OpenMP version 3.0.
18318 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18319 Steve Ellcey <sje@cup.hp.com>
18321 * configure: Regenerate for new libtool.
18322 * Makefile.in: Ditto.
18323 * testsuite/Makefile.in: Ditto.
18325 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18326 Andreas Tobler <a.tobler@schweiz.org>
18328 * config/bsd/proc.c: New file.
18329 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18330 * configure.ac: Check for header <sys/sysctl.h>
18331 * configure: Regenerate.
18332 * config.h.in: Likewise.
18334 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18336 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18338 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18340 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18341 * Makefile.in: Regenerated.
18342 * testsuite/Makefile.in: Regenerated.
18344 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18346 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18347 depend on blddir if blddir exists.
18348 (libgomp_target_compile): Likewise.
18349 * testsuite/libgomp.c++/c++.exp: Likewise.
18350 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18352 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18354 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18355 Do not list GPL as Invariant Section.
18357 2008-07-28 Ilie Garbacea <ilie@mips.com>
18358 Chao-ying Fu <fu@mips.com>
18360 * configure.tgt: Enable futex for MIPS.
18361 * config/linux/mips/futex.h: New file.
18363 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18365 * team.c (gomp_team_end): Free team immediately if it has
18368 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18370 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18371 * testsuite/libgomp.fortran/fortran.exp: Same.
18372 * testsuite/libgomp.c/c.exp: Same.
18373 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18374 directory to library path first.
18376 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18378 * env.c (parse_stacksize): Add cast to avoid warning.
18379 (parse_spincount): Likewise.
18381 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18383 * testsuite/libgomp.c/loop-10.c: New test.
18384 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18385 * libgomp.c++/loop-6.C (main): Likewise.
18388 * testsuite/libgomp.c/debug-1.c: New test.
18390 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18392 * testsuite/libgomp.c/nqueens-1.c: New test.
18395 * testsuite/libgomp.c++/task-7.C: New function.
18397 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18399 * configure: Regenerate.
18401 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18403 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18404 mutex when HAVE_SYNC_BUILTINS isn't defined.
18406 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18408 * libgomp.texi (omp_test_lock): Fix typo.
18410 2008-06-12 Tobias Burnus <burnus@net-b.de>
18412 * omp_lib.f90.in: Add "implicit none".
18414 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18416 PR middle-end/36506
18417 * testsuite/libgomp.c/reduction-5.c: New test.
18419 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18421 * libgomp.h (struct gomp_task): Add in_tied_task field.
18422 * task.c (gomp_init_task): Initialize it.
18423 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18424 unconditionally. Don't call gomp_team_barrier_wake if
18425 current task is implicit or if(0) from implicit and number of
18426 running tasks is equal to nthreads - 1.
18429 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18430 omp_get_team_size_8): Fix pastos.
18433 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18434 * configure: Regenerated.
18435 * config.h.in: Regenerated.
18436 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18439 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18442 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18443 (GOMP_loop_ull_dynamic_start): Likewise.
18444 (GOMP_loop_ull_guided_start): Likewise.
18445 (GOMP_loop_ull_ordered_static_start): Likewise.
18446 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18447 (GOMP_loop_ull_ordered_guided_start): Likewise.
18449 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18450 Richard Henderson <rth@redhat.com>
18451 Ulrich Drepper <drepper@redhat.com>
18452 Jakob Blomer <jakob.blomer@ira.uka.de>
18454 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18455 Substitute also OMP_*LOCK_25*.
18456 * configure: Regenerated.
18457 * config.h.in: Regenerated.
18458 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18459 ptrlock.c and task.c.
18460 * Makefile.in: Regenerated.
18461 * testsuite/Makefile.in: Regenerated.
18462 * task.c: New file.
18463 * loop_ull.c: New file.
18464 * iter_ull.c: New file.
18465 * libgomp.h: Include ptrlock.h.
18466 (enum gomp_task_kind): New type.
18467 (struct gomp_team): Add task_lock, task_queue, task_count,
18468 task_running_count, single_count fields. Add
18469 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18470 Remove work_share_lock, generation_mask,
18471 oldest_live_gen, num_live_gen and init_work_shares fields, add
18472 work work_share_list_alloc, work_share_list_free and work_share_chunk
18473 fields. Change work_shares from pointer to pointers into an array.
18474 Change ordered_release field into gomp_sem_t ** from flexible array
18475 member. Add implicit_task and initial_work_shares fields.
18476 Move close to the end of the struct.
18477 (struct gomp_team_state): Add single_count, last_work_share,
18478 active_level and level fields, remove work_share_generation.
18479 (gomp_barrier_handle_tasks): New prototype.
18480 (gomp_finish_task): New inline function.
18481 (struct gomp_work_share): Move chunk_size, end, incr into
18482 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18483 next_ll fields. Reshuffle fields. Add next_alloc,
18484 next_ws, next_free and inline_ordered_team_ids fields, change
18485 ordered_team_ids into pointer from flexible array member.
18486 Add mode field. Put lock and next into a different cache line
18487 from most of the write-once fields.
18488 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18489 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18490 gomp_iter_ull_guided_next): New prototypes.
18491 (gomp_new_icv): New prototype.
18492 (struct gomp_thread): Add thread_pool and task fields.
18493 (struct gomp_thread_pool): New type.
18494 (gomp_new_team): New prototype.
18495 (gomp_team_start): Change type of last argument.
18496 (gomp_new_work_share): Removed.
18497 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18498 (gomp_work_share_init_done): New static inline.
18499 (gomp_throttled_spin_count_var, gomp_available_cpus,
18500 gomp_managed_threads): New extern decls.
18501 (gomp_init_task): New prototype.
18502 (gomp_spin_count_var): New extern var decl.
18503 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18504 or no alias support, or if not PIC.
18505 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18506 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18507 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18508 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18509 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18510 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18511 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18512 gomp_test_nest_lock_25): New prototypes.
18513 (omp_lock_symver, strong_alias): Define.
18514 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18516 (gomp_end_task): New.
18517 (struct gomp_task_icv, gomp_global_icv): New.
18518 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18519 (struct gomp_task): New.
18520 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18521 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18523 (gomp_schedule_type): Reorder enum to match
18525 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18527 (gomp_thread_start): Add gomp_team_barrier_wait call.
18528 For non-nested case remove clearing of docked thread thr fields.
18529 Use pool fields instead of global gomp_* variables. Use
18530 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18531 Create tasks for each member thread.
18532 (free_team): Only destroy team barrier, task_lock here and free it.
18533 (gomp_free_thread): Free last_team if non-NULL.
18534 (gomp_team_end): Call gomp_team_barrier_wait instead of
18535 gomp_barrier_wait. For nested case call one extra
18536 gomp_barrier_wait. Move here some destruction from free_team.
18537 Call free_team on pool->last_team if any, rather than freeing
18538 current team. Destroy work_share_list_free_lock ifndef
18539 HAVE_SYNC_BUILTINS.
18540 (gomp_new_icv): New function.
18541 (gomp_threads, gomp_threads_size, gomp_threads_used,
18542 gomp_threads_dock): Removed.
18543 (gomp_thread_destructor): New variable.
18544 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18546 (gomp_team_start): Create new pool if current thread doesn't have
18547 one. Use pool fields instead of global gomp_* variables.
18548 Initialize thread_pool field for new threads. Clear single_count.
18549 Change last argument from ws to team, don't create
18550 new team, set ts.work_share to &team->work_shares[0] and clear
18551 ts.last_work_share. Don't clear ts.work_share_generation.
18552 If number of threads changed, adjust atomically gomp_managed_threads.
18553 Use gomp_init_task instead of gomp_new_task,
18554 set thr->task to the corresponding implicit_task array entry.
18555 Create tasks for each member thread. Initialize ts.level.
18556 (initialize_team): Call pthread_key_create on
18557 gomp_thread_destructor.
18558 (team_destructor): New function.
18559 (new_team): Removed.
18560 (gomp_new_team): New function.
18561 (free_team): Free gomp_work_share blocks chained through next_alloc,
18562 instead of freeing work_shares and destroying work_share_lock.
18563 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18564 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18565 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18566 of gomp_barrier_wait.
18567 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18568 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18569 if gomp_work_share_start returned true. Don't unlock ws->lock.
18570 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18571 of gomp_barrier_wait.
18572 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18573 gomp_work_share_init_done if gomp_work_share_start returned true.
18574 Don't unlock ws->lock.
18575 * work.c: Include stddef.h.
18576 (free_work_share): Use work_share_list_free_lock instead
18577 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18578 Call gomp_fini_work_share and then either free ws if orphaned, or
18579 put it into work_share_list_free list of the current team.
18580 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18582 (gomp_work_share_start, gomp_work_share_end,
18583 gomp_work_share_end_nowait): Rewritten.
18584 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18585 (openmp_version): Set to 200805.
18586 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18587 omp_sched_guided, omp_sched_auto): New parameters.
18588 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18589 omp_set_max_active_levels, omp_get_max_active_levels,
18590 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18591 omp_get_active_level): New interfaces.
18592 * omp_lib.h.in (openmp_version): Set to 200805.
18593 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18594 omp_sched_guided, omp_sched_auto): New parameters.
18595 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18596 omp_set_max_active_levels, omp_get_max_active_levels,
18597 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18598 omp_get_active_level): New externals.
18599 * loop.c: Include limits.h.
18600 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18602 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18603 Likewise. Use gomp_icv.
18604 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18605 ts.static_trip here.
18606 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18607 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18608 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18609 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18610 don't unlock ws->lock, otherwise lock it.
18611 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18612 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18613 (gomp_parallel_loop_start): Call gomp_new_team instead of
18614 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18615 Adjust gomp_team_start caller. Pass 0 as second argument to
18616 gomp_resolve_num_threads.
18617 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18618 If adding ws->chunk_size nthreads + 1 times after end won't
18619 overflow, set ws->mode to 1.
18620 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18621 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18622 GOMP_loop_ull_ordered_static_start,
18623 GOMP_loop_ull_ordered_dynamic_start,
18624 GOMP_loop_ull_ordered_guided_start,
18625 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18626 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18627 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18628 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18629 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18631 * libgomp.map: Export lock routines also @@OMP_2.0.
18632 (GOMP_loop_ordered_dynamic_first,
18633 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18634 GOMP_loop_ordered_static_first): Remove.
18635 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18636 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18637 GOMP_loop_ull_ordered_dynamic_next,
18638 GOMP_loop_ull_ordered_dynamic_start,
18639 GOMP_loop_ull_ordered_guided_next,
18640 GOMP_loop_ull_ordered_guided_start,
18641 GOMP_loop_ull_ordered_runtime_next,
18642 GOMP_loop_ull_ordered_runtime_start,
18643 GOMP_loop_ull_ordered_static_next,
18644 GOMP_loop_ull_ordered_static_start,
18645 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18646 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18647 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18648 (omp_set_schedule, omp_get_schedule,
18649 omp_get_thread_limit, omp_set_max_active_levels,
18650 omp_get_max_active_levels, omp_get_level,
18651 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18652 omp_set_schedule_, omp_set_schedule_8_,
18653 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18654 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18655 omp_get_max_active_levels_, omp_get_level_,
18656 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18657 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18658 New exports @@OMP_3.0.
18659 * omp.h.in (omp_sched_t): New type.
18660 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18661 omp_set_max_active_levels, omp_get_max_active_levels,
18662 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18663 omp_get_active_level): New prototypes.
18664 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18665 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18666 gomp_thread_limit_var, gomp_remaining_threads_count,
18667 gomp_remaining_threads_lock): New variables.
18668 (parse_spincount): New function.
18669 (initialize_env): Call gomp_init_num_threads unconditionally.
18670 Initialize gomp_available_cpus. Call parse_spincount,
18671 initialize gomp_{,throttled_}spin_count_var
18672 depending on presence and value of OMP_WAIT_POLICY and
18673 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18674 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18675 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18676 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18677 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18678 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18679 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18680 (gomp_global_icv): New.
18681 (parse_schedule): Use it. Parse "auto".
18682 (omp_set_num_threads): Use gomp_icv.
18683 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18685 (omp_get_max_threads): Move from parallel.c.
18686 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18687 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18689 (parse_stacksize, parse_wait_policy): New functions.
18690 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18691 both wrappers for compatibility and new locks.
18692 (omp_set_schedule, omp_get_schedule,
18693 omp_get_thread_limit, omp_set_max_active_levels,
18694 omp_get_max_active_levels, omp_get_level,
18695 omp_get_ancestor_thread_num, omp_get_team_size,
18696 omp_get_active_level): New ialias_redirect.
18697 (omp_set_schedule_, omp_set_schedule_8_,
18698 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18699 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18700 omp_get_max_active_levels_, omp_get_level_,
18701 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18702 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18704 * parallel.c: Include limits.h.
18705 (gomp_resolve_num_threads): Add count argument. Rewritten.
18706 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18707 argument to gomp_team_start. Pass 0 as second argument to
18708 gomp_resolve_num_threads.
18709 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18710 if gomp_thread_limit_var != ULONG_MAX.
18711 (omp_in_parallel): Implement using ts.active_level.
18712 (omp_get_max_threads): Move to env.c.
18713 (omp_get_level, omp_get_ancestor_thread_num,
18714 omp_get_team_size, omp_get_active_level): New functions,
18716 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18717 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18718 gomp_iter_dynamic_next instead of the _locked variant and don't take
18719 lock around it, otherwise acquire it before calling
18720 gomp_iter_dynamic_next_locked.
18721 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18722 gomp_iter_dynamic_next instead of the _locked variant and don't take
18724 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18725 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18726 Adjust gomp_team_start caller. Pass count as second argument to
18727 gomp_resolve_num_threads, don't adjust num_threads after the call.
18729 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18730 ws->chunk_size by incr.
18731 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18733 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18735 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18736 (omp_check_defines): Check even the compat defines.
18737 * config/linux/ptrlock.c: New file.
18738 * config/linux/ptrlock.h: New file.
18739 * config/linux/wait.h: New file.
18740 * config/posix/ptrlock.c: New file.
18741 * config/posix/ptrlock.h: New file.
18742 * config/linux/bar.h (gomp_team_barrier_wait,
18743 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18744 (gomp_team_barrier_set_task_pending,
18745 gomp_team_barrier_clear_task_pending,
18746 gomp_team_barrier_set_waiting_for_tasks,
18747 gomp_team_barrier_waiting_for_tasks,
18748 gomp_team_barrier_done): New inlines.
18749 (gomp_barrier_t): Rewritten.
18750 (gomp_barrier_state_t): New typedef.
18751 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18752 gomp_barrier_wait_start): Rewritten.
18753 (gomp_barrier_wait_end): Change second argument to
18754 gomp_barrier_state_t.
18755 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18757 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18759 (gomp_barrier_wait_end): Rewritten.
18760 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18761 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18762 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18763 (gomp_barrier_state_t): New typedef.
18764 (gomp_team_barrier_wait,
18765 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18766 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18767 into the return value. Return gomp_barrier_state_t.
18768 (gomp_team_barrier_set_task_pending,
18769 gomp_team_barrier_clear_task_pending,
18770 gomp_team_barrier_set_waiting_for_tasks,
18771 gomp_team_barrier_waiting_for_tasks,
18772 gomp_team_barrier_done): New inlines.
18773 (gomp_barrier_wait_end): Change second argument to
18774 gomp_barrier_state_t.
18775 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18777 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18778 (gomp_barrier_wait_end): Change second argument to
18779 gomp_barrier_state_t.
18780 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18781 gomp_team_barrier_wake): New functions.
18782 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18784 (gomp_futex_wake, gomp_futex_wait): New variables.
18785 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18786 * config/linux/lock.c: Rewrite to make locks task owned,
18787 for backwards compatibility provide the old entrypoints
18788 if symbol versioning. Include wait.h instead of libgomp.h and
18790 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18791 * config/posix95/lock.c: Rewrite to make locks task owned,
18792 for backwards compatibility provide the old entrypoints
18793 if symbol versioning.
18794 * config/posix/lock.c: Rewrite to make locks task owned,
18795 for backwards compatibility provide the old entrypoints
18796 if symbol versioning.
18797 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18798 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18799 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18800 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18801 (sys_futex0): Return error code.
18802 (futex_wake, futex_wait): If ENOSYS was returned, clear
18803 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18804 (cpu_relax, atomic_write_barrier): New static inlines.
18805 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18806 (futex_wake, futex_wait): If ENOSYS was returned, clear
18807 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18808 (cpu_relax, atomic_write_barrier): New static inlines.
18809 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18810 (sys_futex0): Return error code.
18811 (futex_wake, futex_wait): If ENOSYS was returned, clear
18812 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18813 (cpu_relax, atomic_write_barrier): New static inlines.
18814 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18815 (sys_futex0): Return error code.
18816 (futex_wake, futex_wait): If ENOSYS was returned, clear
18817 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18818 (cpu_relax, atomic_write_barrier): New static inlines.
18819 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18820 (sys_futex0): Return error code.
18821 (futex_wake, futex_wait): If ENOSYS was returned, clear
18822 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18823 (cpu_relax, atomic_write_barrier): New static inlines.
18824 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18825 (sys_futex0): Return error code.
18826 (futex_wake, futex_wait): If ENOSYS was returned, clear
18827 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18828 (cpu_relax, atomic_write_barrier): New static inlines.
18829 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18831 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18832 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18833 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18835 (omp_nest_lock_t): Change owner into void *, add lock field.
18836 * config/posix95/omp-lock.h: Include semaphore.h.
18837 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18838 (omp_lock_t): Use sem_t instead of mutex if semaphores
18840 (omp_nest_lock_t): Likewise. Change owner to void *.
18841 * config/posix/omp-lock.h: Include semaphore.h.
18842 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18843 (omp_lock_t): Use sem_t instead of mutex if semaphores
18845 (omp_nest_lock_t): Likewise. Add owner field.
18847 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18849 * testsuite/libgomp.c/collapse-1.c: New test.
18850 * testsuite/libgomp.c/collapse-2.c: New test.
18851 * testsuite/libgomp.c/collapse-3.c: New test.
18852 * testsuite/libgomp.c/icv-1.c: New test.
18853 * testsuite/libgomp.c/icv-2.c: New test.
18854 * testsuite/libgomp.c/lib-2.c: New test.
18855 * testsuite/libgomp.c/lock-1.c: New test.
18856 * testsuite/libgomp.c/lock-2.c: New test.
18857 * testsuite/libgomp.c/lock-3.c: New test.
18858 * testsuite/libgomp.c/loop-4.c: New test.
18859 * testsuite/libgomp.c/loop-5.c: New test.
18860 * testsuite/libgomp.c/loop-6.c: New test.
18861 * testsuite/libgomp.c/loop-7.c: New test.
18862 * testsuite/libgomp.c/loop-8.c: New test.
18863 * testsuite/libgomp.c/loop-9.c: New test.
18864 * testsuite/libgomp.c/nested-3.c: New test.
18865 * testsuite/libgomp.c/nestedfn-6.c: New test.
18866 * testsuite/libgomp.c/sort-1.c: New test.
18867 * testsuite/libgomp.c/task-1.c: New test.
18868 * testsuite/libgomp.c/task-2.c: New test.
18869 * testsuite/libgomp.c/task-3.c: New test.
18870 * testsuite/libgomp.c/task-4.c: New test.
18871 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18872 to C++ testsuite default compiler options.
18873 * testsuite/libgomp.c++/collapse-1.C: New test.
18874 * testsuite/libgomp.c++/collapse-2.C: New test.
18875 * testsuite/libgomp.c++/ctor-10.C: New test.
18876 * testsuite/libgomp.c++/for-1.C: New test.
18877 * testsuite/libgomp.c++/for-2.C: New test.
18878 * testsuite/libgomp.c++/for-3.C: New test.
18879 * testsuite/libgomp.c++/for-4.C: New test.
18880 * testsuite/libgomp.c++/for-5.C: New test.
18881 * testsuite/libgomp.c++/loop-8.C: New test.
18882 * testsuite/libgomp.c++/loop-9.C: New test.
18883 * testsuite/libgomp.c++/loop-10.C: New test.
18884 * testsuite/libgomp.c++/task-1.C: New test.
18885 * testsuite/libgomp.c++/task-2.C: New test.
18886 * testsuite/libgomp.c++/task-3.C: New test.
18887 * testsuite/libgomp.c++/task-4.C: New test.
18888 * testsuite/libgomp.c++/task-5.C: New test.
18889 * testsuite/libgomp.c++/task-6.C: New test.
18890 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18891 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18892 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18893 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18894 * testsuite/libgomp.fortran/collapse1.f90: New test.
18895 * testsuite/libgomp.fortran/collapse2.f90: New test.
18896 * testsuite/libgomp.fortran/collapse3.f90: New test.
18897 * testsuite/libgomp.fortran/collapse4.f90: New test.
18898 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18899 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18900 * testsuite/libgomp.fortran/lib4.f90: New test.
18901 * testsuite/libgomp.fortran/lock-1.f90: New test.
18902 * testsuite/libgomp.fortran/lock-2.f90: New test.
18903 * testsuite/libgomp.fortran/nested1.f90: New test.
18904 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18905 * testsuite/libgomp.fortran/strassen.f90: New test.
18906 * testsuite/libgomp.fortran/tabs1.f90: New test.
18907 * testsuite/libgomp.fortran/tabs2.f: New test.
18908 * testsuite/libgomp.fortran/task1.f90: New test.
18909 * testsuite/libgomp.fortran/task2.f90: New test.
18910 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18911 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18912 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18913 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18914 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18916 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18919 * testsuite/libgomp.c++/ctor-11.C: New test.
18920 * testsuite/libgomp.c++/ctor-12.C: New test.
18922 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18924 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18926 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18928 PR middle-end/36106
18929 * testsuite/libgomp.c/atomic-5.c: New test.
18930 * testsuite/libgomp.c/atomic-6.c: New test.
18931 * testsuite/libgomp.c/autopar-1.c: New test.
18933 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18935 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18936 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18937 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18938 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18939 * configure: Regenerate.
18940 * Makefile.in, testsuite/Makefile.in: Likewise.
18942 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18945 * aclocal.m4: Regenerate.
18946 * configure: Regenerate.
18948 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18950 PR middle-end/35611
18951 * testsuite/libgomp.c/atomic-4.c: New test.
18954 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18955 (gomp_iter_guided_next): Likewise.
18956 * testsuite/libgomp.c/pr35625.c: New test.
18958 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18960 * aclocal.m4: Regenerate.
18961 * configure: Likewise.
18962 * Makefile.in: Likewise.
18963 * testsuite/Makefile.in: Likewise.
18965 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18967 PR middle-end/35185
18968 * testsuite/libgomp.c++/pr35185.C: New test.
18970 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18972 PR middle-end/35549
18973 * testsuite/libgomp.c/pr35549.c: New test.
18975 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18977 * testsuite/libgomp.c/atomic-3.c: New test.
18979 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18982 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18983 .F08 file suffixes.
18985 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18988 * configure.ac: Add ACX_HEADER_STRING.
18989 * env.c: Include strings.h.
18990 * aclocal.m4: Regenerate.
18991 * config.h.in: Regenerate.
18992 * configure: Regenerate.
18993 * Makefile.in: Regenerate.
18994 * testsuite/Makefile.in: Regenerate.
18996 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18998 PR middle-end/35196
18999 * testsuite/libgomp.c/pr35196.c: New test.
19001 PR middle-end/35130
19002 * testsuite/libgomp.fortran/pr35130.f90: New test.
19003 * testsuite/libgomp.c/pr35130.c: New test.
19005 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19007 PR middle-end/33880
19008 * testsuite/libgomp.c/pr33880.c: New test.
19009 * testsuite/libgomp.fortran/pr33880.f90: New test.
19011 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19013 * configure: Regenerate.
19015 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19017 * configure.ac: Move futex checking into ../config/futex.m4.
19018 * configure: Rebuilt.
19019 * aclocal.m4: Rebuilt.
19020 * Makefile.in: Rebuilt.
19022 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19023 2007-10-15 ../config/tls.m4 change.
19025 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19028 * testsuite/libgomp.c/pr34513.c: New test.
19029 * testsuite/libgomp.c++/pr34513.C: New test.
19031 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19034 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19036 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19038 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19040 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19042 * testsuite/libgomp.c/private-1.c: New test.
19044 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19045 Paolo Bonzini <bonzini@gnu.org>
19047 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19048 instead of 'VPATH ='.
19049 * Makefile.in: Regenerate.
19051 2007-11-23 Matthias Klose <doko@ubuntu.com>
19053 * configure.ac: Adjust makeinfo version check.
19054 * configure: Regenerate.
19056 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19059 * testsuite/libgomp.fortran/pr34020.f90: New test.
19061 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19064 * testsuite/libgomp.c++/atomic-1.C: New test.
19066 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19069 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19070 Make x and y integers rather than (implicit) reals. Add private (j)
19071 clause to the last omp parallel.
19073 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19075 * configure: Regenerate following changes to ../config/tls.m4.
19077 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19079 * testsuite/libgomp.fortran/stack.f90: New test.
19081 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19083 * config/mingw32/proc.c: New file.
19085 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19087 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19088 (main): Use __get_cpuid to get i386 target fetaures.
19089 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19090 (main): Use __get_cpuid to get x86_64 target fetaures.
19092 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19095 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19096 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19098 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19101 * testsuite/libgomp.fortran/pr32550.f90: New test.
19102 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19104 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19106 * aclocal.m4: Regenerated.
19108 2007-07-05 Tobias Burnus <burnus@net-b.de>
19111 * testsuite/libgomp.fortran/pr32359.f90: New.
19113 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19116 * sections.c (GOMP_parallel_sections_start): Only decrease
19117 number of threads to COUNT if dyn_var is true.
19118 * testsuite/libgomp.c/pr32468.c: New test.
19120 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19123 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19125 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19127 PR middle-end/32362
19128 * testsuite/libgomp.c/pr32362-1.c: New test.
19129 * testsuite/libgomp.c/pr32362-2.c: New test.
19130 * testsuite/libgomp.c/pr32362-3.c: New test.
19132 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19134 * team.c (gomp_team_start): Fix setting up thread_attr
19137 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19139 * configure: Regenerate.
19141 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19143 * Makefile.in: Regenerate.
19144 * configure: Regenerate.
19145 * aclocal.m4: Regenerate.
19146 * testsuite/Makefile.in: Regenerate.
19148 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19150 * config/linux/proc.c: New file.
19153 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19155 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19157 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19159 2007-04-16 Matthias Klose <doko@debian.org>
19161 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19162 flags if not building with -m64.
19163 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19164 flag for i?86-*-* targets, if current target matches -m64.
19166 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19168 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19169 * Makefile.in: Regenerate.
19171 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19174 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19176 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19178 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19180 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19182 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19183 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19184 (parse_affinity): New function.
19185 (initialize_env): Call it and gomp_init_affinity.
19186 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19187 create new pthread_attr_t and call gomp_init_thread_affinity
19188 on it for each thread before passing the attribute to pthread_create.
19189 * config/linux/affinity.c: New file.
19190 * config/posix/affinity.c: New file.
19191 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19192 * configure: Rebuilt.
19193 * config.h.in: Rebuilt.
19194 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19195 * Makefile.in: Rebuilt.
19197 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19199 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19201 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19202 and use it if found.
19204 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19206 * testsuite/config/default.exp: New file.
19207 * testsuite/lib/libgomp.exp: New file.
19208 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19209 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19210 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19211 (libgomp_load): Remove.
19212 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19213 always_ld_library_path, not ld_library_path. Set additional_flags
19214 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19215 (target_compile): Do not call libgomp_init. Append lang_library_path
19216 and lang_link_flags to options.
19217 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19218 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19220 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19221 always_ld_library_path. Set LD_LIBRARY_PATH here.
19222 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19223 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19224 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19226 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19227 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19228 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19229 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19230 * testsuite/libgomp.c/atomic-10.c: Ditto.
19232 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19234 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19235 dg-final cleanup-modules line.
19236 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19237 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19238 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19239 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19240 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19241 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19242 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19244 2007-03-18 Andreas Schwab <schwab@suse.de>
19246 * acinclude.m4: Adjust regular expression for ld version
19248 * configure: Regenerate.
19250 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19252 * Makefile.am: Add install-pdf target as copied from
19253 automake v1.10 rules.
19254 * Makefile.in: Regenerate
19256 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19259 * configure: Regenerate.
19262 * testsuite/libgomp.c++/pr30703.C: New test.
19264 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19267 2006-07-05 Eric Christopher <echristo@apple.com>
19268 * configure.ac: Depend addition of -pthread on host OS.
19269 * configure: Regenerate.
19271 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19273 * libgomp.texi: Fix spacing after abbreviations.
19275 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19278 * configure.ac: Add check for makeinfo
19279 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19280 if an appropriate version of makeinfo is found.
19281 * aclocal.m4: Regenerated.
19282 * configure: Regenerated.
19283 * Makefile.in: Regenerated.
19284 * testsuite/Makefile.in: Regenerated.
19286 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19289 * libgomp.texi: More about implementation-dependent settings.
19291 2007-01-26 Tobias Burnus <burnus@net-b.de>
19293 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19295 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19297 PR middle-end/30494
19298 * testsuite/libgomp.c/pr30494.c: New test.
19300 2007-01-15 Tom Tromey <tromey@redhat.com>
19302 * configure: Rebuilt.
19303 * configure.ac: Fixed comment.
19305 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19307 * libgomp.texi: Document implementation specific default values of
19308 environment variables.
19310 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19313 * libgomp.texi: New file.
19314 * configure.ac: Add --enable-generated-files-in-srcdir option.
19315 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19317 * Makefile.in: Regenerated.
19318 * config.h.in: Regenerated.
19319 * testsuite/Makefile.in: Regenerated.
19322 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19325 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19327 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19329 * configure: Regenerate.
19331 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19334 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19335 start if there shouldn't be any loop iterations.
19336 (gomp_loop_ordered_static_start): Remove start == end test.
19337 * testsuite/libgomp.c/pr29947-1.c: New test.
19338 * testsuite/libgomp.c/pr29947-2.c: New test.
19340 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19342 * configure.tgt: Force initial-exec TLS model on Linux only.
19344 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19346 * configure: Regenerated.
19348 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19350 * env.c (parse_schedule): Reject out of range values.
19351 (parse_unsigned_long): Reject out of range, negative or zero values.
19353 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19356 * testsuite/libgomp.fortran/pr29629.f90: New test.
19358 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19361 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19362 * config/posix95: New directory.
19363 * config/posix95/omp-lock.h: New file.
19364 * config/posix95/lock.c: Likewise.
19366 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19368 * aclocal.m4: Regenerate.
19369 * configure: Regenerate.
19371 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19373 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19376 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19378 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19380 * configure: Regenerate.
19381 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19383 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19385 PR middle-end/25261
19386 PR middle-end/28790
19387 * testsuite/libgomp.c/nestedfn-4.c: New test.
19388 * testsuite/libgomp.c/nestedfn-5.c: New test.
19389 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19392 * testsuite/libgomp.fortran/condinc1.f: New test.
19393 * testsuite/libgomp.fortran/condinc2.f: New test.
19394 * testsuite/libgomp.fortran/condinc3.f90: New test.
19395 * testsuite/libgomp.fortran/condinc4.f90: New test.
19396 * testsuite/libgomp.fortran/condinc1.inc: New file.
19398 2006-09-18 Tom Tromey <tromey@redhat.com>
19400 * configure: Rebuilt.
19402 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19405 PR preprocessor/14634
19406 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19408 * configure: Regenerate.
19410 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19412 * testsuite/libgomp.fortran/reduction3.f90: Change
19413 -2147483648 to -huge(i)-1 to avoid overflow.
19414 * testsuite/libgomp.fortran/reduction4.f90: Change
19415 Z'ffffffff' to not(0) to avoid overflow.
19417 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19420 * Makefile.am (libsubincludedir): New.
19421 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19422 * Makefile.in: Regenerate.
19424 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19427 * env.c: Include ctype.h.
19428 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19429 leading and/or trailing whitespace and compare strings case
19432 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19435 * testsuite/libgomp.fortran/pr28390.f: New test.
19437 2006-07-05 Eric Christopher <echristo@apple.com>
19439 * configure.ac: Depend addition of -pthread on host OS.
19440 * configure: Regenerate.
19442 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19444 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19445 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19448 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19452 * configure.ac: If neither --enable-linux-futex nor
19453 --disable-linux-futex is passed, determine the default by checking
19454 for compiling and/or running against NPTL. With --enable-linux-futex,
19455 check if SYS_gettid and SYS_futex are defined.
19456 * configure: Rebuilt.
19458 2006-06-14 Richard Henderson <rth@redhat.com>
19461 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19462 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19464 2006-06-09 Richard Henderson <rth@redhat.com>
19466 * env.c (gomp_nthreads_var): Change to unsigned long.
19467 (gomp_run_sched_chunk): Likewise.
19468 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19469 (initialize_env): Initialize gomp_thread_attr.
19470 * libgomp.h (gomp_nthreads_var): Update decl.
19471 (gomp_run_sched_chunk): Likewise.
19472 (gomp_thread_attr): Declare.
19473 * team.c (gomp_thread_attr): Export.
19474 (initialize_team): Don't initialize it.
19476 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19479 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19480 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19482 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19484 * config/mingw32/time.c: New file.
19485 * configure.tgt: Use it.
19487 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19489 * Makefile.am: Add install-html target. Add install-html to .PHONY
19490 * Makefile.in: Regenerate.
19492 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19495 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19496 * testsuite/libgomp.c/critical-1.c: Likewise.
19497 * testsuite/libgomp.c/loop-1.c: Likewise.
19498 * testsuite/libgomp.c/loop-2.c: Likewise.
19499 * testsuite/libgomp.c/single-1.c: Likewise.
19500 * testsuite/libgomp.c/ordered-1.c: Likewise.
19501 * testsuite/libgomp.c/ordered-2.c: Likewise.
19503 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19505 PR middle-end/27416
19506 * libgomp.fortran/pr27416-1.f90: New test.
19508 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19511 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19512 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19514 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19517 * testsuite/libgomp.c/pr26943-1.c: New test.
19518 * testsuite/libgomp.c/pr26943-2.c: New test.
19519 * testsuite/libgomp.c/pr26943-3.c: New test.
19520 * testsuite/libgomp.c/pr26943-4.c: New test.
19521 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19522 * testsuite/libgomp.c++/pr26943.C: New test.
19524 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19526 PR middle-end/27337
19527 * testsuite/libgomp.c++/pr27337.C: New test.
19529 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19532 * testsuite/libgomp.c/pr26171.c: New test.
19534 2006-04-25 Richard Henderson <rth@redhat.com>
19537 * configure.ac: Use GCC_CHECK_TLS.
19538 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19539 * Makefile.in, aclocal.m4, configure: Regenerate.
19541 2006-04-10 Matthias Klose <doko@debian.org>
19543 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19544 directory names containing underscores.
19546 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19549 * testsuite/libgomp.c++/pr26691.C: New test.
19551 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19553 * testsuite/libgomp.fortran/retval2.f90: New test.
19555 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19557 * testsuite/libgomp.c++: New directory.
19559 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19561 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19562 * config/posix/sem.c: Implement the above.
19564 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19566 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19567 define HAVE_BROKEN_POSIX_SEMAPHORES.
19568 * configure: Rebuilt.
19569 * config.h.in: Rebuilt.
19571 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19574 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19575 for the other pthread check.
19576 * configure: Regenerate.
19577 * config.h.in: Regenerate.
19579 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19583 * Makefile.am (fincludedir): New variable.
19584 (nodist_include_HEADERS): Remove Fortran files.
19585 (nodist_finclude_HEADERS): New variable.
19586 * Makefile.in: Regenerated.
19588 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19590 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19591 Remove tests for returning assumed character length arrays.
19593 2006-02-12 Roger Sayle <roger@eyesopen.com>
19594 John David Anglin <dave@hiauly1.hia.nrc.ca>
19597 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19599 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19601 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19603 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19605 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19606 part of LD_LIBRARY_PATH manually.
19608 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19611 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19614 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19617 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19618 * configure.ac (PERL): Don't set.
19619 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19620 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19621 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19622 * omp.h.in: Wrap the new configure substitutions with @ characters.
19623 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19624 * aclocal.m4, configure, Makefile.in: Regenerate.
19625 * mkomp_h.pl: Delete.
19627 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19630 * configure.ac: Use GCC_HEADER_STDINT.
19631 * libgomp.h: Include gstdint.h.
19632 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19633 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19635 2006-01-24 Richard Henderson <rth@redhat.com>
19638 * configure.ac: Add AM_MAINTAINER_MODE.
19639 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19641 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19643 * Makefile.in: Regenerate.
19644 * testsuite/Makefile.in: Regenerate.
19645 * aclocal.m4: Regenerate.
19647 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19649 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19651 * configure.ac: Add check for loadavg.h.
19652 (link_gomp): Adjust comment.
19653 * configure: Regenerate.
19654 * config.h.in: Regenerate.
19656 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19659 * configure.ac: Remove check for alloca.h.
19660 * configure: Regenerate.
19661 * config.h.in: Regenerate.
19662 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19663 * team.c: Remove use of alloca.h.
19664 Call gomp_alloca instead of alloca.
19666 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19669 * team.c: Add include of alloca.h.
19670 * configure.ac: Add check for alloca.h.
19671 * configure: Regenerate.
19672 * config.h.in: Regenerate.
19674 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19677 * testsuite/libgomp.fortran/pr25219.f90: New test.
19679 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19681 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19682 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19683 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19684 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19685 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19686 testsuite/libgomp.fortran/threadprivate1.f90,
19687 testsuite/libgomp.fortran/threadprivate2.f90,
19688 testsuite/libgomp.fortran/threadprivate3.f90,
19689 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19690 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19691 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19692 effective-target to TLS runtime.
19694 * testsuite/libgomp.fortran/pr25162.f: Require
19695 effective-target TLS runtime.
19697 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19699 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19700 * testsuite/libgomp.c/nestedfn-3.c: New test.
19702 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19705 * testsuite/libgomp.fortran/pr25162.f: New test.
19707 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19709 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19710 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19712 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19714 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19715 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19716 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19717 single.c, team.c, work.c, config/linux/alpha/futex.h,
19718 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19719 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19720 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19721 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19722 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19723 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19724 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19727 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19729 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19730 to nodist_noinst_HEADERS.
19731 * Makefile.in: Rebuilt.
19733 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19734 add integer count field.
19735 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19736 omp_nest_lock_t type change.
19737 (omp_init_nest_lock): Likewise. Initialize count to 0.
19738 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19740 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19742 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19743 Increment count if successful and return the new nesting level.
19744 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19745 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19746 * testsuite/libgomp.c/lib-1.c: New test.
19747 * testsuite/libgomp.fortran/lib1.f90: New test.
19748 * testsuite/libgomp.fortran/lib2.f: New test.
19749 * testsuite/libgomp.fortran/lib3.f: New test.
19751 2005-11-17 Richard Henderson <rth@redhat.com>
19754 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19755 * configure.ac (link_gomp): New. Substitute it.
19756 (AC_CONFIG_FILES): Add libgomp.spec.
19757 * libgomp.spec.in: New file.
19758 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19759 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19761 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19763 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19764 reduction(-:var) behaving the same as reduction(+:var).
19765 * testsuite/libgomp.c/reduction-4.c: New test.
19767 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19769 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19770 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19771 testsuite/libgomp.c/copyin-3.c,
19772 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19773 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19774 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19775 testsuite/libgomp.c++/pr24455.C,
19776 testsuite/libgomp.fortran/threadprivate1.f90,
19777 testsuite/libgomp.fortran/threadprivate2.f90,
19778 testsuite/libgomp.fortran/threadprivate3.f90,
19779 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19780 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19781 testsuite/libgomp.fortran/omp_parse3.f90: Require
19782 effective-target TLS.
19784 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19788 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19791 * team.c (initialize_team): Pass NULL rather than free as
19792 pthread_key_create destructor. Initialize thread specific data
19793 pointer in initial thread to a static local variable rather than
19796 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19798 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19799 its location to ld_library_path.
19801 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19803 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19805 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19807 * testsuite/libgomp.c: Rename from libgomp.dg.
19809 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19811 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19812 threadprivate variable 'i'.
19814 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19816 * config/linux/s390/futex.h: New file.
19817 * configure.tgt: Use it.
19819 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19820 before the parallel.
19822 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19825 * testsuite/libgomp.c++/master-1.C: New test.
19827 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19829 * testsuite/libgomp.dg/copyin-3.c: New test.
19831 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19833 * testsuite/libgomp.fortran/retval1.f90: New test.
19834 * testsuite/libgomp.fortran/vla7.f90: New test.
19836 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19838 * testsuite/libgomp.fortran/vla2.f90: New test.
19839 * testsuite/libgomp.fortran/vla3.f90: New test.
19840 * testsuite/libgomp.fortran/vla4.f90: New test.
19841 * testsuite/libgomp.fortran/vla5.f90: New test.
19842 * testsuite/libgomp.fortran/vla6.f90: New test.
19844 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19846 * config/linux/sparc/futex.h: New file.
19847 * configure.tgt: Use it.
19848 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19850 * critical.c: Include stdlib.h.
19851 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19852 ignoring return value.
19853 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19854 LIBGOMP_CHECK_SYNC_BUILTINS check.
19855 * configure: Rebuilt.
19857 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19859 * testsuite/libgomp.fortran/vla1.f90: New test.
19861 2005-10-31 Richard Henderson <rth@redhat.com>
19863 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19864 setting 's' in different threads.
19866 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19868 * libgomp.h (attribute_hidden, ialias): Define.
19869 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19870 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19871 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19872 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19873 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19874 omp_test_lock, omp_test_nest_lock): Likewise.
19875 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19876 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19877 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19878 omp_test_lock, omp_test_nest_lock): Likewise.
19879 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19880 omp_get_dynamic, omp_get_nested): Likewise.
19881 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19882 omp_get_thread_num, omp_in_parallel): Likewise.
19883 * fortran.c (ialias_redirect): Define.
19884 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19885 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19886 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19887 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19888 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19889 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19890 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19891 omp_get_wtime): Add ialias_redirect.
19893 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19895 * fortran.c: Include stdlib.h.
19897 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19899 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19900 * Makefile.in: Regenerated.
19902 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19904 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19905 * libgomp_f.h.in (omp_check_defines): New function.
19906 * env.c: Include libgomp_f.h.
19907 (initialize_env): Call omp_check_defines.
19909 * testsuite/libgomp.dg/copyin-2.c: New test.
19910 * testsuite/libgomp.c++/copyin-2.C: New test.
19911 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19913 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19914 * testsuite/libgomp.fortran/sharing2.f90: New test.
19916 * testsuite/libgomp.dg/copyin-1.c: New test.
19917 * testsuite/libgomp.c++/copyin-1.C: New test.
19919 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19921 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19923 * testsuite/libgomp.fortran/workshare1.f90: New test.
19925 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19927 * libgomp.fortran/sharing1.f90: New test.
19929 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19932 * testsuite/libgomp.c++/loop-7.C: New test.
19934 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19936 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19937 * testsuite/libgomp.fortran/reduction6.f90: New test.
19938 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19940 2005-10-23 Richard Henderson <rth@redhat.com>
19942 * testsuite/libgomp.c++/ctor-1.C: New.
19943 * testsuite/libgomp.c++/ctor-2.C: New.
19944 * testsuite/libgomp.c++/ctor-3.C: New.
19945 * testsuite/libgomp.c++/ctor-4.C: New.
19946 * testsuite/libgomp.c++/ctor-5.C: New.
19947 * testsuite/libgomp.c++/ctor-6.C: New.
19948 * testsuite/libgomp.c++/ctor-7.C: New.
19949 * testsuite/libgomp.c++/ctor-8.C: New.
19950 * testsuite/libgomp.c++/ctor-9.C: New.
19952 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19955 * testsuite/libgomp.c++/pr24455-1.C: New test.
19956 * testsuite/libgomp.c++/pr24455.C: New test.
19957 * testsuite/libgomp.dg/pr24455-1.c: New test.
19958 * testsuite/libgomp.dg/pr24455.c: New test.
19960 2005-10-20 Richard Henderson <rth@redhat.com>
19962 * testsuite/libgomp.c++/loop-6.C: New.
19963 * testsuite/libgomp.dg/loop-3.c: New.
19965 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19967 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19968 explicitly private.
19969 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19972 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19974 * testsuite/libgomp.fortran/jacobi.f: New test.
19976 2005-10-19 Richard Henderson <rth@redhat.com>
19978 * configure.tgt (i?86-linux): Default to with_arch instead of
19979 CFLAGS. Add -mtune to match target_cpu.
19980 (x86_64-linux): Tune to i686.
19982 * fortran.c (omp_test_nest_lock_): Fix typo.
19984 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19986 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19987 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19988 * testsuite/libgomp.dg/ordered-3.c: New test.
19990 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19991 Remove volatile keyword.
19993 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19994 in COMMON block to avoid warnings on 64-bit targets.
19996 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19998 * testsuite/libgomp.dg/shared-3.c: New test.
20000 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20002 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20003 * testsuite/libgomp.fortran/reduction5.f90: New test.
20005 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20007 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20009 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20010 flush loop now that __sync_synchronize has proper memory barrier.
20011 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20012 Add -ffixed-form to dg-options.
20014 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20016 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20017 from subdirectories.
20018 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20019 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20020 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20021 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20022 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20023 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20024 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20025 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20026 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20027 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20028 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20029 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20030 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20031 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20032 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20033 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20034 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20035 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20036 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20037 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20038 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20039 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20040 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20041 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20042 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20044 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20046 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20047 lang_library_path exists. Use find instead of glob to gather tests.
20048 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20050 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20052 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20053 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20054 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20055 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20056 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20057 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20058 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20059 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20060 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20061 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20062 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20063 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20064 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20066 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20068 * testsuite/libgomp.dg/vla-1.c: New test.
20070 * testsuite/libgomp.fortran/reference2.f90: New test.
20072 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20073 declaration of omp_get_thread_num.
20074 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20077 * testsuite/libgomp.fortran/reduction1.f90: New test.
20078 * testsuite/libgomp.fortran/reduction2.f90: New test.
20079 * testsuite/libgomp.fortran/reduction3.f90: New test.
20080 * testsuite/libgomp.fortran/reduction4.f90: New test.
20082 2005-10-13 Richard Henderson <rth@redhat.com>
20084 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20085 * Makefile.in: Regenerate.
20086 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20087 * libgomp.h: Include bar.h.
20088 (struct gomp_barrier): Remove.
20089 (struct gomp_team): Add barrier. Replace master_barrier with
20090 master_release. Replace threads with ordered_release.
20091 (struct gomp_thread): Replace barrier with release.
20092 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20093 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20094 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20095 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20096 (GOMP_single_copy_end): Likewise.
20097 * team.c (gomp_threads_dock): New.
20098 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20099 (gomp_thread_start): Use gomp_barrier_wait.
20100 (new_team, free_team): Update for gomp_team changes.
20101 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20102 (gomp_team_end): Use gomp_barrier_wait.
20103 (initialize_team): Update for gomp_thread changes.
20104 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20105 (gomp_work_share_end_nowait): Use atomic ops when available.
20106 * config/linux/bar.c, config/linux/bar.h: New files.
20107 * config/posix/bar.c, config/posix/bar.h: New files.
20109 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20111 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20112 * testsuite/libgomp.dg/single-2.c: New test.
20114 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20115 lang_link_flags): Unset, so that they aren't inherited from previously
20118 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20120 2005-10-12 Richard Henderson <rth@redhat.com>
20122 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20123 (libgomp_init): Use lang_test_file, lang_library_path, and
20124 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20126 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20127 (lang_test_file, lang_link_flags): New.
20128 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20130 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20131 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20132 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20133 testsuite/libgomp.c++/parallel-1.C,
20134 testsuite/libgomp.c++/reduction-1.C,
20135 testsuite/libgomp.c++/reduction-2.C,
20136 testsuite/libgomp.c++/reduction-3.C,
20137 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20138 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20139 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20140 New files, largely cribbed from the C testsuite.
20142 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20144 * testsuite/libgomp.fortran/character1.f90: New test.
20145 * testsuite/libgomp.fortran/character2.f90: New test.
20147 * testsuite/libgomp.dg/nested-1.c: New test.
20148 * testsuite/libgomp.dg/nested-2.c: New test.
20149 * testsuite/libgomp.fortran/do1.f90: New test.
20150 * testsuite/libgomp.fortran/do2.f90: New test.
20152 * testsuite/libgomp.fortran/reference1.f90: New test.
20154 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20156 * testsuite/libgomp.dg/reduction-1.c: New test.
20157 * testsuite/libgomp.dg/reduction-2.c: New test.
20158 * testsuite/libgomp.dg/reduction-3.c: New test.
20160 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20162 * testsuite/libgomp.dg/atomic-1.c: New test.
20163 * testsuite/libgomp.dg/atomic-2.c: New test.
20165 2005-10-09 Richard Henderson <rth@redhat.com>
20167 * critical.c (atomic_lock): New.
20168 (initialize_critical): Initialize it.
20169 (GOMP_atomic_start, GOMP_atomic_end): New.
20170 * libgomp.map: Export them.
20171 * libgomp_g.h: Declare them.
20173 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20175 2005-10-02 Richard Henderson <rth@redhat.com>
20177 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20178 to XCFLAGS instead of CFLAGS.
20180 2005-09-30 Richard Henderson <rth@redhat.com>
20182 * configure.ac: Determine whether -pthread or -lpthread is needed.
20183 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20184 * Makefile.in, configure: Rebuild.
20186 2005-09-28 Richard Henderson <rth@redhat.com>
20188 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20189 * testsuite/libgomp.dg/omp-single-3.c: New test.
20191 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20193 * testsuite/libgomp.dg/omp-single-2.c: New test.
20194 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20196 2005-09-27 Richard Henderson <rth@redhat.com>
20198 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20199 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20201 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20203 * testsuite/libgomp.dg/omp-loop03.c: New test.
20205 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20207 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20209 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20211 * testsuite/libgomp.dg/omp-single-1.c: New test.
20212 * testsuite/libgomp.dg/shared-1.c: Return 0.
20213 Add prototype for abort.
20214 * testsuite/libgomp.dg/shared-2.c: Likewise.
20216 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20218 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20221 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20223 * testsuite/libgomp.dg/shared-1.c: New test.
20224 * testsuite/libgomp.dg/shared-2.c: New test.
20226 2005-09-24 Richard Henderson <rth@redhat.com>
20228 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20230 2005-09-24 Richard Henderson <rth@redhat.com>
20232 * iter.c (gomp_iter_static_next): Round up when computing number
20233 of iterations. Don't bother distributing a remainder equally.
20235 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20236 Don't call srand. Zero b before testing.
20239 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20241 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20242 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20244 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20246 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20247 without !$omp end do, followed immediately by subroutine end.
20249 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20251 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20253 2005-09-22 Richard Henderson <rth@redhat.com>
20255 * critical.c (GOMP_critical_name_start): Change argument to void**.
20256 Reuse the pointer space if the mutex fits.
20257 (GOMP_critical_name_end): Likewise.
20258 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20259 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20260 (GOMP_critical_name_end): Likewise.
20261 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20262 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20264 2005-09-20 Richard Henderson <rth@redhat.com>
20266 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20267 (create_lock_lock): New.
20268 (initialize_critical): Initialize it.
20269 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20270 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20272 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20274 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20276 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20278 * testsuite/libgomp.dg/omp-loop01.c: New test.
20279 * testsuite/libgomp.dg/omp-loop02.c: New test.
20281 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20283 * configure.ac (AC_PROG_FC): Add.
20284 (USE_FORTRAN): New automake conditional.
20285 * configure: Rebuilt.
20286 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20287 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20288 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20289 Add rules to build them.
20290 * Makefile.in: Rebuilt.
20291 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20292 OMP_NEST_LOCK_KIND.
20293 * libgomp.map: Add Fortran wrappers.
20294 * libgomp_f.h.in: New file.
20295 * omp_lib.h.in: New file.
20296 * omp_lib.f90.in: New file.
20297 * fortran.c: New file.
20298 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20299 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20300 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20301 libgfortran has been built.
20302 * testsuite/libgomp.fortran/fortran.exp: New file.
20303 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20304 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20305 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20306 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20307 * testsuite/libgomp.fortran/omp_hello.f: New test.
20308 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20309 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20310 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20311 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20312 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20313 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20314 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20315 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20317 2005-08-30 Richard Henderson <rth@redhat.com>
20319 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20320 function for when aliases are not usable.
20321 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20322 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20323 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20324 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20325 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20326 GOMP_loop_ordered_guided_next): Likewise.
20327 * ordered.c (GOMP_ordered_start): Likewise.
20329 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20331 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20332 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20333 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20334 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20335 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20336 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20337 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20338 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20339 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20341 2005-07-07 Eric Christopher <echristo@redhat.com>
20342 Diego Novillo <dnovillo@redhat.com>
20344 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20345 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20347 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20348 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20349 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20350 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20351 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20352 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20353 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20355 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20357 * TOPLEVEL.patch: Remove.
20359 2005-05-16 Richard Henderson <rth@redhat.com>
20361 * configure.ac: Test for clock_gettime.
20362 * config.h.in, configure: Rebuild.
20363 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20364 (omp_get_wtime): Use clock_gettime if available.
20365 (omp_get_wtick): Use clock_getres if available.
20367 2005-05-11 Richard Henderson <rth@redhat.com>
20369 * config/linux/ia64/futex.h: New file.
20370 * configure.tgt: Use it.
20372 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20374 2005-05-07 Richard Henderson <rth@redhat.com>
20376 * config/linux/powerpc/futex.h: New file.
20377 * configure.tgt: Use it.
20379 * config/linux/i486/futex.h: Merge ...
20380 * config/linux/x86_64/futex.h: ... into ...
20381 * config/linux/x86/futex.h: ... here.
20382 * configure.tgt: Update to match.
20384 2005-05-06 Richard Henderson <rth@redhat.com>
20386 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20387 * config/linux/i486/futex.h: Likewise.
20388 * config/linux/x86_64/futex.h: Likewise.
20390 * config/linux/lock.c: New file.
20391 * config/linux/omp-lock.h: New file.
20393 * critical.c, env.h: Don't include omp.h
20394 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20395 * config/posix/time.c: Likewise.
20396 * config/posix/omp-lock.h: New file.
20397 * libgomp.h: Include omp-lock.h and omp.h.
20398 * Makefile.am (nodist_include_HEADERS): New.
20400 * configure.ac (PERL): New.
20401 * mkomp_h.pl: New file.
20402 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20404 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20406 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20407 build directory. Re-add -march=i486 hack.
20409 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20410 (libgomp_link_flags): Remove.
20411 (libgomp_initialized): Remove.
20412 (libgomp_init): Don't protect from reinitialization. Copy code
20413 from libstdc++ for getting the multilib set correctly.
20415 2005-05-05 Richard Henderson <rth@redhat.com>
20417 * config/linux/alpha/futex.h: New file.
20418 * configure.tgt (alpha*-*-linux*): Use it.
20420 * config/posix/mutex.c: New file.
20421 * config/posix/sem.c: Use libgomp.h.
20423 * configure.tgt (x86_64-linux): Also test CC for -m32.
20424 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20426 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20429 * Makefile.am (SUBDIRS): New.
20430 (libgomp_la_LDFLAGS): Add -lpthread.
20431 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20432 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20434 * libgomp_g.h: New file.
20435 * libgomp.h: Split out all public declarations to libgomp_g.h.
20436 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20437 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20438 * config/linux/sem.h: Likewise.
20439 * config/posix/sem.h: Likewise.
20441 * Makefile.am (AM_LDFLAGS): New.
20442 (libgomp_version_script): Split out from ...
20443 (libgomp_la_LDFLAGS): ... here.
20444 (libgomp_version_info): New.
20445 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20446 (LIBGOMP_ENABLE): New.
20447 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20448 (LIBGOMP_ENABLE_SYMVERS): New.
20449 * configure.ac (AC_INIT): Version 1.0.
20450 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20451 (enable-linux-futex): Likewise. Rename from enable-futex.
20452 (libtool_VERSION): New.
20453 (LIBGOMP_ENABLE_SYMVERS): Use it.
20454 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20455 * Makefile.in, aclocal.m4, configure: Rebuild.
20457 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20458 (gomp_mutex_unlock_slow): Fix typo.
20459 * config/linux/sem.c: Similarly.
20460 (gomp_sem_post_slow): Fix typo.
20461 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20462 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20463 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20465 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20466 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20467 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20468 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20469 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20470 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20471 LDFLAGS. Pull enable_futex check to top-level.
20472 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20473 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20475 First attempt at real configury.
20476 * Makefile, config.h: Remove file.
20477 * Makefile.am, Makefile.in: New file.
20478 * acinclude.m4 aclocal.m4: New file.
20479 * configure.ac, configure.tgt, configure: New file.
20481 * config/posix/lock.c: Rename from sys-lock.c.
20482 * config/posix/mutex.h: Rename from sys-mutex.h.
20483 * config/posix/sem.c: Rename from sys-sem.c.
20484 * config/posix/sem.h: Rename from sys-sem.h.
20485 * config/posix/proc.c: Rename from sys-proc.c.
20486 * config/posix/time.c: Rename from sys-proc.c.
20488 * config/linux/mutex.c: New file.
20489 * config/linux/mutex.h: New file.
20490 * config/linux/sem.c: New file.
20491 * config/linux/sem.h: New file.
20492 * config/linux/i486/futex.h: New file.
20493 * config/linux/x86_64/futex.h: New file.
20495 2005-05-04 Richard Henderson <rth@redhat.com>
20497 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20498 * libgomp.h: Declare them.
20499 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20500 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20502 2005-05-04 Richard Henderson <rth@redhat.com>
20504 * libgomp-1 code drop
20506 2005-05-04 Richard Henderson <rth@redhat.com>
20508 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20509 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20510 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20511 (gomp_iter_static_next): Update.
20512 (gomp_ordered_static_next): Update.
20513 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20514 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20515 totally empty range.
20516 (gomp_loop_ordered_static_next): Refine test for calling
20517 gomp_ordered_static_next.
20518 * testsuite/ordered-1.c: Add case for more threads than iterations.
20520 * iter.c (gomp_iter_runtime_next_locked): Remove.
20521 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20522 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20523 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20524 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20525 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20526 gomp_loop_ordered_guided_next): Downcase name, make static, add
20527 an external alias with the old name.
20528 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20529 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20530 switch and call one of the above static functions.
20531 * libgomp.h: Update.
20533 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20534 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20535 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20536 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20537 GOMP_loop_ordered_guided_start): Update to match.
20538 * sections.c (GOMP_sections_start): Likewise.
20539 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20541 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20542 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20543 Use bounds check instead of modulus.
20544 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20545 (gomp_ordered_last): Don't sync with ordered_owner here.
20546 (gomp_ordered_next): Likewise.
20547 (gomp_ordered_static_loop_next): Likewise.
20548 * loop.c, libgomp.h: Update to match.
20550 * libgomp.h (GOMP_barrier): Declare.
20552 * testsuite/barrier-1.c: New file.
20553 * testsuite/critical-1.c: New file.
20554 * testsuite/ordered-2.c: New file.
20555 * testsuite/ordered-1.c: New file.
20556 * testsuite/sections-1.c: New file.
20557 * testsuite/single-1.c: New file.
20558 * testsuite/Makefile (TESTS): Add them.
20560 2005-05-04 Richard Henderson <rth@redhat.com>
20562 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20563 * loop.c (GOMP_loop_static_start): If not the startup thread,
20564 acquire the mutex to wait for initialization complete.
20565 (GOMP_loop_ordered_static_start): Likewise.
20566 (GOMP_loop_ordered_runtime_start): Likewise.
20567 (GOMP_loop_ordered_static_first): Remove.
20568 (GOMP_loop_ordered_dynamic_first): Remove.
20569 (GOMP_loop_ordered_guided_first): Remove.
20570 (GOMP_loop_ordered_runtime_first): Remove.
20571 * ordered.c (gomp_ordered_loop_first): Post to own release when
20572 we're the first thread.
20573 (gomp_ordered_loop_last): Wait on release if not owner.
20574 (gomp_ordered_loop_next): Likewise.
20575 (gomp_ordered_static_loop_init): New.
20576 (gomp_ordered_static_loop_next): Use ordered_owner.
20577 (GOMP_ordered_start): Likewise.
20578 * work.c (gomp_new_work_share): Initialize ordered_owner.
20580 2005-05-03 Richard Henderson <rth@redhat.com>
20582 * Makefile (OPT): New.
20585 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20586 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20587 * libgomp.h, libgomp.map, NOTES: Update to match.
20589 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20590 Add initialized and thr members.
20591 (gomp_thread_start): Pause when initially spawned to wait for
20592 the whole team to be created.
20593 (gomp_team_start): Release team members at the end.
20595 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20596 (f_foo_1): Use GOMP_loop_end.
20597 (f_foo_2): Use GOMP_loop_end_nowait.
20599 * testsuite/loop-2.c: New file.
20600 * testsuite/Makefile (TESTS): Add it.
20602 2005-05-03 Richard Henderson <rth@redhat.com>
20604 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20605 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20606 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20607 initial work_share.
20609 * testsuite/Makefile: New file.
20610 * testsuite/loop-1.c: New file.
20612 2005-05-03 Richard Henderson <rth@redhat.com>
20614 Initial implementation and checkin.
20616 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20618 Copying and distribution of this file, with or without modification,
20619 are permitted in any medium without royalty provided the copyright
20620 notice and this notice are preserved.